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
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
771 ENABLE_BUILD_WITH_CXX
774 valgrind_path_defines
846 program_transform_name
857 ac_subst_files
='language_hooks'
859 enable_option_checking
864 enable_generated_files_in_srcdir
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
899 enable_leading_mingw64_underscores
902 enable_win32_registry
909 enable_gnu_unique_object
910 enable_linker_build_id
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
919 ac_precious_vars
='build_alias
942 # Initialize some variables set by options.
944 ac_init_version
=false
945 ac_unrecognized_opts
=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name
=s
,x
,x
,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir
='${exec_prefix}/bin'
971 sbindir
='${exec_prefix}/sbin'
972 libexecdir
='${exec_prefix}/libexec'
973 datarootdir
='${prefix}/share'
974 datadir
='${datarootdir}'
975 sysconfdir
='${prefix}/etc'
976 sharedstatedir
='${prefix}/com'
977 localstatedir
='${prefix}/var'
978 includedir
='${prefix}/include'
979 oldincludedir
='/usr/include'
980 docdir
='${datarootdir}/doc/${PACKAGE}'
981 infodir
='${datarootdir}/info'
986 libdir
='${exec_prefix}/lib'
987 localedir
='${datarootdir}/locale'
988 mandir
='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\
$ac_option
1002 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1014 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1015 bindir
=$ac_optarg ;;
1017 -build |
--build |
--buil |
--bui |
--bu)
1018 ac_prev
=build_alias
;;
1019 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1020 build_alias
=$ac_optarg ;;
1022 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1023 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1024 ac_prev
=cache_file
;;
1025 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1026 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1027 cache_file
=$ac_optarg ;;
1029 --config-cache |
-C)
1030 cache_file
=config.cache
;;
1032 -datadir |
--datadir |
--datadi |
--datad)
1034 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1035 datadir
=$ac_optarg ;;
1037 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1038 |
--dataroo |
--dataro |
--datar)
1039 ac_prev
=datarootdir
;;
1040 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1041 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1042 datarootdir
=$ac_optarg ;;
1044 -disable-* |
--disable-*)
1045 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1048 as_fn_error
"invalid feature name: $ac_useropt"
1049 ac_useropt_orig
=$ac_useropt
1050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_
$ac_useropt"
1055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep
=', ';;
1058 eval enable_
$ac_useropt=no
;;
1060 -docdir |
--docdir |
--docdi |
--doc |
--do)
1062 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1063 docdir
=$ac_optarg ;;
1065 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1067 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1068 dvidir
=$ac_optarg ;;
1070 -enable-* |
--enable-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error
"invalid feature name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_
$ac_useropt"
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval enable_
$ac_useropt=\
$ac_optarg ;;
1086 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1087 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1088 |
--exec |
--exe |
--ex)
1089 ac_prev
=exec_prefix
;;
1090 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1091 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1092 |
--exec=* |
--exe=* |
--ex=*)
1093 exec_prefix
=$ac_optarg ;;
1095 -gas |
--gas |
--ga |
--g)
1096 # Obsolete; use --with-gas.
1099 -help |
--help |
--hel |
--he |
-h)
1100 ac_init_help
=long
;;
1101 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1102 ac_init_help
=recursive
;;
1103 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1104 ac_init_help
=short
;;
1106 -host |
--host |
--hos |
--ho)
1107 ac_prev
=host_alias
;;
1108 -host=* |
--host=* |
--hos=* |
--ho=*)
1109 host_alias
=$ac_optarg ;;
1111 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1113 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1115 htmldir
=$ac_optarg ;;
1117 -includedir |
--includedir |
--includedi |
--included |
--include \
1118 |
--includ |
--inclu |
--incl |
--inc)
1119 ac_prev
=includedir
;;
1120 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1121 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1122 includedir
=$ac_optarg ;;
1124 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1126 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1127 infodir
=$ac_optarg ;;
1129 -libdir |
--libdir |
--libdi |
--libd)
1131 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1132 libdir
=$ac_optarg ;;
1134 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1135 |
--libexe |
--libex |
--libe)
1136 ac_prev
=libexecdir
;;
1137 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1138 |
--libexe=* |
--libex=* |
--libe=*)
1139 libexecdir
=$ac_optarg ;;
1141 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1142 ac_prev
=localedir
;;
1143 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1144 localedir
=$ac_optarg ;;
1146 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1147 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1148 ac_prev
=localstatedir
;;
1149 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1150 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1151 localstatedir
=$ac_optarg ;;
1153 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1155 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1156 mandir
=$ac_optarg ;;
1158 -nfp |
--nfp |
--nf)
1159 # Obsolete; use --without-fp.
1162 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1163 |
--no-cr |
--no-c |
-n)
1166 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1167 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1170 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1171 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1172 |
--oldin |
--oldi |
--old |
--ol |
--o)
1173 ac_prev
=oldincludedir
;;
1174 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1175 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1176 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1177 oldincludedir
=$ac_optarg ;;
1179 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1181 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1182 prefix
=$ac_optarg ;;
1184 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1185 |
--program-pre |
--program-pr |
--program-p)
1186 ac_prev
=program_prefix
;;
1187 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1188 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1189 program_prefix
=$ac_optarg ;;
1191 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1192 |
--program-suf |
--program-su |
--program-s)
1193 ac_prev
=program_suffix
;;
1194 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1195 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1196 program_suffix
=$ac_optarg ;;
1198 -program-transform-name |
--program-transform-name \
1199 |
--program-transform-nam |
--program-transform-na \
1200 |
--program-transform-n |
--program-transform- \
1201 |
--program-transform |
--program-transfor \
1202 |
--program-transfo |
--program-transf \
1203 |
--program-trans |
--program-tran \
1204 |
--progr-tra |
--program-tr |
--program-t)
1205 ac_prev
=program_transform_name
;;
1206 -program-transform-name=* |
--program-transform-name=* \
1207 |
--program-transform-nam=* |
--program-transform-na=* \
1208 |
--program-transform-n=* |
--program-transform-=* \
1209 |
--program-transform=* |
--program-transfor=* \
1210 |
--program-transfo=* |
--program-transf=* \
1211 |
--program-trans=* |
--program-tran=* \
1212 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1213 program_transform_name
=$ac_optarg ;;
1215 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1217 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1218 pdfdir
=$ac_optarg ;;
1220 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1222 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1225 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1226 |
-silent |
--silent |
--silen |
--sile |
--sil)
1229 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1231 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1233 sbindir
=$ac_optarg ;;
1235 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1236 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1237 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1239 ac_prev
=sharedstatedir
;;
1240 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1241 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1242 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1244 sharedstatedir
=$ac_optarg ;;
1246 -site |
--site |
--sit)
1248 -site=* |
--site=* |
--sit=*)
1251 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1253 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1254 srcdir
=$ac_optarg ;;
1256 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1257 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1258 ac_prev
=sysconfdir
;;
1259 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1260 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1261 sysconfdir
=$ac_optarg ;;
1263 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1264 ac_prev
=target_alias
;;
1265 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1266 target_alias
=$ac_optarg ;;
1268 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1271 -version |
--version |
--versio |
--versi |
--vers |
-V)
1272 ac_init_version
=: ;;
1275 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1278 as_fn_error
"invalid package name: $ac_useropt"
1279 ac_useropt_orig
=$ac_useropt
1280 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep
=', ';;
1288 eval with_
$ac_useropt=\
$ac_optarg ;;
1290 -without-* |
--without-*)
1291 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1294 as_fn_error
"invalid package name: $ac_useropt"
1295 ac_useropt_orig
=$ac_useropt
1296 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep
=', ';;
1304 eval with_
$ac_useropt=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) as_fn_error
"unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1329 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1333 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error
"missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val
=\$
$ac_var
1369 # Remove trailing slashes.
1372 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\
$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$
]* | ?
:[\\/]* ) continue;;
1378 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1380 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target
=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x
; then
1392 if test "x$build_alias" = x
; then
1393 cross_compiling
=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1404 test "$silent" = yes && exec 6>/dev
/null
1407 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di
=`ls -di .` &&
1409 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error
"working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error
"pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted
=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir
=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted
=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1451 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var
in $ac_precious_vars; do
1468 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1470 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1544 --build=BUILD configure
for building on BUILD
[guessed
]
1545 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1546 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1550 if test -n "$ac_init_help"; then
1555 --disable-option-checking ignore unrecognized
--enable/--with options
1556 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1557 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files
in source dir
1560 intended
for creating
source tarballs
for users
1561 without texinfo bison or flex.
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking=LIST
1564 enable expensive run-time checks. With LIST
,
1565 enable only specific categories of checks.
1566 Categories are
: yes,no
,all
,none
,release.
1567 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1568 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1569 --enable-coverage=LEVEL
1570 enable compiler
's code coverage collection.
1571 Use to measure compiler performance and locate
1572 unused parts of the compiler. With LEVEL, specify
1573 optimization. Values are opt, noopt,
1575 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid
'
1581 or 'dpd
' choses which decimal floating point format
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads enable thread usage for target GCC
1585 --enable-threads=LIB use LIB thread package for target GCC
1586 --enable-tls enable or disable generation of tls code
1587 overriding the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with
1589 the GNU Objective-C runtime
1590 --disable-shared don
't provide a shared libgcc
1591 --enable-intermodule build the compiler in one step
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-initfini-array use .init_array/.fini_array sections
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 Enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1602 --disable-win32-registry
1603 disable lookup of installation paths in the
1604 Registry on Windows hosts
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-comdat enable COMDAT group support
1615 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1617 --enable-linker-build-id
1618 compiler will always pass --build-id to linker
1619 --enable-maintainer-mode
1620 enable make rules and dependencies not useful
1621 (and sometimes confusing) to the casual installer
1622 --enable-version-specific-runtime-libs
1623 specify that runtime libraries should be
1624 installed in a compiler-specific directory
1625 --enable-plugin enable plugin support
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-build-libsubdir=DIR Directory where to find libraries for build system
1631 --with-local-prefix=DIR specifies directory to put local include
1632 --with-gxx-include-dir=DIR
1633 specifies directory to put g++ header files
1634 --with-cpp-install-dir=DIR
1635 install the user visible C preprocessor in DIR
1636 (relative to PREFIX) as well as PREFIX/bin
1637 --with-gnu-ld arrange to work with GNU ld.
1638 --with-ld arrange to use the specified ld (full pathname)
1639 --with-demangler-in-ld try to use demangler in GNU ld.
1640 --with-gnu-as arrange to work with GNU as
1641 --with-as arrange to use the specified as (full pathname)
1642 --with-stabs arrange to use stabs instead of host debug format
1643 --with-dwarf2 force the default debug format to be DWARF 2
1644 --with-build-sysroot=sysroot
1645 use sysroot as the system root during the build
1646 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1647 --with-specs=SPECS add SPECS to driver command-line processing
1648 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1649 --with-bugurl=URL Direct users to URL to report a bug
1650 --with-multilib-list Select multilibs (SH only)
1651 --with-gnu-ld assume the C compiler uses GNU ld default=no
1652 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1653 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1654 --with-system-libunwind use installed libunwind
1655 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1657 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1658 --with-plugin-ld=[ARG
] specify the plugin linker
1659 --with-long-double-128 Use
128-bit long double by default.
1660 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1662 --with-system-zlib use installed libz
1663 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1665 Some influential environment variables
:
1666 CC C compiler
command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1669 nonstandard directory
<lib dir
>
1670 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1671 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1672 you have headers
in a nonstandard directory
<include dir
>
1673 CXX C
++ compiler
command
1674 CXXFLAGS C
++ compiler flags
1676 CXXCPP C
++ preprocessor
1677 GMPLIBS How to link GMP
1678 GMPINC How to
find GMP include files
1679 PPLLIBS How to link PPL
1680 PPLINC How to
find PPL include files
1681 CLOOGLIBS How to link CLOOG
1682 CLOOGINC How to
find CLOOG include files
1683 LIBELFLIBS How to link libelf
1684 LIBELFINC How to
find libelf include files
1686 Use these variables to override the choices made by
`configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1689 Report bugs to the package provider.
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1719 .) # We are building in place.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1753 generated by GNU Autoconf 2.64
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1776 *) ac_try_echo
=$ac_try;;
1778 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1782 if test -s conftest.err
; then
1783 grep -v '^ *+' conftest.err
>conftest.er1
1784 cat conftest.er1
>&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.
$ac_objext; then :
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.
$ac_ext >&5
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1802 } # ac_fn_c_try_compile
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 rm -f conftest.
$ac_objext
1811 if { { ac_try
="$ac_compile"
1813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_cxx_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 } # ac_fn_cxx_try_compile
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1851 *) ac_try_echo
=$ac_try;;
1853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 if test -s conftest.err
; then
1858 grep -v '^ *+' conftest.err
>conftest.er1
1859 cat conftest.er1
>&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } >/dev
/null
&& {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.
$ac_ext >&5
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1884 ac_fn_c_check_header_mongrel
()
1886 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1887 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1905 if ac_fn_c_try_compile
"$LINENO"; then :
1906 ac_header_compiler
=yes
1908 ac_header_compiler
=no
1910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 if ac_fn_c_try_cpp
"$LINENO"; then :
1922 ac_header_preproc
=yes
1924 ac_header_preproc
=no
1926 rm -f conftest.err conftest.
$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1956 eval "$3=\$ac_header_compiler"
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1964 } # ac_fn_c_check_header_mongrel
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1972 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1973 if { { ac_try
="$ac_link"
1975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>&5
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984 { { case "(($ac_try" in
1985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1986 *) ac_try_echo
=$ac_try;;
1988 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_try") 2>&5
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; }; }; then :
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.
$ac_ext >&5
2000 ac_retval
=$ac_status
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile
()
2014 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2025 if ac_fn_c_try_compile
"$LINENO"; then :
2030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2037 } # ac_fn_c_check_header_compile
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2044 ac_fn_c_compute_int
()
2046 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2047 if test "$cross_compiling" = yes; then
2048 # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2062 if ac_fn_c_try_compile
"$LINENO"; then :
2065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 if ac_fn_c_try_compile
"$LINENO"; then :
2079 ac_hi
=$ac_mid; break
2081 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2082 if test $ac_lo -le $ac_mid; then
2086 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) < 0)];
2104 if ac_fn_c_try_compile
"$LINENO"; then :
2107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 if ac_fn_c_try_compile
"$LINENO"; then :
2121 ac_lo
=$ac_mid; break
2123 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2124 if test $ac_mid -le $ac_hi; then
2128 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 if ac_fn_c_try_compile
"$LINENO"; then :
2157 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2177 FILE *f = fopen ("conftest.val", "w");
2182 long int i = longval ();
2185 fprintf (f, "%ld", i);
2189 unsigned long int i = ulongval ();
2192 fprintf (f, "%lu", i);
2194 /* Do not output a trailing newline, as this causes \r\n confusion
2195 on some platforms. */
2196 return ferror (f) || fclose (f) != 0;
2202 if ac_fn_c_try_run
"$LINENO"; then :
2203 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2215 } # ac_fn_c_compute_int
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type
()
2223 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2242 if ac_fn_c_try_compile
"$LINENO"; then :
2243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile
"$LINENO"; then :
2260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2269 } # ac_fn_c_check_type
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2275 ac_fn_c_find_intX_t
()
2277 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2284 for ac_type
in int
$2_t 'int' 'long int' \
2285 'long long int' 'short int' 'signed char'; do
2286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $ac_includes_default
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2299 if ac_fn_c_try_compile
"$LINENO"; then :
2300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $ac_includes_default
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2314 if ac_fn_c_try_compile
"$LINENO"; then :
2321 eval "$3=\$ac_type" ;;
2324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2328 if test "x$as_val" = x
""no
; then :
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2340 } # ac_fn_c_find_intX_t
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2347 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2348 rm -f conftest.
$ac_objext conftest
$ac_exeext
2349 if { { ac_try
="$ac_link"
2351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356 (eval "$ac_link") 2>conftest.err
2358 if test -s conftest.err; then
2359 grep -v '^ *+' conftest.err >conftest.er1
2360 cat conftest.er1 >&5
2361 mv -f conftest.er1 conftest.err
2363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364 test $ac_status = 0; } && {
2365 test -z "$ac_c_werror_flag" ||
2366 test ! -s conftest.err
2367 } && test -s conftest$ac_exeext && {
2368 test "$cross_compiling" = yes ||
2369 $as_test_x conftest$ac_exeext
2373 $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380 # interfere with the next link command; also delete a directory that is
2381 # left behind by Apple's compiler. We do this before executing the actions.
2382 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_try_link
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2392 ac_fn_c_find_uintX_t ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2401 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2416 if ac_fn_c_try_compile "$LINENO"; then :
2421 eval "$3=\$ac_type" ;;
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 if test "x$as_val" = x""no; then :
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 } # ac_fn_c_find_uintX_t
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2460 rm -f conftest.err conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_check_header_preproc
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2484 #define $2 innocuous_$2
2486 /* System header to define __stub macros and hopefully few prototypes,
2487 which can conflict with char $2 (); below.
2488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489 <limits.h> exists even on freestanding compilers. */
2492 # include <limits.h>
2494 # include <assert.h>
2499 /* Override any GCC internal prototype to avoid an error.
2500 Use char because int might match the return type of a GCC
2501 builtin and then its argument prototype would still apply. */
2506 /* The GNU C library defines this for functions which it implements
2507 to always fail with ENOSYS. Some functions are actually named
2508 something starting with __ and the normal name is an alias. */
2509 #if defined __stub_$2 || defined __stub___$2
2521 if ac_fn_c_try_link "$LINENO"; then :
2526 rm -f core conftest.err conftest.$ac_objext \
2527 conftest$ac_exeext conftest.$ac_ext
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2534 } # ac_fn_c_check_func
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 if { { ac_try="$ac_cpp conftest.$ac_ext"
2544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2545 *) ac_try_echo
=$ac_try;;
2547 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2551 if test -s conftest.err
; then
2552 grep -v '^ *+' conftest.err
>conftest.er1
2553 cat conftest.er1
>&5
2554 mv -f conftest.er1 conftest.err
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } >/dev
/null
&& {
2558 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559 test ! -s conftest.err
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.
$ac_ext >&5
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2571 } # ac_fn_cxx_try_cpp
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link
()
2578 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2579 rm -f conftest.
$ac_objext conftest
$ac_exeext
2580 if { { ac_try
="$ac_link"
2582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_cxx_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 $as_test_x conftest$ac_exeext
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64. Invocation command line was
2635 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2636 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2637 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2638 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2639 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2641 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2642 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2644 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2645 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2646 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2647 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2648 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2649 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2650 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 $as_echo "PATH: $as_dir"
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2683 ac_must_keep_next=false
2689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691 | -silent | --silent | --silen | --sile | --sil)
2694 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2697 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2699 as_fn_append ac_configure_args1 " '$ac_arg'"
2700 if test $ac_must_keep_next = true; then
2701 ac_must_keep_next=false # Got value, back to normal.
2704 *=* | --config-cache | -C | -disable-* | --disable-* \
2705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707 | -with-* | --with-* | -without-* | --without-* | --x)
2708 case "$ac_configure_args0 " in
2709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2712 -* ) ac_must_keep_next=true ;;
2715 as_fn_append ac_configure_args " '$ac_arg'"
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log. We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729 # Save into config.log some information that might help in debugging.
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2739 # The following way of writing the cache mishandles newlines in values,
2741 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2742 eval ac_val=\$$ac_var
2746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2750 _ | IFS | as_nl) ;; #(
2751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752 *) { eval $ac_var=; unset $ac_var;} ;;
2757 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2758 *${as_nl}ac_space=\ *)
2760 "s/'\''/'\''\\\\'\'''\''/g;
2761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2777 for ac_var in $ac_subst_vars
2779 eval ac_val=\$$ac_var
2781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2783 $as_echo "$ac_var='\''$ac_val'\''"
2787 if test -n "$ac_subst_files"; then
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2794 for ac_var in $ac_subst_files
2796 eval ac_val=\$$ac_var
2798 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 $as_echo "$ac_var='\''$ac_val'\''"
2805 if test -s confdefs.h; then
2815 test "$ac_signal" != 0 &&
2816 $as_echo "$as_me: caught signal $ac_signal"
2817 $as_echo "$as_me: exit $exit_status"
2819 rm -f core *.core core.conftest.* &&
2820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2823 for ac_signal in 1 2 13 15; do
2824 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2831 $as_echo "/* confdefs.h */" > confdefs.h
2833 # Predefined preprocessor variables.
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2864 if test -n "$CONFIG_SITE"; then
2865 ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867 ac_site_file1=$prefix/share/config.site
2868 ac_site_file2=$prefix/etc/config.site
2870 ac_site_file1=$ac_default_prefix/share/config.site
2871 ac_site_file2=$ac_default_prefix/etc/config.site
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2875 test "x$ac_site_file" = xNONE && continue
2876 if test -r "$ac_site_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879 sed 's/^/| /' "$ac_site_file" >&5
2884 if test -r "$cache_file"; then
2885 # Some versions of bash will fail to source /dev/null (special
2886 # files actually), so we avoid doing that.
2887 if test -f "$cache_file"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892 *) . "./$cache_file";;
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2901 # Check that the precious variables saved in the cache have kept the same
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906 eval ac_new_set=\$ac_env_${ac_var}_set
2907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908 eval ac_new_val=\$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2912 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2916 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w=`echo x
$ac_old_val`
2923 ac_new_val_w=`echo x
$ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2927 ac_cache_corrupted=:
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\$ac_old_val
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2934 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2942 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2943 *) ac_arg=$ac_var=$ac_new_val ;;
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2951 if $ac_cache_corrupted; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2976 gcc_version=`cat $srcdir/BASE-VER
`
2978 # Determine the host, build, and target systems
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981 for ac_t in install-sh install.sh shtool; do
2982 if test -f "$ac_dir/$ac_t"; then
2984 ac_install_sh="$ac_aux_dir/$ac_t -c"
2989 if test -z "$ac_aux_dir"; then
2990 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3011 ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3027 ac_save_IFS=$IFS; IFS='-'
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3037 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
3045 if test "x$host_alias" = x; then
3046 ac_cv_host=$ac_cv_build
3048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3060 ac_save_IFS=$IFS; IFS='-'
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3070 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3078 if test "x$target_alias" = x; then
3079 ac_cv_target=$ac_cv_host
3081 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3103 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109 test "$program_prefix$program_suffix$program_transform_name" = \
3111 program_prefix=${target_alias}-
3113 # Determine the noncanonical target name, for directory use.
3114 case ${build_alias} in
3115 "") build_noncanonical=${build} ;;
3116 *) build_noncanonical=${build_alias} ;;
3119 case ${host_alias} in
3120 "") host_noncanonical=${build_noncanonical} ;;
3121 *) host_noncanonical=${host_alias} ;;
3124 case ${target_alias} in
3125 "") target_noncanonical=${host_noncanonical} ;;
3126 *) target_noncanonical=${target_alias} ;;
3132 # Determine the target- and build-specific subdirectories
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148 withval=$with_build_libsubdir; build_libsubdir="$withval"
3150 build_libsubdir="$build_subdir"
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155 || test -d $srcdir/../host-${host_noncanonical}; then
3156 host_subdir="host-${host_noncanonical}"
3161 target_subdir=${target_noncanonical}
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s
,x
,x
', remove it if useless.
3172 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188 library_path_setting="contains current directory"
3191 library_path_setting="ok"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again.
" "$LINENO" 5
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214 gcc_exec_prefix_setting="contains current directory
"
3217 gcc_exec_prefix_setting="ok
"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok
"; then
3224 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3233 # Specify the local prefix
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238 withval=$with_local_prefix; case "${withval}" in
3239 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3241 *) local_prefix=$with_local_prefix ;;
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248 local_prefix=/usr/local
3251 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir
=
3255 # Specify the g++ header file directory
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259 withval
=$with_gxx_include_dir; case "${withval}" in
3260 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3262 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x
${gcc_gxx_include_dir} = x
; then
3269 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3270 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3272 libstdcxx_incdir
='include/c++/$(version)'
3273 if test x
$host != x
$target; then
3274 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3276 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3284 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x
$withval != xno
; then
3286 cpp_install_dir
=$withval
3291 # We would like to our source tree to be readonly. However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299 # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3303 generated_files_in_srcdir
=no
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3310 if test "$generated_files_in_srcdir" = "yes"; then
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3331 # With pre-defined ld
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3338 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3339 if test ! -x "$DEFAULT_LINKER"; then
3340 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3345 cat >>confdefs.h
<<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3351 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3353 cat >>confdefs.h
<<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3361 if test x
"$gnu_ld_flag" = x
"no"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3373 # With demangler in GNU ld
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3403 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3404 if test ! -x "$DEFAULT_ASSEMBLER"; then
3405 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3410 cat >>confdefs.h
<<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3416 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3418 cat >>confdefs.h
<<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3426 if test x
"$gas_flag" = x
"no"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3451 # Find the native compiler
3453 ac_cpp
='$CPP $CPPFLAGS'
3454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC
="$CC" # Let the user override the test.
3468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir
=.
3473 for ac_exec_ext
in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_CC"; then
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc
; ac_word
=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC
="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_CC" = x
; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned
=yes ;;
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC
="$CC" # Let the user override the test.
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 for ac_exec_ext
in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc
; ac_word
=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC
="$CC" # Let the user override the test.
3602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir
=.
3607 for ac_exec_ext
in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected
=yes
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy
$ac_cv_prog_CC
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3630 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog
in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC
="$CC" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CC" && break
3690 if test -z "$CC"; then
3692 for ac_prog
in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy
$ac_prog; ac_word
=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir
=.
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC
="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CC" && break
3734 if test "x$ac_ct_CC" = x
; then
3737 case $cross_compiling:$ac_tool_warned in
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned
=yes ;;
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error
"no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3759 for ac_option
in --version -v -V -qversion; do
3760 { { ac_try
="$ac_compiler $ac_option >&5"
3762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 if test -s conftest.err; then
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3774 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 for ac_file in $ac_files
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813 if { { ac_try="$ac_link_default"
3815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3816 *) ac_try_echo
=$ac_try;;
3818 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3829 for ac_file
in $ac_files ''
3831 test -f "$ac_file" ||
continue
3833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3836 # We found the default executable, but exeext='' is most
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3842 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3854 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status
77
3868 as_fn_error
"C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3871 ac_exeext
=$ac_cv_exeext
3873 # Check that the compiler produces executables we can run. If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879 if { ac_try
='./$ac_file'
3880 { { case "(($ac_try" in
3881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_try") 2>&5
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; }; then
3892 if test "$cross_compiling" = maybe; then
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile
, use \
`--host'.
3899 See \`config.log
' for more details." "$LINENO" 5; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3929 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3932 for ac_file
in conftest.exe conftest conftest.
*; do
3933 test -f "$ac_file" ||
continue
3935 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3936 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3947 rm -f conftest
$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3951 rm -f conftest.
$ac_ext
3952 EXEEXT
=$ac_cv_exeext
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try
="$ac_compile"
3973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files
: cannot compile
3997 See \
`config.log' for more details." "$LINENO" 5; }
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4062 if ac_fn_c_try_compile "$LINENO"; then :
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4114 if test "$GCC" = yes; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_cv_prog_cc_c89=no
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4147 s = g (p, va_arg (v,int));
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 rm -f conftest.$ac_ext
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 if test "x$CC" != xcc; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227 $as_echo_n "(cached) " >&6
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4245 if { { case "(($ac_try" in
4246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4247 *) ac_try_echo
=$ac_try;;
4249 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; } &&
4255 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; };
4266 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267 if test "x$CC" != xcc; then
4268 # Test first that cc exists at all.
4269 if { ac_try='cc -c conftest.$ac_ext >&5'
4270 { { case "(($ac_try" in
4271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4272 *) ac_try_echo
=$ac_try;;
4274 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_try") 2>&5
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }; }; then
4280 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 if { { case "(($ac_try" in
4283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4294 *) ac_try_echo
=$ac_try;;
4296 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4306 # cc exists but doesn't like -o.
4307 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4312 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4314 rm -f core conftest
*
4317 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir
=`cd $ac_aux_dir && pwd`
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4334 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337 # Losing compiler, so override with the script.
4338 # FIXME: It is wrong to rewrite CC.
4339 # But if we don't then we get into trouble of one sort or another.
4340 # A longer-term fix would be to have automake use am__CC in this case,
4341 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342 CC
="$am_aux_dir/compile $CC"
4347 ac_cpp
='$CXXCPP $CPPFLAGS'
4348 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352 if test -n "$CCC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$CXX"; then
4366 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir
=.
4373 for ac_exec_ext
in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 if test -n "$CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$CXX" && break
4398 if test -z "$CXX"; then
4400 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy
$ac_prog; ac_word
=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$ac_ct_CXX"; then
4410 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir
=.
4417 for ac_exec_ext
in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$ac_ct_CXX" && break
4442 if test "x$ac_ct_CXX" = x
; then
4445 case $cross_compiling:$ac_tool_warned in
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned
=yes ;;
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4461 for ac_option
in --version -v -V -qversion; do
4462 { { ac_try
="$ac_compiler $ac_option >&5"
4464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471 if test -s conftest.err; then
4473 ... rest of stderr output deleted ...
4474 10q' conftest.err >conftest.er1
4475 cat conftest.er1 >&5
4476 rm -f conftest.er1 conftest.err
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525 ac_cxx_werror_flag=yes
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 ac_cv_prog_cxx_g=yes
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583 CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585 if test "$GXX" = yes; then
4591 if test "$GXX" = yes; then
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 if test -n "$GNATBIND"; then
4615 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646 ac_ct_GNATBIND=$GNATBIND
4647 # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$ac_ct_GNATBIND"; then
4655 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4683 if test "x$ac_ct_GNATBIND" = x; then
4686 case $cross_compiling:$ac_tool_warned in
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4692 GNATBIND=$ac_ct_GNATBIND
4695 GNATBIND="$ac_cv_prog_GNATBIND"
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 if test -n "$GNATMAKE"; then
4707 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738 ac_ct_GNATMAKE=$GNATMAKE
4739 # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -n "$ac_ct_GNATMAKE"; then
4747 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4775 if test "x$ac_ct_GNATMAKE" = x; then
4778 case $cross_compiling:$ac_tool_warned in
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4784 GNATMAKE=$ac_ct_GNATMAKE
4787 GNATMAKE="$ac_cv_prog_GNATMAKE"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4795 cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file. So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809 acx_cv_cc_gcc_supports_ada=yes
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4825 NO_MINUS_C_MINUS_O=yes
4827 OUTPUT_OPTION='-o $@'
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4835 */prev-gcc/xgcc*) ;;
4836 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4856 if test -z "$CPP"; then
4857 if test "${ac_cv_prog_CPP+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 # Double quotes because CPP needs to be expanded
4861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4864 for ac_c_preproc_warn_flag in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # include <limits.h>
4877 # include <assert.h>
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4884 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: success on invalid input.
4899 # Passes both tests.
4903 rm -f conftest.err conftest.$ac_ext
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.
$ac_ext
4908 if $ac_preproc_ok; then :
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4923 for ac_c_preproc_warn_flag
in '' yes
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4934 # include <limits.h>
4936 # include <assert.h>
4940 if ac_fn_c_try_cpp
"$LINENO"; then :
4943 # Broken: fails on valid input.
4946 rm -f conftest.err conftest.
$ac_ext
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4954 if ac_fn_c_try_cpp
"$LINENO"; then :
4955 # Broken: success on invalid input.
4958 # Passes both tests.
4962 rm -f conftest.err conftest.
$ac_ext
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.
$ac_ext
4967 if $ac_preproc_ok; then :
4970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4977 ac_cpp
='$CPP $CPPFLAGS'
4978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -z "$GREP"; then
4989 ac_path_GREP_found
=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4992 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4995 test -z "$as_dir" && as_dir
=.
4996 for ac_prog
in grep ggrep
; do
4997 for ac_exec_ext
in '' $ac_executable_extensions; do
4998 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001 # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5004 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5007 $as_echo_n 0123456789 >"conftest.in"
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'GREP' >> "conftest.nl"
5014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5015 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5016 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_GREP
="$ac_path_GREP"
5020 ac_path_GREP_max
=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5025 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5028 $ac_path_GREP_found && break 3
5033 if test -z "$ac_cv_path_GREP"; then
5034 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 ac_cv_path_GREP
=$GREP
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043 GREP
="$ac_cv_path_GREP"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5051 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5052 then ac_cv_path_EGREP
="$GREP -E"
5054 if test -z "$EGREP"; then
5055 ac_path_EGREP_found
=false
5056 # Loop through the user's path and test for each of PROGNAME-LIST
5057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5058 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5061 test -z "$as_dir" && as_dir
=.
5062 for ac_prog
in egrep; do
5063 for ac_exec_ext
in '' $ac_executable_extensions; do
5064 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067 # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5070 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5073 $as_echo_n 0123456789 >"conftest.in"
5076 cat "conftest.in" "conftest.in" >"conftest.tmp"
5077 mv "conftest.tmp" "conftest.in"
5078 cp "conftest.in" "conftest.nl"
5079 $as_echo 'EGREP' >> "conftest.nl"
5080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5081 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5082 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084 # Best one so far, save it but keep looking for a better one
5085 ac_cv_path_EGREP
="$ac_path_EGREP"
5086 ac_path_EGREP_max
=$ac_count
5088 # 10*(2^10) chars as input seems more than enough
5089 test $ac_count -gt 10 && break
5091 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5094 $ac_path_EGREP_found && break 3
5099 if test -z "$ac_cv_path_EGREP"; then
5100 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5103 ac_cv_path_EGREP
=$EGREP
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110 EGREP
="$ac_cv_path_EGREP"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5133 if ac_fn_c_try_compile
"$LINENO"; then :
5134 ac_cv_header_stdc
=yes
5136 ac_cv_header_stdc
=no
5138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5140 if test $ac_cv_header_stdc = yes; then
5141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 $EGREP "memchr" >/dev
/null
2>&1; then :
5151 ac_cv_header_stdc
=no
5157 if test $ac_cv_header_stdc = yes; then
5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "free" >/dev
/null
2>&1; then :
5168 ac_cv_header_stdc
=no
5174 if test $ac_cv_header_stdc = yes; then
5175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176 if test "$cross_compiling" = yes; then :
5179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187 # define ISLOWER(c) \
5188 (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5206 if ac_fn_c_try_run
"$LINENO"; then :
5209 ac_cv_header_stdc
=no
5211 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5212 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5227 inttypes.h stdint.h unistd.h
5229 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5232 eval as_val
=\$
$as_ac_Header
5233 if test "x$as_val" = x
""yes; then :
5234 cat >>confdefs.h
<<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5252 if test "$MINIX" = yes; then
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5273 # define __EXTENSIONS__ 1
5274 $ac_includes_default
5283 if ac_fn_c_try_compile
"$LINENO"; then :
5284 ac_cv_safe_to_define___extensions__
=yes
5286 ac_cv_safe_to_define___extensions__
=no
5288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292 test $ac_cv_safe_to_define___extensions__ = yes &&
5293 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5295 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5297 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5301 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5305 ac_cpp
='$CPP $CPPFLAGS'
5306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 # Double quotes because CPP needs to be expanded
5320 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5323 for ac_c_preproc_warn_flag
in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 # include <limits.h>
5336 # include <assert.h>
5340 if ac_fn_c_try_cpp
"$LINENO"; then :
5343 # Broken: fails on valid input.
5346 rm -f conftest.err conftest.
$ac_ext
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5354 if ac_fn_c_try_cpp
"$LINENO"; then :
5355 # Broken: success on invalid input.
5358 # Passes both tests.
5362 rm -f conftest.err conftest.
$ac_ext
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.
$ac_ext
5367 if $ac_preproc_ok; then :
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5382 for ac_c_preproc_warn_flag
in '' yes
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 # include <limits.h>
5395 # include <assert.h>
5399 if ac_fn_c_try_cpp
"$LINENO"; then :
5402 # Broken: fails on valid input.
5405 rm -f conftest.err conftest.
$ac_ext
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5413 if ac_fn_c_try_cpp
"$LINENO"; then :
5414 # Broken: success on invalid input.
5417 # Passes both tests.
5421 rm -f conftest.err conftest.
$ac_ext
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.
$ac_ext
5426 if $ac_preproc_ok; then :
5429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5436 ac_cpp
='$CPP $CPPFLAGS'
5437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5447 for ac_kw
in inline __inline__ __inline
; do
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5457 if ac_fn_c_try_compile
"$LINENO"; then :
5458 ac_cv_c_inline
=$ac_kw
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5461 test "$ac_cv_c_inline" != no
&& break
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5468 case $ac_cv_c_inline in
5471 case $ac_cv_c_inline in
5473 *) ac_val
=$ac_cv_c_inline;;
5475 cat >>confdefs.h
<<_ACEOF
5477 #define inline $ac_val
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5494 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5497 if test "$ac_cv_type_void_p" = yes; then
5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status
77
5501 as_fn_error
"cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5504 ac_cv_sizeof_void_p
=0
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5514 cat >>confdefs.h
<<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5531 if test "$ac_cv_type_short" = yes; then
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status
77
5535 as_fn_error
"cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5538 ac_cv_sizeof_short
=0
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5548 cat >>confdefs.h
<<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5562 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5565 if test "$ac_cv_type_int" = yes; then
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status
77
5569 as_fn_error
"cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5582 cat >>confdefs.h
<<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5599 if test "$ac_cv_type_long" = yes; then
5600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status
77
5603 as_fn_error
"cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5616 cat >>confdefs.h
<<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5621 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x
""yes; then :
5624 cat >>confdefs.h
<<_ACEOF
5625 #define HAVE_LONG_LONG 1
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5640 if test "$ac_cv_type_long_long" = yes; then
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status
77
5644 as_fn_error
"cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5647 ac_cv_sizeof_long_long
=0
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5657 cat >>confdefs.h
<<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5664 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x
""yes; then :
5667 cat >>confdefs.h
<<_ACEOF
5668 #define HAVE___INT64 1
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5680 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5683 if test "$ac_cv_type___int64" = yes; then
5684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status
77
5687 as_fn_error
"cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5690 ac_cv_sizeof___int64
=0
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5700 cat >>confdefs.h
<<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5707 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5708 case $ac_cv_c_int8_t in #(
5712 cat >>confdefs.h
<<_ACEOF
5713 #define int8_t $ac_cv_c_int8_t
5718 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5719 case $ac_cv_c_int16_t in #(
5723 cat >>confdefs.h
<<_ACEOF
5724 #define int16_t $ac_cv_c_int16_t
5729 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5730 case $ac_cv_c_int32_t in #(
5734 cat >>confdefs.h
<<_ACEOF
5735 #define int32_t $ac_cv_c_int32_t
5740 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5741 case $ac_cv_c_int64_t in #(
5745 cat >>confdefs.h
<<_ACEOF
5746 #define int64_t $ac_cv_c_int64_t
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5753 $as_echo_n "checking for long long int... " >&6; }
5754 if test "${ac_cv_type_long_long_int+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5760 /* For now, do not test the preprocessor; as of 2007 there are too many
5761 implementations with broken preprocessors. Perhaps this can
5762 be revisited in 2012. In the meantime, code should not expect
5763 #if to work with literals wider than 32 bits. */
5764 /* Test literals. */
5765 long long int ll = 9223372036854775807ll;
5766 long long int nll = -9223372036854775807LL;
5767 unsigned long long int ull = 18446744073709551615ULL;
5768 /* Test constant expressions. */
5769 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5771 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5777 /* Test availability of runtime routines for shift and division. */
5778 long long int llmax = 9223372036854775807ll;
5779 unsigned long long int ullmax = 18446744073709551615ull;
5780 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5781 | (llmax / ll) | (llmax % ll)
5782 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5783 | (ullmax / ull) | (ullmax % ull));
5789 if ac_fn_c_try_link
"$LINENO"; then :
5790 if test "$cross_compiling" = yes; then :
5791 ac_cv_type_long_long_int
=yes
5793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5798 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5799 # define LLONG_MAX (HALF - 1 + HALF)
5804 long long int n = 1;
5808 long long int m = n << i;
5811 if (LLONG_MAX / 2 < m)
5819 if ac_fn_c_try_run
"$LINENO"; then :
5820 ac_cv_type_long_long_int
=yes
5822 ac_cv_type_long_long_int
=no
5824 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5825 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5829 ac_cv_type_long_long_int
=no
5831 rm -f core conftest.err conftest.
$ac_objext \
5832 conftest
$ac_exeext conftest.
$ac_ext
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5835 $as_echo "$ac_cv_type_long_long_int" >&6; }
5836 if test $ac_cv_type_long_long_int = yes; then
5838 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5844 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5845 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5847 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5850 test $ac_cv_type_long_long_int = yes \
5851 && ac_type
='long long int' \
5852 || ac_type
='long int'
5854 cat >>confdefs.h
<<_ACEOF
5855 #define intmax_t $ac_type
5862 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5863 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5865 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5868 for ac_type
in 'int' 'long int' 'long long int'; do
5869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 $ac_includes_default
5875 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5882 if ac_fn_c_try_compile
"$LINENO"; then :
5884 cat >>confdefs.h
<<_ACEOF
5885 #define intptr_t $ac_type
5890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5891 test -z "$ac_type" && break
5896 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5897 case $ac_cv_c_uint8_t in #(
5901 $as_echo "#define _UINT8_T 1" >>confdefs.h
5904 cat >>confdefs.h
<<_ACEOF
5905 #define uint8_t $ac_cv_c_uint8_t
5910 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5911 case $ac_cv_c_uint16_t in #(
5916 cat >>confdefs.h
<<_ACEOF
5917 #define uint16_t $ac_cv_c_uint16_t
5922 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5923 case $ac_cv_c_uint32_t in #(
5927 $as_echo "#define _UINT32_T 1" >>confdefs.h
5930 cat >>confdefs.h
<<_ACEOF
5931 #define uint32_t $ac_cv_c_uint32_t
5936 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5937 case $ac_cv_c_uint64_t in #(
5941 $as_echo "#define _UINT64_T 1" >>confdefs.h
5944 cat >>confdefs.h
<<_ACEOF
5945 #define uint64_t $ac_cv_c_uint64_t
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5952 $as_echo_n "checking for unsigned long long int... " >&6; }
5953 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5959 /* For now, do not test the preprocessor; as of 2007 there are too many
5960 implementations with broken preprocessors. Perhaps this can
5961 be revisited in 2012. In the meantime, code should not expect
5962 #if to work with literals wider than 32 bits. */
5963 /* Test literals. */
5964 long long int ll = 9223372036854775807ll;
5965 long long int nll = -9223372036854775807LL;
5966 unsigned long long int ull = 18446744073709551615ULL;
5967 /* Test constant expressions. */
5968 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5970 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5976 /* Test availability of runtime routines for shift and division. */
5977 long long int llmax = 9223372036854775807ll;
5978 unsigned long long int ullmax = 18446744073709551615ull;
5979 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5980 | (llmax / ll) | (llmax % ll)
5981 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5982 | (ullmax / ull) | (ullmax % ull));
5988 if ac_fn_c_try_link
"$LINENO"; then :
5989 ac_cv_type_unsigned_long_long_int
=yes
5991 ac_cv_type_unsigned_long_long_int
=no
5993 rm -f core conftest.err conftest.
$ac_objext \
5994 conftest
$ac_exeext conftest.
$ac_ext
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5998 if test $ac_cv_type_unsigned_long_long_int = yes; then
6000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6006 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6009 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6012 test $ac_cv_type_unsigned_long_long_int = yes \
6013 && ac_type
='unsigned long long int' \
6014 || ac_type
='unsigned long int'
6016 cat >>confdefs.h
<<_ACEOF
6017 #define uintmax_t $ac_type
6024 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6027 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6030 for ac_type
in 'unsigned int' 'unsigned long int' \
6031 'unsigned long long int'; do
6032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 $ac_includes_default
6038 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6045 if ac_fn_c_try_compile
"$LINENO"; then :
6047 cat >>confdefs.h
<<_ACEOF
6048 #define uintptr_t $ac_type
6053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6054 test -z "$ac_type" && break
6072 # ---------------------
6073 # Warnings and checking
6074 # ---------------------
6076 # Check $CC warning features (if it's GCC).
6077 # We want to use -pedantic, but we don't want warnings about
6080 # * overlong strings
6081 # So, we only use -pedantic if we can disable those warnings.
6084 save_CFLAGS
="$CFLAGS"
6085 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6086 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6089 $as_echo_n "checking whether $CC supports $option... " >&6; }
6090 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6091 $as_echo_n "(cached) " >&6
6094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6105 if ac_fn_c_try_compile
"$LINENO"; then :
6106 eval "$as_acx_Woption=yes"
6108 eval "$as_acx_Woption=no"
6110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 eval ac_res
=\$
$as_acx_Woption
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6115 $as_echo "$ac_res" >&6; }
6116 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6117 loose_warn
="$loose_warn${loose_warn:+ }$option"
6120 CFLAGS
="$save_CFLAGS"
6123 save_CFLAGS
="$CFLAGS"
6124 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6125 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6128 $as_echo_n "checking whether $CC supports $option... " >&6; }
6129 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6130 $as_echo_n "(cached) " >&6
6133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6144 if ac_fn_c_try_compile
"$LINENO"; then :
6145 eval "$as_acx_Woption=yes"
6147 eval "$as_acx_Woption=no"
6149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 eval ac_res
=\$
$as_acx_Woption
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6154 $as_echo "$ac_res" >&6; }
6155 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6156 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6159 CFLAGS
="$save_CFLAGS"
6162 save_CFLAGS
="$CFLAGS"
6163 for option
in -Wmissing-format-attribute; do
6164 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6167 $as_echo_n "checking whether $CC supports $option... " >&6; }
6168 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6169 $as_echo_n "(cached) " >&6
6172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6183 if ac_fn_c_try_compile
"$LINENO"; then :
6184 eval "$as_acx_Woption=yes"
6186 eval "$as_acx_Woption=no"
6188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6191 eval ac_res
=\$
$as_acx_Woption
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6193 $as_echo "$ac_res" >&6; }
6194 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6195 strict_warn
="$strict_warn${strict_warn:+ }$option"
6198 CFLAGS
="$save_CFLAGS"
6201 save_CFLAGS
="$CFLAGS"
6202 for option
in -Wold-style-definition -Wc++-compat; do
6203 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208 $as_echo_n "(cached) " >&6
6211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6222 if ac_fn_c_try_compile
"$LINENO"; then :
6223 eval "$as_acx_Woption=yes"
6225 eval "$as_acx_Woption=no"
6227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6230 eval ac_res
=\$
$as_acx_Woption
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6237 CFLAGS
="$save_CFLAGS"
6239 if test "$GCC" = yes; then :
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6241 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6242 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 save_CFLAGS
="$CFLAGS"
6246 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6258 if ac_fn_c_try_compile
"$LINENO"; then :
6259 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6261 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 CFLAGS
="$save_CFLAGS"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6267 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6268 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6269 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6274 # Check whether --enable-werror-always was given.
6275 if test "${enable_werror_always+set}" = set; then :
6276 enableval
=$enable_werror_always;
6278 enable_werror_always
=no
6281 if test $enable_werror_always = yes; then :
6282 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6287 # The above macros do nothing if the compiler is not GCC. However, the
6288 # Makefile has more goo to add other flags, so these variables are used
6289 # to enable warnings only for GCC.
6292 if test "x$GCC" = "xyes"; then
6293 warn_cflags
='$(GCC_WARN_CFLAGS)'
6294 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6299 # Enable expensive internal checks
6301 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6305 # Check whether --enable-checking was given.
6306 if test "${enable_checking+set}" = set; then :
6307 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6310 # Determine the default checks.
6311 if test x
$is_release = x
; then
6312 ac_checking_flags
=yes
6314 ac_checking_flags
=release
6318 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6319 for check
in release
$ac_checking_flags
6322 # these set all the flags to specific states
6323 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6324 ac_fold_checking
= ; ac_gc_checking
=1 ;
6325 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6326 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6327 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6328 ac_types_checking
=1 ;;
6329 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6330 ac_fold_checking
= ; ac_gc_checking
= ;
6331 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6332 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6333 ac_tree_checking
= ; ac_valgrind_checking
= ;
6334 ac_types_checking
= ;;
6335 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6336 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6337 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6338 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6339 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6340 ac_types_checking
=1 ;;
6341 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6342 ac_fold_checking
= ; ac_gc_checking
= ;
6343 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6344 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6345 ac_tree_checking
= ; ac_valgrind_checking
= ;
6346 ac_types_checking
= ;;
6347 # these enable particular checks
6348 assert
) ac_assert_checking
=1 ;;
6349 df
) ac_df_checking
=1 ;;
6350 fold) ac_fold_checking
=1 ;;
6351 gc
) ac_gc_checking
=1 ;;
6352 gcac
) ac_gc_always_collect
=1 ;;
6353 gimple
) ac_gimple_checking
=1 ;;
6354 misc
) ac_checking
=1 ;;
6355 rtl
) ac_rtl_checking
=1 ;;
6356 rtlflag
) ac_rtlflag_checking
=1 ;;
6357 runtime
) ac_runtime_checking
=1 ;;
6358 tree
) ac_tree_checking
=1 ;;
6359 types
) ac_types_checking
=1 ;;
6360 valgrind
) ac_valgrind_checking
=1 ;;
6361 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6367 if test x
$ac_checking != x
; then
6369 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6371 nocommon_flag
=-fno-common
6374 if test x
$ac_df_checking != x
; then
6376 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6379 if test x
$ac_assert_checking != x
; then
6381 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6384 if test x
$ac_gimple_checking != x
; then
6386 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6390 if test x
$ac_runtime_checking != x
; then
6392 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6395 if test x
$ac_tree_checking != x
; then
6397 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6399 TREEBROWSER
=tree-browser.o
6401 if test x
$ac_types_checking != x
; then
6403 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6407 if test x
$ac_rtl_checking != x
; then
6409 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6412 if test x
$ac_rtlflag_checking != x
; then
6414 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6417 if test x
$ac_gc_checking != x
; then
6419 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6422 if test x
$ac_gc_always_collect != x
; then
6424 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6427 if test x
$ac_fold_checking != x
; then
6429 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6432 valgrind_path_defines
=
6435 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6444 if test x
$ac_valgrind_checking != x
; then
6445 # It is certainly possible that there's valgrind but no valgrind.h.
6446 # GCC relies on making annotations so we must have both.
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6448 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <valgrind/memcheck.h>
6452 #ifndef VALGRIND_DISCARD
6453 #error VALGRIND_DISCARD not defined
6456 if ac_fn_c_try_cpp
"$LINENO"; then :
6457 gcc_cv_header_valgrind_memcheck_h
=yes
6459 gcc_cv_header_valgrind_memcheck_h
=no
6461 rm -f conftest.err conftest.
$ac_ext
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6463 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6465 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <memcheck.h>
6469 #ifndef VALGRIND_DISCARD
6470 #error VALGRIND_DISCARD not defined
6473 if ac_fn_c_try_cpp
"$LINENO"; then :
6474 gcc_cv_header_memcheck_h
=yes
6476 gcc_cv_header_memcheck_h
=no
6478 rm -f conftest.err conftest.
$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6480 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6482 # Prepare PATH_SEPARATOR.
6483 # The user is always right.
6484 if test "${PATH_SEPARATOR+set}" != set; then
6485 echo "#! /bin/sh" >conf$$.sh
6486 echo "exit 0" >>conf$$.sh
6488 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6496 # Find out how to test for executable files. Don't use a zero-byte file,
6497 # as systems may use methods other than mode bits to determine executability.
6498 cat >conf$$.
file <<_ASEOF
6502 chmod +x conf$$.
file
6503 if test -x conf$$.
file >/dev
/null
2>&1; then
6504 ac_executable_p
="test -x"
6506 ac_executable_p
="test -f"
6510 # Extract the first word of "valgrind", so it can be a program name with args.
6511 set dummy valgrind
; ac_word
=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6517 case "$valgrind_path" in
6519 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6522 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6523 for ac_dir
in $PATH; do
6525 test -z "$ac_dir" && ac_dir
=.
6526 for ac_exec_ext
in '' $ac_executable_extensions; do
6527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6528 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6529 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6539 valgrind_path
="$ac_cv_path_valgrind_path"
6540 if test -n "$valgrind_path"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6542 $as_echo "$valgrind_path" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$valgrind_path" = "x" \
6549 ||
(test $have_valgrind_h = no \
6550 && test $gcc_cv_header_memcheck_h = no \
6551 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6552 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6554 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6555 valgrind_command
="$valgrind_path -q"
6557 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6559 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6561 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6564 if test $gcc_cv_header_memcheck_h = yes; then
6566 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6573 # Enable code coverage collection
6574 # Check whether --enable-coverage was given.
6575 if test "${enable_coverage+set}" = set; then :
6576 enableval
=$enable_coverage; case "${enableval}" in
6578 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6581 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6584 # a.k.a. --disable-coverage
6588 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6597 # Check whether --enable-gather-detailed-mem-stats was given.
6598 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6599 enableval
=$enable_gather_detailed_mem_stats;
6601 enable_gather_detailed_mem_stats
=no
6604 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6606 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6610 # -------------------------------
6611 # Miscenalleous configure options
6612 # -------------------------------
6614 # See if we are building gcc with C++.
6615 # Check whether --enable-build-with-cxx was given.
6616 if test "${enable_build_with_cxx+set}" = set; then :
6617 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6619 ENABLE_BUILD_WITH_CXX
=no
6626 # Check whether --with-stabs was given.
6627 if test "${with_stabs+set}" = set; then :
6628 withval
=$with_stabs; stabs
="$with_stabs"
6634 # Determine whether or not multilibs are enabled.
6635 # Check whether --enable-multilib was given.
6636 if test "${enable_multilib+set}" = set; then :
6637 enableval
=$enable_multilib;
6644 # Enable __cxa_atexit for C++.
6645 # Check whether --enable-__cxa_atexit was given.
6646 if test "${enable___cxa_atexit+set}" = set; then :
6647 enableval
=$enable___cxa_atexit;
6651 # Enable C extension for decimal float if target supports it.
6652 # Check whether --enable-decimal-float was given.
6653 if test "${enable_decimal_float+set}" = set; then :
6654 enableval
=$enable_decimal_float;
6655 case $enable_decimal_float in
6656 yes | no | bid | dpd
) ;;
6657 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6658 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6664 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6665 enable_decimal_float
=yes
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6669 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6670 enable_decimal_float
=no
6677 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6679 cat >>confdefs.h
<<_ACEOF
6680 #define ENABLE_DECIMAL_FLOAT $dfp
6684 # x86's use BID format instead of DPD
6685 case x
$enable_decimal_float in
6688 i?
86*-*-linux* | x86_64
*-*-linux*)
6689 enable_decimal_float
=bid
6692 enable_decimal_float
=dpd
6697 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6698 # dependency on libdecnumber.
6699 enable_decimal_float
=dpd
6704 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6706 cat >>confdefs.h
<<_ACEOF
6707 #define ENABLE_DECIMAL_BID_FORMAT $bid
6711 # Enable C extension for fixed-point arithmetic.
6712 # Check whether --enable-fixed-point was given.
6713 if test "${enable_fixed_point+set}" = set; then :
6714 enableval
=$enable_fixed_point;
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6723 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6724 enable_fixed_point
=no
6727 enable_fixed_point
=yes
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6733 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6734 enable_fixed_point
=no
6742 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6744 cat >>confdefs.h
<<_ACEOF
6745 #define ENABLE_FIXED_POINT $fixedpoint
6750 # Pass with no value to take the default
6751 # Pass with a value to specify a thread package
6752 # Check whether --enable-threads was given.
6753 if test "${enable_threads+set}" = set; then :
6754 enableval
=$enable_threads;
6760 # Check whether --enable-tls was given.
6761 if test "${enable_tls+set}" = set; then :
6762 enableval
=$enable_tls;
6765 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6766 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6774 # Check whether --enable-objc-gc was given.
6775 if test "${enable_objc_gc+set}" = set; then :
6776 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6787 # Check whether --with-dwarf2 was given.
6788 if test "${with_dwarf2+set}" = set; then :
6789 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6795 # Check whether --enable-shared was given.
6796 if test "${enable_shared+set}" = set; then :
6797 enableval
=$enable_shared;
6798 case $enable_shared in
6802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6803 for pkg
in $enableval; do
6804 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6819 # Check whether --with-build-sysroot was given.
6820 if test "${with_build_sysroot+set}" = set; then :
6821 withval
=$with_build_sysroot;
6826 # Check whether --with-sysroot was given.
6827 if test "${with_sysroot+set}" = set; then :
6828 withval
=$with_sysroot;
6829 case ${with_sysroot} in
6830 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6831 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6834 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6835 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6837 if test "x$prefix" = xNONE
; then
6838 test_prefix
=/usr
/local
6842 if test "x$exec_prefix" = xNONE
; then
6843 test_exec_prefix
=$test_prefix
6845 test_exec_prefix
=$exec_prefix
6847 case ${TARGET_SYSTEM_ROOT} in
6848 "${test_prefix}"|
"${test_prefix}/"*|\
6849 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6850 '${prefix}'|
'${prefix}/'*|\
6851 '${exec_prefix}'|
'${exec_prefix}/'*)
6852 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6853 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6860 TARGET_SYSTEM_ROOT_DEFINE
=
6861 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6870 # Check whether --with-specs was given.
6871 if test "${with_specs+set}" = set; then :
6872 withval
=$with_specs; CONFIGURE_SPECS
=$withval
6880 # Build with intermodule optimisations
6881 # Check whether --enable-intermodule was given.
6882 if test "${enable_intermodule+set}" = set; then :
6883 enableval
=$enable_intermodule; case ${enable_intermodule} in
6884 yes) onestep
="-onestep";;
6895 # Check whether --with-pkgversion was given.
6896 if test "${with_pkgversion+set}" = set; then :
6897 withval
=$with_pkgversion; case "$withval" in
6898 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6900 *) PKGVERSION
="($withval) " ;;
6911 # Check whether --with-bugurl was given.
6912 if test "${with_bugurl+set}" = set; then :
6913 withval
=$with_bugurl; case "$withval" in
6914 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6917 *) BUGURL
="$withval"
6921 BUGURL
="http://gcc.gnu.org/bugs.html"
6931 REPORT_BUGS_TO
="<$BUGURL>"
6932 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6939 # Sanity check enable_languages in case someone does not run the toplevel
6940 # configure # script.
6941 # Check whether --enable-languages was given.
6942 if test "${enable_languages+set}" = set; then :
6943 enableval
=$enable_languages; case ,${enable_languages}, in
6945 # go safe -- we cannot be much sure without the toplevel
6947 # analysis of which target libs are present and usable
6951 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6956 enable_languages
=c
,${enable_languages}
6965 # Check whether --with-multilib-list was given.
6966 if test "${with_multilib_list+set}" = set; then :
6967 withval
=$with_multilib_list; :
6969 with_multilib_list
=default
6973 # -------------------------
6974 # Checks for other programs
6975 # -------------------------
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6980 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6981 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6982 $as_echo_n "(cached) " >&6
6984 cat >conftest.
make <<\_ACEOF
6987 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6992 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6994 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6998 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7000 $as_echo "yes" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 SET_MAKE
="MAKE=${MAKE-make}"
7009 # Find some useful tools
7010 for ac_prog
in gawk mawk nawk
awk
7012 # Extract the first word of "$ac_prog", so it can be a program name with args.
7013 set dummy
$ac_prog; ac_word
=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if test "${ac_cv_prog_AWK+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7019 if test -n "$AWK"; then
7020 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir
=.
7027 for ac_exec_ext
in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_AWK
="$ac_prog"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 if test -n "$AWK"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7042 $as_echo "$AWK" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7049 test -n "$AWK" && break
7052 # We need awk to create options.c and options.h.
7053 # Bail out if it's missing.
7055 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7059 $as_echo_n "checking whether ln -s works... " >&6; }
7060 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7063 rm -f conftestdata_t
7064 echo >conftestdata_f
7065 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7067 gcc_cv_prog_LN_S
="ln -s"
7069 if ln conftestdata_f conftestdata_t
2>/dev
/null
7073 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7075 gcc_cv_prog_LN_S
="cp -p"
7081 rm -f conftestdata_f conftestdata_t
7084 LN_S
="$gcc_cv_prog_LN_S"
7085 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7087 $as_echo "yes" >&6; }
7089 if test "$gcc_cv_prog_LN_S" = "ln"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7091 $as_echo "no, using ln" >&6; }
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7094 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7099 $as_echo_n "checking whether ln works... " >&6; }
7100 if test "${acx_cv_prog_LN+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7103 rm -f conftestdata_t
7104 echo >conftestdata_f
7105 if ln conftestdata_f conftestdata_t
2>/dev
/null
7111 rm -f conftestdata_f conftestdata_t
7114 if test $acx_cv_prog_LN = no
; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7117 $as_echo "no, using $LN" >&6; }
7119 LN
="$acx_cv_prog_LN"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7121 $as_echo "yes" >&6; }
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7126 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7132 if test -n "$RANLIB"; then
7133 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir
=.
7140 for ac_exec_ext
in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 RANLIB
=$ac_cv_prog_RANLIB
7153 if test -n "$RANLIB"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7155 $as_echo "$RANLIB" >&6; }
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7163 if test -z "$ac_cv_prog_RANLIB"; then
7164 ac_ct_RANLIB
=$RANLIB
7165 # Extract the first word of "ranlib", so it can be a program name with args.
7166 set dummy ranlib
; ac_word
=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7172 if test -n "$ac_ct_RANLIB"; then
7173 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir
=.
7180 for ac_exec_ext
in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7193 if test -n "$ac_ct_RANLIB"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7195 $as_echo "$ac_ct_RANLIB" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7201 if test "x$ac_ct_RANLIB" = x
; then
7204 case $cross_compiling:$ac_tool_warned in
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned
=yes ;;
7210 RANLIB
=$ac_ct_RANLIB
7213 RANLIB
="$ac_cv_prog_RANLIB"
7218 # By default, the Darwin ranlib will not treat common symbols as
7219 # definitions when building the archive table of contents. Other
7220 # ranlibs do that; pass an option to the Darwin ranlib that makes
7221 # it behave similarly.
7229 # Find a good install program. We prefer a C program (faster),
7230 # so one script is as good as another. But avoid the broken or
7231 # incompatible versions:
7232 # SysV /etc/install, /usr/sbin/install
7233 # SunOS /usr/etc/install
7234 # IRIX /sbin/install
7236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7238 # ./install, which can be erroneously created by make from ./install.sh.
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7240 $as_echo_n "checking for a BSD compatible install... " >&6; }
7241 if test -z "$INSTALL"; then
7242 if test "${ac_cv_path_install+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7245 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7246 for ac_dir
in $PATH; do
7247 # Account for people who put trailing slashes in PATH elements.
7249 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7251 # OSF1 and SCO ODT 3.0 have their own names for install.
7252 for ac_prog
in ginstall scoinst
install; do
7253 if test -f $ac_dir/$ac_prog; then
7254 if test $ac_prog = install &&
7255 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7256 # AIX install. It has an incompatible calling convention.
7257 # OSF/1 installbsd also uses dspmsg, but is usable.
7260 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7271 if test "${ac_cv_path_install+set}" = set; then
7272 INSTALL
="$ac_cv_path_install"
7274 # As a last resort, use the slow shell script. We don't cache a
7275 # path for INSTALL within a source directory, because that will
7276 # break other packages using the cache if that directory is
7277 # removed, or if the path is relative.
7278 INSTALL
="$ac_install_sh"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7282 $as_echo "$INSTALL" >&6; }
7284 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7285 # It thinks the first close brace ends the variable substitution.
7286 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7288 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7291 # See if cmp has --ignore-initial.
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7293 $as_echo_n "checking for cmp's capabilities... " >&6; }
7294 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7299 gcc_cv_prog_cmp_skip
=slowcompare
7300 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7301 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7304 gcc_cv_prog_cmp_skip
=gnucompare
7307 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7308 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7309 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7312 gcc_cv_prog_cmp_skip
=fastcompare
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7320 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7321 make_compare_target
=$gcc_cv_prog_cmp_skip
7325 # See if we have the mktemp command.
7326 # Extract the first word of "mktemp", so it can be a program name with args.
7327 set dummy mktemp
; ac_word
=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7333 if test -n "$have_mktemp_command"; then
7334 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir
=.
7341 for ac_exec_ext
in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_have_mktemp_command
="yes"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7354 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7355 if test -n "$have_mktemp_command"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7357 $as_echo "$have_mktemp_command" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7365 # See if makeinfo has been installed and is modern enough
7366 # that we can use it.
7368 # Extract the first word of "makeinfo", so it can be a program name with args.
7369 set dummy makeinfo
; ac_word
=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$MAKEINFO"; then
7376 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir
=.
7383 for ac_exec_ext
in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_MAKEINFO
="makeinfo"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 MAKEINFO
=$ac_cv_prog_MAKEINFO
7396 if test -n "$MAKEINFO"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7398 $as_echo "$MAKEINFO" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7405 if test -n "$MAKEINFO"; then
7406 # Found it, now check the version.
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7408 $as_echo_n "checking for modern makeinfo... " >&6; }
7409 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7412 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7413 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7415 case $ac_prog_version in
7416 '') gcc_cv_prog_makeinfo_modern
=no
;;
7417 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7418 *) gcc_cv_prog_makeinfo_modern
=no
;;
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7423 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7425 gcc_cv_prog_makeinfo_modern
=no
7427 if test $gcc_cv_prog_makeinfo_modern = no
; then
7428 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7431 if test $gcc_cv_prog_makeinfo_modern = no
; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&5
7435 $as_echo "$as_me: WARNING:
7436 *** Makeinfo is missing or too old.
7437 *** Info documentation will not be built." >&2;}
7444 # Is pod2man recent enough to regenerate manpages?
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7446 $as_echo_n "checking for recent Pod::Man... " >&6; }
7447 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450 GENERATED_MANPAGES
=generated-manpages
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7458 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7463 # Extract the first word of "$ac_prog", so it can be a program name with args.
7464 set dummy
$ac_prog; ac_word
=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_FLEX+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7470 if test -n "$FLEX"; then
7471 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir
=.
7478 for ac_exec_ext
in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_FLEX
="$ac_prog"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 FLEX
=$ac_cv_prog_FLEX
7491 if test -n "$FLEX"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7493 $as_echo "$FLEX" >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7500 test -n "$FLEX" && break
7502 test -n "$FLEX" || FLEX
="$MISSING flex"
7506 for ac_prog
in bison
7508 # Extract the first word of "$ac_prog", so it can be a program name with args.
7509 set dummy
$ac_prog; ac_word
=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_BISON+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7515 if test -n "$BISON"; then
7516 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir
=.
7523 for ac_exec_ext
in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_BISON
="$ac_prog"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 BISON
=$ac_cv_prog_BISON
7536 if test -n "$BISON"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7538 $as_echo "$BISON" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7545 test -n "$BISON" && break
7547 test -n "$BISON" || BISON
="$MISSING bison"
7550 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7551 # check for build == host before using them.
7554 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7555 && test -d ..
/binutils
; then
7556 NM
='${objdir}/../binutils/nm-new'
7558 # Extract the first word of "nm", so it can be a program name with args.
7559 set dummy nm
; ac_word
=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_NM+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$NM"; then
7566 ac_cv_prog_NM
="$NM" # Let the user override the test.
7568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir
=.
7573 for ac_exec_ext
in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7587 if test -n "$NM"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7589 $as_echo "$NM" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7599 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7600 && test -d ..
/binutils
; then
7601 AR
='${objdir}/../binutils/ar'
7603 # Extract the first word of "ar", so it can be a program name with args.
7604 set dummy
ar; ac_word
=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_AR+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$AR"; then
7611 ac_cv_prog_AR
="$AR" # Let the user override the test.
7613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir
=.
7618 for ac_exec_ext
in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7632 if test -n "$AR"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7634 $as_echo "$AR" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7644 # --------------------
7645 # Checks for C headers
7646 # --------------------
7648 # Need to reject headers which give warnings, so that the -Werror bootstrap
7649 # works later. *sigh* This needs to come before all header checks.
7651 ac_c_preproc_warn_flag
=yes
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7654 $as_echo_n "checking for ANSI C header files... " >&6; }
7655 if test "${ac_cv_header_stdc+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7673 if ac_fn_c_try_compile
"$LINENO"; then :
7674 ac_cv_header_stdc
=yes
7676 ac_cv_header_stdc
=no
7678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7680 if test $ac_cv_header_stdc = yes; then
7681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688 $EGREP "memchr" >/dev
/null
2>&1; then :
7691 ac_cv_header_stdc
=no
7697 if test $ac_cv_header_stdc = yes; then
7698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7705 $EGREP "free" >/dev
/null
2>&1; then :
7708 ac_cv_header_stdc
=no
7714 if test $ac_cv_header_stdc = yes; then
7715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7716 if test "$cross_compiling" = yes; then :
7719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7723 #if ((' ' & 0x0FF) == 0x020)
7724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7727 # define ISLOWER(c) \
7728 (('a' <= (c) && (c) <= 'i') \
7729 || ('j' <= (c) && (c) <= 'r') \
7730 || ('s' <= (c) && (c) <= 'z'))
7731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7739 for (i = 0; i < 256; i++)
7740 if (XOR (islower (i), ISLOWER (i))
7741 || toupper (i) != TOUPPER (i))
7746 if ac_fn_c_try_run
"$LINENO"; then :
7749 ac_cv_header_stdc
=no
7751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7758 $as_echo "$ac_cv_header_stdc" >&6; }
7759 if test $ac_cv_header_stdc = yes; then
7761 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7766 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7767 if test "${ac_cv_header_time+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 #include <sys/types.h>
7773 #include <sys/time.h>
7779 if ((struct tm *) 0)
7785 if ac_fn_c_try_compile
"$LINENO"; then :
7786 ac_cv_header_time
=yes
7788 ac_cv_header_time
=no
7790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7793 $as_echo "$ac_cv_header_time" >&6; }
7794 if test $ac_cv_header_time = yes; then
7796 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7801 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7802 if test "${gcc_cv_header_string+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7808 #include <strings.h>
7817 if ac_fn_c_try_compile
"$LINENO"; then :
7818 gcc_cv_header_string
=yes
7820 gcc_cv_header_string
=no
7822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7825 $as_echo "$gcc_cv_header_string" >&6; }
7826 if test $gcc_cv_header_string = yes; then
7828 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7833 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7834 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 #include <sys/types.h>
7840 #include <sys/wait.h>
7842 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7845 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7853 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7858 if ac_fn_c_try_compile
"$LINENO"; then :
7859 ac_cv_header_sys_wait_h
=yes
7861 ac_cv_header_sys_wait_h
=no
7863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7866 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7867 if test $ac_cv_header_sys_wait_h = yes; then
7869 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7873 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7874 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7875 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7876 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7878 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7879 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7880 eval as_val
=\$
$as_ac_Header
7881 if test "x$as_val" = x
""yes; then :
7882 cat >>confdefs.h
<<_ACEOF
7883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7890 # Check for thread headers.
7891 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7892 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7898 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7899 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7906 # These tests can't be done till we know if we have limits.h.
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7908 $as_echo_n "checking for CHAR_BIT... " >&6; }
7909 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #ifdef HAVE_LIMITS_H
7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7922 $EGREP "found" >/dev
/null
2>&1; then :
7923 gcc_cv_decl_char_bit
=yes
7925 gcc_cv_decl_char_bit
=no
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7932 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7933 if test $gcc_cv_decl_char_bit = no
; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7935 $as_echo_n "checking number of bits in a byte... " >&6; }
7936 if test "${gcc_cv_c_nbby+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7941 while test $i -lt 65; do
7942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7949 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7950 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7956 if ac_fn_c_try_compile
"$LINENO"; then :
7957 gcc_cv_c_nbby
=$i; break
7959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7962 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7966 $as_echo "$gcc_cv_c_nbby" >&6; }
7967 if test $gcc_cv_c_nbby = failed
; then
7968 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7971 cat >>confdefs.h
<<_ACEOF
7972 #define CHAR_BIT $gcc_cv_c_nbby
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7978 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7979 if test "${ac_cv_c_bigendian+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7982 ac_cv_c_bigendian
=unknown
7983 # See if we're dealing with a universal compiler.
7984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #ifndef __APPLE_CC__
7987 not a universal capable compiler
7992 if ac_fn_c_try_compile
"$LINENO"; then :
7994 # Check for potential -arch flags. It is not universal unless
7995 # there are at least two -arch flags with different values.
7998 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7999 if test -n "$ac_prev"; then
8001 i?
86 | x86_64 | ppc | ppc64
)
8002 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8005 ac_cv_c_bigendian
=universal
8011 elif test "x$ac_word" = "x-arch"; then
8016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8017 if test $ac_cv_c_bigendian = unknown
; then
8018 # See if sys/param.h defines the BYTE_ORDER macro.
8019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 #include <sys/types.h>
8022 #include <sys/param.h>
8027 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8028 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8037 if ac_fn_c_try_compile
"$LINENO"; then :
8038 # It does; now see whether it defined to BIG_ENDIAN or not.
8039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 #include <sys/types.h>
8042 #include <sys/param.h>
8047 #if BYTE_ORDER != BIG_ENDIAN
8055 if ac_fn_c_try_compile
"$LINENO"; then :
8056 ac_cv_c_bigendian
=yes
8058 ac_cv_c_bigendian
=no
8060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8064 if test $ac_cv_c_bigendian = unknown
; then
8065 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8073 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8081 if ac_fn_c_try_compile
"$LINENO"; then :
8082 # It does; now see whether it defined to _BIG_ENDIAN or not.
8083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8098 if ac_fn_c_try_compile
"$LINENO"; then :
8099 ac_cv_c_bigendian
=yes
8101 ac_cv_c_bigendian
=no
8103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8107 if test $ac_cv_c_bigendian = unknown
; then
8108 # Compile a test program.
8109 if test "$cross_compiling" = yes; then :
8110 # Try to guess by grepping values from an object file.
8111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 short int ascii_mm[] =
8114 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8115 short int ascii_ii[] =
8116 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8117 int use_ascii (int i) {
8118 return ascii_mm[i] + ascii_ii[i];
8120 short int ebcdic_ii[] =
8121 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8122 short int ebcdic_mm[] =
8123 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8124 int use_ebcdic (int i) {
8125 return ebcdic_mm[i] + ebcdic_ii[i];
8132 return use_ascii (foo) == use_ebcdic (foo);
8137 if ac_fn_c_try_compile
"$LINENO"; then :
8138 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8139 ac_cv_c_bigendian
=yes
8141 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8142 if test "$ac_cv_c_bigendian" = unknown
; then
8143 ac_cv_c_bigendian
=no
8145 # finding both strings is unlikely to happen, but who knows?
8146 ac_cv_c_bigendian
=unknown
8150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 $ac_includes_default
8159 /* Are we little or big endian? From Harbison&Steele. */
8163 char c[sizeof (long int)];
8166 return u.c[sizeof (long int) - 1] == 1;
8172 if ac_fn_c_try_run
"$LINENO"; then :
8173 ac_cv_c_bigendian
=no
8175 ac_cv_c_bigendian
=yes
8177 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8178 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8184 $as_echo "$ac_cv_c_bigendian" >&6; }
8185 case $ac_cv_c_bigendian in #(
8187 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8197 as_fn_error
"unknown endianness
8198 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8207 # These libraries may be used by collect2.
8208 # We may need a special search path to get them linked.
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8210 $as_echo_n "checking for collect2 libraries... " >&6; }
8211 if test "${gcc_cv_collect2_libs+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8215 for libs
in '' -lld -lmld \
8216 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8217 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8223 /* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8238 if ac_fn_c_try_link
"$LINENO"; then :
8239 gcc_cv_collect2_libs
="$libs"; break
8241 rm -f core conftest.err conftest.
$ac_objext \
8242 conftest
$ac_exeext conftest.
$ac_ext
8245 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8248 $as_echo "$gcc_cv_collect2_libs" >&6; }
8249 case $gcc_cv_collect2_libs in
8251 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8255 # When building Ada code on Alpha, we need exc_resume which is usually in
8256 # -lexc. So test for it.
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8260 $as_echo_n "checking for library containing exc_resume... " >&6; }
8261 if test "${ac_cv_search_exc_resume+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8264 ac_func_search_save_LIBS
=$LIBS
8265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8268 /* Override any GCC internal prototype to avoid an error.
8269 Use char because int might match the return type of a GCC
8270 builtin and then its argument prototype would still apply. */
8278 return exc_resume ();
8283 for ac_lib
in '' exc
; do
8284 if test -z "$ac_lib"; then
8285 ac_res
="none required"
8288 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8290 if ac_fn_c_try_link
"$LINENO"; then :
8291 ac_cv_search_exc_resume
=$ac_res
8293 rm -f core conftest.err conftest.
$ac_objext \
8295 if test "${ac_cv_search_exc_resume+set}" = set; then :
8299 if test "${ac_cv_search_exc_resume+set}" = set; then :
8302 ac_cv_search_exc_resume
=no
8305 LIBS
=$ac_func_search_save_LIBS
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8308 $as_echo "$ac_cv_search_exc_resume" >&6; }
8309 ac_res
=$ac_cv_search_exc_resume
8310 if test "$ac_res" != no
; then :
8311 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8319 # Some systems put ldexp and frexp in libm instead of libc; assume
8320 # they're both in the same place. jcf-dump needs them.
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8324 $as_echo_n "checking for library containing ldexp... " >&6; }
8325 if test "${ac_cv_search_ldexp+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8328 ac_func_search_save_LIBS
=$LIBS
8329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8332 /* Override any GCC internal prototype to avoid an error.
8333 Use char because int might match the return type of a GCC
8334 builtin and then its argument prototype would still apply. */
8347 for ac_lib
in '' m
; do
8348 if test -z "$ac_lib"; then
8349 ac_res
="none required"
8352 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8354 if ac_fn_c_try_link
"$LINENO"; then :
8355 ac_cv_search_ldexp
=$ac_res
8357 rm -f core conftest.err conftest.
$ac_objext \
8359 if test "${ac_cv_search_ldexp+set}" = set; then :
8363 if test "${ac_cv_search_ldexp+set}" = set; then :
8366 ac_cv_search_ldexp
=no
8369 LIBS
=$ac_func_search_save_LIBS
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8372 $as_echo "$ac_cv_search_ldexp" >&6; }
8373 ac_res
=$ac_cv_search_ldexp
8374 if test "$ac_res" != no
; then :
8375 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8383 # Use <inttypes.h> only if it exists,
8384 # doesn't clash with <sys/types.h>, and declares intmax_t.
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8386 $as_echo_n "checking for inttypes.h... " >&6; }
8387 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 #include <sys/types.h>
8393 #include <inttypes.h>
8402 if ac_fn_c_try_compile
"$LINENO"; then :
8403 gcc_cv_header_inttypes_h
=yes
8405 gcc_cv_header_inttypes_h
=no
8407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8411 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8412 if test $gcc_cv_header_inttypes_h = yes; then
8414 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8420 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8421 sysconf strsignal getrusage nl_langinfo \
8422 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8423 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
8425 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8426 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8427 eval as_val
=\$
$as_ac_var
8428 if test "x$as_val" = x
""yes; then :
8429 cat >>confdefs.h
<<_ACEOF
8430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8437 save_CPPFLAGS
="$CPPFLAGS"
8439 LIBS
="$LIBS $LIBELFLIBS"
8440 for ac_func
in elf_getshdrstrndx
8442 ac_fn_c_check_func
"$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8443 if test "x$ac_cv_func_elf_getshdrstrndx" = x
""yes; then :
8444 cat >>confdefs.h
<<_ACEOF
8445 #define HAVE_ELF_GETSHDRSTRNDX 1
8449 for ac_func
in elf_getshstrndx
8451 ac_fn_c_check_func
"$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8452 if test "x$ac_cv_func_elf_getshstrndx" = x
""yes; then :
8453 cat >>confdefs.h
<<_ACEOF
8454 #define HAVE_ELF_GETSHSTRNDX 1
8456 if test "$cross_compiling" = yes; then :
8457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8459 as_fn_error
"cannot run test program while cross compiling
8460 See \`config.log' for more details." "$LINENO" 5; }
8462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8468 return elf_getshstrndx (NULL, 0) == 0;
8471 if ac_fn_c_try_run
"$LINENO"; then :
8473 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8488 CPPFLAGS
="$save_CPPFLAGS"
8490 if test x
$ac_cv_func_mbstowcs = xyes
; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8492 $as_echo_n "checking whether mbstowcs works... " >&6; }
8493 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8496 if test "$cross_compiling" = yes; then :
8497 gcc_cv_func_mbstowcs_works
=yes
8499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8508 if ac_fn_c_try_run
"$LINENO"; then :
8509 gcc_cv_func_mbstowcs_works
=yes
8511 gcc_cv_func_mbstowcs_works
=no
8513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8519 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8520 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8522 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8527 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8528 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8532 cat >>confdefs.h
<<_ACEOF
8538 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8539 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8543 cat >>confdefs.h
<<_ACEOF
8544 #define caddr_t char *
8551 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8552 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8553 gcc_header_sys_mman_h
=yes
8555 gcc_header_sys_mman_h
=no
8558 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8559 if test "x$ac_cv_func_mmap" = x
""yes; then :
8565 if test "$gcc_header_sys_mman_h" != yes \
8566 ||
test "$gcc_func_mmap" != yes; then
8567 gcc_cv_func_mmap_file
=no
8568 gcc_cv_func_mmap_dev_zero
=no
8569 gcc_cv_func_mmap_anon
=no
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8572 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8573 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8576 # Add a system to this blacklist if
8577 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8578 # memory area containing the same data that you'd get if you applied
8579 # read() to the same fd. The only system known to have a problem here
8580 # is VMS, where text files have record structure.
8583 gcc_cv_func_mmap_file
=no
;;
8585 gcc_cv_func_mmap_file
=yes;;
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8589 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8591 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8592 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8595 # Add a system to this blacklist if it has mmap() but /dev/zero
8596 # does not exist, or if mmapping /dev/zero does not give anonymous
8597 # zeroed pages with both the following properties:
8598 # 1. If you map N consecutive pages in with one call, and then
8599 # unmap any subset of those pages, the pages that were not
8600 # explicitly unmapped remain accessible.
8601 # 2. If you map two adjacent blocks of memory and then unmap them
8602 # both at once, they must both go away.
8603 # Systems known to be in this category are Windows (all variants),
8606 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8607 gcc_cv_func_mmap_dev_zero
=no
;;
8609 gcc_cv_func_mmap_dev_zero
=yes;;
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8613 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8615 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8617 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8618 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 #include <sys/types.h>
8624 #include <sys/mman.h>
8627 #ifndef MAP_ANONYMOUS
8628 #define MAP_ANONYMOUS MAP_ANON
8634 int n = MAP_ANONYMOUS;
8639 if ac_fn_c_try_compile
"$LINENO"; then :
8640 gcc_cv_decl_map_anon
=yes
8642 gcc_cv_decl_map_anon
=no
8644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8647 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8649 if test $gcc_cv_decl_map_anon = no
; then
8650 gcc_cv_func_mmap_anon
=no
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8653 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8654 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8657 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8658 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8659 # doesn't give anonymous zeroed pages with the same properties listed
8660 # above for use of /dev/zero.
8661 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8663 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8664 gcc_cv_func_mmap_anon
=no
;;
8666 gcc_cv_func_mmap_anon
=yes;;
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8670 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8674 if test $gcc_cv_func_mmap_file = yes; then
8676 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8679 if test $gcc_cv_func_mmap_dev_zero = yes; then
8681 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8684 if test $gcc_cv_func_mmap_anon = yes; then
8686 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8693 # Under VMS, vfork works very differently than on Unix. The standard test
8694 # won't work, and it isn't easily adaptable. It makes more sense to
8696 ac_cv_func_vfork_works
=yes
8699 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8700 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8704 cat >>confdefs.h
<<_ACEOF
8710 for ac_header
in vfork.h
8712 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8713 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8714 cat >>confdefs.h
<<_ACEOF
8715 #define HAVE_VFORK_H 1
8721 for ac_func
in fork vfork
8723 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8724 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8725 eval as_val
=\$
$as_ac_var
8726 if test "x$as_val" = x
""yes; then :
8727 cat >>confdefs.h
<<_ACEOF
8728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8734 if test "x$ac_cv_func_fork" = xyes
; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8736 $as_echo_n "checking for working fork... " >&6; }
8737 if test "${ac_cv_func_fork_works+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8740 if test "$cross_compiling" = yes; then :
8741 ac_cv_func_fork_works
=cross
8743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 $ac_includes_default
8750 /* By Ruediger Kuhlmann. */
8757 if ac_fn_c_try_run
"$LINENO"; then :
8758 ac_cv_func_fork_works
=yes
8760 ac_cv_func_fork_works
=no
8762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8768 $as_echo "$ac_cv_func_fork_works" >&6; }
8771 ac_cv_func_fork_works
=$ac_cv_func_fork
8773 if test "x$ac_cv_func_fork_works" = xcross
; then
8775 *-*-amigaos* |
*-*-msdosdjgpp*)
8776 # Override, as these systems have only a dummy fork() stub
8777 ac_cv_func_fork_works
=no
8780 ac_cv_func_fork_works
=yes
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8784 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8786 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8787 if test "x$ac_cv_func_vfork" = xyes
; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8789 $as_echo_n "checking for working vfork... " >&6; }
8790 if test "${ac_cv_func_vfork_works+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8793 if test "$cross_compiling" = yes; then :
8794 ac_cv_func_vfork_works
=cross
8796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 /* Thanks to Paul Eggert for this test. */
8799 $ac_includes_default
8800 #include <sys/wait.h>
8804 /* On some sparc systems, changes by the child to local and incoming
8805 argument registers are propagated back to the parent. The compiler
8806 is told about this with #include <vfork.h>, but some compilers
8807 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8808 static variable whose address is put into a register that is
8809 clobbered by the vfork. */
8812 sparc_address_test (int arg)
8814 sparc_address_test (arg) int arg;
8835 pid_t parent = getpid ();
8838 sparc_address_test (0);
8843 /* Here is another test for sparc vfork register problems. This
8844 test uses lots of local variables, at least as many local
8845 variables as main has allocated so far including compiler
8846 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8847 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8848 reuse the register of parent for one of the local variables,
8849 since it will think that parent can't possibly be used any more
8850 in this routine. Assigning to the local variable will thus
8851 munge parent in the parent process. */
8853 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8854 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8855 /* Convince the compiler that p..p7 are live; otherwise, it might
8856 use the same hardware register for all 8 local variables. */
8857 if (p != p1 || p != p2 || p != p3 || p != p4
8858 || p != p5 || p != p6 || p != p7)
8861 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8862 from child file descriptors. If the child closes a descriptor
8863 before it execs or exits, this munges the parent's descriptor
8864 as well. Test for this by closing stdout in the child. */
8865 _exit(close(fileno(stdout)) != 0);
8870 while (wait(&status) != child)
8873 /* Was there some problem with vforking? */
8876 /* Did the child fail? (This shouldn't happen.) */
8879 /* Did the vfork/compiler bug occur? */
8880 || parent != getpid()
8882 /* Did the file descriptor bug occur? */
8883 || fstat(fileno(stdout), &st) != 0
8888 if ac_fn_c_try_run
"$LINENO"; then :
8889 ac_cv_func_vfork_works
=yes
8891 ac_cv_func_vfork_works
=no
8893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8899 $as_echo "$ac_cv_func_vfork_works" >&6; }
8902 if test "x$ac_cv_func_fork_works" = xcross
; then
8903 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8905 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8908 if test "x$ac_cv_func_vfork_works" = xyes
; then
8910 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8914 $as_echo "#define vfork fork" >>confdefs.h
8917 if test "x$ac_cv_func_fork_works" = xyes
; then
8919 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8925 if test "X$prefix" = "XNONE"; then
8926 acl_final_prefix
="$ac_default_prefix"
8928 acl_final_prefix
="$prefix"
8930 if test "X$exec_prefix" = "XNONE"; then
8931 acl_final_exec_prefix
='${prefix}'
8933 acl_final_exec_prefix
="$exec_prefix"
8935 acl_save_prefix
="$prefix"
8936 prefix
="$acl_final_prefix"
8937 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8938 prefix
="$acl_save_prefix"
8941 # Check whether --with-gnu-ld was given.
8942 if test "${with_gnu_ld+set}" = set; then :
8943 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8948 # Prepare PATH_SEPARATOR.
8949 # The user is always right.
8950 if test "${PATH_SEPARATOR+set}" != set; then
8951 echo "#! /bin/sh" >conf$$.sh
8952 echo "exit 0" >>conf$$.sh
8954 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8962 if test "$GCC" = yes; then
8963 # Check if gcc -print-prog-name=ld gives a path.
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8965 $as_echo_n "checking for ld used by GCC... " >&6; }
8968 # gcc leaves a trailing carriage return which upsets mingw
8969 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8971 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8974 # Accept absolute paths.
8975 [\\/]* |
[A-Za-z
]:[\\/]*)
8976 re_direlt
='/[^/][^/]*/\.\./'
8977 # Canonicalize the path of ld
8978 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8979 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8980 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8982 test -z "$LD" && LD
="$ac_prog"
8985 # If it fails, then pretend we aren't using GCC.
8989 # If it is relative, then search for the first ld in PATH.
8993 elif test "$with_gnu_ld" = yes; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8995 $as_echo_n "checking for GNU ld... " >&6; }
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8998 $as_echo_n "checking for non-GNU ld... " >&6; }
9000 if test "${acl_cv_path_LD+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9003 if test -z "$LD"; then
9004 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9005 for ac_dir
in $PATH; do
9006 test -z "$ac_dir" && ac_dir
=.
9007 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9008 acl_cv_path_LD
="$ac_dir/$ac_prog"
9009 # Check to see if the program is GNU ld. I'd rather use --version,
9010 # but apparently some GNU ld's only accept -v.
9011 # Break only if it was the GNU/non-GNU ld that we prefer.
9012 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9013 test "$with_gnu_ld" != no
&& break
9015 test "$with_gnu_ld" != yes && break
9021 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9025 LD
="$acl_cv_path_LD"
9026 if test -n "$LD"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9028 $as_echo "$LD" >&6; }
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9033 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9035 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9036 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9039 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9040 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9041 acl_cv_prog_gnu_ld
=yes
9043 acl_cv_prog_gnu_ld
=no
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9047 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9048 with_gnu_ld
=$acl_cv_prog_gnu_ld
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9053 $as_echo_n "checking for shared library run path origin... " >&6; }
9054 if test "${acl_cv_rpath+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9058 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9059 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9066 $as_echo "$acl_cv_rpath" >&6; }
9068 libext
="$acl_cv_libext"
9069 shlibext
="$acl_cv_shlibext"
9070 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9071 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9072 hardcode_direct
="$acl_cv_hardcode_direct"
9073 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9074 # Check whether --enable-rpath was given.
9075 if test "${enable_rpath+set}" = set; then :
9076 enableval
=$enable_rpath; :
9090 acl_save_prefix
="$prefix"
9091 prefix
="$acl_final_prefix"
9092 acl_save_exec_prefix
="$exec_prefix"
9093 exec_prefix
="$acl_final_exec_prefix"
9095 eval additional_includedir
=\"$includedir\"
9096 eval additional_libdir
=\"$libdir\"
9098 exec_prefix
="$acl_save_exec_prefix"
9099 prefix
="$acl_save_prefix"
9102 # Check whether --with-libiconv-prefix was given.
9103 if test "${with_libiconv_prefix+set}" = set; then :
9104 withval
=$with_libiconv_prefix;
9105 if test "X$withval" = "Xno"; then
9108 if test "X$withval" = "X"; then
9110 acl_save_prefix
="$prefix"
9111 prefix
="$acl_final_prefix"
9112 acl_save_exec_prefix
="$exec_prefix"
9113 exec_prefix
="$acl_final_exec_prefix"
9115 eval additional_includedir
=\"$includedir\"
9116 eval additional_libdir
=\"$libdir\"
9118 exec_prefix
="$acl_save_exec_prefix"
9119 prefix
="$acl_save_prefix"
9122 additional_includedir
="$withval/include"
9123 additional_libdir
="$withval/lib"
9134 names_already_handled
=
9135 names_next_round
='iconv '
9136 while test -n "$names_next_round"; do
9137 names_this_round
="$names_next_round"
9139 for name
in $names_this_round; do
9141 for n
in $names_already_handled; do
9142 if test "$n" = "$name"; then
9147 if test -z "$already_handled"; then
9148 names_already_handled
="$names_already_handled $name"
9149 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9150 eval value
=\"\
$HAVE_LIB$uppername\"
9151 if test -n "$value"; then
9152 if test "$value" = yes; then
9153 eval value
=\"\
$LIB$uppername\"
9154 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9155 eval value
=\"\
$LTLIB$uppername\"
9156 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9165 if test $use_additional = yes; then
9166 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9167 found_dir
="$additional_libdir"
9168 found_so
="$additional_libdir/lib$name.$shlibext"
9169 if test -f "$additional_libdir/lib$name.la"; then
9170 found_la
="$additional_libdir/lib$name.la"
9173 if test -f "$additional_libdir/lib$name.$libext"; then
9174 found_dir
="$additional_libdir"
9175 found_a
="$additional_libdir/lib$name.$libext"
9176 if test -f "$additional_libdir/lib$name.la"; then
9177 found_la
="$additional_libdir/lib$name.la"
9182 if test "X$found_dir" = "X"; then
9183 for x
in $LDFLAGS $LTLIBICONV; do
9185 acl_save_prefix
="$prefix"
9186 prefix
="$acl_final_prefix"
9187 acl_save_exec_prefix
="$exec_prefix"
9188 exec_prefix
="$acl_final_exec_prefix"
9190 exec_prefix
="$acl_save_exec_prefix"
9191 prefix
="$acl_save_prefix"
9195 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9196 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9198 found_so
="$dir/lib$name.$shlibext"
9199 if test -f "$dir/lib$name.la"; then
9200 found_la
="$dir/lib$name.la"
9203 if test -f "$dir/lib$name.$libext"; then
9205 found_a
="$dir/lib$name.$libext"
9206 if test -f "$dir/lib$name.la"; then
9207 found_la
="$dir/lib$name.la"
9213 if test "X$found_dir" != "X"; then
9218 if test "X$found_dir" != "X"; then
9219 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9220 if test "X$found_so" != "X"; then
9221 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9222 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9225 for x
in $ltrpathdirs; do
9226 if test "X$x" = "X$found_dir"; then
9231 if test -z "$haveit"; then
9232 ltrpathdirs
="$ltrpathdirs $found_dir"
9234 if test "$hardcode_direct" = yes; then
9235 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9237 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9238 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9240 for x
in $rpathdirs; do
9241 if test "X$x" = "X$found_dir"; then
9246 if test -z "$haveit"; then
9247 rpathdirs
="$rpathdirs $found_dir"
9251 for x
in $LDFLAGS $LIBICONV; do
9253 acl_save_prefix
="$prefix"
9254 prefix
="$acl_final_prefix"
9255 acl_save_exec_prefix
="$exec_prefix"
9256 exec_prefix
="$acl_final_exec_prefix"
9258 exec_prefix
="$acl_save_exec_prefix"
9259 prefix
="$acl_save_prefix"
9261 if test "X$x" = "X-L$found_dir"; then
9266 if test -z "$haveit"; then
9267 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9269 if test "$hardcode_minus_L" != no
; then
9270 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9272 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9278 if test "X$found_a" != "X"; then
9279 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9281 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9284 additional_includedir
=
9285 case "$found_dir" in
9287 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9288 additional_includedir
="$basedir/include"
9291 if test "X$additional_includedir" != "X"; then
9292 if test "X$additional_includedir" != "X/usr/include"; then
9294 if test "X$additional_includedir" = "X/usr/local/include"; then
9295 if test -n "$GCC"; then
9297 linux
*) haveit
=yes;;
9301 if test -z "$haveit"; then
9302 for x
in $CPPFLAGS $INCICONV; do
9304 acl_save_prefix
="$prefix"
9305 prefix
="$acl_final_prefix"
9306 acl_save_exec_prefix
="$exec_prefix"
9307 exec_prefix
="$acl_final_exec_prefix"
9309 exec_prefix
="$acl_save_exec_prefix"
9310 prefix
="$acl_save_prefix"
9312 if test "X$x" = "X-I$additional_includedir"; then
9317 if test -z "$haveit"; then
9318 if test -d "$additional_includedir"; then
9319 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9325 if test -n "$found_la"; then
9326 save_libdir
="$libdir"
9328 */* |
*\\*) .
"$found_la" ;;
9329 *) .
"./$found_la" ;;
9331 libdir
="$save_libdir"
9332 for dep
in $dependency_libs; do
9335 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9336 if test "X$additional_libdir" != "X/usr/lib"; then
9338 if test "X$additional_libdir" = "X/usr/local/lib"; then
9339 if test -n "$GCC"; then
9341 linux
*) haveit
=yes;;
9345 if test -z "$haveit"; then
9347 for x
in $LDFLAGS $LIBICONV; do
9349 acl_save_prefix
="$prefix"
9350 prefix
="$acl_final_prefix"
9351 acl_save_exec_prefix
="$exec_prefix"
9352 exec_prefix
="$acl_final_exec_prefix"
9354 exec_prefix
="$acl_save_exec_prefix"
9355 prefix
="$acl_save_prefix"
9357 if test "X$x" = "X-L$additional_libdir"; then
9362 if test -z "$haveit"; then
9363 if test -d "$additional_libdir"; then
9364 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9368 for x
in $LDFLAGS $LTLIBICONV; do
9370 acl_save_prefix
="$prefix"
9371 prefix
="$acl_final_prefix"
9372 acl_save_exec_prefix
="$exec_prefix"
9373 exec_prefix
="$acl_final_exec_prefix"
9375 exec_prefix
="$acl_save_exec_prefix"
9376 prefix
="$acl_save_prefix"
9378 if test "X$x" = "X-L$additional_libdir"; then
9383 if test -z "$haveit"; then
9384 if test -d "$additional_libdir"; then
9385 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9392 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9393 if test "$enable_rpath" != no
; then
9395 for x
in $rpathdirs; do
9396 if test "X$x" = "X$dir"; then
9401 if test -z "$haveit"; then
9402 rpathdirs
="$rpathdirs $dir"
9405 for x
in $ltrpathdirs; do
9406 if test "X$x" = "X$dir"; then
9411 if test -z "$haveit"; then
9412 ltrpathdirs
="$ltrpathdirs $dir"
9417 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9420 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9423 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9424 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9430 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9431 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9437 if test "X$rpathdirs" != "X"; then
9438 if test -n "$hardcode_libdir_separator"; then
9440 for found_dir
in $rpathdirs; do
9441 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9443 acl_save_libdir
="$libdir"
9445 eval flag
=\"$hardcode_libdir_flag_spec\"
9446 libdir
="$acl_save_libdir"
9447 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9449 for found_dir
in $rpathdirs; do
9450 acl_save_libdir
="$libdir"
9452 eval flag
=\"$hardcode_libdir_flag_spec\"
9453 libdir
="$acl_save_libdir"
9454 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9458 if test "X$ltrpathdirs" != "X"; then
9459 for found_dir
in $ltrpathdirs; do
9460 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9470 am_save_CPPFLAGS
="$CPPFLAGS"
9472 for element
in $INCICONV; do
9474 for x
in $CPPFLAGS; do
9476 acl_save_prefix
="$prefix"
9477 prefix
="$acl_final_prefix"
9478 acl_save_exec_prefix
="$exec_prefix"
9479 exec_prefix
="$acl_final_exec_prefix"
9481 exec_prefix
="$acl_save_exec_prefix"
9482 prefix
="$acl_save_prefix"
9484 if test "X$x" = "X$element"; then
9489 if test -z "$haveit"; then
9490 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9496 $as_echo_n "checking for iconv... " >&6; }
9497 if test "${am_cv_func_iconv+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9501 am_cv_func_iconv
="no, consider installing GNU libiconv"
9503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9510 iconv_t cd = iconv_open("","");
9511 iconv(cd,NULL,NULL,NULL,NULL);
9517 if ac_fn_c_try_link
"$LINENO"; then :
9518 am_cv_func_iconv
=yes
9520 rm -f core conftest.err conftest.
$ac_objext \
9521 conftest
$ac_exeext conftest.
$ac_ext
9522 if test "$am_cv_func_iconv" != yes; then
9523 am_save_LIBS
="$LIBS"
9524 LIBS
="$LIBS $LIBICONV"
9525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9532 iconv_t cd = iconv_open("","");
9533 iconv(cd,NULL,NULL,NULL,NULL);
9539 if ac_fn_c_try_link
"$LINENO"; then :
9541 am_cv_func_iconv
=yes
9543 rm -f core conftest.err conftest.
$ac_objext \
9544 conftest
$ac_exeext conftest.
$ac_ext
9545 LIBS
="$am_save_LIBS"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9550 $as_echo "$am_cv_func_iconv" >&6; }
9551 if test "$am_cv_func_iconv" = yes; then
9553 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9556 if test "$am_cv_lib_iconv" = yes; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9558 $as_echo_n "checking how to link with libiconv... " >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9560 $as_echo "$LIBICONV" >&6; }
9562 CPPFLAGS
="$am_save_CPPFLAGS"
9569 if test "$am_cv_func_iconv" = yes; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9571 $as_echo_n "checking for iconv declaration... " >&6; }
9572 if test "${am_cv_proto_iconv+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9585 #if defined(__STDC__) || defined(__cplusplus)
9586 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9599 if ac_fn_c_try_compile
"$LINENO"; then :
9600 am_cv_proto_iconv_arg1
=""
9602 am_cv_proto_iconv_arg1
="const"
9604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9605 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);"
9608 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9610 }$am_cv_proto_iconv" >&5
9612 }$am_cv_proto_iconv" >&6; }
9614 cat >>confdefs.h
<<_ACEOF
9615 #define ICONV_CONST $am_cv_proto_iconv_arg1
9620 # Until we have in-tree GNU iconv:
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9626 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9627 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9641 if ac_fn_c_try_link
"$LINENO"; then :
9642 am_cv_val_LC_MESSAGES
=yes
9644 am_cv_val_LC_MESSAGES
=no
9646 rm -f core conftest.err conftest.
$ac_objext \
9647 conftest
$ac_exeext conftest.
$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9650 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9651 if test $am_cv_val_LC_MESSAGES = yes; then
9653 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9660 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9661 if test "${am_cv_langinfo_codeset+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 #include <langinfo.h>
9670 char* cs = nl_langinfo(CODESET);
9675 if ac_fn_c_try_link
"$LINENO"; then :
9676 am_cv_langinfo_codeset
=yes
9678 am_cv_langinfo_codeset
=no
9680 rm -f core conftest.err conftest.
$ac_objext \
9681 conftest
$ac_exeext conftest.
$ac_ext
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9685 $as_echo "$am_cv_langinfo_codeset" >&6; }
9686 if test $am_cv_langinfo_codeset = yes; then
9688 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9693 # We will need to find libiberty.h and ansidecl.h
9694 saved_CFLAGS
="$CFLAGS"
9695 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9696 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9697 strsignal strstr strverscmp \
9698 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9699 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
9701 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9703 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9704 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9705 $as_echo_n "(cached) " >&6
9707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9710 #define $ac_tr_decl 1
9712 #include "ansidecl.h"
9719 char *(*pfn) = (char *(*)) $ac_func ;
9725 if ac_fn_c_try_compile
"$LINENO"; then :
9726 eval "gcc_cv_have_decl_$ac_func=yes"
9728 eval "gcc_cv_have_decl_$ac_func=no"
9730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9733 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9735 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9736 #define $ac_tr_decl 1
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9742 #define $ac_tr_decl 0
9750 for ac_func
in getrlimit setrlimit getrusage
9752 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9754 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9755 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9756 $as_echo_n "(cached) " >&6
9758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9761 #define $ac_tr_decl 1
9763 #include "ansidecl.h"
9765 #ifdef HAVE_SYS_RESOURCE_H
9766 #include <sys/resource.h>
9774 char *(*pfn) = (char *(*)) $ac_func ;
9780 if ac_fn_c_try_compile
"$LINENO"; then :
9781 eval "gcc_cv_have_decl_$ac_func=yes"
9783 eval "gcc_cv_have_decl_$ac_func=no"
9785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9788 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9790 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9791 #define $ac_tr_decl 1
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9797 #define $ac_tr_decl 0
9805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9808 #include "ansidecl.h"
9810 #ifdef HAVE_SYS_RESOURCE_H
9811 #include <sys/resource.h>
9822 if ac_fn_c_try_compile
"$LINENO"; then :
9826 $as_echo "#define rlim_t long" >>confdefs.h
9829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9831 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9832 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9833 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9834 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9835 for ac_func
in ldgetname
9837 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9839 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9840 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9841 $as_echo_n "(cached) " >&6
9843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9846 #define $ac_tr_decl 1
9848 #include "ansidecl.h"
9861 char *(*pfn) = (char *(*)) $ac_func ;
9867 if ac_fn_c_try_compile
"$LINENO"; then :
9868 eval "gcc_cv_have_decl_$ac_func=yes"
9870 eval "gcc_cv_have_decl_$ac_func=no"
9872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9875 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9877 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9878 #define $ac_tr_decl 1
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9884 #define $ac_tr_decl 0
9892 for ac_func
in times
9894 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9896 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9897 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9898 $as_echo_n "(cached) " >&6
9900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9903 #define $ac_tr_decl 1
9905 #include "ansidecl.h"
9907 #ifdef HAVE_SYS_TIMES_H
9908 #include <sys/times.h>
9916 char *(*pfn) = (char *(*)) $ac_func ;
9922 if ac_fn_c_try_compile
"$LINENO"; then :
9923 eval "gcc_cv_have_decl_$ac_func=yes"
9925 eval "gcc_cv_have_decl_$ac_func=no"
9927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9930 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9932 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9933 #define $ac_tr_decl 1
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9939 #define $ac_tr_decl 0
9947 for ac_func
in sigaltstack
9949 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9951 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9952 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9953 $as_echo_n "(cached) " >&6
9955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9958 #define $ac_tr_decl 1
9960 #include "ansidecl.h"
9969 char *(*pfn) = (char *(*)) $ac_func ;
9975 if ac_fn_c_try_compile
"$LINENO"; then :
9976 eval "gcc_cv_have_decl_$ac_func=yes"
9978 eval "gcc_cv_have_decl_$ac_func=no"
9980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9983 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9986 #define $ac_tr_decl 1
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9992 #define $ac_tr_decl 0
10000 # More time-related stuff.
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10002 $as_echo_n "checking for struct tms... " >&6; }
10003 if test "${ac_cv_struct_tms+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10010 #include "ansidecl.h"
10011 #include "system.h"
10012 #ifdef HAVE_SYS_TIMES_H
10013 #include <sys/times.h>
10024 if ac_fn_c_try_compile
"$LINENO"; then :
10025 ac_cv_struct_tms
=yes
10027 ac_cv_struct_tms
=no
10029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10032 $as_echo "$ac_cv_struct_tms" >&6; }
10033 if test $ac_cv_struct_tms = yes; then
10035 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10039 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10040 # revisit after autoconf 2.50.
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10042 $as_echo_n "checking for clock_t... " >&6; }
10043 if test "${gcc_cv_type_clock_t+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10050 #include "ansidecl.h"
10051 #include "system.h"
10061 if ac_fn_c_try_compile
"$LINENO"; then :
10062 gcc_cv_type_clock_t
=yes
10064 gcc_cv_type_clock_t
=no
10066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10069 $as_echo "$gcc_cv_type_clock_t" >&6; }
10070 if test $gcc_cv_type_clock_t = yes; then
10072 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10076 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10077 CFLAGS
="$saved_CFLAGS"
10079 # Check whether --enable-initfini-array was given.
10080 if test "${enable_initfini_array+set}" = set; then :
10081 enableval
=$enable_initfini_array;
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10085 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10086 if test "${gcc_cv_initfini_array+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
10089 if test "$cross_compiling" = yes; then :
10090 gcc_cv_initfini_array
=no
10092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10096 int main (void) { return x; }
10097 int foo (void) { x = 0; }
10098 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10100 if ac_fn_c_try_run
"$LINENO"; then :
10101 gcc_cv_initfini_array
=yes
10103 gcc_cv_initfini_array
=no
10105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10111 $as_echo "$gcc_cv_initfini_array" >&6; }
10112 enable_initfini_array
=$gcc_cv_initfini_array
10116 if test $enable_initfini_array = yes; then
10118 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10122 # mkdir takes a single argument on some systems.
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10124 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10125 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10126 $as_echo_n "(cached) " >&6
10128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10131 #include <sys/types.h>
10132 #ifdef HAVE_SYS_STAT_H
10133 # include <sys/stat.h>
10135 #ifdef HAVE_UNISTD_H
10136 # include <unistd.h>
10138 #ifdef HAVE_DIRECT_H
10139 # include <direct.h>
10149 if ac_fn_c_try_compile
"$LINENO"; then :
10150 gcc_cv_mkdir_takes_one_arg
=no
10152 gcc_cv_mkdir_takes_one_arg
=yes
10154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10157 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10158 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10160 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10171 # With Setjmp/Longjmp based exception handling.
10172 # Check whether --enable-sjlj-exceptions was given.
10173 if test "${enable_sjlj_exceptions+set}" = set; then :
10174 enableval
=$enable_sjlj_exceptions; case $target in
10176 if test $enableval != yes; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10178 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10183 force_sjlj_exceptions
=yes
10187 force_sjlj_exceptions
=yes
10191 force_sjlj_exceptions
=no
10196 if test $force_sjlj_exceptions = yes; then
10197 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10199 cat >>confdefs.h
<<_ACEOF
10200 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10205 # For platforms with the unwind ABI which includes an unwind library,
10206 # libunwind, we can choose to use the system libunwind.
10207 # config.gcc also contains tests of with_system_libunwind.
10210 # Check whether --with-system-libunwind was given.
10211 if test "${with_system_libunwind+set}" = set; then :
10212 withval
=$with_system_libunwind;
10215 # If system-libunwind was not specifically set, pick a default setting.
10216 if test x
$with_system_libunwind = x
; then
10218 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10219 *) with_system_libunwind
=no
;;
10222 # Based on system-libunwind and target, do we have ipinfo?
10223 if test x
$with_system_libunwind = xyes
; then
10225 ia64-
*-*) have_unwind_getipinfo
=no
;;
10226 *) have_unwind_getipinfo
=yes ;;
10229 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10232 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10233 *) have_unwind_getipinfo
=yes ;;
10238 if test x
$have_unwind_getipinfo = xyes
; then
10240 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10245 # --------------------------------------------------------
10246 # Build, host, and target specific configuration fragments
10247 # --------------------------------------------------------
10249 # Collect build-machine-specific information.
10250 .
${srcdir}/config.build
10252 # Collect host-machine-specific information.
10253 .
${srcdir}/config.
host
10257 # Collect target-machine-specific information.
10258 .
${srcdir}/config.gcc
10260 extra_objs
="${host_extra_objs} ${extra_objs}"
10261 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10263 # Default the target-machine variables that were not explicitly set.
10264 if test x
"$tm_file" = x
10265 then tm_file
=$cpu_type/$cpu_type.h
; fi
10267 if test x
"$extra_headers" = x
10268 then extra_headers
=; fi
10270 if test x
$md_file = x
10271 then md_file
=$cpu_type/$cpu_type.md
; fi
10273 if test x
$out_file = x
10274 then out_file
=$cpu_type/$cpu_type.c
; fi
10276 if test x
"$tmake_file" = x
10277 then tmake_file
=$cpu_type/t-
$cpu_type
10280 if test x
"$dwarf2" = xyes
10281 then tm_file
="$tm_file tm-dwarf2.h"
10284 # Say what files are being used for the output code and MD file.
10285 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10286 echo "Using \`$srcdir/config/$md_file' as machine description file."
10288 # If any of the xm_file variables contain nonexistent files, warn
10289 # about them and drop them.
10292 for x
in $build_xm_file; do
10293 if test -f $srcdir/config
/$x
10295 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10296 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10299 build_xm_file
="$bx"
10302 for x
in $host_xm_file; do
10303 if test -f $srcdir/config
/$x
10305 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10306 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10312 for x
in $xm_file; do
10313 if test -f $srcdir/config
/$x
10315 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10316 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10322 for f
in $tm_file; do
10325 if test $count = ax
; then
10326 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10328 echo "Using the following target machine macro files:"
10329 for f
in $tm_file; do
10330 echo " $srcdir/config/$f"
10334 if test x
$need_64bit_hwint = xyes
; then
10336 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10340 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10342 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10347 for f
in $host_xm_file; do
10350 if test $count = a
; then
10352 elif test $count = ax
; then
10353 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10355 echo "Using the following host machine macro files:"
10356 for f
in $host_xm_file; do
10357 echo " $srcdir/config/$f"
10360 echo "Using ${out_host_hook_obj} for host machine hooks."
10362 if test "$host_xm_file" != "$build_xm_file"; then
10364 for f
in $build_xm_file; do
10367 if test $count = a
; then
10369 elif test $count = ax
; then
10370 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10372 echo "Using the following build machine macro files:"
10373 for f
in $build_xm_file; do
10374 echo " $srcdir/config/$f"
10380 powerpc
*-*-darwin*)
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10382 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10383 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 #include <sys/cdefs.h>
10390 #include <sys/signal.h>
10391 #include <ucontext.h>
10392 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10395 if ac_fn_c_try_compile
"$LINENO"; then :
10396 gcc_cv_mcontext_underscores
=no
10398 gcc_cv_mcontext_underscores
=yes
10400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10403 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10404 if test $gcc_cv_mcontext_underscores = yes; then
10406 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10416 # Check if a valid thread package
10417 case ${enable_threads} in
10420 target_thread_file
='single'
10424 target_thread_file
='single'
10426 aix | dce | gnat | irix | posix | posix95 | rtems | \
10427 single | solaris | vxworks | win32 | mipssde
)
10428 target_thread_file
=${enable_threads}
10431 echo "${enable_threads} is an unknown thread package" 1>&2
10436 if test x
${thread_file} = x
; then
10437 # No thread file set by target-specific clauses in config.gcc,
10438 # so use file chosen by default logic above
10439 thread_file
=${target_thread_file}
10442 # Make gthr-default.h if we have a thread file.
10444 if test $thread_file != single
; then
10445 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10446 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10447 rm -f gthr-default.h-t
10449 mv -f gthr-default.h-t gthr-default.h
10451 gthread_flags
=-DHAVE_GTHR_DEFAULT
10460 if test x
$enable___cxa_atexit = xyes || \
10461 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10462 if test x
$host = x
$target; then
10464 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10465 # keyed to flag_use_cxa_atexit
10470 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10471 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10474 echo "__cxa_atexit can't be enabled on this target"
10480 # We can't check for __cxa_atexit when building a cross, so assume
10484 if test x
$use_cxa_atexit = xyes
; then
10486 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10491 # Look for a file containing extra machine modes.
10492 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10493 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10496 cat >>confdefs.h
<<_ACEOF
10497 #define EXTRA_MODES_FILE "config/$extra_modes"
10502 # Convert extra_options into a form suitable for Makefile use.
10504 for f
in $extra_options; do
10505 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10509 # auto-host.h is the file containing items generated by autoconf and is
10510 # the first file included by config.h.
10511 # If host=build, it is correct to have bconfig include auto-host.h
10512 # as well. If host!=build, we are in error and need to do more
10513 # work to find out the build config parameters.
10514 if test x
$host = x
$build
10516 build_auto
=auto-host.h
10518 # We create a subdir, then run autoconf in the subdir.
10519 # To prevent recursion we set host and build for the new
10520 # invocation of configure to the build for this invocation
10527 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10528 *) realsrcdir
=..
/${srcdir};;
10530 saved_CFLAGS
="${CFLAGS}"
10531 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10532 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10533 ${realsrcdir}/configure \
10534 --enable-languages=${enable_languages-all} \
10535 --target=$target_alias --host=$build_alias --build=$build_alias
10536 CFLAGS
="${saved_CFLAGS}"
10538 # We just finished tests for the build machine, so rename
10539 # the file auto-build.h in the gcc directory.
10540 mv auto-host.h ..
/auto-build.h
10543 build_auto
=auto-build.h
10547 tm_file
="${tm_file} defaults.h"
10548 tm_p_file
="${tm_p_file} tm-preds.h"
10549 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10550 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10551 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10552 # put this back in temporarily.
10553 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10559 # Compile in configure arguments.
10560 if test -f configargs.h
; then
10561 # Being re-configured.
10562 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10563 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10565 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10568 # Double all backslashes and backslash all quotes to turn
10569 # gcc_config_arguments into a C string.
10570 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10571 $gcc_config_arguments
10573 gcc_config_arguments_str
=`cat conftest.out`
10576 cat > configargs.h
<<EOF
10577 /* Generated automatically. */
10578 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10579 static const char thread_model[] = "$thread_file";
10581 static const struct {
10582 const char *name, *value;
10583 } configure_default_options[] = $configure_default_options;
10586 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10587 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10588 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10589 if test -f $srcdir/REVISION
; then
10590 gcc_REVISION
=`cat $srcdir/REVISION`
10594 cat > plugin-version.h
<<EOF
10595 #include "configargs.h"
10597 static char basever[] = "$gcc_BASEVER";
10598 static char datestamp[] = "$gcc_DATESTAMP";
10599 static char devphase[] = "$gcc_DEVPHASE";
10600 static char revision[] = "$gcc_REVISION";
10602 /* FIXME plugins: We should make the version information more precise.
10603 One way to do is to add a checksum. */
10605 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10606 devphase, revision,
10607 configuration_arguments};
10610 # Internationalization
10611 # If we haven't got the data from the intl directory,
10612 # assume NLS is disabled.
10621 if test -f ..
/intl
/config.intl
; then
10622 . ..
/intl
/config.intl
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10625 $as_echo_n "checking whether NLS is requested... " >&6; }
10626 if test x
"$USE_NLS" != xyes
; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10631 $as_echo "yes" >&6; }
10633 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10637 $as_echo_n "checking for catalogs to be installed... " >&6; }
10638 # Look for .po and .gmo files in the source directory.
10641 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10642 # If there aren't any .gmo files the shell will give us the
10643 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10645 case "$cat" in *\
**)
10648 # The quadruple backslash is collapsed to a double backslash
10649 # by the backticks, then collapsed again by the double quotes,
10650 # leaving us with one backslash in the sed expression (right
10651 # before the dot that mustn't act as a wildcard).
10652 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10653 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10654 # The user is allowed to set LINGUAS to a list of languages to
10655 # install catalogs for. If it's empty that means "all of them."
10656 if test "x$LINGUAS" = x
; then
10657 CATALOGS
="$CATALOGS $cat"
10658 XLINGUAS
="$XLINGUAS $lang"
10660 case "$LINGUAS" in *$lang*)
10661 CATALOGS
="$CATALOGS $cat"
10662 XLINGUAS
="$XLINGUAS $lang"
10667 LINGUAS
="$XLINGUAS"
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10669 $as_echo "$LINGUAS" >&6; }
10682 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10683 # -liconv on the link line twice.
10684 case "$LIBINTL" in *$LIBICONV*)
10688 # Check whether --enable-secureplt was given.
10689 if test "${enable_secureplt+set}" = set; then :
10690 enableval
=$enable_secureplt;
10694 # Check whether --enable-leading-mingw64-underscores was given.
10695 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10696 enableval
=$enable_leading_mingw64_underscores;
10699 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
10701 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10705 # Check whether --enable-cld was given.
10706 if test "${enable_cld+set}" = set; then :
10707 enableval
=$enable_cld;
10713 # Check whether --enable-frame-pointer was given.
10714 if test "${enable_frame_pointer+set}" = set; then :
10715 enableval
=$enable_frame_pointer;
10719 linux
* | darwin
[8912]*)
10720 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10722 enable_frame_pointer
=no
10725 enable_frame_pointer
=yes
10732 # Windows32 Registry support for specifying GCC installation paths.
10733 # Check whether --enable-win32-registry was given.
10734 if test "${enable_win32_registry+set}" = set; then :
10735 enableval
=$enable_win32_registry;
10740 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10741 if test "x$enable_win32_registry" != xno
; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10743 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10744 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10745 $as_echo_n "(cached) " >&6
10747 ac_func_search_save_LIBS
=$LIBS
10748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10757 char RegOpenKeyExA ();
10761 return RegOpenKeyExA ();
10766 for ac_lib
in '' advapi32
; do
10767 if test -z "$ac_lib"; then
10768 ac_res
="none required"
10771 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10773 if ac_fn_c_try_link
"$LINENO"; then :
10774 ac_cv_search_RegOpenKeyExA
=$ac_res
10776 rm -f core conftest.err conftest.
$ac_objext \
10778 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10782 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10785 ac_cv_search_RegOpenKeyExA
=no
10787 rm conftest.
$ac_ext
10788 LIBS
=$ac_func_search_save_LIBS
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10791 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10792 ac_res
=$ac_cv_search_RegOpenKeyExA
10793 if test "$ac_res" != no
; then :
10794 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10797 enable_win32_registry
=no
10802 if test "x$enable_win32_registry" != xno
; then
10804 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10807 if test "x$enable_win32_registry" != xyes \
10808 && test "x$enable_win32_registry" != x
; then
10810 cat >>confdefs.h
<<_ACEOF
10811 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10819 # Get an absolute path to the GCC top-level source directory
10820 holddir
=`${PWDCMD-pwd}`
10822 topdir
=`${PWDCMD-pwd}`
10825 # Conditionalize the makefile for this host machine.
10827 for f
in ${host_xmake_file}
10829 if test -f ${srcdir}/config
/$f
10831 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10835 # Conditionalize the makefile for this target machine.
10837 for f
in ${tmake_file}
10839 if test -f ${srcdir}/config
/$f
10841 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10844 tmake_file
="${tmake_file_}"
10846 out_object_file
=`basename $out_file .c`.o
10848 tm_file_list
="options.h"
10849 tm_include_list
="options.h insn-constants.h"
10850 for f
in $tm_file; do
10853 f
=`echo $f | sed 's/^..//'`
10854 tm_file_list
="${tm_file_list} $f"
10855 tm_include_list
="${tm_include_list} $f"
10858 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10859 tm_include_list
="${tm_include_list} $f"
10862 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10863 tm_include_list
="${tm_include_list} config/$f"
10870 for f
in $tm_p_file; do
10873 tm_p_file_list
="${tm_p_file_list} $f"
10874 tm_p_include_list
="${tm_p_include_list} $f"
10877 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10878 tm_p_include_list
="${tm_p_include_list} config/$f"
10884 for f
in $xm_file; do
10887 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10888 xm_include_list
="${xm_include_list} $f"
10891 xm_file_list
="${xm_file_list} $f"
10892 xm_include_list
="${xm_include_list} $f"
10895 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10896 xm_include_list
="${xm_include_list} config/$f"
10902 host_xm_include_list
=
10903 for f
in $host_xm_file; do
10906 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10907 host_xm_include_list
="${host_xm_include_list} $f"
10910 host_xm_file_list
="${host_xm_file_list} $f"
10911 host_xm_include_list
="${host_xm_include_list} $f"
10914 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10915 host_xm_include_list
="${host_xm_include_list} config/$f"
10920 build_xm_file_list
=
10921 for f
in $build_xm_file; do
10924 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10925 build_xm_include_list
="${build_xm_include_list} $f"
10927 auto-build.h | auto-host.h
)
10928 build_xm_file_list
="${build_xm_file_list} $f"
10929 build_xm_include_list
="${build_xm_include_list} $f"
10932 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10933 build_xm_include_list
="${build_xm_include_list} config/$f"
10938 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10939 # cross-compiler which does not use the native headers and libraries.
10940 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10943 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10945 if test "x$with_build_sysroot" != x
; then
10946 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10948 # This value is used, even on a native system, because
10949 # CROSS_SYSTEM_HEADER_DIR is just
10950 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10951 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10954 if test x
$host != x
$target
10956 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10958 SYSTEM_HEADER_DIR
=$build_system_header_dir
10959 case "$host","$target" in
10960 # Darwin crosses can use the host system's libraries and headers,
10961 # because of the fat library support. Of course, it must be the
10962 # same version of Darwin on both sides. Allow the user to
10963 # just say --target=foo-darwin without a version number to mean
10964 # "the version on this system".
10965 *-*-darwin*,*-*-darwin*)
10966 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10967 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10968 if test $hostos = $targetos -o $targetos = darwin
; then
10970 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10975 i?
86-*-*,x86_64-
*-* \
10976 | powerpc
*-*-*,powerpc64
*-*-*)
10977 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10979 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10980 SYSTEM_HEADER_DIR
=$build_system_header_dir
10983 # If this is a cross-compiler that does not
10984 # have its own set of headers then define
10987 # If this is using newlib, without having the headers available now,
10988 # then define inhibit_libc in LIBGCC2_CFLAGS.
10989 # This prevents libgcc2 from containing any code which requires libc
10991 : ${inhibit_libc=false}
10992 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10993 test x
$with_newlib = xyes
; } &&
10994 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10999 # When building gcc with a cross-compiler, we need to adjust things so
11000 # that the generator programs are still built with the native compiler.
11001 # Also, we cannot run fixincludes.
11003 # These are the normal (build=host) settings:
11004 CC_FOR_BUILD
='$(CC)'
11005 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11006 BUILD_LDFLAGS
='$(LDFLAGS)'
11007 STMP_FIXINC
=stmp-fixinc
11009 # And these apply if build != host, or we are generating coverage data
11010 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11012 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11013 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11016 # Expand extra_headers to include complete path.
11017 # This substitutes for lots of t-* files.
11018 extra_headers_list
=
11019 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11020 for file in ${extra_headers} ; do
11021 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11024 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11025 if test x
"$use_gcc_tgmath" = xyes
11026 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11029 # Define collect2 in Makefile.
11030 case $host_can_use_collect2 in
11032 *) collect2
='collect2$(exeext)' ;;
11036 # Add a definition of USE_COLLECT2 if system wants one.
11037 case $use_collect2 in
11038 no
) use_collect2
= ;;
11041 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11042 xm_defines
="${xm_defines} USE_COLLECT2"
11043 case $host_can_use_collect2 in
11045 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11051 # ---------------------------
11052 # Assembler & linker features
11053 # ---------------------------
11055 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11056 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11057 # However when ld-new is first executed from the build tree, libtool will
11058 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11059 # to the build tree. While doing this we need to use the previous-stage
11060 # linker, or we have an infinite loop. The presence of a shell script as
11061 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11062 # the gcc/collect-ld script. So we need to know how libtool works, or
11063 # exec-tool will fail.
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11069 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11074 macro_version
='2.2.7a'
11075 macro_revision
='1.3134'
11089 ltmain
="$ac_aux_dir/ltmain.sh"
11091 # Backslashify metacharacters that are still active within
11092 # double-quoted strings.
11093 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11095 # Same as above, but do not quote variable references.
11096 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11098 # Sed substitution to delay expansion of an escaped shell variable in a
11099 # double_quote_subst'ed string.
11100 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11102 # Sed substitution to delay expansion of an escaped single quote.
11103 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11105 # Sed substitution to avoid accidental globbing in evaled expressions
11106 no_glob_subst
='s/\*/\\\*/g'
11108 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11110 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11113 $as_echo_n "checking how to print strings... " >&6; }
11114 # Test print first, because it will be a builtin if present.
11115 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11116 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11118 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11121 # Use this function as a fallback that always works.
11122 func_fallback_echo ()
11124 eval 'cat <<_LTECHO_EOF
11128 ECHO='func_fallback_echo
'
11131 # func_echo_all arg...
11132 # Invoke $ECHO with all args, space-separated.
11139 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11140 $as_echo "printf" >&6; } ;;
11141 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11142 $as_echo "print -r" >&6; } ;;
11143 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11144 $as_echo "cat" >&6; } ;;
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11162 if test "${ac_cv_path_SED+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11166 for ac_i in 1 2 3 4 5 6 7; do
11167 ac_script="$ac_script$as_nl$ac_script"
11169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11170 { ac_script=; unset ac_script;}
11171 if test -z "$SED"; then
11172 ac_path_SED_found=false
11173 # Loop through the user's path and
test for each of PROGNAME-LIST
11174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11175 for as_dir
in $PATH
11178 test -z "$as_dir" && as_dir
=.
11179 for ac_prog
in sed gsed
; do
11180 for ac_exec_ext
in '' $ac_executable_extensions; do
11181 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11182 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11183 # Check for GNU ac_path_SED and select it if it is found.
11184 # Check for GNU $ac_path_SED
11185 case `"$ac_path_SED" --version 2>&1` in
11187 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11190 $as_echo_n 0123456789 >"conftest.in"
11193 cat "conftest.in" "conftest.in" >"conftest.tmp"
11194 mv "conftest.tmp" "conftest.in"
11195 cp "conftest.in" "conftest.nl"
11196 $as_echo '' >> "conftest.nl"
11197 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11199 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11200 if test $ac_count -gt ${ac_path_SED_max-0}; then
11201 # Best one so far, save it but keep looking for a better one
11202 ac_cv_path_SED
="$ac_path_SED"
11203 ac_path_SED_max
=$ac_count
11205 # 10*(2^10) chars as input seems more than enough
11206 test $ac_count -gt 10 && break
11208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11211 $ac_path_SED_found && break 3
11216 if test -z "$ac_cv_path_SED"; then
11217 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11220 ac_cv_path_SED
=$SED
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11225 $as_echo "$ac_cv_path_SED" >&6; }
11226 SED
="$ac_cv_path_SED"
11229 test -z "$SED" && SED
=sed
11230 Xsed
="$SED -e 1s/^X//"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11243 $as_echo_n "checking for fgrep... " >&6; }
11244 if test "${ac_cv_path_FGREP+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11247 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11248 then ac_cv_path_FGREP
="$GREP -F"
11250 if test -z "$FGREP"; then
11251 ac_path_FGREP_found
=false
11252 # Loop through the user's path and test for each of PROGNAME-LIST
11253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11254 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11257 test -z "$as_dir" && as_dir
=.
11258 for ac_prog
in fgrep
; do
11259 for ac_exec_ext
in '' $ac_executable_extensions; do
11260 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11261 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11262 # Check for GNU ac_path_FGREP and select it if it is found.
11263 # Check for GNU $ac_path_FGREP
11264 case `"$ac_path_FGREP" --version 2>&1` in
11266 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11269 $as_echo_n 0123456789 >"conftest.in"
11272 cat "conftest.in" "conftest.in" >"conftest.tmp"
11273 mv "conftest.tmp" "conftest.in"
11274 cp "conftest.in" "conftest.nl"
11275 $as_echo 'FGREP' >> "conftest.nl"
11276 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11277 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11278 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11279 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11280 # Best one so far, save it but keep looking for a better one
11281 ac_cv_path_FGREP
="$ac_path_FGREP"
11282 ac_path_FGREP_max
=$ac_count
11284 # 10*(2^10) chars as input seems more than enough
11285 test $ac_count -gt 10 && break
11287 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11290 $ac_path_FGREP_found && break 3
11295 if test -z "$ac_cv_path_FGREP"; then
11296 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11299 ac_cv_path_FGREP
=$FGREP
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11305 $as_echo "$ac_cv_path_FGREP" >&6; }
11306 FGREP
="$ac_cv_path_FGREP"
11309 test -z "$GREP" && GREP
=grep
11329 # Check whether --with-gnu-ld was given.
11330 if test "${with_gnu_ld+set}" = set; then :
11331 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11337 if test "$GCC" = yes; then
11338 # Check if gcc -print-prog-name=ld gives a path.
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11340 $as_echo_n "checking for ld used by $CC... " >&6; }
11343 # gcc leaves a trailing carriage return which upsets mingw
11344 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11346 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11349 # Accept absolute paths.
11351 re_direlt
='/[^/][^/]*/\.\./'
11352 # Canonicalize the pathname of ld
11353 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11354 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11355 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11357 test -z "$LD" && LD
="$ac_prog"
11360 # If it fails, then pretend we aren't using GCC.
11364 # If it is relative, then search for the first ld in PATH.
11365 with_gnu_ld
=unknown
11368 elif test "$with_gnu_ld" = yes; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11370 $as_echo_n "checking for GNU ld... " >&6; }
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11373 $as_echo_n "checking for non-GNU ld... " >&6; }
11375 if test "${lt_cv_path_LD+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11378 if test -z "$LD"; then
11379 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11380 for ac_dir
in $PATH; do
11382 test -z "$ac_dir" && ac_dir
=.
11383 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11384 lt_cv_path_LD
="$ac_dir/$ac_prog"
11385 # Check to see if the program is GNU ld. I'd rather use --version,
11386 # but apparently some variants of GNU ld only accept -v.
11387 # Break only if it was the GNU/non-GNU ld that we prefer.
11388 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11389 *GNU
* |
*'with BFD'*)
11390 test "$with_gnu_ld" != no
&& break
11393 test "$with_gnu_ld" != yes && break
11400 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11404 LD
="$lt_cv_path_LD"
11405 if test -n "$LD"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11407 $as_echo "$LD" >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11412 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11415 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11418 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11419 case `$LD -v 2>&1 </dev/null` in
11420 *GNU
* |
*'with BFD'*)
11421 lt_cv_prog_gnu_ld
=yes
11424 lt_cv_prog_gnu_ld
=no
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11429 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11430 with_gnu_ld
=$lt_cv_prog_gnu_ld
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11441 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11442 if test "${lt_cv_path_NM+set}" = set; then :
11443 $as_echo_n "(cached) " >&6
11445 if test -n "$NM"; then
11446 # Let the user override the test.
11447 lt_cv_path_NM
="$NM"
11449 lt_nm_to_check
="${ac_tool_prefix}nm"
11450 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11451 lt_nm_to_check
="$lt_nm_to_check nm"
11453 for lt_tmp_nm
in $lt_nm_to_check; do
11454 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11455 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11457 test -z "$ac_dir" && ac_dir
=.
11458 tmp_nm
="$ac_dir/$lt_tmp_nm"
11459 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11460 # Check to see if the nm accepts a BSD-compat flag.
11461 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11462 # nm: unknown option "B" ignored
11463 # Tru64's nm complains that /dev/null is an invalid object file
11464 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11465 */dev
/null
* |
*'Invalid file or object type'*)
11466 lt_cv_path_NM
="$tmp_nm -B"
11470 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11472 lt_cv_path_NM
="$tmp_nm -p"
11476 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11477 continue # so that we can try to find one that supports BSD flags
11486 : ${lt_cv_path_NM=no}
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11490 $as_echo "$lt_cv_path_NM" >&6; }
11491 if test "$lt_cv_path_NM" != "no"; then
11492 NM
="$lt_cv_path_NM"
11494 # Didn't find any BSD compatible name lister, look for dumpbin.
11495 if test -n "$DUMPBIN"; then :
11496 # Let the user override the test.
11498 if test -n "$ac_tool_prefix"; then
11499 for ac_prog
in dumpbin
"link -dump"
11501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11502 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11508 if test -n "$DUMPBIN"; then
11509 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11512 for as_dir
in $PATH
11515 test -z "$as_dir" && as_dir
=.
11516 for ac_exec_ext
in '' $ac_executable_extensions; do
11517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11518 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 DUMPBIN
=$ac_cv_prog_DUMPBIN
11529 if test -n "$DUMPBIN"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11531 $as_echo "$DUMPBIN" >&6; }
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11538 test -n "$DUMPBIN" && break
11541 if test -z "$DUMPBIN"; then
11542 ac_ct_DUMPBIN
=$DUMPBIN
11543 for ac_prog
in dumpbin
"link -dump"
11545 # Extract the first word of "$ac_prog", so it can be a program name with args.
11546 set dummy
$ac_prog; ac_word
=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11552 if test -n "$ac_ct_DUMPBIN"; then
11553 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11556 for as_dir
in $PATH
11559 test -z "$as_dir" && as_dir
=.
11560 for ac_exec_ext
in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11573 if test -n "$ac_ct_DUMPBIN"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11575 $as_echo "$ac_ct_DUMPBIN" >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11582 test -n "$ac_ct_DUMPBIN" && break
11585 if test "x$ac_ct_DUMPBIN" = x
; then
11588 case $cross_compiling:$ac_tool_warned in
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11592 ac_tool_warned
=yes ;;
11594 DUMPBIN
=$ac_ct_DUMPBIN
11598 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11600 DUMPBIN
="$DUMPBIN -symbols"
11608 if test "$DUMPBIN" != ":"; then
11612 test -z "$NM" && NM
=nm
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11620 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11621 if test "${lt_cv_nm_interface+set}" = set; then :
11622 $as_echo_n "(cached) " >&6
11624 lt_cv_nm_interface
="BSD nm"
11625 echo "int some_variable = 0;" > conftest.
$ac_ext
11626 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11627 (eval "$ac_compile" 2>conftest.err
)
11628 cat conftest.err
>&5
11629 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11630 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11631 cat conftest.err
>&5
11632 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11633 cat conftest.out
>&5
11634 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11635 lt_cv_nm_interface
="MS dumpbin"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11640 $as_echo "$lt_cv_nm_interface" >&6; }
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11643 $as_echo_n "checking whether ln -s works... " >&6; }
11645 if test "$LN_S" = "ln -s"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11650 $as_echo "no, using $LN_S" >&6; }
11653 # find the maximum length of command line arguments
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11655 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11656 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11664 # On DJGPP, this test can blow up pretty badly due to problems in libc
11665 # (any single argument exceeding 2000 bytes causes a buffer overrun
11666 # during glob expansion). Even if it were fixed, the result of this
11667 # check would be larger than it should be.
11668 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11672 # Under GNU Hurd, this test is not required because there is
11673 # no limit to the length of command line arguments.
11674 # Libtool will interpret -1 as no limit whatsoever
11675 lt_cv_sys_max_cmd_len
=-1;
11678 cygwin
* | mingw
* | cegcc
*)
11679 # On Win9x/ME, this test blows up -- it succeeds, but takes
11680 # about 5 minutes as the teststring grows exponentially.
11681 # Worse, since 9x/ME are not pre-emptively multitasking,
11682 # you end up with a "frozen" computer, even though with patience
11683 # the test eventually succeeds (with a max line length of 256k).
11684 # Instead, let's just punt: use the minimum linelength reported by
11685 # all of the supported platforms: 8192 (on NT/2K/XP).
11686 lt_cv_sys_max_cmd_len
=8192;
11690 # On MiNT this can take a long time and run out of memory.
11691 lt_cv_sys_max_cmd_len
=8192;
11695 # On AmigaOS with pdksh, this test takes hours, literally.
11696 # So we just punt and use a minimum line length of 8192.
11697 lt_cv_sys_max_cmd_len
=8192;
11700 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11701 # This has been around since 386BSD, at least. Likely further.
11702 if test -x /sbin
/sysctl
; then
11703 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11704 elif test -x /usr
/sbin
/sysctl
; then
11705 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11707 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11709 # And add a safety zone
11710 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11711 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11715 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11716 lt_cv_sys_max_cmd_len
=196608
11720 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11721 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11722 # nice to cause kernel panics so lets avoid the loop below.
11723 # First set a reasonable default.
11724 lt_cv_sys_max_cmd_len
=16384
11726 if test -x /sbin
/sysconfig
; then
11727 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11728 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11733 lt_cv_sys_max_cmd_len
=102400
11735 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11736 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11737 if test -n "$kargmax"; then
11738 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11740 lt_cv_sys_max_cmd_len
=32768
11744 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11745 if test -n "$lt_cv_sys_max_cmd_len"; then
11746 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11747 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11749 # Make teststring a little bigger before we do anything with it.
11750 # a 1K string should be a reasonable start.
11751 for i
in 1 2 3 4 5 6 7 8 ; do
11752 teststring
=$teststring$teststring
11754 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11755 # If test is not a shell built-in, we'll probably end up computing a
11756 # maximum length that is only half of the actual maximum length, but
11758 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11759 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11760 test $i != 17 # 1/2 MB should be enough
11763 teststring
=$teststring$teststring
11765 # Only check the string length outside the loop.
11766 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11768 # Add a significant safety factor because C++ compilers can tack on
11769 # massive amounts of additional arguments before passing them to the
11770 # linker. It appears as though 1/2 is a usable value.
11771 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11778 if test -n $lt_cv_sys_max_cmd_len ; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11780 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11783 $as_echo "none" >&6; }
11785 max_cmd_len
=$lt_cv_sys_max_cmd_len
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11797 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11798 # Try some XSI features
11800 ( _lt_dummy
="a/b/c"
11801 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11803 && eval 'test $(( 1 + 1 )) -eq 2 \
11804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11807 $as_echo "$xsi_shell" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11811 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11813 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11815 && lt_shell_append=yes
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11817 $as_echo "$lt_shell_append" >&6; }
11820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11830 # test EBCDIC or ASCII
11831 case `echo X|tr X '\101'` in
11832 A) # ASCII based system
11833 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11834 lt_SP2NL='tr \040 \012'
11835 lt_NL2SP='tr \015\012 \040\040'
11837 *) # EBCDIC based system
11838 lt_SP2NL='tr \100 \n'
11839 lt_NL2SP='tr \r\n \100\100'
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11852 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11853 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11854 $as_echo_n "(cached
) " >&6
11856 lt_cv_ld_reload_flag='-r'
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11859 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11860 reload_flag=$lt_cv_ld_reload_flag
11861 case $reload_flag in
11863 *) reload_flag=" $reload_flag" ;;
11865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11868 if test "$GCC" = yes; then
11869 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11884 if test -n "$ac_tool_prefix"; then
11885 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11888 $as_echo_n "checking
for $ac_word...
" >&6; }
11889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11890 $as_echo_n "(cached
) " >&6
11892 if test -n "$OBJDUMP"; then
11893 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11912 OBJDUMP=$ac_cv_prog_OBJDUMP
11913 if test -n "$OBJDUMP"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11915 $as_echo "$OBJDUMP" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11918 $as_echo "no
" >&6; }
11923 if test -z "$ac_cv_prog_OBJDUMP"; then
11924 ac_ct_OBJDUMP=$OBJDUMP
11925 # Extract the first word of "objdump
", so it can be a program name with args.
11926 set dummy objdump; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11928 $as_echo_n "checking
for $ac_word...
" >&6; }
11929 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11930 $as_echo_n "(cached
) " >&6
11932 if test -n "$ac_ct_OBJDUMP"; then
11933 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH
11939 test -z "$as_dir" && as_dir=.
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11943 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11952 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11953 if test -n "$ac_ct_OBJDUMP"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11955 $as_echo "$ac_ct_OBJDUMP" >&6; }
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11958 $as_echo "no
" >&6; }
11961 if test "x
$ac_ct_OBJDUMP" = x; then
11964 case $cross_compiling:$ac_tool_warned in
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11967 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11968 ac_tool_warned=yes ;;
11970 OBJDUMP=$ac_ct_OBJDUMP
11973 OBJDUMP="$ac_cv_prog_OBJDUMP"
11976 test -z "$OBJDUMP" && OBJDUMP=objdump
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11987 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11988 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11989 $as_echo_n "(cached
) " >&6
11991 lt_cv_file_magic_cmd='$MAGIC_CMD'
11992 lt_cv_file_magic_test_file=
11993 lt_cv_deplibs_check_method='unknown'
11994 # Need to set the preceding variable on all platforms that support
11995 # interlibrary dependencies.
11996 # 'none' -- dependencies not supported.
11997 # `unknown' -- same as none, but documents that we really don't know.
11998 # 'pass_all' -- all dependencies passed with no checks.
11999 # 'test_compile' -- check by making test program.
12000 # 'file_magic [[regex]]' -- check by looking for files in library path
12001 # which responds to the $file_magic_cmd with a given extended regex.
12002 # If you have `file' or equivalent on your system and you're not sure
12003 # whether `pass_all' will *always* work, you probably want this one.
12007 lt_cv_deplibs_check_method=pass_all
12011 lt_cv_deplibs_check_method=pass_all
12015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12016 lt_cv_file_magic_cmd='/usr/bin/file -L'
12017 lt_cv_file_magic_test_file=/shlib/libc.so
12021 # func_win32_libid is a shell function defined in ltmain.sh
12022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12023 lt_cv_file_magic_cmd='func_win32_libid'
12027 # Base MSYS/MinGW do not provide the 'file' command needed by
12028 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12029 # unless we find 'file', for example because we are cross-compiling.
12030 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12031 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12033 lt_cv_file_magic_cmd='func_win32_libid'
12035 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12036 lt_cv_file_magic_cmd='$OBJDUMP -f'
12041 # use the weaker test based on 'objdump'. See mingw*.
12042 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12043 lt_cv_file_magic_cmd='$OBJDUMP -f'
12046 darwin* | rhapsody*)
12047 lt_cv_deplibs_check_method=pass_all
12050 freebsd* | dragonfly*)
12051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12054 # Not sure whether the presence of OpenBSD here was a mistake.
12055 # Let's accept both of them until this is cleared up.
12056 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12057 lt_cv_file_magic_cmd=/usr/bin/file
12058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12062 lt_cv_deplibs_check_method=pass_all
12067 lt_cv_deplibs_check_method=pass_all
12071 lt_cv_deplibs_check_method=pass_all
12074 hpux10.20* | hpux11*)
12075 lt_cv_file_magic_cmd=/usr/bin/file
12078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12079 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12082 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]'
12083 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12087 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12093 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12097 irix5* | irix6* | nonstopux*)
12099 *-32|*"-32 ") libmagic=32-bit;;
12100 *-n32|*"-n32 ") libmagic=N32;;
12101 *-64|*"-64 ") libmagic=64-bit;;
12102 *) libmagic=never-match;;
12104 lt_cv_deplibs_check_method=pass_all
12107 # This must be Linux ELF.
12108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12109 lt_cv_deplibs_check_method=pass_all
12113 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12122 lt_cv_file_magic_cmd=/usr/bin/file
12123 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12127 lt_cv_deplibs_check_method=pass_all
12131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12138 osf3* | osf4* | osf5*)
12139 lt_cv_deplibs_check_method=pass_all
12143 lt_cv_deplibs_check_method=pass_all
12147 lt_cv_deplibs_check_method=pass_all
12150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12151 lt_cv_deplibs_check_method=pass_all
12155 case $host_vendor in
12157 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]'
12158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12161 lt_cv_deplibs_check_method=pass_all
12164 lt_cv_file_magic_cmd='/bin/file'
12165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12168 lt_cv_file_magic_cmd='/bin/file'
12169 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12170 lt_cv_file_magic_test_file=/lib/libc.so
12173 lt_cv_deplibs_check_method=pass_all
12176 lt_cv_deplibs_check_method=pass_all
12182 lt_cv_deplibs_check_method=pass_all
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12188 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12189 file_magic_cmd=$lt_cv_file_magic_cmd
12190 deplibs_check_method=$lt_cv_deplibs_check_method
12191 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12204 if test -n "$ac_tool_prefix"; then
12205 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12206 set dummy ${ac_tool_prefix}ar; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12208 $as_echo_n "checking
for $ac_word...
" >&6; }
12209 if test "${ac_cv_prog_AR+set}" = set; then :
12210 $as_echo_n "(cached
) " >&6
12212 if test -n "$AR"; then
12213 ac_cv_prog_AR="$AR" # Let the user override the test.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_prog_AR="${ac_tool_prefix}ar"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12233 if test -n "$AR"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12235 $as_echo "$AR" >&6; }
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12238 $as_echo "no
" >&6; }
12243 if test -z "$ac_cv_prog_AR"; then
12245 # Extract the first word of "ar", so it can be a program name with args.
12246 set dummy ar; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12248 $as_echo_n "checking
for $ac_word...
" >&6; }
12249 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12250 $as_echo_n "(cached
) " >&6
12252 if test -n "$ac_ct_AR"; then
12253 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_prog_ac_ct_AR="ar"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12272 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12273 if test -n "$ac_ct_AR"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12275 $as_echo "$ac_ct_AR" >&6; }
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12278 $as_echo "no
" >&6; }
12281 if test "x
$ac_ct_AR" = x; then
12284 case $cross_compiling:$ac_tool_warned in
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12287 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12288 ac_tool_warned=yes ;;
12293 AR="$ac_cv_prog_AR"
12296 test -z "$AR" && AR=ar
12297 test -z "$AR_FLAGS" && AR_FLAGS=cru
12309 if test -n "$ac_tool_prefix"; then
12310 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12311 set dummy ${ac_tool_prefix}strip; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12313 $as_echo_n "checking
for $ac_word...
" >&6; }
12314 if test "${ac_cv_prog_STRIP+set}" = set; then :
12315 $as_echo_n "(cached
) " >&6
12317 if test -n "$STRIP"; then
12318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12337 STRIP=$ac_cv_prog_STRIP
12338 if test -n "$STRIP"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12340 $as_echo "$STRIP" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12343 $as_echo "no
" >&6; }
12348 if test -z "$ac_cv_prog_STRIP"; then
12350 # Extract the first word of "strip
", so it can be a program name with args.
12351 set dummy strip; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12353 $as_echo_n "checking
for $ac_word...
" >&6; }
12354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12355 $as_echo_n "(cached
) " >&6
12357 if test -n "$ac_ct_STRIP"; then
12358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12367 ac_cv_prog_ac_ct_STRIP="strip
"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12378 if test -n "$ac_ct_STRIP"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12380 $as_echo "$ac_ct_STRIP" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12383 $as_echo "no
" >&6; }
12386 if test "x
$ac_ct_STRIP" = x; then
12389 case $cross_compiling:$ac_tool_warned in
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12392 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12393 ac_tool_warned=yes ;;
12398 STRIP="$ac_cv_prog_STRIP"
12401 test -z "$STRIP" && STRIP=:
12408 if test -n "$ac_tool_prefix"; then
12409 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12412 $as_echo_n "checking
for $ac_word...
" >&6; }
12413 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12414 $as_echo_n "(cached
) " >&6
12416 if test -n "$RANLIB"; then
12417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12436 RANLIB=$ac_cv_prog_RANLIB
12437 if test -n "$RANLIB"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12439 $as_echo "$RANLIB" >&6; }
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12442 $as_echo "no
" >&6; }
12447 if test -z "$ac_cv_prog_RANLIB"; then
12448 ac_ct_RANLIB=$RANLIB
12449 # Extract the first word of "ranlib
", so it can be a program name with args.
12450 set dummy ranlib; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12452 $as_echo_n "checking
for $ac_word...
" >&6; }
12453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12454 $as_echo_n "(cached
) " >&6
12456 if test -n "$ac_ct_RANLIB"; then
12457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12477 if test -n "$ac_ct_RANLIB"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12479 $as_echo "$ac_ct_RANLIB" >&6; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12482 $as_echo "no
" >&6; }
12485 if test "x
$ac_ct_RANLIB" = x; then
12488 case $cross_compiling:$ac_tool_warned in
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12491 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12492 ac_tool_warned=yes ;;
12494 RANLIB=$ac_ct_RANLIB
12497 RANLIB="$ac_cv_prog_RANLIB"
12500 test -z "$RANLIB" && RANLIB=:
12507 # Determine commands to create old-style static archives.
12508 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12509 old_postinstall_cmds='chmod 644 $oldlib'
12510 old_postuninstall_cmds=
12512 if test -n "$RANLIB"; then
12515 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12518 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12521 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12526 lock_old_archive_extraction=yes ;;
12528 lock_old_archive_extraction=no ;;
12569 # If no C compiler was specified, use CC.
12572 # If no C compiler flags were specified, use CFLAGS.
12573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12575 # Allow CC to be a program name with arguments.
12579 # Check for command to grab the raw symbol name followed by C symbol from nm.
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12581 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12582 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12583 $as_echo_n "(cached
) " >&6
12586 # These are sane defaults that work on at least a few old systems.
12587 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12589 # Character class describing NM global symbol codes.
12590 symcode='[BCDEGRST]'
12592 # Regexp to match symbols that can be accessed directly from C.
12593 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12595 # Define system-specific variables.
12600 cygwin* | mingw* | pw32* | cegcc*)
12601 symcode='[ABCDGISTW]'
12604 if test "$host_cpu" = ia64; then
12605 symcode='[ABCDEGRST]'
12608 irix* | nonstopux*)
12609 symcode='[BCDEGRST]'
12612 symcode='[BCDEGQRST]'
12623 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12631 # If we're using GNU nm, then use its standard symbol codes.
12632 case `$NM -V 2>&1` in
12633 *GNU* | *'with BFD'*)
12634 symcode='[ABCDGIRSTW]' ;;
12637 # Transform an extracted symbol line into a proper C declaration.
12638 # Some systems (esp. on ia64) link data and code symbols differently,
12639 # so use this general approach.
12640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12642 # Transform an extracted symbol line into symbol name and symbol address
12643 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12644 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'"
12646 # Handle CRLF in mingw tool chain
12650 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12654 # Try without a prefix underscore, then with it.
12655 for ac_symprfx in "" "_
"; do
12657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12658 symxfrm="\\1 $ac_symprfx\\2 \\2"
12660 # Write the raw and C identifiers.
12661 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12662 # Fake it for dumpbin and say T for any non-static function
12663 # and D for any global variable.
12664 # Also find C++ and __fastcall symbols from MSVC++,
12665 # which start with @ or ?.
12666 lt_cv_sys_global_symbol_pipe="$AWK '"\
12667 " {last_section=section; section=\$ 3};"\
12668 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12669 " \$ 0!~/External *\|/{next};"\
12670 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12671 " {if(hide[section]) next};"\
12672 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12673 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12674 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12675 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12676 " ' prfx
=^
$ac_symprfx"
12678 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12681 # Check to see that the pipe works correctly.
12685 cat > conftest.$ac_ext <<_LT_EOF
12690 void nm_test_func(void);
12691 void nm_test_func(void){}
12695 int main(){nm_test_var='a';nm_test_func();return(0);}
12698 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12699 (eval $ac_compile) 2>&5
12701 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12702 test $ac_status = 0; }; then
12703 # Now try to grab the symbols.
12705 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12706 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12708 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12709 test $ac_status = 0; } && test -s "$nlist"; then
12710 # Try sorting and uniquifying the output.
12711 if sort "$nlist" | uniq > "$nlist"T; then
12712 mv -f "$nlist"T "$nlist"
12717 # Make sure that we snagged all the symbols we need.
12718 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12719 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12720 cat <<_LT_EOF > conftest.$ac_ext
12726 # Now generate the symbol file.
12727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12729 cat <<_LT_EOF >> conftest.$ac_ext
12731 /* The mapping between symbol names and symbols. */
12736 lt__PROGRAM__LTX_preloaded_symbols[] =
12738 { "@PROGRAM@
", (void *) 0 },
12740 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12741 cat <<\_LT_EOF >> conftest.$ac_ext
12745 /* This works around a problem in FreeBSD linker */
12746 #ifdef FREEBSD_WORKAROUND
12747 static const void *lt_preloaded_setup() {
12748 return lt__PROGRAM__LTX_preloaded_symbols;
12756 # Now try linking the two files.
12757 mv conftest.$ac_objext conftstm.$ac_objext
12758 lt_save_LIBS="$LIBS"
12759 lt_save_CFLAGS="$CFLAGS"
12760 LIBS="conftstm.
$ac_objext"
12761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12762 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12763 (eval $ac_link) 2>&5
12765 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12766 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12769 LIBS="$lt_save_LIBS"
12770 CFLAGS="$lt_save_CFLAGS"
12772 echo "cannot
find nm_test_func
in $nlist" >&5
12775 echo "cannot
find nm_test_var
in $nlist" >&5
12778 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12781 echo "$progname: failed program was
:" >&5
12782 cat conftest.$ac_ext >&5
12784 rm -rf conftest* conftst*
12786 # Do not use the global_symbol_pipe unless it works.
12787 if test "$pipe_works" = yes; then
12790 lt_cv_sys_global_symbol_pipe=
12796 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12797 lt_cv_sys_global_symbol_to_cdecl=
12799 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12801 $as_echo "failed
" >&6; }
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12804 $as_echo "ok
" >&6; }
12828 # Check whether --enable-libtool-lock was given.
12829 if test "${enable_libtool_lock+set}" = set; then :
12830 enableval=$enable_libtool_lock;
12833 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12835 # Some flags need to be propagated to the compiler or linker for good
12839 # Find out which ABI we are using.
12840 echo 'int i;' > conftest.$ac_ext
12841 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12842 (eval $ac_compile) 2>&5
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12845 test $ac_status = 0; }; then
12846 case `/usr/bin/file conftest.$ac_objext` in
12848 HPUX_IA64_MODE="32"
12851 HPUX_IA64_MODE="64"
12858 # Find out which ABI we are using.
12859 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
12860 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12861 (eval $ac_compile) 2>&5
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12864 test $ac_status = 0; }; then
12865 if test "$lt_cv_prog_gnu_ld" = yes; then
12866 case `/usr/bin/file conftest.$ac_objext` in
12868 LD="${LD-ld} -melf32bsmip"
12871 LD="${LD-ld} -melf32bmipn32"
12874 LD="${LD-ld} -melf64bmip"
12878 case `/usr/bin/file conftest.$ac_objext` in
12894 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12895 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12896 # Find out which ABI we are using.
12897 echo 'int i;' > conftest.$ac_ext
12898 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12899 (eval $ac_compile) 2>&5
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12902 test $ac_status = 0; }; then
12903 case `/usr/bin/file conftest.o` in
12906 x86_64-*kfreebsd*-gnu)
12907 LD="${LD-ld} -m elf_i386_fbsd
"
12910 LD="${LD-ld} -m elf_i386
"
12912 ppc64-*linux*|powerpc64-*linux*)
12913 LD="${LD-ld} -m elf32ppclinux
"
12916 LD="${LD-ld} -m elf_s390
"
12919 LD="${LD-ld} -m elf32_sparc
"
12925 x86_64-*kfreebsd*-gnu)
12926 LD="${LD-ld} -m elf_x86_64_fbsd
"
12929 LD="${LD-ld} -m elf_x86_64
"
12931 ppc*-*linux*|powerpc*-*linux*)
12932 LD="${LD-ld} -m elf64ppc
"
12934 s390*-*linux*|s390*-*tpf*)
12935 LD="${LD-ld} -m elf64_s390
"
12938 LD="${LD-ld} -m elf64_sparc
"
12948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12949 SAVE_CFLAGS="$CFLAGS"
12950 CFLAGS="$CFLAGS -belf"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12952 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12953 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12954 $as_echo_n "(cached
) " >&6
12957 ac_cpp='$CPP $CPPFLAGS'
12958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 lt_cv_cc_needs_belf=yes
12976 lt_cv_cc_needs_belf=no
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12981 ac_cpp='$CPP $CPPFLAGS'
12982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12988 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12989 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12990 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12991 CFLAGS="$SAVE_CFLAGS"
12995 # Find out which ABI we are using.
12996 echo 'int i;' > conftest.$ac_ext
12997 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12998 (eval $ac_compile) 2>&5
13000 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13001 test $ac_status = 0; }; then
13002 case `/usr/bin/file conftest.o` in
13004 case $lt_cv_prog_gnu_ld in
13005 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13007 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13019 need_locks="$enable_libtool_lock"
13023 rhapsody* | darwin*)
13024 if test -n "$ac_tool_prefix"; then
13025 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13026 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13028 $as_echo_n "checking
for $ac_word...
" >&6; }
13029 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13030 $as_echo_n "(cached
) " >&6
13032 if test -n "$DSYMUTIL"; then
13033 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in $PATH
13039 test -z "$as_dir" && as_dir=.
13040 for ac_exec_ext in '' $ac_executable_extensions; do
13041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13042 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13043 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13052 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13053 if test -n "$DSYMUTIL"; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13055 $as_echo "$DSYMUTIL" >&6; }
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13058 $as_echo "no
" >&6; }
13063 if test -z "$ac_cv_prog_DSYMUTIL"; then
13064 ac_ct_DSYMUTIL=$DSYMUTIL
13065 # Extract the first word of "dsymutil
", so it can be a program name with args.
13066 set dummy dsymutil; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13068 $as_echo_n "checking
for $ac_word...
" >&6; }
13069 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13070 $as_echo_n "(cached
) " >&6
13072 if test -n "$ac_ct_DSYMUTIL"; then
13073 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13082 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13092 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13093 if test -n "$ac_ct_DSYMUTIL"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13095 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13098 $as_echo "no
" >&6; }
13101 if test "x
$ac_ct_DSYMUTIL" = x; then
13104 case $cross_compiling:$ac_tool_warned in
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13107 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13108 ac_tool_warned=yes ;;
13110 DSYMUTIL=$ac_ct_DSYMUTIL
13113 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13116 if test -n "$ac_tool_prefix"; then
13117 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13118 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13120 $as_echo_n "checking
for $ac_word...
" >&6; }
13121 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13122 $as_echo_n "(cached
) " >&6
13124 if test -n "$NMEDIT"; then
13125 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13144 NMEDIT=$ac_cv_prog_NMEDIT
13145 if test -n "$NMEDIT"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13147 $as_echo "$NMEDIT" >&6; }
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13150 $as_echo "no
" >&6; }
13155 if test -z "$ac_cv_prog_NMEDIT"; then
13156 ac_ct_NMEDIT=$NMEDIT
13157 # Extract the first word of "nmedit
", so it can be a program name with args.
13158 set dummy nmedit; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13160 $as_echo_n "checking
for $ac_word...
" >&6; }
13161 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13162 $as_echo_n "(cached
) " >&6
13164 if test -n "$ac_ct_NMEDIT"; then
13165 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13184 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13185 if test -n "$ac_ct_NMEDIT"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13187 $as_echo "$ac_ct_NMEDIT" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13190 $as_echo "no
" >&6; }
13193 if test "x
$ac_ct_NMEDIT" = x; then
13196 case $cross_compiling:$ac_tool_warned in
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13199 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13200 ac_tool_warned=yes ;;
13202 NMEDIT=$ac_ct_NMEDIT
13205 NMEDIT="$ac_cv_prog_NMEDIT"
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13212 $as_echo_n "checking
for $ac_word...
" >&6; }
13213 if test "${ac_cv_prog_LIPO+set}" = set; then :
13214 $as_echo_n "(cached
) " >&6
13216 if test -n "$LIPO"; then
13217 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13236 LIPO=$ac_cv_prog_LIPO
13237 if test -n "$LIPO"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13239 $as_echo "$LIPO" >&6; }
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13242 $as_echo "no
" >&6; }
13247 if test -z "$ac_cv_prog_LIPO"; then
13249 # Extract the first word of "lipo
", so it can be a program name with args.
13250 set dummy lipo; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13252 $as_echo_n "checking
for $ac_word...
" >&6; }
13253 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13254 $as_echo_n "(cached
) " >&6
13256 if test -n "$ac_ct_LIPO"; then
13257 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_LIPO="lipo
"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13276 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13277 if test -n "$ac_ct_LIPO"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13279 $as_echo "$ac_ct_LIPO" >&6; }
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13282 $as_echo "no
" >&6; }
13285 if test "x
$ac_ct_LIPO" = x; then
13288 case $cross_compiling:$ac_tool_warned in
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13291 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13292 ac_tool_warned=yes ;;
13297 LIPO="$ac_cv_prog_LIPO"
13300 if test -n "$ac_tool_prefix"; then
13301 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13302 set dummy ${ac_tool_prefix}otool; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13304 $as_echo_n "checking
for $ac_word...
" >&6; }
13305 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13306 $as_echo_n "(cached
) " >&6
13308 if test -n "$OTOOL"; then
13309 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13328 OTOOL=$ac_cv_prog_OTOOL
13329 if test -n "$OTOOL"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13331 $as_echo "$OTOOL" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13334 $as_echo "no
" >&6; }
13339 if test -z "$ac_cv_prog_OTOOL"; then
13341 # Extract the first word of "otool
", so it can be a program name with args.
13342 set dummy otool; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13344 $as_echo_n "checking
for $ac_word...
" >&6; }
13345 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13346 $as_echo_n "(cached
) " >&6
13348 if test -n "$ac_ct_OTOOL"; then
13349 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358 ac_cv_prog_ac_ct_OTOOL="otool
"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13368 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13369 if test -n "$ac_ct_OTOOL"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13371 $as_echo "$ac_ct_OTOOL" >&6; }
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13374 $as_echo "no
" >&6; }
13377 if test "x
$ac_ct_OTOOL" = x; then
13380 case $cross_compiling:$ac_tool_warned in
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13383 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13384 ac_tool_warned=yes ;;
13389 OTOOL="$ac_cv_prog_OTOOL"
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13394 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13396 $as_echo_n "checking
for $ac_word...
" >&6; }
13397 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13398 $as_echo_n "(cached
) " >&6
13400 if test -n "$OTOOL64"; then
13401 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13410 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13420 OTOOL64=$ac_cv_prog_OTOOL64
13421 if test -n "$OTOOL64"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13423 $as_echo "$OTOOL64" >&6; }
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13426 $as_echo "no
" >&6; }
13431 if test -z "$ac_cv_prog_OTOOL64"; then
13432 ac_ct_OTOOL64=$OTOOL64
13433 # Extract the first word of "otool64
", so it can be a program name with args.
13434 set dummy otool64; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13436 $as_echo_n "checking
for $ac_word...
" >&6; }
13437 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13438 $as_echo_n "(cached
) " >&6
13440 if test -n "$ac_ct_OTOOL64"; then
13441 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13450 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13460 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13461 if test -n "$ac_ct_OTOOL64"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13463 $as_echo "$ac_ct_OTOOL64" >&6; }
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13466 $as_echo "no
" >&6; }
13469 if test "x
$ac_ct_OTOOL64" = x; then
13472 case $cross_compiling:$ac_tool_warned in
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13475 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13476 ac_tool_warned=yes ;;
13478 OTOOL64=$ac_ct_OTOOL64
13481 OTOOL64="$ac_cv_prog_OTOOL64"
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13511 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13512 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13513 $as_echo_n "(cached
) " >&6
13515 lt_cv_apple_cc_single_mod=no
13516 if test -z "${LT_MULTI_MODULE}"; then
13517 # By default we will add the -single_module flag. You can override
13518 # by either setting the environment variable LT_MULTI_MODULE
13519 # non-empty at configure time, or by adding -multi_module to the
13521 rm -rf libconftest.dylib*
13522 echo "int foo
(void
){return 1;}" > conftest.c
13523 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13524 -dynamiclib -Wl,-single_module conftest.c
" >&5
13525 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13526 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13528 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13529 lt_cv_apple_cc_single_mod=yes
13531 cat conftest.err >&5
13533 rm -rf libconftest.dylib*
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13538 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13540 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13541 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13542 $as_echo_n "(cached
) " >&6
13544 lt_cv_ld_exported_symbols_list=no
13545 save_LDFLAGS=$LDFLAGS
13546 echo "_main
" > conftest.sym
13547 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 lt_cv_ld_exported_symbols_list=yes
13562 lt_cv_ld_exported_symbols_list=no
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LDFLAGS="$save_LDFLAGS"
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13570 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13572 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13573 if test "${lt_cv_ld_force_load+set}" = set; then :
13574 $as_echo_n "(cached
) " >&6
13576 lt_cv_ld_force_load=no
13577 cat > conftest.c << _LT_EOF
13578 int forced_loaded() { return 2;}
13580 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13581 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13582 echo "$AR cru libconftest.a conftest.o
" >&5
13583 $AR cru libconftest.a conftest.o 2>&5
13584 cat > conftest.c << _LT_EOF
13585 int main() { return 0;}
13587 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13588 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13590 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13591 lt_cv_ld_force_load=yes
13593 cat conftest.err >&5
13595 rm -f conftest.err libconftest.a conftest conftest.c
13596 rm -rf conftest.dSYM
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13600 $as_echo "$lt_cv_ld_force_load" >&6; }
13602 rhapsody* | darwin1.[012])
13603 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13605 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13606 darwin*) # darwin 5.x on
13607 # if running on 10.5 or later, the deployment target defaults
13608 # to the OS version, if on x86, and 10.4, the deployment
13609 # target defaults to 10.4. Don't you love it?
13610 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13611 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13612 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13614 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13620 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13621 _lt_dar_single_mod='$single_module'
13623 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13624 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13626 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13628 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13629 _lt_dsymutil='~$DSYMUTIL $lib || :'
13636 for ac_header in dlfcn.h
13638 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13639 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_DLFCN_H 1
13659 enable_win32_dll=no
13662 # Check whether --enable-shared was given.
13663 if test "${enable_shared+set}" = set; then :
13664 enableval=$enable_shared; p=${PACKAGE-default}
13666 yes) enable_shared=yes ;;
13667 no) enable_shared=no ;;
13670 # Look at the argument we got. We use all the common list separators.
13671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13672 for pkg in $enableval; do
13674 if test "X
$pkg" = "X
$p"; then
13693 # Check whether --enable-static was given.
13694 if test "${enable_static+set}" = set; then :
13695 enableval=$enable_static; p=${PACKAGE-default}
13697 yes) enable_static=yes ;;
13698 no) enable_static=no ;;
13701 # Look at the argument we got. We use all the common list separators.
13702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13703 for pkg in $enableval; do
13705 if test "X
$pkg" = "X
$p"; then
13725 # Check whether --with-pic was given.
13726 if test "${with_pic+set}" = set; then :
13727 withval=$with_pic; pic_mode="$withval"
13733 test -z "$pic_mode" && pic_mode=default
13741 # Check whether --enable-fast-install was given.
13742 if test "${enable_fast_install+set}" = set; then :
13743 enableval=$enable_fast_install; p=${PACKAGE-default}
13745 yes) enable_fast_install=yes ;;
13746 no) enable_fast_install=no ;;
13748 enable_fast_install=no
13749 # Look at the argument we got. We use all the common list separators.
13750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13751 for pkg in $enableval; do
13753 if test "X
$pkg" = "X
$p"; then
13754 enable_fast_install=yes
13761 enable_fast_install=yes
13774 # This can be used to rebuild libtool when needed
13775 LIBTOOL_DEPS="$ltmain"
13777 # Always use our own libtool.
13778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13805 test -z "$LN_S" && LN_S="ln -s"
13820 if test -n "${ZSH_VERSION+set}" ; then
13821 setopt NO_GLOB_SUBST
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13825 $as_echo_n "checking
for objdir...
" >&6; }
13826 if test "${lt_cv_objdir+set}" = set; then :
13827 $as_echo_n "(cached
) " >&6
13829 rm -f .libs 2>/dev/null
13830 mkdir .libs 2>/dev/null
13831 if test -d .libs; then
13834 # MS-DOS does not allow filenames that begin with a dot.
13837 rmdir .libs 2>/dev/null
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13840 $as_echo "$lt_cv_objdir" >&6; }
13841 objdir=$lt_cv_objdir
13847 cat >>confdefs.h <<_ACEOF
13848 #define LT_OBJDIR "$lt_cv_objdir/"
13856 # AIX sometimes has problems with the GCC collect2 program. For some
13857 # reason, if we set the COLLECT_NAMES environment variable, the problems
13858 # vanish in a puff of smoke.
13859 if test "X
${COLLECT_NAMES+set}" != Xset; then
13861 export COLLECT_NAMES
13866 # Global variables:
13868 can_build_shared=yes
13870 # All known linkers require a `.a' archive for static linking (except MSVC,
13871 # which needs '.lib').
13874 with_gnu_ld="$lt_cv_prog_gnu_ld"
13877 old_CFLAGS="$CFLAGS"
13879 # Set sane defaults for various variables
13880 test -z "$CC" && CC=cc
13881 test -z "$LTCC" && LTCC=$CC
13882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13883 test -z "$LD" && LD=ld
13884 test -z "$ac_objext" && ac_objext=o
13886 for cc_temp in $compiler""; do
13888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13894 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
13897 # Only perform the check for file, if the check method requires it
13898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13899 case $deplibs_check_method in
13901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
13903 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
13904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13905 $as_echo_n "(cached
) " >&6
13909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13912 lt_save_MAGIC_CMD="$MAGIC_CMD"
13913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13914 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13915 for ac_dir in $ac_dummy; do
13917 test -z "$ac_dir" && ac_dir=.
13918 if test -f $ac_dir/${ac_tool_prefix}file; then
13919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13920 if test -n "$file_magic_test_file"; then
13921 case $deplibs_check_method in
13923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13926 $EGREP "$file_magic_regex" > /dev/null; then
13931 *** Warning: the command libtool uses to detect shared libraries,
13932 *** $file_magic_cmd, produces output that libtool cannot recognize.
13933 *** The result is that libtool may fail to recognize shared libraries
13934 *** as such. This will affect the creation of libtool libraries that
13935 *** depend on shared libraries, but programs linked with such libtool
13936 *** libraries will work regardless of this problem. Nevertheless, you
13937 *** may want to report the problem to your system manager and/or to
13938 *** bug-libtool@gnu.org
13948 MAGIC_CMD="$lt_save_MAGIC_CMD"
13953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13954 if test -n "$MAGIC_CMD"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13956 $as_echo "$MAGIC_CMD" >&6; }
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13959 $as_echo "no
" >&6; }
13966 if test -z "$lt_cv_path_MAGIC_CMD"; then
13967 if test -n "$ac_tool_prefix"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
13969 $as_echo_n "checking
for file...
" >&6; }
13970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13971 $as_echo_n "(cached
) " >&6
13975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13978 lt_save_MAGIC_CMD="$MAGIC_CMD"
13979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13980 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13981 for ac_dir in $ac_dummy; do
13983 test -z "$ac_dir" && ac_dir=.
13984 if test -f $ac_dir/file; then
13985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13986 if test -n "$file_magic_test_file"; then
13987 case $deplibs_check_method in
13989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13992 $EGREP "$file_magic_regex" > /dev/null; then
13997 *** Warning: the command libtool uses to detect shared libraries,
13998 *** $file_magic_cmd, produces output that libtool cannot recognize.
13999 *** The result is that libtool may fail to recognize shared libraries
14000 *** as such. This will affect the creation of libtool libraries that
14001 *** depend on shared libraries, but programs linked with such libtool
14002 *** libraries will work regardless of this problem. Nevertheless, you
14003 *** may want to report the problem to your system manager and/or to
14004 *** bug-libtool@gnu.org
14014 MAGIC_CMD="$lt_save_MAGIC_CMD"
14019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14020 if test -n "$MAGIC_CMD"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14022 $as_echo "$MAGIC_CMD" >&6; }
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14025 $as_echo "no
" >&6; }
14038 # Use C for the default configuration in the libtool script
14042 ac_cpp='$CPP $CPPFLAGS'
14043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14048 # Source file extension for C test sources.
14051 # Object file extension for compiled C test sources.
14055 # Code to be used in simple compile tests
14056 lt_simple_compile_test_code="int some_variable
= 0;"
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code='int main(){return(0);}'
14067 # If no C compiler was specified, use CC.
14070 # If no C compiler flags were specified, use CFLAGS.
14071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14073 # Allow CC to be a program name with arguments.
14076 # Save the default compiler, since it gets overwritten when the other
14077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14078 compiler_DEFAULT=$CC
14080 # save warnings/boilerplate of simple test code
14081 ac_outfile=conftest.$ac_objext
14082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14084 _lt_compiler_boilerplate=`cat conftest.err`
14087 ac_outfile=conftest.$ac_objext
14088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14090 _lt_linker_boilerplate=`cat conftest.err`
14095 ## There is no encapsulation within the following macros, do not change
14096 ## the running order or otherwise move them around unless you know exactly
14097 ## what you are doing...
14098 if test -n "$compiler"; then
14100 lt_prog_compiler_no_builtin_flag=
14102 if test "$GCC" = yes; then
14103 case $cc_basename in
14105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14111 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14113 $as_echo_n "(cached
) " >&6
14115 lt_cv_prog_compiler_rtti_exceptions=no
14116 ac_outfile=conftest.$ac_objext
14117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14118 lt_compiler_flag="-fno-rtti -fno-exceptions"
14119 # Insert the option either (1) after the last *FLAGS variable, or
14120 # (2) before a word containing "conftest.
", or (3) at the end.
14121 # Note that $ac_compile itself does not contain backslashes and begins
14122 # with a dollar sign (not a hyphen), so the echo should work correctly.
14123 # The option is referenced via a variable to avoid confusing sed.
14124 lt_compile=`echo "$ac_compile" | $SED \
14125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127 -e 's:$: $lt_compiler_flag:'`
14128 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14129 (eval "$lt_compile" 2>conftest.err)
14131 cat conftest.err >&5
14132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14133 if (exit $ac_status) && test -s "$ac_outfile"; then
14134 # The compiler can only warn and ignore the option if not recognized
14135 # So say no if there are warnings other than the usual output.
14136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14139 lt_cv_prog_compiler_rtti_exceptions=yes
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14161 lt_prog_compiler_wl=
14162 lt_prog_compiler_pic=
14163 lt_prog_compiler_static=
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14166 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14168 if test "$GCC" = yes; then
14169 lt_prog_compiler_wl='-Wl,'
14170 lt_prog_compiler_static='-static'
14174 # All AIX code is PIC.
14175 if test "$host_cpu" = ia64; then
14176 # AIX 5 now supports IA64 processor
14177 lt_prog_compiler_static='-Bstatic'
14184 # see comment about AmigaOS4 .so support
14185 lt_prog_compiler_pic='-fPIC'
14188 # FIXME: we need at least 68020 code to build shared libraries, but
14189 # adding the `-m68020' flag to GCC prevents building anything better,
14191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14197 # PIC is the default for these OSes.
14200 mingw* | cygwin* | pw32* | os2* | cegcc*)
14201 # This hack is so that the source file can tell whether it is being
14202 # built for inclusion in a dll (and should export symbols for example).
14203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14204 # (--disable-auto-import) libraries
14205 lt_prog_compiler_pic='-DDLL_EXPORT'
14208 darwin* | rhapsody*)
14209 # PIC is the default on this platform
14210 # Common symbols not allowed in MH_DYLIB files
14211 lt_prog_compiler_pic='-fno-common'
14215 # PIC is the default for Haiku.
14216 # The "-static" flag exists, but is broken.
14217 lt_prog_compiler_static=
14221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14223 # sets the default TLS model and affects inlining.
14229 lt_prog_compiler_pic='-fPIC'
14235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14236 # Instead, we relocate shared libraries at runtime.
14240 # Just because we use GCC doesn't mean we suddenly get shared libraries
14241 # on systems that don't support them.
14242 lt_prog_compiler_can_build_shared=no
14247 # QNX uses GNU C++, but need to define -shared option too, otherwise
14248 # it will coredump.
14249 lt_prog_compiler_pic='-fPIC -shared'
14253 if test -d /usr/nec; then
14254 lt_prog_compiler_pic=-Kconform_pic
14259 lt_prog_compiler_pic='-fPIC'
14263 case $cc_basename in
14264 nvcc*) # Cuda Compiler Driver 2.2
14265 lt_prog_compiler_wl='-Xlinker '
14266 lt_prog_compiler_pic='-Xcompiler -fPIC'
14270 # PORTME Check for flag to pass linker flags through the system compiler.
14273 lt_prog_compiler_wl='-Wl,'
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
14276 lt_prog_compiler_static='-Bstatic'
14278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14282 mingw* | cygwin* | pw32* | os2* | cegcc*)
14283 # This hack is so that the source file can tell whether it is being
14284 # built for inclusion in a dll (and should export symbols for example).
14285 lt_prog_compiler_pic='-DDLL_EXPORT'
14288 hpux9* | hpux10* | hpux11*)
14289 lt_prog_compiler_wl='-Wl,'
14290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14291 # not for PA HP-UX.
14297 lt_prog_compiler_pic='+Z'
14300 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14301 lt_prog_compiler_static='${wl}-a ${wl}archive'
14304 irix5* | irix6* | nonstopux*)
14305 lt_prog_compiler_wl='-Wl,'
14306 # PIC (with -KPIC) is the default.
14307 lt_prog_compiler_static='-non_shared'
14310 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14311 case $cc_basename in
14312 # old Intel for x86_64 which still supported -KPIC.
14314 lt_prog_compiler_wl='-Wl,'
14315 lt_prog_compiler_pic='-KPIC'
14316 lt_prog_compiler_static='-static'
14318 # icc used to be incompatible with GCC.
14319 # ICC 10 doesn't accept -KPIC any more.
14321 lt_prog_compiler_wl='-Wl,'
14322 lt_prog_compiler_pic='-fPIC'
14323 lt_prog_compiler_static='-static'
14325 # Lahey Fortran 8.1.
14327 lt_prog_compiler_wl='-Wl,'
14328 lt_prog_compiler_pic='--shared'
14329 lt_prog_compiler_static='--static'
14331 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14332 # Portland Group compilers (*not* the Pentium gcc compiler,
14333 # which looks to be a dead project)
14334 lt_prog_compiler_wl='-Wl,'
14335 lt_prog_compiler_pic='-fpic'
14336 lt_prog_compiler_static='-Bstatic'
14339 lt_prog_compiler_wl='-Wl,'
14340 # All Alpha code is PIC.
14341 lt_prog_compiler_static='-non_shared'
14343 xl* | bgxl* | bgf* | mpixl*)
14344 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14345 lt_prog_compiler_wl='-Wl,'
14346 lt_prog_compiler_pic='-qpic'
14347 lt_prog_compiler_static='-qstaticlink'
14350 case `$CC -V 2>&1 | sed 5q` in
14351 *Sun\ F* | *Sun*Fortran*)
14352 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14353 lt_prog_compiler_pic='-KPIC'
14354 lt_prog_compiler_static='-Bstatic'
14355 lt_prog_compiler_wl=''
14359 lt_prog_compiler_pic='-KPIC'
14360 lt_prog_compiler_static='-Bstatic'
14361 lt_prog_compiler_wl='-Wl,'
14369 lt_prog_compiler_pic='-KPIC'
14370 lt_prog_compiler_static='-Bstatic'
14374 # QNX uses GNU C++, but need to define -shared option too, otherwise
14375 # it will coredump.
14376 lt_prog_compiler_pic='-fPIC -shared'
14379 osf3* | osf4* | osf5*)
14380 lt_prog_compiler_wl='-Wl,'
14381 # All OSF/1 code is PIC.
14382 lt_prog_compiler_static='-non_shared'
14386 lt_prog_compiler_static='-non_shared'
14390 lt_prog_compiler_pic='-KPIC'
14391 lt_prog_compiler_static='-Bstatic'
14392 case $cc_basename in
14393 f77* | f90* | f95*)
14394 lt_prog_compiler_wl='-Qoption ld ';;
14396 lt_prog_compiler_wl='-Wl,';;
14401 lt_prog_compiler_wl='-Qoption ld '
14402 lt_prog_compiler_pic='-PIC'
14403 lt_prog_compiler_static='-Bstatic'
14406 sysv4 | sysv4.2uw2* | sysv4.3*)
14407 lt_prog_compiler_wl='-Wl,'
14408 lt_prog_compiler_pic='-KPIC'
14409 lt_prog_compiler_static='-Bstatic'
14413 if test -d /usr/nec ;then
14414 lt_prog_compiler_pic='-Kconform_pic'
14415 lt_prog_compiler_static='-Bstatic'
14419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14420 lt_prog_compiler_wl='-Wl,'
14421 lt_prog_compiler_pic='-KPIC'
14422 lt_prog_compiler_static='-Bstatic'
14426 lt_prog_compiler_wl='-Wl,'
14427 lt_prog_compiler_can_build_shared=no
14431 lt_prog_compiler_pic='-pic'
14432 lt_prog_compiler_static='-Bstatic'
14436 lt_prog_compiler_can_build_shared=no
14442 # For platforms which do not support PIC, -DPIC is meaningless:
14444 lt_prog_compiler_pic=
14447 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14451 $as_echo "$lt_prog_compiler_pic" >&6; }
14459 # Check to make sure the PIC flag actually works.
14461 if test -n "$lt_prog_compiler_pic"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14463 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14464 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14465 $as_echo_n "(cached
) " >&6
14467 lt_cv_prog_compiler_pic_works=no
14468 ac_outfile=conftest.$ac_objext
14469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.
", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 # The option is referenced via a variable to avoid confusing sed.
14476 lt_compile=`echo "$ac_compile" | $SED \
14477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479 -e 's:$: $lt_compiler_flag:'`
14480 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14481 (eval "$lt_compile" 2>conftest.err)
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14485 if (exit $ac_status) && test -s "$ac_outfile"; then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings other than the usual output.
14488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_pic_works=yes
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14498 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14500 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14501 case $lt_prog_compiler_pic in
14503 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14506 lt_prog_compiler_pic=
14507 lt_prog_compiler_can_build_shared=no
14518 # Check to make sure the static flag actually works.
14520 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14522 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14523 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14524 $as_echo_n "(cached
) " >&6
14526 lt_cv_prog_compiler_static_works=no
14527 save_LDFLAGS="$LDFLAGS"
14528 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14530 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531 # The linker can only warn and ignore the option if not recognized
14532 # So say no if there are warnings
14533 if test -s conftest.err; then
14534 # Append any errors to the config.log.
14535 cat conftest.err 1>&5
14536 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538 if diff conftest.exp conftest.er2 >/dev/null; then
14539 lt_cv_prog_compiler_static_works=yes
14542 lt_cv_prog_compiler_static_works=yes
14546 LDFLAGS="$save_LDFLAGS"
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14550 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14552 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14555 lt_prog_compiler_static=
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14565 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14567 $as_echo_n "(cached
) " >&6
14569 lt_cv_prog_compiler_c_o=no
14570 $RM -r conftest 2>/dev/null
14574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14576 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14577 # Insert the option either (1) after the last *FLAGS variable, or
14578 # (2) before a word containing "conftest.
", or (3) at the end.
14579 # Note that $ac_compile itself does not contain backslashes and begins
14580 # with a dollar sign (not a hyphen), so the echo should work correctly.
14581 lt_compile=`echo "$ac_compile" | $SED \
14582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14584 -e 's:$: $lt_compiler_flag:'`
14585 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14586 (eval "$lt_compile" 2>out/conftest.err)
14588 cat out/conftest.err >&5
14589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14592 # The compiler can only warn and ignore the option if not recognized
14593 # So say no if there are warnings
14594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14597 lt_cv_prog_compiler_c_o=yes
14602 # SGI C++ compiler will create directory out/ii_files/ for
14603 # template instantiation
14604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14605 $RM out/* && rmdir out
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14620 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14621 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14622 $as_echo_n "(cached
) " >&6
14624 lt_cv_prog_compiler_c_o=no
14625 $RM -r conftest 2>/dev/null
14629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14631 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14632 # Insert the option either (1) after the last *FLAGS variable, or
14633 # (2) before a word containing "conftest.
", or (3) at the end.
14634 # Note that $ac_compile itself does not contain backslashes and begins
14635 # with a dollar sign (not a hyphen), so the echo should work correctly.
14636 lt_compile=`echo "$ac_compile" | $SED \
14637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14639 -e 's:$: $lt_compiler_flag:'`
14640 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14641 (eval "$lt_compile" 2>out/conftest.err)
14643 cat out/conftest.err >&5
14644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14647 # The compiler can only warn and ignore the option if not recognized
14648 # So say no if there are warnings
14649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14652 lt_cv_prog_compiler_c_o=yes
14657 # SGI C++ compiler will create directory out/ii_files/ for
14658 # template instantiation
14659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14660 $RM out/* && rmdir out
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14672 hard_links="nottested
"
14673 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14674 # do not overwrite the value of need_locks provided by the user
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14676 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14681 ln conftest.a conftest.b 2>&5 || hard_links=no
14682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14684 $as_echo "$hard_links" >&6; }
14685 if test "$hard_links" = no; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14687 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14700 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14703 allow_undefined_flag=
14704 always_export_symbols=no
14706 archive_expsym_cmds=
14707 compiler_needs_object=no
14708 enable_shared_with_static_runtimes=no
14709 export_dynamic_flag_spec=
14710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14711 hardcode_automatic=no
14713 hardcode_direct_absolute=no
14714 hardcode_libdir_flag_spec=
14715 hardcode_libdir_flag_spec_ld=
14716 hardcode_libdir_separator=
14717 hardcode_minus_L=no
14718 hardcode_shlibpath_var=unsupported
14720 link_all_deplibs=unknown
14722 module_expsym_cmds=
14723 old_archive_from_new_cmds=
14724 old_archive_from_expsyms_cmds=
14725 thread_safe_flag_spec=
14726 whole_archive_flag_spec=
14727 # include_expsyms should be a list of space-separated symbols to be *always*
14728 # included in the symbol list
14730 # exclude_expsyms can be an extended regexp of symbols to exclude
14731 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14732 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14733 # as well as any symbol that contains `d'.
14734 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14735 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14736 # platforms (ab)use it in PIC code, but their linkers get confused if
14737 # the symbol is explicitly referenced. Since portable code cannot
14738 # rely on this symbol name, it's probably fine to never include it in
14739 # preloaded symbol tables.
14740 # Exclude shared library initialization/finalization symbols.
14741 extract_expsyms_cmds=
14744 cygwin* | mingw* | pw32* | cegcc*)
14745 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14746 # When not using gcc, we currently assume that we are using
14747 # Microsoft Visual C++.
14748 if test "$GCC" != yes; then
14753 # we just hope/assume this is gcc and not c89 (= MSVC++)
14763 # On some targets, GNU ld is compatible enough with the native linker
14764 # that we're better off using the native interface for both.
14765 lt_use_gnu_ld_interface=no
14766 if test "$with_gnu_ld" = yes; then
14769 # The AIX port of GNU ld has always aspired to compatibility
14770 # with the native linker. However, as the warning in the GNU ld
14771 # block says, versions before 2.19.5* couldn't really create working
14772 # shared libraries, regardless of the interface used.
14773 case `$LD -v 2>&1` in
14774 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14775 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14776 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14778 lt_use_gnu_ld_interface=yes
14783 lt_use_gnu_ld_interface=yes
14788 if test "$lt_use_gnu_ld_interface" = yes; then
14789 # If archive_cmds runs LD, not CC, wlarc should be empty
14792 # Set some defaults for GNU ld with shared library support. These
14793 # are reset later if shared libraries are not supported. Putting them
14794 # here allows them to be overridden if necessary.
14795 runpath_var=LD_RUN_PATH
14796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14797 export_dynamic_flag_spec='${wl}--export-dynamic'
14798 # ancient GNU ld didn't support --whole-archive et. al.
14799 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14802 whole_archive_flag_spec=
14804 supports_anon_versioning=no
14805 case `$LD -v 2>&1` in
14806 *GNU\ gold*) supports_anon_versioning=yes ;;
14807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14810 *\ 2.11.*) ;; # other 2.11 versions
14811 *) supports_anon_versioning=yes ;;
14814 # See if GNU ld supports shared libraries.
14817 # On AIX/PPC, the GNU linker is very broken
14818 if test "$host_cpu" != ia64; then
14822 *** Warning: the GNU linker, at least up to release 2.19, is reported
14823 *** to be unable to reliably create shared libraries on AIX.
14824 *** Therefore, libtool is disabling shared libraries support. If you
14825 *** really care for shared libraries, you may want to install binutils
14826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14827 *** You will then need to restart the configuration process.
14836 # see comment about AmigaOS4 .so support
14837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14838 archive_expsym_cmds=''
14841 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)'
14842 hardcode_libdir_flag_spec
='-L$libdir'
14843 hardcode_minus_L
=yes
14849 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14850 allow_undefined_flag
=unsupported
14851 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14852 # support --undefined. This deserves some investigation. FIXME
14853 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859 cygwin
* | mingw
* | pw32
* | cegcc
*)
14860 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14861 # as there is no search path for DLLs.
14862 hardcode_libdir_flag_spec
='-L$libdir'
14863 export_dynamic_flag_spec
='${wl}--export-all-symbols'
14864 allow_undefined_flag
=unsupported
14865 always_export_symbols
=no
14866 enable_shared_with_static_runtimes
=yes
14867 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14869 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14871 # If the export-symbols file already is a .def file (1st line
14872 # is EXPORTS), use it as is; otherwise, prepend...
14873 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14874 cp $export_symbols $output_objdir/$soname.def;
14876 echo EXPORTS > $output_objdir/$soname.def;
14877 cat $export_symbols >> $output_objdir/$soname.def;
14879 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14886 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14887 link_all_deplibs
=yes
14892 hardcode_shlibpath_var
=no
14893 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14894 export_dynamic_flag_spec
='${wl}-E'
14895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14896 # Instead, shared libraries are loaded at an image base (0x10000000 by
14897 # default) and relocated if they conflict, which is a slow very memory
14898 # consuming and fragmenting process. To avoid this, we pick a random,
14899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14901 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14902 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'
14905 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14907 if test "$host_os" = linux-dietlibc
; then
14908 case $cc_basename in
14909 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14912 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14913 && test "$tmp_diet" = no
14916 tmp_sharedflag
='-shared'
14917 case $cc_basename,$host_cpu in
14918 pgcc
*) # Portland Group C compiler
14919 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'
14920 tmp_addflag
=' $pic_flag'
14922 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
14923 # Portland Group f77 and f90 compilers
14924 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'
14925 tmp_addflag
=' $pic_flag -Mnomain' ;;
14926 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14927 tmp_addflag
=' -i_dynamic' ;;
14928 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14929 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14930 ifc
* | ifort
*) # Intel Fortran compiler
14931 tmp_addflag
=' -nofor_main' ;;
14932 lf95
*) # Lahey Fortran 8.1
14933 whole_archive_flag_spec
=
14934 tmp_sharedflag
='--shared' ;;
14935 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14936 tmp_sharedflag
='-qmkshrobj'
14938 nvcc
*) # Cuda Compiler Driver 2.2
14939 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'
14940 compiler_needs_object
=yes
14943 case `$CC -V 2>&1 | sed 5q` in
14944 *Sun\ C
*) # Sun C 5.9
14945 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'
14946 compiler_needs_object
=yes
14947 tmp_sharedflag
='-G' ;;
14948 *Sun\ F
*) # Sun Fortran 8.3
14949 tmp_sharedflag
='-G' ;;
14951 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953 if test "x$supports_anon_versioning" = xyes
; then
14954 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14956 echo "local: *; };" >> $output_objdir/$libname.ver~
14957 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14960 case $cc_basename in
14961 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
14962 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14963 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14964 hardcode_libdir_flag_spec
=
14965 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14966 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14967 if test "x$supports_anon_versioning" = xyes
; then
14968 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14970 echo "local: *; };" >> $output_objdir/$libname.ver~
14971 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14981 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14982 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14985 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14991 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
14995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14996 *** create shared libraries on Solaris systems. Therefore, libtool
14997 *** is disabling shared libraries support. We urge you to upgrade GNU
14998 *** binutils to release 2.9.1 or newer. Another option is to modify
14999 *** your PATH or compiler configuration so that the native linker is
15000 *** used, and then restart.
15003 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15004 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15011 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15012 case `$LD -v 2>&1` in
15013 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15018 *** reliably create shared libraries on SCO systems. Therefore, libtool
15019 *** is disabling shared libraries support. We urge you to upgrade GNU
15020 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15021 *** your PATH or compiler configuration so that the native linker is
15022 *** used, and then restart.
15027 # For security reasons, it is highly recommended that you always
15028 # use absolute paths for naming shared libraries, and exclude the
15029 # DT_RUNPATH tag from executables and libraries. But doing so
15030 # requires that you compile everything twice, which is a pain.
15031 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15032 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15033 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15034 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15043 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_direct
=yes
15046 hardcode_shlibpath_var
=no
15050 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15051 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15059 if test "$ld_shlibs" = no
; then
15061 hardcode_libdir_flag_spec
=
15062 export_dynamic_flag_spec
=
15063 whole_archive_flag_spec
=
15066 # PORTME fill in a description of your system's linker (not GNU ld)
15069 allow_undefined_flag
=unsupported
15070 always_export_symbols
=yes
15071 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'
15072 # Note: this linker hardcodes the directories in LIBPATH if there
15073 # are no directories specified by -L.
15074 hardcode_minus_L
=yes
15075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15076 # Neither direct hardcoding nor static linking is supported with a
15078 hardcode_direct
=unsupported
15083 if test "$host_cpu" = ia64
; then
15084 # On IA64, the linker does run time linking by default, so we don't
15085 # have to do anything special.
15086 aix_use_runtimelinking
=no
15087 exp_sym_flag
='-Bexport'
15090 # If we're using GNU nm, then we don't want the "-C" option.
15091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15092 # Also, AIX nm treats weak defined symbols like other global
15093 # defined symbols, whereas GNU nm marks them as "W".
15094 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15095 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'
15097 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'
15099 aix_use_runtimelinking
=no
15101 # Test if we are trying to use run time linking or normal
15102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15103 # need to do runtime linking.
15104 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15105 for ld_flag
in $LDFLAGS; do
15106 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15107 aix_use_runtimelinking
=yes
15114 exp_sym_flag
='-bexport'
15115 no_entry_flag
='-bnoentry'
15118 # When large executables or shared objects are built, AIX ld can
15119 # have problems creating the table of contents. If linking a library
15120 # or program results in "error TOC overflow" add -mminimal-toc to
15121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15125 hardcode_direct
=yes
15126 hardcode_direct_absolute
=yes
15127 hardcode_libdir_separator
=':'
15128 link_all_deplibs
=yes
15129 file_list_spec
='${wl}-f,'
15131 if test "$GCC" = yes; then
15132 case $host_os in aix4.
[012]|aix4.
[012].
*)
15133 # We only want to do this on AIX 4.2 and lower, the check
15134 # below for broken collect2 doesn't work under 4.3+
15135 collect2name
=`${CC} -print-prog-name=collect2`
15136 if test -f "$collect2name" &&
15137 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15139 # We have reworked collect2
15142 # We have old collect2
15143 hardcode_direct
=unsupported
15144 # It fails to find uninstalled libraries when the uninstalled
15145 # path is not listed in the libpath. Setting hardcode_minus_L
15146 # to unsupported forces relinking
15147 hardcode_minus_L
=yes
15148 hardcode_libdir_flag_spec
='-L$libdir'
15149 hardcode_libdir_separator
=
15153 shared_flag
='-shared'
15154 if test "$aix_use_runtimelinking" = yes; then
15155 shared_flag
="$shared_flag "'${wl}-G'
15159 if test "$host_cpu" = ia64
; then
15160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15161 # chokes on -Wl,-G. The following line is correct:
15164 if test "$aix_use_runtimelinking" = yes; then
15165 shared_flag
='${wl}-G'
15167 shared_flag
='${wl}-bM:SRE'
15172 export_dynamic_flag_spec
='${wl}-bexpall'
15173 # It seems that -bexpall does not export symbols beginning with
15174 # underscore (_), so it is better to generate a list of symbols to export.
15175 always_export_symbols
=yes
15176 if test "$aix_use_runtimelinking" = yes; then
15177 # Warning - without using the other runtime loading flags (-brtl),
15178 # -berok will link without error, but may produce a broken library.
15179 allow_undefined_flag
='-berok'
15180 # Determine the default libpath from the value encoded in an
15181 # empty executable.
15182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15193 if ac_fn_c_try_link
"$LINENO"; then :
15195 lt_aix_libpath_sed
='
15196 /Import File Strings/,/^$/ {
15202 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15203 # Check for a 64-bit object if we didn't find anything.
15204 if test -z "$aix_libpath"; then
15205 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15208 rm -f core conftest.err conftest.
$ac_objext \
15209 conftest
$ac_exeext conftest.
$ac_ext
15210 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15212 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15213 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"
15215 if test "$host_cpu" = ia64
; then
15216 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15217 allow_undefined_flag
="-z nodefs"
15218 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"
15220 # Determine the default libpath from the value encoded in an
15221 # empty executable.
15222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15233 if ac_fn_c_try_link
"$LINENO"; then :
15235 lt_aix_libpath_sed
='
15236 /Import File Strings/,/^$/ {
15242 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243 # Check for a 64-bit object if we didn't find anything.
15244 if test -z "$aix_libpath"; then
15245 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248 rm -f core conftest.err conftest.
$ac_objext \
15249 conftest
$ac_exeext conftest.
$ac_ext
15250 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15252 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15253 # Warning - without using the other run time loading flags,
15254 # -berok will link without error, but may produce a broken library.
15255 no_undefined_flag
=' ${wl}-bernotok'
15256 allow_undefined_flag
=' ${wl}-berok'
15257 if test "$with_gnu_ld" = yes; then
15258 # We only use this code for GNU lds that support --whole-archive.
15259 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15261 # Exported symbols can be pulled into shared objects from archives
15262 whole_archive_flag_spec
='$convenience'
15264 archive_cmds_need_lc
=yes
15265 # This is similar to how AIX traditionally builds its shared libraries.
15266 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'
15274 # see comment about AmigaOS4 .so support
15275 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276 archive_expsym_cmds
=''
15279 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)'
15280 hardcode_libdir_flag_spec
='-L$libdir'
15281 hardcode_minus_L
=yes
15287 export_dynamic_flag_spec
=-rdynamic
15290 cygwin
* | mingw
* | pw32
* | cegcc
*)
15291 # When not using gcc, we currently assume that we are using
15292 # Microsoft Visual C++.
15293 # hardcode_libdir_flag_spec is actually meaningless, as there is
15294 # no search path for DLLs.
15295 hardcode_libdir_flag_spec
=' '
15296 allow_undefined_flag
=unsupported
15297 # Tell ltmain to make .lib files, not .a files.
15299 # Tell ltmain to make .dll files, not .so files.
15301 # FIXME: Setting linknames here is a bad hack.
15302 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15303 # The linker will automatically build a .lib file if we build a DLL.
15304 old_archive_from_new_cmds
='true'
15305 # FIXME: Should let the user specify the lib program.
15306 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15307 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15308 enable_shared_with_static_runtimes
=yes
15311 darwin
* | rhapsody
*)
15314 archive_cmds_need_lc
=no
15316 hardcode_automatic
=yes
15317 hardcode_shlibpath_var
=unsupported
15318 if test "$lt_cv_ld_force_load" = "yes"; then
15319 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\"`'
15321 whole_archive_flag_spec
=''
15323 link_all_deplibs
=yes
15324 allow_undefined_flag
="$_lt_dar_allow_undefined"
15325 case $cc_basename in
15326 ifort
*) _lt_dar_can_shared
=yes ;;
15327 *) _lt_dar_can_shared
=$GCC ;;
15329 if test "$_lt_dar_can_shared" = "yes"; then
15330 output_verbose_link_cmd
=func_echo_all
15331 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15332 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15333 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}"
15334 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}"
15343 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_libdir_flag_spec
='-L$libdir'
15345 hardcode_shlibpath_var
=no
15352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15353 # support. Future versions do this automatically, but an explicit c++rt0.o
15354 # does not break anything, and helps significantly (at the cost of a little
15357 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15358 hardcode_libdir_flag_spec
='-R$libdir'
15359 hardcode_direct
=yes
15360 hardcode_shlibpath_var
=no
15363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15365 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15366 hardcode_direct
=yes
15367 hardcode_minus_L
=yes
15368 hardcode_shlibpath_var
=no
15371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15372 freebsd
* | dragonfly
*)
15373 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15374 hardcode_libdir_flag_spec
='-R$libdir'
15375 hardcode_direct
=yes
15376 hardcode_shlibpath_var
=no
15380 if test "$GCC" = yes; then
15381 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'
15383 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'
15385 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15386 hardcode_libdir_separator
=:
15387 hardcode_direct
=yes
15389 # hardcode_minus_L: Not really in the search PATH,
15390 # but as the default location of the library.
15391 hardcode_minus_L
=yes
15392 export_dynamic_flag_spec
='${wl}-E'
15396 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15397 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15401 if test "$with_gnu_ld" = no
; then
15402 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15403 hardcode_libdir_flag_spec_ld
='+b $libdir'
15404 hardcode_libdir_separator
=:
15405 hardcode_direct
=yes
15406 hardcode_direct_absolute
=yes
15407 export_dynamic_flag_spec
='${wl}-E'
15408 # hardcode_minus_L: Not really in the search PATH,
15409 # but as the default location of the library.
15410 hardcode_minus_L
=yes
15415 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15418 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15421 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15424 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15430 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15433 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15437 # Older versions of the 11.00 compiler do not understand -b yet
15438 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15440 $as_echo_n "checking if $CC understands -b... " >&6; }
15441 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15442 $as_echo_n "(cached) " >&6
15444 lt_cv_prog_compiler__b
=no
15445 save_LDFLAGS
="$LDFLAGS"
15446 LDFLAGS
="$LDFLAGS -b"
15447 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15448 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15449 # The linker can only warn and ignore the option if not recognized
15450 # So say no if there are warnings
15451 if test -s conftest.err
; then
15452 # Append any errors to the config.log.
15453 cat conftest.err
1>&5
15454 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15455 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15456 if diff conftest.exp conftest.er2
>/dev
/null
; then
15457 lt_cv_prog_compiler__b
=yes
15460 lt_cv_prog_compiler__b
=yes
15464 LDFLAGS
="$save_LDFLAGS"
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15468 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15470 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15471 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15479 if test "$with_gnu_ld" = no
; then
15480 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15481 hardcode_libdir_separator
=:
15486 hardcode_shlibpath_var
=no
15489 hardcode_direct
=yes
15490 hardcode_direct_absolute
=yes
15491 export_dynamic_flag_spec
='${wl}-E'
15493 # hardcode_minus_L: Not really in the search PATH,
15494 # but as the default location of the library.
15495 hardcode_minus_L
=yes
15501 irix5
* | irix6
* | nonstopux
*)
15502 if test "$GCC" = yes; then
15503 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'
15504 # Try to use the -exported_symbol ld option, if it does not
15505 # work, assume that -exports_file does not work either and
15506 # implicitly export all symbols.
15507 save_LDFLAGS
="$LDFLAGS"
15508 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15513 if ac_fn_c_try_link
"$LINENO"; then :
15514 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'
15517 rm -f core conftest.err conftest.
$ac_objext \
15518 conftest
$ac_exeext conftest.
$ac_ext
15519 LDFLAGS
="$save_LDFLAGS"
15521 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'
15522 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'
15524 archive_cmds_need_lc
='no'
15525 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15526 hardcode_libdir_separator
=:
15528 link_all_deplibs
=yes
15532 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15533 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15535 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15537 hardcode_libdir_flag_spec
='-R$libdir'
15538 hardcode_direct
=yes
15539 hardcode_shlibpath_var
=no
15543 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_direct
=yes
15545 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15546 hardcode_libdir_separator
=:
15547 hardcode_shlibpath_var
=no
15554 if test -f /usr
/libexec
/ld.so
; then
15555 hardcode_direct
=yes
15556 hardcode_shlibpath_var
=no
15557 hardcode_direct_absolute
=yes
15558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15559 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15560 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15561 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15562 export_dynamic_flag_spec
='${wl}-E'
15565 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15566 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567 hardcode_libdir_flag_spec
='-R$libdir'
15570 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15571 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15581 hardcode_libdir_flag_spec
='-L$libdir'
15582 hardcode_minus_L
=yes
15583 allow_undefined_flag
=unsupported
15584 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'
15585 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15589 if test "$GCC" = yes; then
15590 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15591 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'
15593 allow_undefined_flag
=' -expect_unresolved \*'
15594 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'
15596 archive_cmds_need_lc
='no'
15597 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15598 hardcode_libdir_separator
=:
15601 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15602 if test "$GCC" = yes; then
15603 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15604 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'
15605 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15607 allow_undefined_flag
=' -expect_unresolved \*'
15608 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'
15609 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~
15610 $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'
15612 # Both c and cxx compiler support -rpath directly
15613 hardcode_libdir_flag_spec
='-rpath $libdir'
15615 archive_cmds_need_lc
='no'
15616 hardcode_libdir_separator
=:
15620 no_undefined_flag
=' -z defs'
15621 if test "$GCC" = yes; then
15623 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15625 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15627 case `$CC -V 2>&1` in
15630 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15636 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15638 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15642 hardcode_libdir_flag_spec
='-R$libdir'
15643 hardcode_shlibpath_var
=no
15645 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15647 # The compiler driver will combine and reorder linker options,
15648 # but understands `-z linker_flag'. GCC discards it without `$wl',
15649 # but is careful enough not to reorder.
15650 # Supported since Solaris 2.6 (maybe 2.5.1?)
15651 if test "$GCC" = yes; then
15652 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15654 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15658 link_all_deplibs
=yes
15662 if test "x$host_vendor" = xsequent
; then
15663 # Use $CC to link under sequent, because it throws in some extra .o
15664 # files that make .init and .fini sections work.
15665 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15667 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_libdir_flag_spec
='-L$libdir'
15670 hardcode_direct
=yes
15671 hardcode_minus_L
=yes
15672 hardcode_shlibpath_var
=no
15676 case $host_vendor in
15678 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679 hardcode_direct
=yes # is this really true???
15682 ## LD is ld it makes a PLAMLIB
15683 ## CC just makes a GrossModule.
15684 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15685 reload_cmds
='$CC -r -o $output$reload_objs'
15689 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15693 runpath_var
='LD_RUN_PATH'
15694 hardcode_shlibpath_var
=no
15698 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_shlibpath_var
=no
15700 export_dynamic_flag_spec
='-Bexport'
15704 if test -d /usr
/nec
; then
15705 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 hardcode_shlibpath_var
=no
15707 runpath_var
=LD_RUN_PATH
15708 hardcode_runpath_var
=yes
15713 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15714 no_undefined_flag
='${wl}-z,text'
15715 archive_cmds_need_lc
=no
15716 hardcode_shlibpath_var
=no
15717 runpath_var
='LD_RUN_PATH'
15719 if test "$GCC" = yes; then
15720 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 sysv5
* | sco3.2v5
* | sco5v6
*)
15729 # Note: We can NOT use -z defs as we might desire, because we do not
15730 # link with -lc, and that would cause any symbols used from libc to
15731 # always be unresolved, which means just about no library would
15732 # ever link correctly. If we're not using GNU ld we use -z text
15733 # though, which does catch some bad symbols but isn't as heavy-handed
15735 no_undefined_flag
='${wl}-z,text'
15736 allow_undefined_flag
='${wl}-z,nodefs'
15737 archive_cmds_need_lc
=no
15738 hardcode_shlibpath_var
=no
15739 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15740 hardcode_libdir_separator
=':'
15741 link_all_deplibs
=yes
15742 export_dynamic_flag_spec
='${wl}-Bexport'
15743 runpath_var
='LD_RUN_PATH'
15745 if test "$GCC" = yes; then
15746 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15755 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_libdir_flag_spec
='-L$libdir'
15757 hardcode_shlibpath_var
=no
15765 if test x
$host_vendor = xsni
; then
15767 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15768 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15775 $as_echo "$ld_shlibs" >&6; }
15776 test "$ld_shlibs" = no
&& can_build_shared
=no
15778 with_gnu_ld
=$with_gnu_ld
15795 # Do we need to explicitly link libc?
15797 case "x$archive_cmds_need_lc" in
15799 # Assume -lc should be added
15800 archive_cmds_need_lc
=yes
15802 if test "$enable_shared" = yes && test "$GCC" = yes; then
15803 case $archive_cmds in
15805 # FIXME: we may have to deal with multi-command sequences.
15808 # Test whether the compiler implicitly links with -lc since on some
15809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15810 # to ld, don't add -lc before -lgcc.
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15813 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15814 $as_echo_n "(cached) " >&6
15817 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15820 (eval $ac_compile) 2>&5
15822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15823 test $ac_status = 0; } 2>conftest.err
; then
15826 libobjs
=conftest.
$ac_objext
15828 wl
=$lt_prog_compiler_wl
15829 pic_flag
=$lt_prog_compiler_pic
15835 lt_save_allow_undefined_flag
=$allow_undefined_flag
15836 allow_undefined_flag
=
15837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15838 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841 test $ac_status = 0; }
15843 lt_cv_archive_cmds_need_lc
=no
15845 lt_cv_archive_cmds_need_lc
=yes
15847 allow_undefined_flag
=$lt_save_allow_undefined_flag
15849 cat conftest.err
1>&5
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15855 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15856 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16022 if test "$GCC" = yes; then
16024 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16025 *) lt_awk_arg
="/^libraries:/" ;;
16028 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16029 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16031 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16032 case $lt_search_path_spec in
16034 # if the path contains ";" then we assume it to be the separator
16035 # otherwise default to the standard path separator (i.e. ":") - it is
16036 # assumed that no part of a normal pathname contains ";" but that should
16037 # okay in the real world where ";" in dirpaths is itself problematic.
16038 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16041 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16044 # Ok, now we have the path, separated by spaces, we can step through it
16045 # and add multilib dir if necessary.
16046 lt_tmp_lt_search_path_spec
=
16047 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16048 for lt_sys_path
in $lt_search_path_spec; do
16049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16050 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16052 test -d "$lt_sys_path" && \
16053 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16056 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16057 BEGIN {RS=" "; FS="/|\n";} {
16060 for (lt_i = NF; lt_i > 0; lt_i--) {
16061 if ($lt_i != "" && $lt_i != ".") {
16062 if ($lt_i == "..") {
16065 if (lt_count == 0) {
16066 lt_foo="/" $lt_i lt_foo;
16073 if (lt_foo != "") { lt_freq[lt_foo]++; }
16074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16076 # AWK program above erroneously prepends '/' to C:/dos/paths
16079 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16080 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16082 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16084 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16086 library_names_spec
=
16087 libname_spec
='lib$name'
16091 postuninstall_cmds
=
16095 shlibpath_overrides_runpath
=unknown
16097 dynamic_linker
="$host_os ld.so"
16098 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16099 need_lib_prefix
=unknown
16100 hardcode_into_libs
=no
16102 # when you set need_version to no, make sure it does not cause -set_version
16103 # flags to be left without arguments
16104 need_version
=unknown
16109 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16110 shlibpath_var
=LIBPATH
16112 # AIX 3 has no versioning support, so we append a major version to the name.
16113 soname_spec
='${libname}${release}${shared_ext}$major'
16120 hardcode_into_libs
=yes
16121 if test "$host_cpu" = ia64
; then
16122 # AIX 5 supports IA64
16123 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16124 shlibpath_var
=LD_LIBRARY_PATH
16126 # With GCC up to 2.95.x, collect2 would create an import file
16127 # for dependence libraries. The import file would start with
16128 # the line `#! .'. This would cause the generated library to
16129 # depend on `.', always an invalid library. This was fixed in
16130 # development snapshots of GCC prior to 3.0.
16132 aix4 | aix4.
[01] | aix4.
[01].
*)
16133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16135 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16138 can_build_shared
=no
16142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16143 # soname into executable. Probably we can add versioning support to
16144 # collect2, so additional links can be useful in future.
16145 if test "$aix_use_runtimelinking" = yes; then
16146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16147 # instead of lib<name>.a to let people know that these are not
16148 # typical AIX shared libraries.
16149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151 # We preserve .a as extension for shared libraries through AIX4.2
16152 # and later when we are not doing run time linking.
16153 library_names_spec
='${libname}${release}.a $libname.a'
16154 soname_spec
='${libname}${release}${shared_ext}$major'
16156 shlibpath_var
=LIBPATH
16163 # Since July 2007 AmigaOS4 officially supports .so libraries.
16164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168 library_names_spec
='$libname.ixlibrary $libname.a'
16169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16170 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'
16176 library_names_spec
='${libname}${shared_ext}'
16177 dynamic_linker
="$host_os ld.so"
16178 shlibpath_var
=LIBRARY_PATH
16184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185 soname_spec
='${libname}${release}${shared_ext}$major'
16186 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16187 shlibpath_var
=LD_LIBRARY_PATH
16188 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16189 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16190 # the default ld.so.conf also contains /usr/contrib/lib and
16191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16192 # libtool to hard-code these into programs
16195 cygwin
* | mingw
* | pw32
* | cegcc
*)
16196 version_type
=windows
16201 case $GCC,$host_os in
16202 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16203 library_names_spec
='$libname.dll.a'
16204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16205 postinstall_cmds
='base_file=`basename \${file}`~
16206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16207 dldir=$destdir/`dirname \$dlpath`~
16208 test -d \$dldir || mkdir -p \$dldir~
16209 $install_prog $dir/$dlname \$dldir/$dlname~
16210 chmod a+x \$dldir/$dlname~
16211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16214 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16215 dlpath=$dir/\$dldll~
16217 shlibpath_overrides_runpath
=yes
16221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16222 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16224 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16227 # MinGW DLLs use traditional 'lib' prefix
16228 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16231 # pw32 DLLs use 'pw' prefix rather than 'lib'
16232 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16238 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16241 dynamic_linker
='Win32 ld.exe'
16242 # FIXME: first we should search . and the directory the executable is in
16246 darwin
* | rhapsody
*)
16247 dynamic_linker
="$host_os dyld"
16248 version_type
=darwin
16251 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16252 soname_spec
='${libname}${release}${major}$shared_ext'
16253 shlibpath_overrides_runpath
=yes
16254 shlibpath_var
=DYLD_LIBRARY_PATH
16255 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16257 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16258 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16266 soname_spec
='${libname}${release}${shared_ext}$major'
16267 shlibpath_var
=LD_LIBRARY_PATH
16274 freebsd
* | dragonfly
*)
16275 # DragonFly does not have aout. When/if they implement a new
16276 # versioning mechanism, adjust this.
16277 if test -x /usr
/bin
/objformat
; then
16278 objformat
=`/usr/bin/objformat`
16281 freebsd
[123]*) objformat
=aout
;;
16282 *) objformat
=elf
;;
16285 version_type
=freebsd-
$objformat
16286 case $version_type in
16288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16293 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16297 shlibpath_var
=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath
=yes
16302 freebsd3.
[01]* | freebsdelf3.
[01]*)
16303 shlibpath_overrides_runpath
=yes
16304 hardcode_into_libs
=yes
16306 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16307 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16308 shlibpath_overrides_runpath
=no
16309 hardcode_into_libs
=yes
16311 *) # from 4.6 on, and DragonFly
16312 shlibpath_overrides_runpath
=yes
16313 hardcode_into_libs
=yes
16322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16323 soname_spec
='${libname}${release}${shared_ext}$major'
16324 shlibpath_var
=LD_LIBRARY_PATH
16325 hardcode_into_libs
=yes
16332 dynamic_linker
="$host_os runtime_loader"
16333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16334 soname_spec
='${libname}${release}${shared_ext}$major'
16335 shlibpath_var
=LIBRARY_PATH
16336 shlibpath_overrides_runpath
=yes
16337 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16338 hardcode_into_libs
=yes
16341 hpux9
* | hpux10
* | hpux11
*)
16342 # Give a soname corresponding to the major version so that dld.sl refuses to
16343 # link against other versions.
16350 hardcode_into_libs
=yes
16351 dynamic_linker
="$host_os dld.so"
16352 shlibpath_var
=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 soname_spec
='${libname}${release}${shared_ext}$major'
16356 if test "X$HPUX_IA64_MODE" = X32
; then
16357 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16359 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16361 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16365 hardcode_into_libs
=yes
16366 dynamic_linker
="$host_os dld.sl"
16367 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16368 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 soname_spec
='${libname}${release}${shared_ext}$major'
16371 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16372 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16376 dynamic_linker
="$host_os dld.sl"
16377 shlibpath_var
=SHLIB_PATH
16378 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 soname_spec
='${libname}${release}${shared_ext}$major'
16383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16384 postinstall_cmds
='chmod 555 $lib'
16385 # or fails outright, so override atomically:
16386 install_override_mode
=555
16393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16394 soname_spec
='${libname}${release}${shared_ext}$major'
16395 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16396 shlibpath_var
=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath
=no
16398 hardcode_into_libs
=yes
16401 irix5
* | irix6
* | nonstopux
*)
16403 nonstopux
*) version_type
=nonstopux
;;
16405 if test "$lt_cv_prog_gnu_ld" = yes; then
16413 soname_spec
='${libname}${release}${shared_ext}$major'
16414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16416 irix5
* | nonstopux
*)
16417 libsuff
= shlibsuff
=
16420 case $LD in # libtool.m4 will add one of these switches to LD
16421 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16422 libsuff
= shlibsuff
= libmagic
=32-bit;;
16423 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16424 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16425 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16426 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16427 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16431 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16432 shlibpath_overrides_runpath
=no
16433 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16434 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16435 hardcode_into_libs
=yes
16438 # No shared lib support for Linux oldld, aout, or coff.
16439 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16443 # This must be Linux ELF.
16444 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec
='${libname}${release}${shared_ext}$major'
16450 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16451 shlibpath_var
=LD_LIBRARY_PATH
16452 shlibpath_overrides_runpath
=no
16454 # Some binutils ld are patched to set DT_RUNPATH
16455 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16456 $as_echo_n "(cached) " >&6
16458 lt_cv_shlibpath_overrides_runpath
=no
16459 save_LDFLAGS
=$LDFLAGS
16460 save_libdir
=$libdir
16461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16474 if ac_fn_c_try_link
"$LINENO"; then :
16475 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16476 lt_cv_shlibpath_overrides_runpath
=yes
16479 rm -f core conftest.err conftest.
$ac_objext \
16480 conftest
$ac_exeext conftest.
$ac_ext
16481 LDFLAGS
=$save_LDFLAGS
16482 libdir
=$save_libdir
16486 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16488 # This implies no fast_install, which is unacceptable.
16489 # Some rework will be needed to allow for fast_install
16490 # before this can be enabled.
16491 hardcode_into_libs
=yes
16493 # Append ld.so.conf contents to the search path
16494 if test -f /etc
/ld.so.conf
; then
16495 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' ' '`
16496 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16499 # We used to test for /lib/ld.so.1 and disable shared libraries on
16500 # powerpc, because MkLinux only supported shared libraries with the
16501 # GNU dynamic linker. Since this was broken with cross compilers,
16502 # most powerpc-linux boxes support dynamic linking these days and
16503 # people can always --disable-shared, the test was removed, and we
16504 # assume the GNU/Linux dynamic linker is in use.
16505 dynamic_linker
='GNU/Linux ld.so'
16512 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16514 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16515 dynamic_linker
='NetBSD (a.out) ld.so'
16517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16518 soname_spec
='${libname}${release}${shared_ext}$major'
16519 dynamic_linker
='NetBSD ld.elf_so'
16521 shlibpath_var
=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath
=yes
16523 hardcode_into_libs
=yes
16528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529 shlibpath_var
=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath
=yes
16537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538 soname_spec
='${libname}${release}${shared_ext}$major'
16539 shlibpath_var
=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath
=no
16541 hardcode_into_libs
=yes
16542 dynamic_linker
='ldqnx.so'
16547 sys_lib_dlsearch_path_spec
="/usr/lib"
16549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16551 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16552 *) need_version
=no
;;
16554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16555 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16556 shlibpath_var
=LD_LIBRARY_PATH
16557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16559 openbsd2.
[89] | openbsd2.
[89].
*)
16560 shlibpath_overrides_runpath
=no
16563 shlibpath_overrides_runpath
=yes
16567 shlibpath_overrides_runpath
=yes
16572 libname_spec
='$name'
16575 library_names_spec
='$libname${shared_ext} $libname.a'
16576 dynamic_linker
='OS/2 ld.exe'
16577 shlibpath_var
=LIBPATH
16580 osf3
* | osf4
* | osf5
*)
16584 soname_spec
='${libname}${release}${shared_ext}$major'
16585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 shlibpath_var
=LD_LIBRARY_PATH
16587 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16588 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec
='${libname}${release}${shared_ext}$major'
16601 shlibpath_var
=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath
=yes
16603 hardcode_into_libs
=yes
16604 # ldd complains unless libraries are executable
16605 postinstall_cmds
='chmod +x $lib'
16610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16611 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16612 shlibpath_var
=LD_LIBRARY_PATH
16613 shlibpath_overrides_runpath
=yes
16614 if test "$with_gnu_ld" = yes; then
16622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec
='${libname}${release}${shared_ext}$major'
16624 shlibpath_var
=LD_LIBRARY_PATH
16625 case $host_vendor in
16627 shlibpath_overrides_runpath
=no
16629 runpath_var
=LD_RUN_PATH
16637 shlibpath_overrides_runpath
=no
16638 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16644 if test -d /usr
/nec
;then
16646 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16647 soname_spec
='$libname${shared_ext}.$major'
16648 shlibpath_var
=LD_LIBRARY_PATH
16652 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16653 version_type
=freebsd-elf
16656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16657 soname_spec
='${libname}${release}${shared_ext}$major'
16658 shlibpath_var
=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath
=yes
16660 hardcode_into_libs
=yes
16661 if test "$with_gnu_ld" = yes; then
16662 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16664 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16667 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16671 sys_lib_dlsearch_path_spec
='/usr/lib'
16675 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 shlibpath_var
=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath
=no
16682 hardcode_into_libs
=yes
16687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec
='${libname}${release}${shared_ext}$major'
16689 shlibpath_var
=LD_LIBRARY_PATH
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16697 $as_echo "$dynamic_linker" >&6; }
16698 test "$dynamic_linker" = no
&& can_build_shared
=no
16700 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16701 if test "$GCC" = yes; then
16702 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16706 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16709 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16804 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16806 if test -n "$hardcode_libdir_flag_spec" ||
16807 test -n "$runpath_var" ||
16808 test "X$hardcode_automatic" = "Xyes" ; then
16810 # We can hardcode non-existent directories.
16811 if test "$hardcode_direct" != no
&&
16812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16813 # have to relink, otherwise we might link with an installed library
16814 # when we should be linking with a yet-to-be-installed one
16815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16816 test "$hardcode_minus_L" != no
; then
16817 # Linking always hardcodes the temporary library directory.
16818 hardcode_action
=relink
16820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16821 hardcode_action
=immediate
16824 # We cannot hardcode anything, or else we can only hardcode existing
16826 hardcode_action
=unsupported
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16829 $as_echo "$hardcode_action" >&6; }
16831 if test "$hardcode_action" = relink ||
16832 test "$inherit_rpath" = yes; then
16833 # Fast installation is not supported
16834 enable_fast_install
=no
16835 elif test "$shlibpath_overrides_runpath" = yes ||
16836 test "$enable_shared" = no
; then
16837 # Fast installation is not necessary
16838 enable_fast_install
=needless
16846 if test "x$enable_dlopen" != xyes
; then
16847 enable_dlopen
=unknown
16848 enable_dlopen_self
=unknown
16849 enable_dlopen_self_static
=unknown
16856 lt_cv_dlopen
="load_add_on"
16858 lt_cv_dlopen_self
=yes
16861 mingw
* | pw32
* | cegcc
*)
16862 lt_cv_dlopen
="LoadLibrary"
16867 lt_cv_dlopen
="dlopen"
16872 # if libdl is installed we need to link against it
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16876 $as_echo_n "(cached) " >&6
16878 ac_check_lib_save_LIBS
=$LIBS
16880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16898 if ac_fn_c_try_link
"$LINENO"; then :
16899 ac_cv_lib_dl_dlopen
=yes
16901 ac_cv_lib_dl_dlopen
=no
16903 rm -f core conftest.err conftest.
$ac_objext \
16904 conftest
$ac_exeext conftest.
$ac_ext
16905 LIBS
=$ac_check_lib_save_LIBS
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16909 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16910 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16913 lt_cv_dlopen
="dyld"
16915 lt_cv_dlopen_self
=yes
16922 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16923 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16924 lt_cv_dlopen
="shl_load"
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16929 $as_echo_n "(cached) " >&6
16931 ac_check_lib_save_LIBS
=$LIBS
16933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16946 return shl_load ();
16951 if ac_fn_c_try_link
"$LINENO"; then :
16952 ac_cv_lib_dld_shl_load
=yes
16954 ac_cv_lib_dld_shl_load
=no
16956 rm -f core conftest.err conftest.
$ac_objext \
16957 conftest
$ac_exeext conftest.
$ac_ext
16958 LIBS
=$ac_check_lib_save_LIBS
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16962 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16963 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16965 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16966 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16967 lt_cv_dlopen
="dlopen"
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16972 $as_echo_n "(cached) " >&6
16974 ac_check_lib_save_LIBS
=$LIBS
16976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16994 if ac_fn_c_try_link
"$LINENO"; then :
16995 ac_cv_lib_dl_dlopen
=yes
16997 ac_cv_lib_dl_dlopen
=no
16999 rm -f core conftest.err conftest.
$ac_objext \
17000 conftest
$ac_exeext conftest.
$ac_ext
17001 LIBS
=$ac_check_lib_save_LIBS
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17005 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17006 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17011 $as_echo_n "(cached) " >&6
17013 ac_check_lib_save_LIBS
=$LIBS
17014 LIBS
="-lsvld $LIBS"
17015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17033 if ac_fn_c_try_link
"$LINENO"; then :
17034 ac_cv_lib_svld_dlopen
=yes
17036 ac_cv_lib_svld_dlopen
=no
17038 rm -f core conftest.err conftest.
$ac_objext \
17039 conftest
$ac_exeext conftest.
$ac_ext
17040 LIBS
=$ac_check_lib_save_LIBS
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17044 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17045 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17050 $as_echo_n "(cached) " >&6
17052 ac_check_lib_save_LIBS
=$LIBS
17054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17067 return dld_link ();
17072 if ac_fn_c_try_link
"$LINENO"; then :
17073 ac_cv_lib_dld_dld_link
=yes
17075 ac_cv_lib_dld_dld_link
=no
17077 rm -f core conftest.err conftest.
$ac_objext \
17078 conftest
$ac_exeext conftest.
$ac_ext
17079 LIBS
=$ac_check_lib_save_LIBS
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17083 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17084 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17105 if test "x$lt_cv_dlopen" != xno
; then
17111 case $lt_cv_dlopen in
17113 save_CPPFLAGS
="$CPPFLAGS"
17114 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17116 save_LDFLAGS
="$LDFLAGS"
17117 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17120 LIBS
="$lt_cv_dlopen_libs $LIBS"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17124 if test "${lt_cv_dlopen_self+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17127 if test "$cross_compiling" = yes; then :
17128 lt_cv_dlopen_self
=cross
17130 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17131 lt_status
=$lt_dlunknown
17132 cat > conftest.
$ac_ext <<_LT_EOF
17133 #line 17133 "configure"
17134 #include "confdefs.h"
17143 # define LT_DLGLOBAL RTLD_GLOBAL
17146 # define LT_DLGLOBAL DL_GLOBAL
17148 # define LT_DLGLOBAL 0
17152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17153 find out it does not work in some platform. */
17154 #ifndef LT_DLLAZY_OR_NOW
17156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17159 # define LT_DLLAZY_OR_NOW DL_LAZY
17162 # define LT_DLLAZY_OR_NOW RTLD_NOW
17165 # define LT_DLLAZY_OR_NOW DL_NOW
17167 # define LT_DLLAZY_OR_NOW 0
17174 /* When -fvisbility=hidden is used, assume the code has been annotated
17175 correspondingly for the symbols needed. */
17176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17177 void fnord () __attribute__((visibility("default")));
17180 void fnord () { int i=42; }
17183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17184 int status = $lt_dlunknown;
17188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17192 else puts (dlerror ());
17194 /* dlclose (self); */
17202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17203 (eval $ac_link) 2>&5
17205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17207 (.
/conftest
; exit; ) >&5 2>/dev
/null
17209 case x
$lt_status in
17210 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17211 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17212 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17215 # compilation failed
17216 lt_cv_dlopen_self
=no
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17224 $as_echo "$lt_cv_dlopen_self" >&6; }
17226 if test "x$lt_cv_dlopen_self" = xyes
; then
17227 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17230 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17231 $as_echo_n "(cached) " >&6
17233 if test "$cross_compiling" = yes; then :
17234 lt_cv_dlopen_self_static
=cross
17236 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17237 lt_status
=$lt_dlunknown
17238 cat > conftest.
$ac_ext <<_LT_EOF
17239 #line 17239 "configure"
17240 #include "confdefs.h"
17249 # define LT_DLGLOBAL RTLD_GLOBAL
17252 # define LT_DLGLOBAL DL_GLOBAL
17254 # define LT_DLGLOBAL 0
17258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17259 find out it does not work in some platform. */
17260 #ifndef LT_DLLAZY_OR_NOW
17262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17265 # define LT_DLLAZY_OR_NOW DL_LAZY
17268 # define LT_DLLAZY_OR_NOW RTLD_NOW
17271 # define LT_DLLAZY_OR_NOW DL_NOW
17273 # define LT_DLLAZY_OR_NOW 0
17280 /* When -fvisbility=hidden is used, assume the code has been annotated
17281 correspondingly for the symbols needed. */
17282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17283 void fnord () __attribute__((visibility("default")));
17286 void fnord () { int i=42; }
17289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17290 int status = $lt_dlunknown;
17294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17298 else puts (dlerror ());
17300 /* dlclose (self); */
17308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17309 (eval $ac_link) 2>&5
17311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17312 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17313 (.
/conftest
; exit; ) >&5 2>/dev
/null
17315 case x
$lt_status in
17316 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17317 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17318 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17321 # compilation failed
17322 lt_cv_dlopen_self_static
=no
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17333 CPPFLAGS
="$save_CPPFLAGS"
17334 LDFLAGS
="$save_LDFLAGS"
17339 case $lt_cv_dlopen_self in
17340 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17341 *) enable_dlopen_self
=unknown
;;
17344 case $lt_cv_dlopen_self_static in
17345 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17346 *) enable_dlopen_self_static
=unknown
;;
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17370 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17371 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17372 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374 $as_echo "yes" >&6; }
17376 # FIXME - insert some real tests, host_os isn't really good enough
17379 if test -n "$STRIP" ; then
17380 striplib
="$STRIP -x"
17381 old_striplib
="$STRIP -S"
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17383 $as_echo "yes" >&6; }
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17386 $as_echo "no" >&6; }
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17391 $as_echo "no" >&6; }
17407 # Report which library types will actually be built
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17411 $as_echo "$can_build_shared" >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17414 $as_echo_n "checking whether to build shared libraries... " >&6; }
17415 test "$can_build_shared" = "no" && enable_shared
=no
17417 # On AIX, shared libraries and static libraries use the same namespace, and
17418 # are all built from PIC.
17421 test "$enable_shared" = yes && enable_static
=no
17422 if test -n "$RANLIB"; then
17423 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17424 postinstall_cmds
='$RANLIB $lib'
17429 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17430 test "$enable_shared" = yes && enable_static
=no
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17435 $as_echo "$enable_shared" >&6; }
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17438 $as_echo_n "checking whether to build static libraries... " >&6; }
17439 # Make sure either enable_shared or enable_static is yes.
17440 test "$enable_shared" = yes || enable_static
=yes
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17442 $as_echo "$enable_static" >&6; }
17449 ac_cpp
='$CPP $CPPFLAGS'
17450 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17456 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17457 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17458 (test "X$CXX" != "Xg++"))) ; then
17460 ac_cpp
='$CXXCPP $CPPFLAGS'
17461 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17462 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17463 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17465 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17466 if test -z "$CXXCPP"; then
17467 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17468 $as_echo_n "(cached) " >&6
17470 # Double quotes because CXXCPP needs to be expanded
17471 for CXXCPP
in "$CXX -E" "/lib/cpp"
17473 ac_preproc_ok
=false
17474 for ac_cxx_preproc_warn_flag
in '' yes
17476 # Use a header file that comes with gcc, so configuring glibc
17477 # with a fresh cross-compiler works.
17478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479 # <limits.h> exists even on freestanding compilers.
17480 # On the NeXT, cc -E runs the code through the compiler's parser,
17481 # not just through cpp. "Syntax error" is here to catch this case.
17482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17485 # include <limits.h>
17487 # include <assert.h>
17491 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17494 # Broken: fails on valid input.
17497 rm -f conftest.err conftest.
$ac_ext
17499 # OK, works on sane cases. Now check whether nonexistent headers
17500 # can be detected and how.
17501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17502 /* end confdefs.h. */
17503 #include <ac_nonexistent.h>
17505 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17506 # Broken: success on invalid input.
17509 # Passes both tests.
17513 rm -f conftest.err conftest.
$ac_ext
17516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17517 rm -f conftest.err conftest.
$ac_ext
17518 if $ac_preproc_ok; then :
17523 ac_cv_prog_CXXCPP
=$CXXCPP
17526 CXXCPP
=$ac_cv_prog_CXXCPP
17528 ac_cv_prog_CXXCPP
=$CXXCPP
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17531 $as_echo "$CXXCPP" >&6; }
17532 ac_preproc_ok
=false
17533 for ac_cxx_preproc_warn_flag
in '' yes
17535 # Use a header file that comes with gcc, so configuring glibc
17536 # with a fresh cross-compiler works.
17537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 # <limits.h> exists even on freestanding compilers.
17539 # On the NeXT, cc -E runs the code through the compiler's parser,
17540 # not just through cpp. "Syntax error" is here to catch this case.
17541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17544 # include <limits.h>
17546 # include <assert.h>
17550 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17553 # Broken: fails on valid input.
17556 rm -f conftest.err conftest.
$ac_ext
17558 # OK, works on sane cases. Now check whether nonexistent headers
17559 # can be detected and how.
17560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17562 #include <ac_nonexistent.h>
17564 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17565 # Broken: success on invalid input.
17568 # Passes both tests.
17572 rm -f conftest.err conftest.
$ac_ext
17575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17576 rm -f conftest.err conftest.
$ac_ext
17577 if $ac_preproc_ok; then :
17580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17582 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17583 See \`config.log' for more details." "$LINENO" 5; }
17587 ac_cpp
='$CPP $CPPFLAGS'
17588 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17593 _lt_caught_CXX_error
=yes
17597 ac_cpp
='$CXXCPP $CPPFLAGS'
17598 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17599 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17600 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17602 archive_cmds_need_lc_CXX
=no
17603 allow_undefined_flag_CXX
=
17604 always_export_symbols_CXX
=no
17605 archive_expsym_cmds_CXX
=
17606 compiler_needs_object_CXX
=no
17607 export_dynamic_flag_spec_CXX
=
17608 hardcode_direct_CXX
=no
17609 hardcode_direct_absolute_CXX
=no
17610 hardcode_libdir_flag_spec_CXX
=
17611 hardcode_libdir_flag_spec_ld_CXX
=
17612 hardcode_libdir_separator_CXX
=
17613 hardcode_minus_L_CXX
=no
17614 hardcode_shlibpath_var_CXX
=unsupported
17615 hardcode_automatic_CXX
=no
17616 inherit_rpath_CXX
=no
17618 module_expsym_cmds_CXX
=
17619 link_all_deplibs_CXX
=unknown
17620 old_archive_cmds_CXX
=$old_archive_cmds
17621 reload_flag_CXX
=$reload_flag
17622 reload_cmds_CXX
=$reload_cmds
17623 no_undefined_flag_CXX
=
17624 whole_archive_flag_spec_CXX
=
17625 enable_shared_with_static_runtimes_CXX
=no
17627 # Source file extension for C++ test sources.
17630 # Object file extension for compiled C++ test sources.
17634 # No sense in running all these tests if we already determined that
17635 # the CXX compiler isn't working. Some variables (like enable_shared)
17636 # are currently assumed to apply to all compilers on this platform,
17637 # and will be corrupted by setting them based on a non-working compiler.
17638 if test "$_lt_caught_CXX_error" != yes; then
17639 # Code to be used in simple compile tests
17640 lt_simple_compile_test_code
="int some_variable = 0;"
17642 # Code to be used in simple link tests
17643 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17652 # If no C compiler was specified, use CC.
17655 # If no C compiler flags were specified, use CFLAGS.
17656 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17658 # Allow CC to be a program name with arguments.
17662 # save warnings/boilerplate of simple test code
17663 ac_outfile
=conftest.
$ac_objext
17664 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17665 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17666 _lt_compiler_boilerplate
=`cat conftest.err`
17669 ac_outfile
=conftest.
$ac_objext
17670 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17671 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17672 _lt_linker_boilerplate
=`cat conftest.err`
17676 # Allow CC to be a program name with arguments.
17681 lt_save_with_gnu_ld
=$with_gnu_ld
17682 lt_save_path_LD
=$lt_cv_path_LD
17683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17684 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17686 $as_unset lt_cv_prog_gnu_ld
17688 if test -n "${lt_cv_path_LDCXX+set}"; then
17689 lt_cv_path_LD
=$lt_cv_path_LDCXX
17691 $as_unset lt_cv_path_LD
17693 test -z "${LDCXX+set}" || LD
=$LDCXX
17697 for cc_temp
in $compiler""; do
17699 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17700 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17705 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17708 if test -n "$compiler"; then
17709 # We don't want -fno-exception when compiling C++ code, so set the
17710 # no_builtin_flag separately
17711 if test "$GXX" = yes; then
17712 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17714 lt_prog_compiler_no_builtin_flag_CXX
=
17717 if test "$GXX" = yes; then
17718 # Set up default GNU C++ configuration
17722 # Check whether --with-gnu-ld was given.
17723 if test "${with_gnu_ld+set}" = set; then :
17724 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17730 if test "$GCC" = yes; then
17731 # Check if gcc -print-prog-name=ld gives a path.
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17733 $as_echo_n "checking for ld used by $CC... " >&6; }
17736 # gcc leaves a trailing carriage return which upsets mingw
17737 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17739 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17742 # Accept absolute paths.
17744 re_direlt
='/[^/][^/]*/\.\./'
17745 # Canonicalize the pathname of ld
17746 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17747 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17748 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17750 test -z "$LD" && LD
="$ac_prog"
17753 # If it fails, then pretend we aren't using GCC.
17757 # If it is relative, then search for the first ld in PATH.
17758 with_gnu_ld
=unknown
17761 elif test "$with_gnu_ld" = yes; then
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17763 $as_echo_n "checking for GNU ld... " >&6; }
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17766 $as_echo_n "checking for non-GNU ld... " >&6; }
17768 if test "${lt_cv_path_LD+set}" = set; then :
17769 $as_echo_n "(cached) " >&6
17771 if test -z "$LD"; then
17772 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17773 for ac_dir
in $PATH; do
17775 test -z "$ac_dir" && ac_dir
=.
17776 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17777 lt_cv_path_LD
="$ac_dir/$ac_prog"
17778 # Check to see if the program is GNU ld. I'd rather use --version,
17779 # but apparently some variants of GNU ld only accept -v.
17780 # Break only if it was the GNU/non-GNU ld that we prefer.
17781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17782 *GNU
* |
*'with BFD'*)
17783 test "$with_gnu_ld" != no
&& break
17786 test "$with_gnu_ld" != yes && break
17793 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17797 LD
="$lt_cv_path_LD"
17798 if test -n "$LD"; then
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17800 $as_echo "$LD" >&6; }
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17805 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17812 case `$LD -v 2>&1 </dev/null` in
17813 *GNU
* |
*'with BFD'*)
17814 lt_cv_prog_gnu_ld
=yes
17817 lt_cv_prog_gnu_ld
=no
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17823 with_gnu_ld
=$lt_cv_prog_gnu_ld
17831 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17832 # archiving commands below assume that GNU ld is being used.
17833 if test "$with_gnu_ld" = yes; then
17834 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17835 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'
17837 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17838 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17840 # If archive_cmds runs LD, not CC, wlarc should be empty
17841 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17842 # investigate it a little bit more. (MM)
17845 # ancient GNU ld didn't support --whole-archive et. al.
17846 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17847 $GREP 'no-whole-archive' > /dev
/null
; then
17848 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17850 whole_archive_flag_spec_CXX
=
17856 # A generic and very simple default shared library creation
17857 # command for GNU C++ for the case where it uses the native
17858 # linker, instead of GNU ld. If possible, this setting should
17859 # overridden to take advantage of the native linker features on
17860 # the platform it is being used on.
17861 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17864 # Commands to make compiler produce verbose output that lists
17865 # what "hidden" libraries, object files and flags are used when
17866 # linking a shared library.
17867 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17875 # PORTME: fill in a description of your system's C++ link characteristics
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17881 # FIXME: insert proper C++ library support
17885 if test "$host_cpu" = ia64
; then
17886 # On IA64, the linker does run time linking by default, so we don't
17887 # have to do anything special.
17888 aix_use_runtimelinking
=no
17889 exp_sym_flag
='-Bexport'
17892 aix_use_runtimelinking
=no
17894 # Test if we are trying to use run time linking or normal
17895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17896 # need to do runtime linking.
17897 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17898 for ld_flag
in $LDFLAGS; do
17901 aix_use_runtimelinking
=yes
17909 exp_sym_flag
='-bexport'
17910 no_entry_flag
='-bnoentry'
17913 # When large executables or shared objects are built, AIX ld can
17914 # have problems creating the table of contents. If linking a library
17915 # or program results in "error TOC overflow" add -mminimal-toc to
17916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17919 archive_cmds_CXX
=''
17920 hardcode_direct_CXX
=yes
17921 hardcode_direct_absolute_CXX
=yes
17922 hardcode_libdir_separator_CXX
=':'
17923 link_all_deplibs_CXX
=yes
17924 file_list_spec_CXX
='${wl}-f,'
17926 if test "$GXX" = yes; then
17927 case $host_os in aix4.
[012]|aix4.
[012].
*)
17928 # We only want to do this on AIX 4.2 and lower, the check
17929 # below for broken collect2 doesn't work under 4.3+
17930 collect2name
=`${CC} -print-prog-name=collect2`
17931 if test -f "$collect2name" &&
17932 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17934 # We have reworked collect2
17937 # We have old collect2
17938 hardcode_direct_CXX
=unsupported
17939 # It fails to find uninstalled libraries when the uninstalled
17940 # path is not listed in the libpath. Setting hardcode_minus_L
17941 # to unsupported forces relinking
17942 hardcode_minus_L_CXX
=yes
17943 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17944 hardcode_libdir_separator_CXX
=
17947 shared_flag
='-shared'
17948 if test "$aix_use_runtimelinking" = yes; then
17949 shared_flag
="$shared_flag "'${wl}-G'
17953 if test "$host_cpu" = ia64
; then
17954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17955 # chokes on -Wl,-G. The following line is correct:
17958 if test "$aix_use_runtimelinking" = yes; then
17959 shared_flag
='${wl}-G'
17961 shared_flag
='${wl}-bM:SRE'
17966 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17967 # It seems that -bexpall does not export symbols beginning with
17968 # underscore (_), so it is better to generate a list of symbols to
17970 always_export_symbols_CXX
=yes
17971 if test "$aix_use_runtimelinking" = yes; then
17972 # Warning - without using the other runtime loading flags (-brtl),
17973 # -berok will link without error, but may produce a broken library.
17974 allow_undefined_flag_CXX
='-berok'
17975 # Determine the default libpath from the value encoded in an empty
17977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h. */
17988 if ac_fn_cxx_try_link
"$LINENO"; then :
17990 lt_aix_libpath_sed
='
17991 /Import File Strings/,/^$/ {
17997 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 # Check for a 64-bit object if we didn't find anything.
17999 if test -z "$aix_libpath"; then
18000 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18003 rm -f core conftest.err conftest.
$ac_objext \
18004 conftest
$ac_exeext conftest.
$ac_ext
18005 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18007 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18009 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"
18011 if test "$host_cpu" = ia64
; then
18012 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18013 allow_undefined_flag_CXX
="-z nodefs"
18014 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"
18016 # Determine the default libpath from the value encoded in an
18017 # empty executable.
18018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18029 if ac_fn_cxx_try_link
"$LINENO"; then :
18031 lt_aix_libpath_sed
='
18032 /Import File Strings/,/^$/ {
18038 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18039 # Check for a 64-bit object if we didn't find anything.
18040 if test -z "$aix_libpath"; then
18041 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18044 rm -f core conftest.err conftest.
$ac_objext \
18045 conftest
$ac_exeext conftest.
$ac_ext
18046 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18048 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18049 # Warning - without using the other run time loading flags,
18050 # -berok will link without error, but may produce a broken library.
18051 no_undefined_flag_CXX
=' ${wl}-bernotok'
18052 allow_undefined_flag_CXX
=' ${wl}-berok'
18053 if test "$with_gnu_ld" = yes; then
18054 # We only use this code for GNU lds that support --whole-archive.
18055 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18057 # Exported symbols can be pulled into shared objects from archives
18058 whole_archive_flag_spec_CXX
='$convenience'
18060 archive_cmds_need_lc_CXX
=yes
18061 # This is similar to how AIX traditionally builds its shared
18063 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'
18069 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18070 allow_undefined_flag_CXX
=unsupported
18071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18072 # support --undefined. This deserves some investigation. FIXME
18073 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18080 case $cc_basename in
18082 # FIXME: insert proper C++ library support
18088 cygwin
* | mingw
* | pw32
* | cegcc
*)
18089 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18090 # as there is no search path for DLLs.
18091 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18092 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18093 allow_undefined_flag_CXX
=unsupported
18094 always_export_symbols_CXX
=no
18095 enable_shared_with_static_runtimes_CXX
=yes
18097 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18098 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'
18099 # If the export-symbols file already is a .def file (1st line
18100 # is EXPORTS), use it as is; otherwise, prepend...
18101 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18102 cp $export_symbols $output_objdir/$soname.def;
18104 echo EXPORTS > $output_objdir/$soname.def;
18105 cat $export_symbols >> $output_objdir/$soname.def;
18107 $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'
18112 darwin
* | rhapsody
*)
18115 archive_cmds_need_lc_CXX
=no
18116 hardcode_direct_CXX
=no
18117 hardcode_automatic_CXX
=yes
18118 hardcode_shlibpath_var_CXX
=unsupported
18119 if test "$lt_cv_ld_force_load" = "yes"; then
18120 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\"`'
18122 whole_archive_flag_spec_CXX
=''
18124 link_all_deplibs_CXX
=yes
18125 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18126 case $cc_basename in
18127 ifort
*) _lt_dar_can_shared
=yes ;;
18128 *) _lt_dar_can_shared
=$GCC ;;
18130 if test "$_lt_dar_can_shared" = "yes"; then
18131 output_verbose_link_cmd
=func_echo_all
18132 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}"
18133 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18134 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}"
18135 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}"
18136 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18137 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}"
18138 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}"
18148 case $cc_basename in
18150 # FIXME: insert proper C++ library support
18154 # Green Hills C++ Compiler
18155 # FIXME: insert proper C++ library support
18159 # FIXME: insert proper C++ library support
18166 # C++ shared libraries reported to be fairly broken before
18172 archive_cmds_need_lc_CXX
=no
18175 freebsd
* | dragonfly
*)
18176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18185 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18186 link_all_deplibs_CXX
=yes
18190 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18191 hardcode_libdir_separator_CXX
=:
18192 export_dynamic_flag_spec_CXX
='${wl}-E'
18193 hardcode_direct_CXX
=yes
18194 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18195 # but as the default
18196 # location of the library.
18198 case $cc_basename in
18200 # FIXME: insert proper C++ library support
18204 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'
18205 # Commands to make compiler produce verbose output that lists
18206 # what "hidden" libraries, object files and flags are used when
18207 # linking a shared library.
18209 # There doesn't appear to be a way to prevent this compiler from
18210 # explicitly linking system object files so we need to strip them
18211 # from the output so that they don't get included in the library
18213 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"'
18216 if test "$GXX" = yes; then
18217 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'
18219 # FIXME: insert proper C++ library support
18227 if test $with_gnu_ld = no
; then
18228 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18229 hardcode_libdir_separator_CXX
=:
18235 export_dynamic_flag_spec_CXX
='${wl}-E'
18241 hardcode_direct_CXX
=no
18242 hardcode_shlibpath_var_CXX
=no
18245 hardcode_direct_CXX
=yes
18246 hardcode_direct_absolute_CXX
=yes
18247 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18248 # but as the default
18249 # location of the library.
18253 case $cc_basename in
18255 # FIXME: insert proper C++ library support
18261 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18264 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18267 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18270 # Commands to make compiler produce verbose output that lists
18271 # what "hidden" libraries, object files and flags are used when
18272 # linking a shared library.
18274 # There doesn't appear to be a way to prevent this compiler from
18275 # explicitly linking system object files so we need to strip them
18276 # from the output so that they don't get included in the library
18278 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"'
18281 if test "$GXX" = yes; then
18282 if test $with_gnu_ld = no
; then
18285 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18288 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18291 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'
18296 # FIXME: insert proper C++ library support
18304 hardcode_direct_CXX
=no
18305 hardcode_shlibpath_var_CXX
=no
18306 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18307 export_dynamic_flag_spec_CXX
='${wl}-E'
18308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18309 # Instead, shared libraries are loaded at an image base (0x10000000 by
18310 # default) and relocated if they conflict, which is a slow very memory
18311 # consuming and fragmenting process. To avoid this, we pick a random,
18312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18314 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'
18315 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'
18318 case $cc_basename in
18321 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'
18323 # Archives containing C++ object files must be created using
18324 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18325 # necessary to make sure instantiated templates are included
18327 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18330 if test "$GXX" = yes; then
18331 if test "$with_gnu_ld" = no
; then
18332 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'
18334 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'
18337 link_all_deplibs_CXX
=yes
18340 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18341 hardcode_libdir_separator_CXX
=:
18342 inherit_rpath_CXX
=yes
18345 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18346 case $cc_basename in
18348 # Kuck and Associates, Inc. (KAI) C++ Compiler
18350 # KCC will only create a shared library if the output file
18351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18352 # to its proper name (with version) after linking.
18353 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'
18354 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'
18355 # Commands to make compiler produce verbose output that lists
18356 # what "hidden" libraries, object files and flags are used when
18357 # linking a shared library.
18359 # There doesn't appear to be a way to prevent this compiler from
18360 # explicitly linking system object files so we need to strip them
18361 # from the output so that they don't get included in the library
18363 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"'
18365 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18366 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18368 # Archives containing C++ object files must be created using
18369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18370 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18375 # version 8.0 and above of icpc choke on multiply defined symbols
18376 # if we add $predep_objects and $postdep_objects, however 7.1 and
18377 # earlier do not add the objects themselves.
18378 case `$CC -V 2>&1` in
18380 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18381 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'
18383 *) # Version 8.0 or newer
18386 ia64
*) tmp_idyn
=' -i_dynamic';;
18388 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18389 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'
18392 archive_cmds_need_lc_CXX
=no
18393 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18394 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18395 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18398 # Portland Group C++ compiler
18400 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18401 prelink_cmds_CXX
='tpldir=Template.dir~
18403 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18404 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18405 old_archive_cmds_CXX
='tpldir=Template.dir~
18407 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18408 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18410 archive_cmds_CXX
='tpldir=Template.dir~
18412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18413 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18414 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18416 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18417 $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'
18419 *) # Version 6 and above use weak symbols
18420 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18421 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'
18425 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18426 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18427 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'
18431 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18432 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'
18434 runpath_var
=LD_RUN_PATH
18435 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18436 hardcode_libdir_separator_CXX
=:
18438 # Commands to make compiler produce verbose output that lists
18439 # what "hidden" libraries, object files and flags are used when
18440 # linking a shared library.
18442 # There doesn't appear to be a way to prevent this compiler from
18443 # explicitly linking system object files so we need to strip them
18444 # from the output so that they don't get included in the library
18446 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'
18448 xl
* | mpixl
* | bgxl
*)
18449 # IBM XL 8.0 on PPC, with GNU ld
18450 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18451 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18452 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453 if test "x$supports_anon_versioning" = xyes
; then
18454 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18456 echo "local: *; };" >> $output_objdir/$libname.ver~
18457 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18461 case `$CC -V 2>&1 | sed 5q` in
18464 no_undefined_flag_CXX
=' -zdefs'
18465 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18466 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'
18467 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18468 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'
18469 compiler_needs_object_CXX
=yes
18471 # Not sure whether something based on
18472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18474 output_verbose_link_cmd
='func_echo_all'
18476 # Archives containing C++ object files must be created using
18477 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18478 # necessary to make sure instantiated templates are included
18480 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18488 # FIXME: insert proper C++ library support
18493 # FIXME: insert proper C++ library support
18498 case $cc_basename in
18500 # FIXME: insert proper C++ library support
18504 # FIXME: insert proper C++ library support
18511 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18512 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18514 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18515 hardcode_direct_CXX
=yes
18516 hardcode_shlibpath_var_CXX
=no
18518 # Workaround some broken pre-1.5 toolchains
18519 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18527 # C++ shared libraries are fairly broken
18532 if test -f /usr
/libexec
/ld.so
; then
18533 hardcode_direct_CXX
=yes
18534 hardcode_shlibpath_var_CXX
=no
18535 hardcode_direct_absolute_CXX
=yes
18536 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18537 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18539 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18540 export_dynamic_flag_spec_CXX
='${wl}-E'
18541 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18543 output_verbose_link_cmd
=func_echo_all
18549 osf3
* | osf4
* | osf5
*)
18550 case $cc_basename in
18552 # Kuck and Associates, Inc. (KAI) C++ Compiler
18554 # KCC will only create a shared library if the output file
18555 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18556 # to its proper name (with version) after linking.
18557 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'
18559 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18560 hardcode_libdir_separator_CXX
=:
18562 # Archives containing C++ object files must be created using
18563 # the KAI C++ compiler.
18565 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18566 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18570 # Rational C++ 2.4.1
18571 # FIXME: insert proper C++ library support
18577 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18578 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'
18579 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18582 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18583 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'
18584 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18585 echo "-hidden">> $lib.exp~
18586 $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~
18588 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18592 hardcode_libdir_separator_CXX
=:
18594 # Commands to make compiler produce verbose output that lists
18595 # what "hidden" libraries, object files and flags are used when
18596 # linking a shared library.
18598 # There doesn't appear to be a way to prevent this compiler from
18599 # explicitly linking system object files so we need to strip them
18600 # from the output so that they don't get included in the library
18602 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"'
18605 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18606 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18609 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'
18612 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'
18616 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18617 hardcode_libdir_separator_CXX
=:
18619 # Commands to make compiler produce verbose output that lists
18620 # what "hidden" libraries, object files and flags are used when
18621 # linking a shared library.
18622 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18625 # FIXME: insert proper C++ library support
18633 # FIXME: insert proper C++ library support
18638 case $cc_basename in
18641 # FIXME: insert proper C++ library support
18646 # FIXME: insert proper C++ library support
18650 # FIXME: insert proper C++ library support
18657 case $cc_basename in
18659 # Sun C++ 4.2, 5.x and Centerline C++
18660 archive_cmds_need_lc_CXX
=yes
18661 no_undefined_flag_CXX
=' -zdefs'
18662 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18663 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18664 $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'
18666 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18667 hardcode_shlibpath_var_CXX
=no
18669 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18671 # The compiler driver will combine and reorder linker options,
18672 # but understands `-z linker_flag'.
18673 # Supported since Solaris 2.6 (maybe 2.5.1?)
18674 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18677 link_all_deplibs_CXX
=yes
18679 output_verbose_link_cmd
='func_echo_all'
18681 # Archives containing C++ object files must be created using
18682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18683 # necessary to make sure instantiated templates are included
18685 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18688 # Green Hills C++ Compiler
18689 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18691 # The C++ compiler must be used to create the archive.
18692 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18695 # GNU C++ compiler with Solaris linker
18696 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18697 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18698 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18699 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18700 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18706 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18710 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18711 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18714 # Commands to make compiler produce verbose output that lists
18715 # what "hidden" libraries, object files and flags are used when
18716 # linking a shared library.
18717 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18720 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18722 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18724 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18732 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18733 no_undefined_flag_CXX
='${wl}-z,text'
18734 archive_cmds_need_lc_CXX
=no
18735 hardcode_shlibpath_var_CXX
=no
18736 runpath_var
='LD_RUN_PATH'
18738 case $cc_basename in
18740 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18741 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18744 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18745 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 sysv5
* | sco3.2v5
* | sco5v6
*)
18751 # Note: We can NOT use -z defs as we might desire, because we do not
18752 # link with -lc, and that would cause any symbols used from libc to
18753 # always be unresolved, which means just about no library would
18754 # ever link correctly. If we're not using GNU ld we use -z text
18755 # though, which does catch some bad symbols but isn't as heavy-handed
18757 no_undefined_flag_CXX
='${wl}-z,text'
18758 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18759 archive_cmds_need_lc_CXX
=no
18760 hardcode_shlibpath_var_CXX
=no
18761 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18762 hardcode_libdir_separator_CXX
=':'
18763 link_all_deplibs_CXX
=yes
18764 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18765 runpath_var
='LD_RUN_PATH'
18767 case $cc_basename in
18769 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18770 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18771 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18772 '"$old_archive_cmds_CXX"
18773 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18774 '"$reload_cmds_CXX"
18777 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18778 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18784 case $cc_basename in
18786 # NonStop-UX NCC 3.20
18787 # FIXME: insert proper C++ library support
18791 # FIXME: insert proper C++ library support
18798 # FIXME: insert proper C++ library support
18803 # FIXME: insert proper C++ library support
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18809 $as_echo "$ld_shlibs_CXX" >&6; }
18810 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18816 ## There is no encapsulation within the following macros, do not change
18817 ## the running order or otherwise move them around unless you know exactly
18818 ## what you are doing...
18819 # Dependencies to place before and after the object being linked:
18820 predep_objects_CXX
=
18821 postdep_objects_CXX
=
18824 compiler_lib_search_path_CXX
=
18826 cat > conftest.
$ac_ext <<_LT_EOF
18830 Foo (void) { a = 0; }
18836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18837 (eval $ac_compile) 2>&5
18839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18840 test $ac_status = 0; }; then
18841 # Parse the compiler output and extract the necessary
18842 # objects, libraries and library flags.
18844 # Sentinel used to keep track of whether or not we are before
18845 # the conftest object file.
18846 pre_test_object_deps_done
=no
18848 for p
in `eval "$output_verbose_link_cmd"`; do
18852 # Some compilers place space between "-{L,R}" and the path.
18853 # Remove the space.
18854 if test $p = "-L" ||
18855 test $p = "-R"; then
18862 if test "$pre_test_object_deps_done" = no
; then
18865 # Internal compiler library paths should come after those
18866 # provided the user. The postdeps already come after the
18867 # user supplied libs so there is no need to process them.
18868 if test -z "$compiler_lib_search_path_CXX"; then
18869 compiler_lib_search_path_CXX
="${prev}${p}"
18871 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18874 # The "-l" case would never come before the object being
18875 # linked, so don't bother handling this case.
18878 if test -z "$postdeps_CXX"; then
18879 postdeps_CXX
="${prev}${p}"
18881 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18887 # This assumes that the test object file only shows up
18888 # once in the compiler output.
18889 if test "$p" = "conftest.$objext"; then
18890 pre_test_object_deps_done
=yes
18894 if test "$pre_test_object_deps_done" = no
; then
18895 if test -z "$predep_objects_CXX"; then
18896 predep_objects_CXX
="$p"
18898 predep_objects_CXX
="$predep_objects_CXX $p"
18901 if test -z "$postdep_objects_CXX"; then
18902 postdep_objects_CXX
="$p"
18904 postdep_objects_CXX
="$postdep_objects_CXX $p"
18909 *) ;; # Ignore the rest.
18917 echo "libtool.m4: error: problem compiling CXX test program"
18920 $RM -f confest.
$objext
18922 # PORTME: override above test on systems where it is broken
18925 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18926 # hack all around it, let's just trust "g++" to DTRT.
18927 predep_objects_CXX
=
18928 postdep_objects_CXX
=
18933 case `$CC -V 2>&1 | sed 5q` in
18937 # The more standards-conforming stlport4 library is
18938 # incompatible with the Cstd library. Avoid specifying
18939 # it if it's in CXXFLAGS. Ignore libCrun as
18940 # -library=stlport4 depends on it.
18941 case " $CXX $CXXFLAGS " in
18942 *" -library=stlport4 "*)
18943 solaris_use_stlport4
=yes
18947 if test "$solaris_use_stlport4" != yes; then
18948 postdeps_CXX
='-library=Cstd -library=Crun'
18955 case $cc_basename in
18957 # The more standards-conforming stlport4 library is
18958 # incompatible with the Cstd library. Avoid specifying
18959 # it if it's in CXXFLAGS. Ignore libCrun as
18960 # -library=stlport4 depends on it.
18961 case " $CXX $CXXFLAGS " in
18962 *" -library=stlport4 "*)
18963 solaris_use_stlport4
=yes
18967 # Adding this requires a known-good setup of shared libraries for
18968 # Sun compiler versions before 5.6, else PIC objects from an old
18969 # archive will be linked into the output, leading to subtle bugs.
18970 if test "$solaris_use_stlport4" != yes; then
18971 postdeps_CXX
='-library=Cstd -library=Crun'
18979 case " $postdeps_CXX " in
18980 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18982 compiler_lib_search_dirs_CXX
=
18983 if test -n "${compiler_lib_search_path_CXX}"; then
18984 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19017 lt_prog_compiler_wl_CXX
=
19018 lt_prog_compiler_pic_CXX
=
19019 lt_prog_compiler_static_CXX
=
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19024 # C++ specific cases for pic, static, wl, etc.
19025 if test "$GXX" = yes; then
19026 lt_prog_compiler_wl_CXX
='-Wl,'
19027 lt_prog_compiler_static_CXX
='-static'
19031 # All AIX code is PIC.
19032 if test "$host_cpu" = ia64
; then
19033 # AIX 5 now supports IA64 processor
19034 lt_prog_compiler_static_CXX
='-Bstatic'
19041 # see comment about AmigaOS4 .so support
19042 lt_prog_compiler_pic_CXX
='-fPIC'
19045 # FIXME: we need at least 68020 code to build shared libraries, but
19046 # adding the `-m68020' flag to GCC prevents building anything better,
19048 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19053 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19054 # PIC is the default for these OSes.
19056 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19057 # This hack is so that the source file can tell whether it is being
19058 # built for inclusion in a dll (and should export symbols for example).
19059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19060 # (--disable-auto-import) libraries
19061 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19063 darwin
* | rhapsody
*)
19064 # PIC is the default on this platform
19065 # Common symbols not allowed in MH_DYLIB files
19066 lt_prog_compiler_pic_CXX
='-fno-common'
19069 # DJGPP does not support shared libraries at all
19070 lt_prog_compiler_pic_CXX
=
19073 # PIC is the default for Haiku.
19074 # The "-static" flag exists, but is broken.
19075 lt_prog_compiler_static_CXX
=
19078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19079 # Instead, we relocate shared libraries at runtime.
19082 if test -d /usr
/nec
; then
19083 lt_prog_compiler_pic_CXX
=-Kconform_pic
19087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19089 # sets the default TLS model and affects inlining.
19094 lt_prog_compiler_pic_CXX
='-fPIC'
19099 # QNX uses GNU C++, but need to define -shared option too, otherwise
19100 # it will coredump.
19101 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19104 lt_prog_compiler_pic_CXX
='-fPIC'
19110 # All AIX code is PIC.
19111 if test "$host_cpu" = ia64
; then
19112 # AIX 5 now supports IA64 processor
19113 lt_prog_compiler_static_CXX
='-Bstatic'
19115 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19119 case $cc_basename in
19121 # Green Hills C++ Compiler
19122 # _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"
19127 case $cc_basename in
19129 lt_prog_compiler_pic_CXX
='-KPIC'
19132 # Green Hills C++ Compiler
19133 lt_prog_compiler_pic_CXX
='-pic'
19139 freebsd
* | dragonfly
*)
19140 # FreeBSD uses GNU C++
19142 hpux9
* | hpux10
* | hpux11
*)
19143 case $cc_basename in
19145 lt_prog_compiler_wl_CXX
='-Wl,'
19146 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19147 if test "$host_cpu" != ia64
; then
19148 lt_prog_compiler_pic_CXX
='+Z'
19152 lt_prog_compiler_wl_CXX
='-Wl,'
19153 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19159 lt_prog_compiler_pic_CXX
='+Z'
19168 # This is c89, which is MS Visual C++ (no shared libs)
19169 # Anyone wants to do a port?
19171 irix5
* | irix6
* | nonstopux
*)
19172 case $cc_basename in
19174 lt_prog_compiler_wl_CXX
='-Wl,'
19175 lt_prog_compiler_static_CXX
='-non_shared'
19176 # CC pic flag -KPIC is the default.
19182 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19183 case $cc_basename in
19186 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19187 lt_prog_compiler_pic_CXX
='-fPIC'
19190 # old Intel C++ for x86_64 which still supported -KPIC.
19191 lt_prog_compiler_wl_CXX
='-Wl,'
19192 lt_prog_compiler_pic_CXX
='-KPIC'
19193 lt_prog_compiler_static_CXX
='-static'
19196 # Intel C++, used to be incompatible with GCC.
19197 # ICC 10 doesn't accept -KPIC any more.
19198 lt_prog_compiler_wl_CXX
='-Wl,'
19199 lt_prog_compiler_pic_CXX
='-fPIC'
19200 lt_prog_compiler_static_CXX
='-static'
19203 # Portland Group C++ compiler
19204 lt_prog_compiler_wl_CXX
='-Wl,'
19205 lt_prog_compiler_pic_CXX
='-fpic'
19206 lt_prog_compiler_static_CXX
='-Bstatic'
19210 # Make sure the PIC flag is empty. It appears that all Alpha
19211 # Linux and Compaq Tru64 Unix objects are PIC.
19212 lt_prog_compiler_pic_CXX
=
19213 lt_prog_compiler_static_CXX
='-non_shared'
19215 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19216 # IBM XL 8.0, 9.0 on PPC and BlueGene
19217 lt_prog_compiler_wl_CXX
='-Wl,'
19218 lt_prog_compiler_pic_CXX
='-qpic'
19219 lt_prog_compiler_static_CXX
='-qstaticlink'
19222 case `$CC -V 2>&1 | sed 5q` in
19225 lt_prog_compiler_pic_CXX
='-KPIC'
19226 lt_prog_compiler_static_CXX
='-Bstatic'
19227 lt_prog_compiler_wl_CXX
='-Qoption ld '
19238 case $cc_basename in
19240 lt_prog_compiler_pic_CXX
='-W c,exportall'
19249 # QNX uses GNU C++, but need to define -shared option too, otherwise
19250 # it will coredump.
19251 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19253 osf3
* | osf4
* | osf5
*)
19254 case $cc_basename in
19256 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19259 # Rational C++ 2.4.1
19260 lt_prog_compiler_pic_CXX
='-pic'
19263 # Digital/Compaq C++
19264 lt_prog_compiler_wl_CXX
='-Wl,'
19265 # Make sure the PIC flag is empty. It appears that all Alpha
19266 # Linux and Compaq Tru64 Unix objects are PIC.
19267 lt_prog_compiler_pic_CXX
=
19268 lt_prog_compiler_static_CXX
='-non_shared'
19277 case $cc_basename in
19279 # Sun C++ 4.2, 5.x and Centerline C++
19280 lt_prog_compiler_pic_CXX
='-KPIC'
19281 lt_prog_compiler_static_CXX
='-Bstatic'
19282 lt_prog_compiler_wl_CXX
='-Qoption ld '
19285 # Green Hills C++ Compiler
19286 lt_prog_compiler_pic_CXX
='-PIC'
19293 case $cc_basename in
19296 lt_prog_compiler_pic_CXX
='-pic'
19297 lt_prog_compiler_static_CXX
='-Bstatic'
19301 lt_prog_compiler_pic_CXX
='-pic'
19307 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19308 case $cc_basename in
19310 lt_prog_compiler_wl_CXX
='-Wl,'
19311 lt_prog_compiler_pic_CXX
='-KPIC'
19312 lt_prog_compiler_static_CXX
='-Bstatic'
19317 case $cc_basename in
19319 # NonStop-UX NCC 3.20
19320 lt_prog_compiler_pic_CXX
='-KPIC'
19329 lt_prog_compiler_can_build_shared_CXX
=no
19335 # For platforms which do not support PIC, -DPIC is meaningless:
19337 lt_prog_compiler_pic_CXX
=
19340 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19344 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19349 # Check to make sure the PIC flag actually works.
19351 if test -n "$lt_prog_compiler_pic_CXX"; then
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19354 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19355 $as_echo_n "(cached) " >&6
19357 lt_cv_prog_compiler_pic_works_CXX
=no
19358 ac_outfile
=conftest.
$ac_objext
19359 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19360 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19361 # Insert the option either (1) after the last *FLAGS variable, or
19362 # (2) before a word containing "conftest.", or (3) at the end.
19363 # Note that $ac_compile itself does not contain backslashes and begins
19364 # with a dollar sign (not a hyphen), so the echo should work correctly.
19365 # The option is referenced via a variable to avoid confusing sed.
19366 lt_compile
=`echo "$ac_compile" | $SED \
19367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19369 -e 's:$: $lt_compiler_flag:'`
19370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19371 (eval "$lt_compile" 2>conftest.err
)
19373 cat conftest.err
>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 if (exit $ac_status) && test -s "$ac_outfile"; then
19376 # The compiler can only warn and ignore the option if not recognized
19377 # So say no if there are warnings other than the usual output.
19378 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19379 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19380 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19381 lt_cv_prog_compiler_pic_works_CXX
=yes
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19388 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19390 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19391 case $lt_prog_compiler_pic_CXX in
19393 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19396 lt_prog_compiler_pic_CXX
=
19397 lt_prog_compiler_can_build_shared_CXX
=no
19405 # Check to make sure the static flag actually works.
19407 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19409 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19410 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19411 $as_echo_n "(cached) " >&6
19413 lt_cv_prog_compiler_static_works_CXX
=no
19414 save_LDFLAGS
="$LDFLAGS"
19415 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19416 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19417 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19418 # The linker can only warn and ignore the option if not recognized
19419 # So say no if there are warnings
19420 if test -s conftest.err
; then
19421 # Append any errors to the config.log.
19422 cat conftest.err
1>&5
19423 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19424 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19425 if diff conftest.exp conftest.er2
>/dev
/null
; then
19426 lt_cv_prog_compiler_static_works_CXX
=yes
19429 lt_cv_prog_compiler_static_works_CXX
=yes
19433 LDFLAGS
="$save_LDFLAGS"
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19437 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19439 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19442 lt_prog_compiler_static_CXX
=
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19450 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19451 $as_echo_n "(cached) " >&6
19453 lt_cv_prog_compiler_c_o_CXX
=no
19454 $RM -r conftest
2>/dev
/null
19458 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19460 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19461 # Insert the option either (1) after the last *FLAGS variable, or
19462 # (2) before a word containing "conftest.", or (3) at the end.
19463 # Note that $ac_compile itself does not contain backslashes and begins
19464 # with a dollar sign (not a hyphen), so the echo should work correctly.
19465 lt_compile
=`echo "$ac_compile" | $SED \
19466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19468 -e 's:$: $lt_compiler_flag:'`
19469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19470 (eval "$lt_compile" 2>out
/conftest.err
)
19472 cat out
/conftest.err
>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19476 # The compiler can only warn and ignore the option if not recognized
19477 # So say no if there are warnings
19478 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19479 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19480 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19481 lt_cv_prog_compiler_c_o_CXX
=yes
19486 # SGI C++ compiler will create directory out/ii_files/ for
19487 # template instantiation
19488 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19489 $RM out
/* && rmdir out
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19496 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19502 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19503 $as_echo_n "(cached) " >&6
19505 lt_cv_prog_compiler_c_o_CXX
=no
19506 $RM -r conftest
2>/dev
/null
19510 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19512 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19513 # Insert the option either (1) after the last *FLAGS variable, or
19514 # (2) before a word containing "conftest.", or (3) at the end.
19515 # Note that $ac_compile itself does not contain backslashes and begins
19516 # with a dollar sign (not a hyphen), so the echo should work correctly.
19517 lt_compile
=`echo "$ac_compile" | $SED \
19518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19520 -e 's:$: $lt_compiler_flag:'`
19521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19522 (eval "$lt_compile" 2>out
/conftest.err
)
19524 cat out
/conftest.err
>&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19528 # The compiler can only warn and ignore the option if not recognized
19529 # So say no if there are warnings
19530 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19531 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19532 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19533 lt_cv_prog_compiler_c_o_CXX
=yes
19538 # SGI C++ compiler will create directory out/ii_files/ for
19539 # template instantiation
19540 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19541 $RM out
/* && rmdir out
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19548 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19553 hard_links
="nottested"
19554 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19555 # do not overwrite the value of need_locks provided by the user
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19557 $as_echo_n "checking if we can lock with hard links... " >&6; }
19560 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19562 ln conftest.a conftest.b
2>&5 || hard_links
=no
19563 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19565 $as_echo "$hard_links" >&6; }
19566 if test "$hard_links" = no
; then
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19568 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19578 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19580 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19583 # If we're using GNU nm, then we don't want the "-C" option.
19584 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19585 # Also, AIX nm treats weak defined symbols like other global defined
19586 # symbols, whereas GNU nm marks them as "W".
19587 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19588 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'
19590 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'
19594 export_symbols_cmds_CXX
="$ltdll_cmds"
19596 cygwin
* | mingw
* | cegcc
*)
19597 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'
19600 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19603 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19606 $as_echo "$ld_shlibs_CXX" >&6; }
19607 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19609 with_gnu_ld_CXX
=$with_gnu_ld
19617 # Do we need to explicitly link libc?
19619 case "x$archive_cmds_need_lc_CXX" in
19621 # Assume -lc should be added
19622 archive_cmds_need_lc_CXX
=yes
19624 if test "$enable_shared" = yes && test "$GCC" = yes; then
19625 case $archive_cmds_CXX in
19627 # FIXME: we may have to deal with multi-command sequences.
19630 # Test whether the compiler implicitly links with -lc since on some
19631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19632 # to ld, don't add -lc before -lgcc.
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19635 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19636 $as_echo_n "(cached) " >&6
19639 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19642 (eval $ac_compile) 2>&5
19644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645 test $ac_status = 0; } 2>conftest.err
; then
19648 libobjs
=conftest.
$ac_objext
19650 wl
=$lt_prog_compiler_wl_CXX
19651 pic_flag
=$lt_prog_compiler_pic_CXX
19657 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19658 allow_undefined_flag_CXX
=
19659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19660 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663 test $ac_status = 0; }
19665 lt_cv_archive_cmds_need_lc_CXX
=no
19667 lt_cv_archive_cmds_need_lc_CXX
=yes
19669 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19671 cat conftest.err
1>&5
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19677 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19678 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19751 library_names_spec
=
19752 libname_spec
='lib$name'
19756 postuninstall_cmds
=
19760 shlibpath_overrides_runpath
=unknown
19762 dynamic_linker
="$host_os ld.so"
19763 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19764 need_lib_prefix
=unknown
19765 hardcode_into_libs
=no
19767 # when you set need_version to no, make sure it does not cause -set_version
19768 # flags to be left without arguments
19769 need_version
=unknown
19774 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19775 shlibpath_var
=LIBPATH
19777 # AIX 3 has no versioning support, so we append a major version to the name.
19778 soname_spec
='${libname}${release}${shared_ext}$major'
19785 hardcode_into_libs
=yes
19786 if test "$host_cpu" = ia64
; then
19787 # AIX 5 supports IA64
19788 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19789 shlibpath_var
=LD_LIBRARY_PATH
19791 # With GCC up to 2.95.x, collect2 would create an import file
19792 # for dependence libraries. The import file would start with
19793 # the line `#! .'. This would cause the generated library to
19794 # depend on `.', always an invalid library. This was fixed in
19795 # development snapshots of GCC prior to 3.0.
19797 aix4 | aix4.
[01] | aix4.
[01].
*)
19798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19800 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19803 can_build_shared
=no
19807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19808 # soname into executable. Probably we can add versioning support to
19809 # collect2, so additional links can be useful in future.
19810 if test "$aix_use_runtimelinking" = yes; then
19811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19812 # instead of lib<name>.a to let people know that these are not
19813 # typical AIX shared libraries.
19814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816 # We preserve .a as extension for shared libraries through AIX4.2
19817 # and later when we are not doing run time linking.
19818 library_names_spec
='${libname}${release}.a $libname.a'
19819 soname_spec
='${libname}${release}${shared_ext}$major'
19821 shlibpath_var
=LIBPATH
19828 # Since July 2007 AmigaOS4 officially supports .so libraries.
19829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833 library_names_spec
='$libname.ixlibrary $libname.a'
19834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19835 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'
19841 library_names_spec
='${libname}${shared_ext}'
19842 dynamic_linker
="$host_os ld.so"
19843 shlibpath_var
=LIBRARY_PATH
19849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850 soname_spec
='${libname}${release}${shared_ext}$major'
19851 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19852 shlibpath_var
=LD_LIBRARY_PATH
19853 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19854 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19855 # the default ld.so.conf also contains /usr/contrib/lib and
19856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19857 # libtool to hard-code these into programs
19860 cygwin
* | mingw
* | pw32
* | cegcc
*)
19861 version_type
=windows
19866 case $GCC,$host_os in
19867 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19868 library_names_spec
='$libname.dll.a'
19869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19870 postinstall_cmds
='base_file=`basename \${file}`~
19871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19872 dldir=$destdir/`dirname \$dlpath`~
19873 test -d \$dldir || mkdir -p \$dldir~
19874 $install_prog $dir/$dlname \$dldir/$dlname~
19875 chmod a+x \$dldir/$dlname~
19876 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19877 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19879 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19880 dlpath=$dir/\$dldll~
19882 shlibpath_overrides_runpath
=yes
19886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19887 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19891 # MinGW DLLs use traditional 'lib' prefix
19892 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19895 # pw32 DLLs use 'pw' prefix rather than 'lib'
19896 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19902 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19905 dynamic_linker
='Win32 ld.exe'
19906 # FIXME: first we should search . and the directory the executable is in
19910 darwin
* | rhapsody
*)
19911 dynamic_linker
="$host_os dyld"
19912 version_type
=darwin
19915 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19916 soname_spec
='${libname}${release}${major}$shared_ext'
19917 shlibpath_overrides_runpath
=yes
19918 shlibpath_var
=DYLD_LIBRARY_PATH
19919 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19921 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19929 soname_spec
='${libname}${release}${shared_ext}$major'
19930 shlibpath_var
=LD_LIBRARY_PATH
19937 freebsd
* | dragonfly
*)
19938 # DragonFly does not have aout. When/if they implement a new
19939 # versioning mechanism, adjust this.
19940 if test -x /usr
/bin
/objformat
; then
19941 objformat
=`/usr/bin/objformat`
19944 freebsd
[123]*) objformat
=aout
;;
19945 *) objformat
=elf
;;
19948 version_type
=freebsd-
$objformat
19949 case $version_type in
19951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19956 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19960 shlibpath_var
=LD_LIBRARY_PATH
19963 shlibpath_overrides_runpath
=yes
19965 freebsd3.
[01]* | freebsdelf3.
[01]*)
19966 shlibpath_overrides_runpath
=yes
19967 hardcode_into_libs
=yes
19969 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19970 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19971 shlibpath_overrides_runpath
=no
19972 hardcode_into_libs
=yes
19974 *) # from 4.6 on, and DragonFly
19975 shlibpath_overrides_runpath
=yes
19976 hardcode_into_libs
=yes
19985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19986 soname_spec
='${libname}${release}${shared_ext}$major'
19987 shlibpath_var
=LD_LIBRARY_PATH
19988 hardcode_into_libs
=yes
19995 dynamic_linker
="$host_os runtime_loader"
19996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19997 soname_spec
='${libname}${release}${shared_ext}$major'
19998 shlibpath_var
=LIBRARY_PATH
19999 shlibpath_overrides_runpath
=yes
20000 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20001 hardcode_into_libs
=yes
20004 hpux9
* | hpux10
* | hpux11
*)
20005 # Give a soname corresponding to the major version so that dld.sl refuses to
20006 # link against other versions.
20013 hardcode_into_libs
=yes
20014 dynamic_linker
="$host_os dld.so"
20015 shlibpath_var
=LD_LIBRARY_PATH
20016 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec
='${libname}${release}${shared_ext}$major'
20019 if test "X$HPUX_IA64_MODE" = X32
; then
20020 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20022 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20024 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20028 hardcode_into_libs
=yes
20029 dynamic_linker
="$host_os dld.sl"
20030 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20031 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20032 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033 soname_spec
='${libname}${release}${shared_ext}$major'
20034 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20035 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20039 dynamic_linker
="$host_os dld.sl"
20040 shlibpath_var
=SHLIB_PATH
20041 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 soname_spec
='${libname}${release}${shared_ext}$major'
20046 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20047 postinstall_cmds
='chmod 555 $lib'
20048 # or fails outright, so override atomically:
20049 install_override_mode
=555
20056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20057 soname_spec
='${libname}${release}${shared_ext}$major'
20058 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20059 shlibpath_var
=LD_LIBRARY_PATH
20060 shlibpath_overrides_runpath
=no
20061 hardcode_into_libs
=yes
20064 irix5
* | irix6
* | nonstopux
*)
20066 nonstopux
*) version_type
=nonstopux
;;
20068 if test "$lt_cv_prog_gnu_ld" = yes; then
20076 soname_spec
='${libname}${release}${shared_ext}$major'
20077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20079 irix5
* | nonstopux
*)
20080 libsuff
= shlibsuff
=
20083 case $LD in # libtool.m4 will add one of these switches to LD
20084 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20085 libsuff
= shlibsuff
= libmagic
=32-bit;;
20086 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20087 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20088 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20089 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20090 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20094 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20095 shlibpath_overrides_runpath
=no
20096 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20097 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20098 hardcode_into_libs
=yes
20101 # No shared lib support for Linux oldld, aout, or coff.
20102 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20106 # This must be Linux ELF.
20107 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20112 soname_spec
='${libname}${release}${shared_ext}$major'
20113 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20114 shlibpath_var
=LD_LIBRARY_PATH
20115 shlibpath_overrides_runpath
=no
20117 # Some binutils ld are patched to set DT_RUNPATH
20118 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20119 $as_echo_n "(cached) " >&6
20121 lt_cv_shlibpath_overrides_runpath
=no
20122 save_LDFLAGS
=$LDFLAGS
20123 save_libdir
=$libdir
20124 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20125 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20137 if ac_fn_cxx_try_link
"$LINENO"; then :
20138 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20139 lt_cv_shlibpath_overrides_runpath
=yes
20142 rm -f core conftest.err conftest.
$ac_objext \
20143 conftest
$ac_exeext conftest.
$ac_ext
20144 LDFLAGS
=$save_LDFLAGS
20145 libdir
=$save_libdir
20149 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20151 # This implies no fast_install, which is unacceptable.
20152 # Some rework will be needed to allow for fast_install
20153 # before this can be enabled.
20154 hardcode_into_libs
=yes
20156 # Append ld.so.conf contents to the search path
20157 if test -f /etc
/ld.so.conf
; then
20158 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' ' '`
20159 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20162 # We used to test for /lib/ld.so.1 and disable shared libraries on
20163 # powerpc, because MkLinux only supported shared libraries with the
20164 # GNU dynamic linker. Since this was broken with cross compilers,
20165 # most powerpc-linux boxes support dynamic linking these days and
20166 # people can always --disable-shared, the test was removed, and we
20167 # assume the GNU/Linux dynamic linker is in use.
20168 dynamic_linker
='GNU/Linux ld.so'
20175 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20177 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20178 dynamic_linker
='NetBSD (a.out) ld.so'
20180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20181 soname_spec
='${libname}${release}${shared_ext}$major'
20182 dynamic_linker
='NetBSD ld.elf_so'
20184 shlibpath_var
=LD_LIBRARY_PATH
20185 shlibpath_overrides_runpath
=yes
20186 hardcode_into_libs
=yes
20191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192 shlibpath_var
=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath
=yes
20200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201 soname_spec
='${libname}${release}${shared_ext}$major'
20202 shlibpath_var
=LD_LIBRARY_PATH
20203 shlibpath_overrides_runpath
=no
20204 hardcode_into_libs
=yes
20205 dynamic_linker
='ldqnx.so'
20210 sys_lib_dlsearch_path_spec
="/usr/lib"
20212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20214 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20215 *) need_version
=no
;;
20217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20218 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20219 shlibpath_var
=LD_LIBRARY_PATH
20220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20222 openbsd2.
[89] | openbsd2.
[89].
*)
20223 shlibpath_overrides_runpath
=no
20226 shlibpath_overrides_runpath
=yes
20230 shlibpath_overrides_runpath
=yes
20235 libname_spec
='$name'
20238 library_names_spec
='$libname${shared_ext} $libname.a'
20239 dynamic_linker
='OS/2 ld.exe'
20240 shlibpath_var
=LIBPATH
20243 osf3
* | osf4
* | osf5
*)
20247 soname_spec
='${libname}${release}${shared_ext}$major'
20248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 shlibpath_var
=LD_LIBRARY_PATH
20250 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20251 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 soname_spec
='${libname}${release}${shared_ext}$major'
20264 shlibpath_var
=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath
=yes
20266 hardcode_into_libs
=yes
20267 # ldd complains unless libraries are executable
20268 postinstall_cmds
='chmod +x $lib'
20273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20274 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20275 shlibpath_var
=LD_LIBRARY_PATH
20276 shlibpath_overrides_runpath
=yes
20277 if test "$with_gnu_ld" = yes; then
20285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec
='${libname}${release}${shared_ext}$major'
20287 shlibpath_var
=LD_LIBRARY_PATH
20288 case $host_vendor in
20290 shlibpath_overrides_runpath
=no
20292 runpath_var
=LD_RUN_PATH
20300 shlibpath_overrides_runpath
=no
20301 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20307 if test -d /usr
/nec
;then
20309 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20310 soname_spec
='$libname${shared_ext}.$major'
20311 shlibpath_var
=LD_LIBRARY_PATH
20315 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20316 version_type
=freebsd-elf
20319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20320 soname_spec
='${libname}${release}${shared_ext}$major'
20321 shlibpath_var
=LD_LIBRARY_PATH
20322 shlibpath_overrides_runpath
=yes
20323 hardcode_into_libs
=yes
20324 if test "$with_gnu_ld" = yes; then
20325 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20327 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20330 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20334 sys_lib_dlsearch_path_spec
='/usr/lib'
20338 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 shlibpath_var
=LD_LIBRARY_PATH
20344 shlibpath_overrides_runpath
=no
20345 hardcode_into_libs
=yes
20350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351 soname_spec
='${libname}${release}${shared_ext}$major'
20352 shlibpath_var
=LD_LIBRARY_PATH
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20360 $as_echo "$dynamic_linker" >&6; }
20361 test "$dynamic_linker" = no
&& can_build_shared
=no
20363 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20364 if test "$GCC" = yes; then
20365 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20368 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20369 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20371 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20372 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20413 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20414 hardcode_action_CXX
=
20415 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20416 test -n "$runpath_var_CXX" ||
20417 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20419 # We can hardcode non-existent directories.
20420 if test "$hardcode_direct_CXX" != no
&&
20421 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20422 # have to relink, otherwise we might link with an installed library
20423 # when we should be linking with a yet-to-be-installed one
20424 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20425 test "$hardcode_minus_L_CXX" != no
; then
20426 # Linking always hardcodes the temporary library directory.
20427 hardcode_action_CXX
=relink
20429 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20430 hardcode_action_CXX
=immediate
20433 # We cannot hardcode anything, or else we can only hardcode existing
20435 hardcode_action_CXX
=unsupported
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20438 $as_echo "$hardcode_action_CXX" >&6; }
20440 if test "$hardcode_action_CXX" = relink ||
20441 test "$inherit_rpath_CXX" = yes; then
20442 # Fast installation is not supported
20443 enable_fast_install
=no
20444 elif test "$shlibpath_overrides_runpath" = yes ||
20445 test "$enable_shared" = no
; then
20446 # Fast installation is not necessary
20447 enable_fast_install
=needless
20456 fi # test -n "$compiler"
20462 with_gnu_ld
=$lt_save_with_gnu_ld
20463 lt_cv_path_LDCXX
=$lt_cv_path_LD
20464 lt_cv_path_LD
=$lt_save_path_LD
20465 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20466 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20467 fi # test "$_lt_caught_CXX_error" != yes
20470 ac_cpp
='$CPP $CPPFLAGS'
20471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20490 # Only expand once:
20496 # Identify the assembler which will work hand-in-glove with the newly
20497 # built GCC, so that we can examine its features. This is the assembler
20498 # which will be driven by the driver program.
20500 # If build != host, and we aren't building gas in-tree, we identify a
20501 # build->target assembler and hope that it will have the same features
20502 # as the host->target assembler we'll be using.
20503 gcc_cv_gas_major_version
=
20504 gcc_cv_gas_minor_version
=
20505 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20507 if test "${gcc_cv_as+set}" = set; then :
20511 if test -x "$DEFAULT_ASSEMBLER"; then
20512 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20513 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20514 && test -f ..
/gas
/Makefile \
20515 && test x
$build = x
$host; then
20516 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20517 elif test -x as
$build_exeext; then
20518 # Build using assembler in the current directory.
20519 gcc_cv_as
=.
/as
$build_exeext
20520 elif test -x $AS_FOR_TARGET; then
20521 gcc_cv_as
="$AS_FOR_TARGET"
20523 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20524 set dummy
$AS_FOR_TARGET; ac_word
=$2
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20526 $as_echo_n "checking for $ac_word... " >&6; }
20527 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20528 $as_echo_n "(cached) " >&6
20532 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20536 for as_dir
in $PATH
20539 test -z "$as_dir" && as_dir
=.
20540 for ac_exec_ext
in '' $ac_executable_extensions; do
20541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20542 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20553 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20554 if test -n "$gcc_cv_as"; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20556 $as_echo "$gcc_cv_as" >&6; }
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20559 $as_echo "no" >&6; }
20566 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20568 case "$ORIGINAL_AS_FOR_TARGET" in
20569 .
/as | .
/as
$build_exeext) ;;
20570 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20575 $as_echo_n "checking what assembler to use... " >&6; }
20576 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20577 # Single tree build which includes gas. We want to prefer it
20578 # over whatever linker top-level may have detected, since
20579 # we'll use what we're building after installation anyway.
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20581 $as_echo "newly built gas" >&6; }
20583 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20584 for f
in $gcc_cv_as_bfd_srcdir/configure \
20585 $gcc_cv_as_gas_srcdir/configure \
20586 $gcc_cv_as_gas_srcdir/configure.
in \
20587 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20588 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20589 if test x
$gcc_cv_gas_version != x
; then
20593 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20594 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20595 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20596 case $gcc_cv_gas_patch_version in
20597 "") gcc_cv_gas_patch_version
="0" ;;
20599 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20600 + $gcc_cv_gas_minor_version \) \* 1000 \
20601 + $gcc_cv_gas_patch_version`
20603 in_tree_gas_is_elf
=no
20604 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20605 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20606 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20608 in_tree_gas_is_elf
=yes
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20612 $as_echo "$gcc_cv_as" >&6; }
20616 # Identify the linker which will work hand-in-glove with the newly
20617 # built GCC, so that we can examine its features. This is the linker
20618 # which will be driven by the driver program.
20620 # If build != host, and we aren't building gas in-tree, we identify a
20621 # build->target linker and hope that it will have the same features
20622 # as the host->target linker we'll be using.
20623 gcc_cv_gld_major_version
=
20624 gcc_cv_gld_minor_version
=
20625 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20626 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20628 if test "${gcc_cv_ld+set}" = set; then :
20632 if test -x "$DEFAULT_LINKER"; then
20633 gcc_cv_ld
="$DEFAULT_LINKER"
20634 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20635 && test -f ..
/ld
/Makefile \
20636 && test x
$build = x
$host; then
20637 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20638 elif test -x collect-ld
$build_exeext; then
20639 # Build using linker in the current directory.
20640 gcc_cv_ld
=.
/collect-ld
$build_exeext
20641 elif test -x $LD_FOR_TARGET; then
20642 gcc_cv_ld
="$LD_FOR_TARGET"
20644 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20645 set dummy
$LD_FOR_TARGET; ac_word
=$2
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647 $as_echo_n "checking for $ac_word... " >&6; }
20648 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20649 $as_echo_n "(cached) " >&6
20653 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20657 for as_dir
in $PATH
20660 test -z "$as_dir" && as_dir
=.
20661 for ac_exec_ext
in '' $ac_executable_extensions; do
20662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20663 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20674 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20675 if test -n "$gcc_cv_ld"; then
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20677 $as_echo "$gcc_cv_ld" >&6; }
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20680 $as_echo "no" >&6; }
20687 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20688 PLUGIN_LD
=`basename $gcc_cv_ld`
20690 # Check whether --with-plugin-ld was given.
20691 if test "${with_plugin_ld+set}" = set; then :
20692 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20693 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20694 PLUGIN_LD
="$withval"
20700 cat >>confdefs.h
<<_ACEOF
20701 #define PLUGIN_LD "$PLUGIN_LD"
20705 # Check to see if we are using gold instead of ld
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20707 $as_echo_n "checking whether we are using gold... " >&6; }
20709 if test x
$gcc_cv_ld != x
; then
20710 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
20711 |
grep "GNU gold" > /dev
/null
; then
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20716 $as_echo "$ld_is_gold" >&6; }
20718 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20720 case "$ORIGINAL_LD_FOR_TARGET" in
20721 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20722 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20727 $as_echo_n "checking what linker to use... " >&6; }
20728 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20729 # Single tree build which includes ld. We want to prefer it
20730 # over whatever linker top-level may have detected, since
20731 # we'll use what we're building after installation anyway.
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20733 $as_echo "newly built ld" >&6; }
20735 in_tree_ld_is_elf
=no
20736 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20737 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20738 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20739 in_tree_ld_is_elf
=yes
20741 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
20743 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20744 if test x
$gcc_cv_gld_version != x
; then
20748 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20749 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20752 $as_echo "$gcc_cv_ld" >&6; }
20756 # Figure out what nm we will be using.
20757 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20758 if test "${gcc_cv_nm+set}" = set; then :
20762 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20763 && test -f ..
/binutils
/Makefile \
20764 && test x
$build = x
$host; then
20765 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20766 elif test -x nm
$build_exeext; then
20767 gcc_cv_nm
=.
/nm
$build_exeext
20768 elif test -x $NM_FOR_TARGET; then
20769 gcc_cv_nm
="$NM_FOR_TARGET"
20771 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20772 set dummy
$NM_FOR_TARGET; ac_word
=$2
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20774 $as_echo_n "checking for $ac_word... " >&6; }
20775 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20776 $as_echo_n "(cached) " >&6
20780 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20784 for as_dir
in $PATH
20787 test -z "$as_dir" && as_dir
=.
20788 for ac_exec_ext
in '' $ac_executable_extensions; do
20789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20790 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20801 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20802 if test -n "$gcc_cv_nm"; then
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20804 $as_echo "$gcc_cv_nm" >&6; }
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20807 $as_echo "no" >&6; }
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20815 $as_echo_n "checking what nm to use... " >&6; }
20816 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20817 # Single tree build which includes binutils.
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20819 $as_echo "newly built nm" >&6; }
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20823 $as_echo "$gcc_cv_nm" >&6; }
20827 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20829 case "$ORIGINAL_NM_FOR_TARGET" in
20830 .
/nm | .
/nm
$build_exeext) ;;
20831 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20836 # Figure out what objdump we will be using.
20837 if test "${gcc_cv_objdump+set}" = set; then :
20841 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20842 && test -f ..
/binutils
/Makefile \
20843 && test x
$build = x
$host; then
20844 # Single tree build which includes binutils.
20845 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20846 elif test -x objdump
$build_exeext; then
20847 gcc_cv_objdump
=.
/objdump
$build_exeext
20848 elif test -x $OBJDUMP_FOR_TARGET; then
20849 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20851 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20852 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20854 $as_echo_n "checking for $ac_word... " >&6; }
20855 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20856 $as_echo_n "(cached) " >&6
20858 case $gcc_cv_objdump in
20860 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20864 for as_dir
in $PATH
20867 test -z "$as_dir" && as_dir
=.
20868 for ac_exec_ext
in '' $ac_executable_extensions; do
20869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20870 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20881 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20882 if test -n "$gcc_cv_objdump"; then
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20884 $as_echo "$gcc_cv_objdump" >&6; }
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20887 $as_echo "no" >&6; }
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20895 $as_echo_n "checking what objdump to use... " >&6; }
20896 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20897 # Single tree build which includes binutils.
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20899 $as_echo "newly built objdump" >&6; }
20900 elif test x
$gcc_cv_objdump = x
; then
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20902 $as_echo "not found" >&6; }
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20905 $as_echo "$gcc_cv_objdump" >&6; }
20908 # Figure out what readelf we will be using.
20909 if test "${gcc_cv_readelf+set}" = set; then :
20913 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20914 && test -f ..
/binutils
/Makefile \
20915 && test x
$build = x
$host; then
20916 # Single tree build which includes binutils.
20917 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20918 elif test -x readelf
$build_exeext; then
20919 gcc_cv_readelf
=.
/readelf
$build_exeext
20921 # Extract the first word of "readelf", so it can be a program name with args.
20922 set dummy readelf
; ac_word
=$2
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20924 $as_echo_n "checking for $ac_word... " >&6; }
20925 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20926 $as_echo_n "(cached) " >&6
20928 case $gcc_cv_readelf in
20930 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20934 for as_dir
in $PATH
20937 test -z "$as_dir" && as_dir
=.
20938 for ac_exec_ext
in '' $ac_executable_extensions; do
20939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20940 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20951 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20952 if test -n "$gcc_cv_readelf"; then
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20954 $as_echo "$gcc_cv_readelf" >&6; }
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20957 $as_echo "no" >&6; }
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20965 $as_echo_n "checking what readelf to use... " >&6; }
20966 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20967 # Single tree build which includes binutils.
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20969 $as_echo "newly built readelf" >&6; }
20970 elif test x
$gcc_cv_readelf = x
; then
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20972 $as_echo "not found" >&6; }
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20975 $as_echo "$gcc_cv_readelf" >&6; }
20978 # Figure out what assembler alignment features are present.
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20980 $as_echo_n "checking assembler flags... " >&6; }
20981 if test "${gcc_cv_as_flags+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20985 i
[34567]86-*-linux*)
20986 gcc_cv_as_flags
="--32"
20989 gcc_cv_as_flags
=" "
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20994 $as_echo "$gcc_cv_as_flags" >&6; }
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20997 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20998 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21001 gcc_cv_as_balign_and_p2align
=no
21002 if test $in_tree_gas = yes; then
21003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21004 then gcc_cv_as_balign_and_p2align
=yes
21006 elif test x
$gcc_cv_as != x
; then
21008 .p2align 2' > 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_balign_and_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_balign_and_p2align" >&5
21025 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21026 if test $gcc_cv_as_balign_and_p2align = yes; then
21028 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21033 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21034 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21037 gcc_cv_as_max_skip_p2align
=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_max_skip_p2align
=yes
21042 elif test x
$gcc_cv_as != x
; then
21043 echo '.p2align 4,,7' > 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_max_skip_p2align
=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_max_skip_p2align" >&5
21060 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21061 if test $gcc_cv_as_max_skip_p2align = yes; then
21063 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21068 $as_echo_n "checking assembler for .literal16... " >&6; }
21069 if test "${gcc_cv_as_literal16+set}" = set; then :
21070 $as_echo_n "(cached) " >&6
21072 gcc_cv_as_literal16
=no
21073 if test $in_tree_gas = yes; then
21074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21075 then gcc_cv_as_literal16
=yes
21077 elif test x
$gcc_cv_as != x
; then
21078 echo '.literal16' > conftest.s
21079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21081 (eval $ac_try) 2>&5
21083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21084 test $ac_status = 0; }; }
21086 gcc_cv_as_literal16
=yes
21088 echo "configure: failed program was" >&5
21091 rm -f conftest.o conftest.s
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21095 $as_echo "$gcc_cv_as_literal16" >&6; }
21096 if test $gcc_cv_as_literal16 = yes; then
21098 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21103 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21104 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21105 $as_echo_n "(cached) " >&6
21107 gcc_cv_as_subsection_m1
=no
21108 if test $in_tree_gas = yes; then
21109 if test $in_tree_gas_is_elf = yes \
21110 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21111 then gcc_cv_as_subsection_m1
=yes
21113 elif test x
$gcc_cv_as != x
; then
21114 echo 'conftest_label1: .word 0
21116 conftest_label2: .word 0
21117 .previous' > conftest.s
21118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21120 (eval $ac_try) 2>&5
21122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21123 test $ac_status = 0; }; }
21125 if test x
$gcc_cv_nm != x
; then
21126 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21127 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21128 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21130 else gcc_cv_as_subsection_m1
=yes
21132 rm -f conftest.nm1 conftest.nm2
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_subsection_m1" >&5
21142 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21143 if test $gcc_cv_as_subsection_m1 = yes; then
21145 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21150 $as_echo_n "checking assembler for .weak... " >&6; }
21151 if test "${gcc_cv_as_weak+set}" = set; then :
21152 $as_echo_n "(cached) " >&6
21155 if test $in_tree_gas = yes; then
21156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21157 then gcc_cv_as_weak
=yes
21159 elif test x
$gcc_cv_as != x
; then
21160 echo ' .weak foobar' > 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; }; }
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_weak" >&5
21177 $as_echo "$gcc_cv_as_weak" >&6; }
21178 if test $gcc_cv_as_weak = yes; then
21180 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21185 $as_echo_n "checking assembler for .weakref... " >&6; }
21186 if test "${gcc_cv_as_weakref+set}" = set; then :
21187 $as_echo_n "(cached) " >&6
21189 gcc_cv_as_weakref
=no
21190 if test $in_tree_gas = yes; then
21191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21192 then gcc_cv_as_weakref
=yes
21194 elif test x
$gcc_cv_as != x
; then
21195 echo ' .weakref foobar, barfnot' > conftest.s
21196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21198 (eval $ac_try) 2>&5
21200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21201 test $ac_status = 0; }; }
21203 gcc_cv_as_weakref
=yes
21205 echo "configure: failed program was" >&5
21208 rm -f conftest.o conftest.s
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21212 $as_echo "$gcc_cv_as_weakref" >&6; }
21213 if test $gcc_cv_as_weakref = yes; then
21215 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21220 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21221 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21222 $as_echo_n "(cached) " >&6
21224 gcc_cv_as_nsubspa_comdat
=no
21225 if test $in_tree_gas = yes; then
21226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21227 then gcc_cv_as_nsubspa_comdat
=yes
21229 elif test x
$gcc_cv_as != x
; then
21230 echo ' .SPACE $TEXT$
21231 .NSUBSPA $CODE$,COMDAT' > conftest.s
21232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21234 (eval $ac_try) 2>&5
21236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21237 test $ac_status = 0; }; }
21239 gcc_cv_as_nsubspa_comdat
=yes
21241 echo "configure: failed program was" >&5
21244 rm -f conftest.o conftest.s
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21248 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21249 if test $gcc_cv_as_nsubspa_comdat = yes; then
21251 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21255 # .hidden needs to be supported in both the assembler and the linker,
21256 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21257 # This is irritatingly difficult to feature test for; we have to check the
21258 # date string after the version number. If we've got an in-tree
21259 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21261 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21263 $as_echo_n "checking assembler for .hidden... " >&6; }
21264 if test "${gcc_cv_as_hidden+set}" = set; then :
21265 $as_echo_n "(cached) " >&6
21267 gcc_cv_as_hidden
=no
21268 if test $in_tree_gas = yes; then
21269 if test $in_tree_gas_is_elf = yes \
21270 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21271 then gcc_cv_as_hidden
=yes
21273 elif test x
$gcc_cv_as != x
; then
21274 echo ' .hidden foobar
21275 foobar:' > conftest.s
21276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21278 (eval $ac_try) 2>&5
21280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21281 test $ac_status = 0; }; }
21284 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21285 # STV_HIDDEN, so disable .hidden support if so.
21286 case "${target}" in
21288 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21289 cat > conftest.s
<<EOF
21294 .set default,hidden
21296 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21297 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21298 grep '\.hidden default' > /dev
/null
; then
21299 gcc_cv_as_hidden
=no
21301 gcc_cv_as_hidden
=yes
21304 # Assume bug is present if objdump is missing.
21305 gcc_cv_as_hidden
=no
21309 gcc_cv_as_hidden
=yes
21313 echo "configure: failed program was" >&5
21316 rm -f conftest.o conftest.s
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21320 $as_echo "$gcc_cv_as_hidden" >&6; }
21323 if test $in_tree_ld != yes ; then
21324 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21325 if test x
"$ld_is_gold" = xyes
; then
21326 gcc_cv_ld_hidden
=yes
21327 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21328 ld_vers
=`echo $ld_ver | sed -n \
21329 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21330 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'`
21331 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21332 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21333 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21335 case "${target}" in
21338 # Solaris 2 ld -V output looks like this for a regular version:
21340 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21342 # but test versions add stuff at the end:
21344 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21346 ld_ver
=`$gcc_cv_ld -V 2>&1`
21347 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21348 ld_vers
=`echo $ld_ver | sed -n \
21349 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21350 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21351 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21359 $as_echo_n "checking linker for .hidden support... " >&6; }
21360 if test "${gcc_cv_ld_hidden+set}" = set; then :
21361 $as_echo_n "(cached) " >&6
21363 if test $in_tree_ld = yes ; then
21364 gcc_cv_ld_hidden
=no
21365 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 \
21366 && test $in_tree_ld_is_elf = yes; then
21367 gcc_cv_ld_hidden
=yes
21370 gcc_cv_ld_hidden
=yes
21371 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21372 if test 0"$ld_date" -lt 20020404; then
21373 if test -n "$ld_date"; then
21374 # If there was date string, but was earlier than 2002-04-04, fail
21375 gcc_cv_ld_hidden
=no
21376 elif test -z "$ld_vers"; then
21377 # If there was no date string nor ld version number, something is wrong
21378 gcc_cv_ld_hidden
=no
21380 test -z "$ld_vers_patch" && ld_vers_patch
=0
21381 if test "$ld_vers_major" -lt 2; then
21382 gcc_cv_ld_hidden
=no
21383 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21384 gcc_cv_ld_hidden
="no"
21385 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21386 gcc_cv_ld_hidden
=no
21391 case "${target}" in
21392 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21393 gcc_cv_ld_hidden
=yes
21395 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21396 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21397 # .symbolic was only added in Solaris 9 12/02.
21398 gcc_cv_ld_hidden
=yes
21401 gcc_cv_ld_hidden
=no
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21408 $as_echo "$gcc_cv_ld_hidden" >&6; }
21409 libgcc_visibility
=no
21412 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21413 libgcc_visibility
=yes
21415 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21420 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21421 gcc_cv_ld_ro_rw_mix
=unknown
21422 if test $in_tree_ld = yes ; then
21423 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 \
21424 && test $in_tree_ld_is_elf = yes; then
21425 gcc_cv_ld_ro_rw_mix
=read-write
21427 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21428 echo '.section myfoosect, "a"' > conftest1.s
21429 echo '.section myfoosect, "aw"' > conftest2.s
21430 echo '.byte 1' >> conftest2.s
21431 echo '.section myfoosect, "a"' > conftest3.s
21432 echo '.byte 0' >> conftest3.s
21433 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21434 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21435 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21436 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21437 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21438 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21439 | sed -e '/myfoosect/!d' -e N`
21440 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21441 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21442 gcc_cv_ld_ro_rw_mix
=read-only
21444 gcc_cv_ld_ro_rw_mix
=read-write
21448 rm -f conftest.
* conftest
[123].
*
21450 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21452 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21456 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21458 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21460 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21461 if test "${gcc_cv_as_leb128+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21464 gcc_cv_as_leb128
=no
21465 if test $in_tree_gas = yes; then
21466 if test $in_tree_gas_is_elf = yes \
21467 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21468 then gcc_cv_as_leb128
=yes
21470 elif test x
$gcc_cv_as != x
; then
21477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21479 (eval $ac_try) 2>&5
21481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21482 test $ac_status = 0; }; }
21484 # GAS versions before 2.11 do not support uleb128,
21485 # despite appearing to.
21486 # ??? There exists an elf-specific test that will crash
21487 # the assembler. Perhaps it's better to figure out whether
21488 # arbitrary sections are supported and try the test.
21489 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21490 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21491 as_vers
=`echo $as_ver | sed -n \
21492 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21493 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21494 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21495 if test $as_major -eq 2 && test $as_minor -lt 11
21497 else gcc_cv_as_leb128
=yes
21501 echo "configure: failed program was" >&5
21504 rm -f conftest.o conftest.s
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21508 $as_echo "$gcc_cv_as_leb128" >&6; }
21509 if test $gcc_cv_as_leb128 = yes; then
21511 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21515 # Check if we have assembler support for unwind directives.
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21517 $as_echo_n "checking assembler for cfi directives... " >&6; }
21518 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21519 $as_echo_n "(cached) " >&6
21521 gcc_cv_as_cfi_directive
=no
21522 if test x
$gcc_cv_as != x
; then
21528 .cfi_escape 1, 2, 3, 4, 5
21529 .cfi_endproc' > conftest.s
21530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21532 (eval $ac_try) 2>&5
21534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21535 test $ac_status = 0; }; }
21539 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21540 # read-only and read-write sections, we need to make sure that the
21541 # assembler used emits read-write .eh_frame sections.
21542 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21543 if test "x$gcc_cv_objdump" != x
; then
21544 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21545 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21546 gcc_cv_as_cfi_directive
=no
21549 i?
86-*-solaris2.1
[0-9]*)
21550 # On Solaris/x86, make sure that GCC and gas agree on using
21551 # read-only .eh_frame sections for 64-bit.
21552 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21553 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21554 sed -e /.eh_frame
/!d
-e N | \
21555 grep READONLY
> /dev
/null
; then
21556 gcc_cv_as_cfi_directive
=yes
21558 gcc_cv_as_cfi_directive
=no
21562 gcc_cv_as_cfi_directive
=yes
21567 # no objdump, err on the side of caution
21568 gcc_cv_as_cfi_directive
=no
21571 gcc_cv_as_cfi_directive
=yes
21575 gcc_cv_as_cfi_directive
=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_directive" >&5
21586 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21588 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21590 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21591 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21594 gcc_cv_as_cfi_advance_working
=no
21595 if test x
$gcc_cv_as != x
; then
21598 .cfi_adjust_cfa_offset 64
21600 .cfi_adjust_cfa_offset 128
21601 .cfi_endproc' > conftest.s
21602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21604 (eval $ac_try) 2>&5
21606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21607 test $ac_status = 0; }; }
21610 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21611 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21612 gcc_cv_as_cfi_advance_working
=yes
21616 echo "configure: failed program was" >&5
21619 rm -f conftest.o conftest.s
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21623 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21626 # no readelf, err on the side of caution
21627 gcc_cv_as_cfi_advance_working
=no
21630 cat >>confdefs.h
<<_ACEOF
21631 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21632 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21637 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21638 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21639 $as_echo_n "(cached) " >&6
21641 gcc_cv_as_cfi_personality_directive
=no
21642 if test x
$gcc_cv_as != x
; then
21645 .cfi_personality 0, symbol
21646 .cfi_endproc' > conftest.s
21647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21649 (eval $ac_try) 2>&5
21651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21652 test $ac_status = 0; }; }
21654 gcc_cv_as_cfi_personality_directive
=yes
21656 echo "configure: failed program was" >&5
21659 rm -f conftest.o conftest.s
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21663 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21666 cat >>confdefs.h
<<_ACEOF
21667 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21668 then echo 1; else echo 0; fi`
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21673 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21674 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21675 $as_echo_n "(cached) " >&6
21677 gcc_cv_as_cfi_sections_directive
=no
21678 if test x
$gcc_cv_as != x
; then
21680 .cfi_sections .debug_frame, .eh_frame
21682 .cfi_endproc' > conftest.s
21683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21685 (eval $ac_try) 2>&5
21687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21688 test $ac_status = 0; }; }
21690 gcc_cv_as_cfi_sections_directive
=yes
21692 echo "configure: failed program was" >&5
21695 rm -f conftest.o conftest.s
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21699 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21702 cat >>confdefs.h
<<_ACEOF
21703 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21704 then echo 1; else echo 0; fi`
21708 # GAS versions up to and including 2.11.0 may mis-optimize
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21711 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21712 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21713 $as_echo_n "(cached) " >&6
21715 gcc_cv_as_eh_frame
=no
21716 if test $in_tree_gas = yes; then
21717 if test $in_tree_gas_is_elf = yes \
21718 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21719 then gcc_cv_as_eh_frame
=yes
21721 elif test x
$gcc_cv_as != x
; then
21728 .section .eh_frame,"aw",@progbits
21730 .4byte .LECIE1-.LSCIE1
21744 .4byte .LEFDE1-.LASFDE1
21746 .4byte .LASFDE1-__FRAME_BEGIN__
21753 .LEFDE1:' > conftest.s
21754 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21756 (eval $ac_try) 2>&5
21758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21759 test $ac_status = 0; }; }
21761 cat > conftest.lit
<<EOF
21762 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21763 0010 01000000 12000000 18000000 00000000 ................
21764 0020 08000000 04080000 0044 .........D
21766 cat > conftest.big
<<EOF
21767 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21768 0010 00000001 00000012 00000018 00000000 ................
21769 0020 00000008 04000000 0844 .........D
21771 # If the assembler didn't choke, and we can objdump,
21772 # and we got the correct data, then succeed.
21773 # The text in the here-document typically retains its unix-style line
21774 # endings, while the output of objdump will use host line endings.
21775 # Therefore, use diff -b for the comparisons.
21776 if test x
$gcc_cv_objdump != x \
21777 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21778 |
tail -3 > conftest.got \
21779 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21780 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21782 gcc_cv_as_eh_frame
=yes
21783 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21785 (eval $ac_try) 2>&5
21787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21788 test $ac_status = 0; }; }; then
21789 gcc_cv_as_eh_frame
=buggy
21791 # Uh oh, what do we do now?
21792 gcc_cv_as_eh_frame
=no
21795 echo "configure: failed program was" >&5
21798 rm -f conftest.o conftest.s
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21802 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21805 if test $gcc_cv_as_eh_frame = buggy
; then
21807 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21812 $as_echo_n "checking assembler for section merging support... " >&6; }
21813 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21814 $as_echo_n "(cached) " >&6
21816 gcc_cv_as_shf_merge
=no
21817 if test $in_tree_gas = yes; then
21818 if test $in_tree_gas_is_elf = yes \
21819 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21820 then gcc_cv_as_shf_merge
=yes
21822 elif test x
$gcc_cv_as != x
; then
21823 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21824 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826 (eval $ac_try) 2>&5
21828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829 test $ac_status = 0; }; }
21831 gcc_cv_as_shf_merge
=yes
21833 echo "configure: failed program was" >&5
21836 rm -f conftest.o conftest.s
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21840 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21842 if test $gcc_cv_as_shf_merge = no
; then
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21844 $as_echo_n "checking assembler for section merging support... " >&6; }
21845 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21846 $as_echo_n "(cached) " >&6
21848 gcc_cv_as_shf_merge
=no
21849 if test $in_tree_gas = yes; then
21850 if test $in_tree_gas_is_elf = yes \
21851 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21852 then gcc_cv_as_shf_merge
=yes
21854 elif test x
$gcc_cv_as != x
; then
21855 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21856 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21858 (eval $ac_try) 2>&5
21860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21861 test $ac_status = 0; }; }
21863 gcc_cv_as_shf_merge
=yes
21865 echo "configure: failed program was" >&5
21868 rm -f conftest.o conftest.s
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21872 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21876 cat >>confdefs.h
<<_ACEOF
21877 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21882 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21883 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21884 $as_echo_n "(cached) " >&6
21886 gcc_cv_as_comdat_group
=no
21887 if test $in_tree_gas = yes; then
21888 if test $in_tree_gas_is_elf = yes \
21889 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21890 then gcc_cv_as_comdat_group
=yes
21892 elif test x
$gcc_cv_as != x
; then
21893 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21894 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21896 (eval $ac_try) 2>&5
21898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21899 test $ac_status = 0; }; }
21901 gcc_cv_as_comdat_group
=yes
21903 echo "configure: failed program was" >&5
21906 rm -f conftest.o conftest.s
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21910 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21912 if test $gcc_cv_as_comdat_group = yes; then
21913 gcc_cv_as_comdat_group_percent
=no
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21916 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21917 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21918 $as_echo_n "(cached) " >&6
21920 gcc_cv_as_comdat_group_percent
=no
21921 if test $in_tree_gas = yes; then
21922 if test $in_tree_gas_is_elf = yes \
21923 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21924 then gcc_cv_as_comdat_group_percent
=yes
21926 elif test x
$gcc_cv_as != x
; then
21927 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21928 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21930 (eval $ac_try) 2>&5
21932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21933 test $ac_status = 0; }; }
21935 gcc_cv_as_comdat_group_percent
=yes
21937 echo "configure: failed program was" >&5
21940 rm -f conftest.o conftest.s
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21944 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21947 if test x
"$ld_is_gold" = xyes
; then
21949 elif test $in_tree_ld = yes ; then
21951 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 \
21952 && test $in_tree_ld_is_elf = yes; then
21955 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21957 if test 0"$ld_date" -lt 20050308; then
21958 if test -n "$ld_date"; then
21959 # If there was date string, but was earlier than 2005-03-08, fail
21961 elif test "$ld_vers_major" -lt 2; then
21963 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21968 case "${target}" in
21969 *-*-solaris2.1
[1-9]*)
21970 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21971 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21974 # FIXME: Maybe need to refine later when COMDAT group support with
21975 # Sun as is implemented.
21976 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
21983 # Assume linkers other than GNU ld don't support COMDAT group.
21988 # Allow overriding the automatic COMDAT group tests above.
21989 # Check whether --enable-comdat was given.
21990 if test "${enable_comdat+set}" = set; then :
21991 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
21994 if test $comdat_group = no
; then
21995 gcc_cv_as_comdat_group
=no
21996 gcc_cv_as_comdat_group_percent
=no
21999 cat >>confdefs.h
<<_ACEOF
22000 #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`
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22005 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22006 if test "${gcc_cv_as_discriminator+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22009 gcc_cv_as_discriminator
=no
22010 if test $in_tree_gas = yes; then
22011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22012 then gcc_cv_as_discriminator
=yes
22014 elif test x
$gcc_cv_as != x
; then
22017 .loc 1 1 0 discriminator 1' > conftest.s
22018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22020 (eval $ac_try) 2>&5
22022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22023 test $ac_status = 0; }; }
22025 gcc_cv_as_discriminator
=yes
22027 echo "configure: failed program was" >&5
22030 rm -f conftest.o conftest.s
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22034 $as_echo "$gcc_cv_as_discriminator" >&6; }
22035 if test $gcc_cv_as_discriminator = yes; then
22037 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22041 # Thread-local storage - the check is heavily parameterized.
22049 .section ".tdata","awT",@progbits
22052 ldq $27,__tls_get_addr($29) !literal!1
22053 lda $16,foo($29) !tlsgd!1
22054 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22055 ldq $27,__tls_get_addr($29) !literal!2
22056 lda $16,foo($29) !tlsldm!2
22057 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22058 ldq $1,foo($29) !gotdtprel
22059 ldah $2,foo($29) !dtprelhi
22060 lda $3,foo($2) !dtprello
22061 lda $4,foo($29) !dtprel
22062 ldq $1,foo($29) !gottprel
22063 ldah $2,foo($29) !tprelhi
22064 lda $3,foo($2) !tprello
22065 lda $4,foo($29) !tprel'
22068 tls_as_opt
=--fatal-warnings
22070 cris-
*-*|crisv32-
*-*)
22072 .section ".tdata","awT",@progbits
22079 tls_as_opt
=--fatal-warnings
22083 .section ".tdata","awT",@progbits
22086 call #gettlsoff(x)'
22095 .section ".tdata","awT",@progbits
22099 addil LT%foo-$tls_gdidx$,gp
22100 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22103 addil LT%foo-$tls_ldidx$,gp
22105 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22106 addil LR%foo-$tls_dtpoff$,%ret0
22107 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22109 addil LT%foo-$tls_ieoff$,gp
22110 ldw RT%foo-$tls_ieoff$(%r1),%t2
22113 addil LR%foo-$tls_leoff$,%t1
22114 ldo RR%foo-$tls_leoff$(%r1),%t2'
22117 tls_as_opt
=--fatal-warnings
22121 .section ".tdata","awT",%progbits
22124 .word foo(gottpoff)
22134 i
[34567]86-*-solaris2.
*)
22136 tga_func
=___tls_get_addr
22142 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22144 .section .tdata,"awt",@progbits'
22148 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22152 .section ".tdata","awT",@progbits'
22155 tls_as_opt
="--fatal-warnings"
22157 conftest_s
="$conftest_s
22161 leal foo@tlsgd(,%ebx,1), %eax
22162 leal foo@tlsldm(%ebx), %eax
22163 leal foo@dtpoff(%eax), %edx
22164 movl foo@gottpoff(%ebx), %eax
22165 subl foo@gottpoff(%ebx), %eax
22166 addl foo@gotntpoff(%ebx), %eax
22167 movl foo@indntpoff, %eax
22168 movl \$foo@tpoff, %eax
22169 subl \$foo@tpoff, %eax
22170 leal foo@ntpoff(%ecx), %eax"
22174 .section ".tdata","awT",@progbits
22178 leaq foo@TLSGD(%rip), %rdi
22179 leaq foo@TLSLD(%rip), %rdi
22180 leaq foo@DTPOFF(%rax), %rdx
22181 movq foo@GOTTPOFF(%rip), %rax
22182 movq $foo@TPOFF, %rax'
22185 tls_as_opt
=--fatal-warnings
22189 .section ".tdata","awT",@progbits
22192 addl r16 = @ltoff(@dtpmod(foo#)), gp
22193 addl r17 = @ltoff(@dtprel(foo#)), gp
22194 addl r18 = @ltoff(@tprel(foo#)), gp
22195 addl r19 = @dtprel(foo#), gp
22196 adds r21 = @dtprel(foo#), r13
22197 movl r23 = @dtprel(foo#)
22198 addl r20 = @tprel(foo#), gp
22199 adds r22 = @tprel(foo#), r13
22200 movl r24 = @tprel(foo#)'
22203 tls_as_opt
=--fatal-warnings
22207 .section .tdata,"awT",@progbits
22211 addiu $4, $28, %tlsgd(x)
22212 addiu $4, $28, %tlsldm(x)
22213 lui $4, %dtprel_hi(x)
22214 addiu $4, $4, %dtprel_lo(x)
22215 lw $4, %gottprel(x)($28)
22216 lui $4, %tprel_hi(x)
22217 addiu $4, $4, %tprel_lo(x)'
22220 tls_as_opt
='-32 --fatal-warnings'
22224 .section .tdata,"awT",@progbits
22229 move.l x@TLSGD(%a5),%a0
22230 move.l x@TLSLDM(%a5),%a0
22231 move.l x@TLSLDO(%a5),%a0
22232 move.l x@TLSIE(%a5),%a0
22233 move.l x@TLSLE(%a5),%a0'
22236 tls_as_opt
='--fatal-warnings'
22240 .section ".tdata","awT",@progbits
22248 addi 3,31,ld0@got@tlsgd
22250 addi 3,31,x1@got@tlsld
22253 addis 9,3,x2@dtprel@ha
22254 addi 9,9,x2@dtprel@l
22255 lwz 9,x3@got@tprel(31)
22258 addis 9,2,x2@tprel@ha
22259 addi 9,9,x2@tprel@l'
22262 tls_as_opt
="-a32 --fatal-warnings"
22266 .section ".tdata","awT",@progbits
22274 addi 3,2,ld0@got@tlsgd
22280 addi 3,2,x1@got@tlsld
22286 addis 9,3,x2@dtprel@ha
22287 addi 9,9,x2@dtprel@l
22290 ld 9,x3@got@dtprel(2)
22296 tls_as_opt
="-a64 --fatal-warnings"
22300 .section ".tdata","awT",@progbits
22307 .long foo@GOTNTPOFF
22308 .long foo@INDNTPOFF
22309 l %r1,foo@GOTNTPOFF(%r12)
22310 l %r1,0(%r1):tls_load:foo
22311 bas %r14,0(%r1,%r13):tls_gdcall:foo
22312 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22315 tls_as_opt
="-m31 --fatal-warnings"
22319 .section ".tdata","awT",@progbits
22326 .quad foo@GOTNTPOFF
22327 lg %r1,foo@GOTNTPOFF(%r12)
22328 larl %r1,foo@INDNTPOFF
22329 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22330 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22333 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22335 sh-
*-* | sh
[34]-*-*)
22337 .section ".tdata","awT",@progbits
22347 tls_as_opt
=--fatal-warnings
22351 sparc
*-sun-solaris2.
*)
22353 tga_func
=__tls_get_addr
22359 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22361 .section ".tdata",#alloc,#write,#tls'
22366 .section ".tdata","awT",@progbits'
22369 tls_as_opt
="-32 --fatal-warnings"
22371 conftest_s
="$conftest_s
22374 sethi %tgd_hi22(foo), %o0
22375 add %o0, %tgd_lo10(foo), %o1
22376 add %l7, %o1, %o0, %tgd_add(foo)
22377 call __tls_get_addr, %tgd_call(foo)
22378 sethi %tldm_hi22(foo), %l1
22379 add %l1, %tldm_lo10(foo), %l2
22380 add %l7, %l2, %o0, %tldm_add(foo)
22381 call __tls_get_addr, %tldm_call(foo)
22382 sethi %tldo_hix22(foo), %l3
22383 xor %l3, %tldo_lox10(foo), %l4
22384 add %o0, %l4, %l5, %tldo_add(foo)
22385 sethi %tie_hi22(foo), %o3
22386 add %o3, %tie_lo10(foo), %o3
22387 ld [%l7 + %o3], %o2, %tie_ld(foo)
22388 add %g7, %o2, %o4, %tie_add(foo)
22389 sethi %tle_hix22(foo), %l1
22390 xor %l1, %tle_lox10(foo), %o5
22391 ld [%g7 + %o5], %o1"
22395 .section ".tdata","awT",@progbits
22398 movi a8, foo@TLSFUNC
22399 movi a10, foo@TLSARG
22400 callx8.tls a8, foo@TLSCALL'
22406 if test "x$enable_tls" = xno
; then
22407 : # TLS explicitly disabled.
22408 elif test "x$enable_tls" = xyes
; then
22409 set_have_as_tls
=yes # TLS explicitly enabled.
22410 elif test -z "$tls_first_major"; then
22411 : # If we don't have a check, assume no support.
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22414 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22415 if test "${gcc_cv_as_tls+set}" = set; then :
22416 $as_echo_n "(cached) " >&6
22419 if test $in_tree_gas = yes; then
22420 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22421 then gcc_cv_as_tls
=yes
22423 elif test x
$gcc_cv_as != x
; then
22424 echo "$conftest_s" > conftest.s
22425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22427 (eval $ac_try) 2>&5
22429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22430 test $ac_status = 0; }; }
22434 echo "configure: failed program was" >&5
22437 rm -f conftest.o conftest.s
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22441 $as_echo "$gcc_cv_as_tls" >&6; }
22442 if test $gcc_cv_as_tls = yes; then
22443 set_have_as_tls
=yes
22447 # TLS was introduced in the Solaris 9 FCS release and backported to
22448 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22449 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22450 # ld and GCC don't support any longer.
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22453 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22455 # Check ld and ld.so.1 TLS support.
22456 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22457 # Assume all interesting versions of GNU ld have TLS support.
22458 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22462 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22464 min_tls_ld_vers_minor
=280
22466 # Solaris 8/SPARC ld has TLS support since version 1.272.
22467 sparc
*-*-solaris2.8
)
22468 min_tls_ld_vers_minor
=272
22470 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22472 min_tls_ld_vers_minor
=374
22474 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22475 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
22476 min_tls_ld_vers_minor
=343
22479 if test "$ls_vers_major" -gt 1 || \
22480 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22487 $as_echo "$ld_tls_support" >&6; }
22490 save_LDFLAGS
="$LDFLAGS"
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22495 $as_echo_n "checking alternate thread library... " >&6; }
22497 # TLS support was backported to Solaris 8 patches, but only lives in
22498 # the alternate thread library which became the default in Solaris 9.
22499 # We want to always use that, irrespective of TLS support.
22501 # Take multilib subdir into account. There's no spec to handle
22502 # this. The 64 symlink exists since Solaris 8.
22503 lwp_dir
=/usr
/lib
/lwp
22504 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22505 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
22512 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22514 cat >>confdefs.h
<<_ACEOF
22515 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22519 $as_echo "$lwp_dir" >&6; }
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22522 $as_echo_n "checking library containing $tga_func... " >&6; }
22523 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22524 # (32-bit x86) only lived in libthread, so check for that. Keep
22525 # set_have_as_tls if found, disable if not.
22526 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22528 $as_echo_n "checking for library containing $tga_func... " >&6; }
22529 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22530 $as_echo_n "(cached) " >&6
22532 ac_func_search_save_LIBS
=$LIBS
22533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22534 /* end confdefs.h. */
22536 /* Override any GCC internal prototype to avoid an error.
22537 Use char because int might match the return type of a GCC
22538 builtin and then its argument prototype would still apply. */
22546 return $tga_func ();
22551 for ac_lib
in '' thread
; do
22552 if test -z "$ac_lib"; then
22553 ac_res
="none required"
22556 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22558 if ac_fn_c_try_link
"$LINENO"; then :
22559 eval "$as_ac_Search=\$ac_res"
22561 rm -f core conftest.err conftest.
$ac_objext \
22563 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22567 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22570 eval "$as_ac_Search=no"
22572 rm conftest.
$ac_ext
22573 LIBS
=$ac_func_search_save_LIBS
22575 eval ac_res
=\$
$as_ac_Search
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22577 $as_echo "$ac_res" >&6; }
22578 eval ac_res
=\$
$as_ac_Search
22579 if test "$ac_res" != no
; then :
22580 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22586 # Clear LIBS if we cannot support TLS.
22587 if test $set_have_as_tls = no
; then
22590 # Always define LIB_TLS_SPEC, even without TLS support.
22592 cat >>confdefs.h
<<_ACEOF
22593 #define LIB_TLS_SPEC "$LIBS"
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22597 $as_echo "$LIBS" >&6; }
22600 LDFLAGS
="$save_LDFLAGS"
22603 if test $set_have_as_tls = yes ; then
22605 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22609 # Target-specific assembler checks.
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22612 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22613 gcc_cv_ld_static_dynamic
=no
22614 if test $in_tree_ld = yes ; then
22615 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
22616 gcc_cv_ld_static_dynamic
=yes
22618 elif test x
$gcc_cv_ld != x
; then
22619 # Check if linker supports -Bstatic/-Bdynamic option
22620 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22621 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22622 gcc_cv_ld_static_dynamic
=yes
22625 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22627 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22631 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22633 if test x
"$demangler_in_ld" = xyes
; then
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22635 $as_echo_n "checking linker --demangle support... " >&6; }
22636 gcc_cv_ld_demangle
=no
22637 if test $in_tree_ld = yes; then
22638 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 \
22639 gcc_cv_ld_demangle
=yes
22641 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22642 # Check if the GNU linker supports --demangle option
22643 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22644 gcc_cv_ld_demangle
=yes
22647 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22649 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22653 $as_echo "$gcc_cv_ld_demangle" >&6; }
22657 # All TARGET_ABI_OSF targets.
22658 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22660 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22661 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22664 gcc_cv_as_alpha_explicit_relocs
=no
22665 if test $in_tree_gas = yes; then
22666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22667 then gcc_cv_as_alpha_explicit_relocs
=yes
22669 elif test x
$gcc_cv_as != x
; then
22670 echo ' .set nomacro
22672 extbl $3, $2, $3 !lituse_bytoff!1
22673 ldq $2, a($29) !literal!1
22674 ldq $4, b($29) !literal!2
22675 ldq_u $3, 0($2) !lituse_base!1
22676 ldq $27, f($29) !literal!5
22677 jsr $26, ($27), f !lituse_jsr!5
22678 ldah $29, 0($26) !gpdisp!3
22679 lda $0, c($29) !gprel
22680 ldah $1, d($29) !gprelhigh
22681 lda $1, d($1) !gprellow
22682 lda $29, 0($29) !gpdisp!3' > conftest.s
22683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22685 (eval $ac_try) 2>&5
22687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22688 test $ac_status = 0; }; }
22690 gcc_cv_as_alpha_explicit_relocs
=yes
22692 echo "configure: failed program was" >&5
22695 rm -f conftest.o conftest.s
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22699 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22700 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22702 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22706 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22707 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22708 $as_echo_n "(cached) " >&6
22710 gcc_cv_as_alpha_jsrdirect_relocs
=no
22711 if test $in_tree_gas = yes; then
22712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22713 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22715 elif test x
$gcc_cv_as != x
; then
22716 echo ' .set nomacro
22718 ldq $27, a($29) !literal!1
22719 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722 (eval $ac_try) 2>&5
22724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725 test $ac_status = 0; }; }
22727 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22729 echo "configure: failed program was" >&5
22732 rm -f conftest.o conftest.s
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22736 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22737 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22739 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22746 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22747 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22750 gcc_cv_as_cris_no_mul_bug
=no
22751 if test $in_tree_gas = yes; then
22752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22753 then gcc_cv_as_cris_no_mul_bug
=yes
22755 elif test x
$gcc_cv_as != x
; then
22756 echo '.text' > conftest.s
22757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }
22764 gcc_cv_as_cris_no_mul_bug
=yes
22766 echo "configure: failed program was" >&5
22769 rm -f conftest.o conftest.s
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22773 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22774 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22776 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22783 $as_echo_n "checking assembler for .register... " >&6; }
22784 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22785 $as_echo_n "(cached) " >&6
22787 gcc_cv_as_sparc_register_op
=no
22788 if test x
$gcc_cv_as != x
; then
22789 echo '.register %g2, #scratch' > conftest.s
22790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22792 (eval $ac_try) 2>&5
22794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22795 test $ac_status = 0; }; }
22797 gcc_cv_as_sparc_register_op
=yes
22799 echo "configure: failed program was" >&5
22802 rm -f conftest.o conftest.s
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22806 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22807 if test $gcc_cv_as_sparc_register_op = yes; then
22809 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22814 $as_echo_n "checking assembler for -relax option... " >&6; }
22815 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22816 $as_echo_n "(cached) " >&6
22818 gcc_cv_as_sparc_relax
=no
22819 if test x
$gcc_cv_as != x
; then
22820 echo '.text' > conftest.s
22821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823 (eval $ac_try) 2>&5
22825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826 test $ac_status = 0; }; }
22828 gcc_cv_as_sparc_relax
=yes
22830 echo "configure: failed program was" >&5
22833 rm -f conftest.o conftest.s
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22837 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22838 if test $gcc_cv_as_sparc_relax = yes; then
22840 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22845 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22846 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22847 $as_echo_n "(cached) " >&6
22849 gcc_cv_as_sparc_gotdata_op
=no
22850 if test x
$gcc_cv_as != x
; then
22855 sethi %gdop_hix22(foo), %g1
22856 xor %g1, %gdop_lox10(foo), %g1
22857 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22860 (eval $ac_try) 2>&5
22862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22863 test $ac_status = 0; }; }
22865 if test x
$gcc_cv_ld != x \
22866 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22867 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
22868 if test x
$gcc_cv_objdump != x
; then
22869 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
22870 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
22871 gcc_cv_as_sparc_gotdata_op
=no
22873 gcc_cv_as_sparc_gotdata_op
=yes
22877 gcc_cv_as_sparc_gotdata_op
=yes
22882 echo "configure: failed program was" >&5
22885 rm -f conftest.o conftest.s
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22889 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22890 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22892 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22897 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22898 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22899 $as_echo_n "(cached) " >&6
22901 gcc_cv_as_sparc_ua_pcrel
=no
22902 if test x
$gcc_cv_as != x
; then
22909 .uaword %r_disp32(foo)' > conftest.s
22910 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22912 (eval $ac_try) 2>&5
22914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915 test $ac_status = 0; }; }
22917 if test x
$gcc_cv_ld != x \
22918 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22919 gcc_cv_as_sparc_ua_pcrel
=yes
22923 echo "configure: failed program was" >&5
22926 rm -f conftest.o conftest.s
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22930 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22931 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22933 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22937 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22938 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22941 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22942 if test x
$gcc_cv_as != x
; then
22946 .uaword %r_disp32(foo)
22947 .byte 0x32, 0x33, 0x34
22951 .skip 4' > conftest.s
22952 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22959 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22960 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22961 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22962 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22963 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22964 |
grep 'DISP32' > /dev
/null
2>&1; then
22967 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22972 echo "configure: failed program was" >&5
22975 rm -f conftest.o conftest.s
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22979 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22980 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22982 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22986 fi # unaligned pcrel relocs
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22989 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22990 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22993 gcc_cv_as_sparc_offsetable_lo10
=no
22994 if test x
$gcc_cv_as != x
; then
22996 or %g1, %lo(ab) + 12, %g1
22997 or %g1, %lo(ab + 12), %g1' > conftest.s
22998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23000 (eval $ac_try) 2>&5
23002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23003 test $ac_status = 0; }; }
23005 if test x
$gcc_cv_objdump != x \
23006 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23007 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23008 gcc_cv_as_sparc_offsetable_lo10
=yes
23011 echo "configure: failed program was" >&5
23014 rm -f conftest.o conftest.s
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23018 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23019 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23021 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23026 i
[34567]86-*-* | x86_64-
*-*)
23029 # Full C++ conformance when using a shared libstdc++-v3 requires some
23030 # support from the Cygwin DLL, which in more recent versions exports
23031 # wrappers to aid in interposing and redirecting operators new, delete,
23032 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23033 # are configuring for a version of Cygwin that exports the wrappers.
23034 if test x
$host = x
$target; then
23035 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23036 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23037 gcc_ac_cygwin_dll_wrappers
=yes
23039 gcc_ac_cygwin_dll_wrappers
=no
23043 # Can't check presence of libc functions during cross-compile, so
23044 # we just have to assume we're building for an up-to-date target.
23045 gcc_ac_cygwin_dll_wrappers
=yes
23048 cat >>confdefs.h
<<_ACEOF
23049 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23054 cygwin
* | pe | mingw32
*)
23055 # Recent binutils allows the three-operand form of ".comm" on PE. This
23056 # definition is used unconditionally to initialise the default state of
23057 # the target option variable that governs usage of the feature.
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23059 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23060 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23063 gcc_cv_as_comm_has_align
=no
23064 if test $in_tree_gas = yes; then
23065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23066 then gcc_cv_as_comm_has_align
=yes
23068 elif test x
$gcc_cv_as != x
; then
23069 echo '.comm foo,1,32' > conftest.s
23070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23072 (eval $ac_try) 2>&5
23074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23075 test $ac_status = 0; }; }
23077 gcc_cv_as_comm_has_align
=yes
23079 echo "configure: failed program was" >&5
23082 rm -f conftest.o conftest.s
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23086 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23089 cat >>confdefs.h
<<_ACEOF
23090 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23093 # Used for DWARF 2 in PE
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23095 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23096 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23099 gcc_cv_as_ix86_pe_secrel32
=no
23100 if test $in_tree_gas = yes; then
23101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23102 then gcc_cv_as_ix86_pe_secrel32
=yes
23104 elif test x
$gcc_cv_as != x
; then
23108 .secrel32 foo' > conftest.s
23109 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111 (eval $ac_try) 2>&5
23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114 test $ac_status = 0; }; }
23116 if test x
$gcc_cv_ld != x \
23117 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
23118 gcc_cv_as_ix86_pe_secrel32
=yes
23122 echo "configure: failed program was" >&5
23125 rm -f conftest.o conftest.s
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23129 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23130 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23132 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23135 # Test if the assembler supports the extended form of the .section
23136 # directive that specifies section alignment. LTO support uses this,
23137 # but normally only after installation, so we warn but don't fail the
23138 # configure if LTO is enabled but the assembler does not support it.
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23140 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23141 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23144 gcc_cv_as_section_has_align
=no
23145 if test $in_tree_gas = yes; then
23146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23147 then gcc_cv_as_section_has_align
=yes
23149 elif test x
$gcc_cv_as != x
; then
23150 echo '.section lto_test,"dr0"' > conftest.s
23151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -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_section_has_align
=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_section_has_align" >&5
23167 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23169 if test x
$gcc_cv_as_section_has_align != xyes
; then
23170 case ",$enable_languages," in
23172 { $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
23173 $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;}
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23181 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23182 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23183 $as_echo_n "(cached) " >&6
23185 gcc_cv_as_ix86_filds
=no
23186 if test x
$gcc_cv_as != x
; then
23187 echo 'filds mem; fists mem' > conftest.s
23188 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190 (eval $ac_try) 2>&5
23192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193 test $ac_status = 0; }; }
23195 gcc_cv_as_ix86_filds
=yes
23197 echo "configure: failed program was" >&5
23200 rm -f conftest.o conftest.s
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23204 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23205 if test $gcc_cv_as_ix86_filds = yes; then
23207 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23212 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23213 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23214 $as_echo_n "(cached) " >&6
23216 gcc_cv_as_ix86_fildq
=no
23217 if test x
$gcc_cv_as != x
; then
23218 echo 'fildq mem; fistpq mem' > conftest.s
23219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221 (eval $ac_try) 2>&5
23223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224 test $ac_status = 0; }; }
23226 gcc_cv_as_ix86_fildq
=yes
23228 echo "configure: failed program was" >&5
23231 rm -f conftest.o conftest.s
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23235 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23236 if test $gcc_cv_as_ix86_fildq = yes; then
23238 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23243 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23244 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23247 gcc_cv_as_ix86_cmov_sun_syntax
=no
23248 if test x
$gcc_cv_as != x
; then
23249 echo 'cmovl.l %edx, %eax' > conftest.s
23250 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23252 (eval $ac_try) 2>&5
23254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23255 test $ac_status = 0; }; }
23257 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23259 echo "configure: failed program was" >&5
23262 rm -f conftest.o conftest.s
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23266 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23267 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23269 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23274 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23275 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23278 gcc_cv_as_ix86_ffreep
=no
23279 if test x
$gcc_cv_as != x
; then
23280 echo 'ffreep %st(1)' > conftest.s
23281 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23283 (eval $ac_try) 2>&5
23285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23286 test $ac_status = 0; }; }
23288 gcc_cv_as_ix86_ffreep
=yes
23290 echo "configure: failed program was" >&5
23293 rm -f conftest.o conftest.s
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23297 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23298 if test $gcc_cv_as_ix86_ffreep = yes; then
23300 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23305 $as_echo_n "checking assembler for .quad directive... " >&6; }
23306 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23307 $as_echo_n "(cached) " >&6
23309 gcc_cv_as_ix86_quad
=no
23310 if test x
$gcc_cv_as != x
; then
23311 echo '.quad 0' > conftest.s
23312 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23314 (eval $ac_try) 2>&5
23316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317 test $ac_status = 0; }; }
23319 gcc_cv_as_ix86_quad
=yes
23321 echo "configure: failed program was" >&5
23324 rm -f conftest.o conftest.s
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23328 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23329 if test $gcc_cv_as_ix86_quad = yes; then
23331 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23336 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23337 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23340 gcc_cv_as_ix86_sahf
=no
23341 if test x
$gcc_cv_as != x
; then
23344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23346 (eval $ac_try) 2>&5
23348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23349 test $ac_status = 0; }; }
23351 gcc_cv_as_ix86_sahf
=yes
23353 echo "configure: failed program was" >&5
23356 rm -f conftest.o conftest.s
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23360 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23361 if test $gcc_cv_as_ix86_sahf = yes; then
23363 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23368 $as_echo_n "checking assembler for swap suffix... " >&6; }
23369 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23370 $as_echo_n "(cached) " >&6
23372 gcc_cv_as_ix86_swap
=no
23373 if test x
$gcc_cv_as != x
; then
23374 echo 'movl.s %esp, %ebp' > conftest.s
23375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23377 (eval $ac_try) 2>&5
23379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380 test $ac_status = 0; }; }
23382 gcc_cv_as_ix86_swap
=yes
23384 echo "configure: failed program was" >&5
23387 rm -f conftest.o conftest.s
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23391 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23392 if test $gcc_cv_as_ix86_swap = yes; then
23394 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23399 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23400 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23401 $as_echo_n "(cached) " >&6
23403 gcc_cv_as_ix86_diff_sect_delta
=no
23404 if test x
$gcc_cv_as != x
; then
23405 echo '.section .rodata
23411 .L2: nop' > conftest.s
23412 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23414 (eval $ac_try) 2>&5
23416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23417 test $ac_status = 0; }; }
23419 gcc_cv_as_ix86_diff_sect_delta
=yes
23421 echo "configure: failed program was" >&5
23424 rm -f conftest.o conftest.s
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23428 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23429 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23431 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23435 # These two are used unconditionally by i386.[ch]; it is to be defined
23436 # to 1 if the feature is present, 0 otherwise.
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23438 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23439 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23440 $as_echo_n "(cached) " >&6
23442 gcc_cv_as_ix86_gotoff_in_data
=no
23443 if test $in_tree_gas = yes; then
23444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23445 then gcc_cv_as_ix86_gotoff_in_data
=yes
23447 elif test x
$gcc_cv_as != x
; then
23452 .long .L0@GOTOFF' > conftest.s
23453 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23455 (eval $ac_try) 2>&5
23457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458 test $ac_status = 0; }; }
23460 gcc_cv_as_ix86_gotoff_in_data
=yes
23462 echo "configure: failed program was" >&5
23465 rm -f conftest.o conftest.s
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23469 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23472 cat >>confdefs.h
<<_ACEOF
23473 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23478 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23479 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23480 $as_echo_n "(cached) " >&6
23482 gcc_cv_as_ix86_rep_lock_prefix
=no
23483 if test x
$gcc_cv_as != x
; then
23485 lock addl %edi, (%eax,%esi)
23486 lock orl $0, (%esp)' > conftest.s
23487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23489 (eval $ac_try) 2>&5
23491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23492 test $ac_status = 0; }; }
23494 gcc_cv_as_ix86_rep_lock_prefix
=yes
23496 echo "configure: failed program was" >&5
23499 rm -f conftest.o conftest.s
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23503 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23504 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23506 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23514 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23515 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23516 $as_echo_n "(cached) " >&6
23518 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23519 if test $in_tree_gas = yes; then
23520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23521 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23523 elif test x
$gcc_cv_as != x
; then
23525 addl r15 = @ltoffx(x#), gp
23527 ld8.mov r16 = [r15], x#' > conftest.s
23528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23530 (eval $ac_try) 2>&5
23532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23533 test $ac_status = 0; }; }
23535 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23537 echo "configure: failed program was" >&5
23540 rm -f conftest.o conftest.s
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23544 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23545 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23547 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23555 *-*-aix*) conftest_s
=' .machine "pwr5"
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23560 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23561 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23562 $as_echo_n "(cached) " >&6
23564 gcc_cv_as_machine_directive
=no
23565 if test x
$gcc_cv_as != x
; then
23566 echo ' .machine ppc7400' > conftest.s
23567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23569 (eval $ac_try) 2>&5
23571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23572 test $ac_status = 0; }; }
23574 gcc_cv_as_machine_directive
=yes
23576 echo "configure: failed program was" >&5
23579 rm -f conftest.o conftest.s
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23583 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23585 if test x
$gcc_cv_as_machine_directive != xyes
; then
23586 echo "*** This target requires an assembler supporting \".machine\"" >&2
23587 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23588 test x
$build = x
$target && exit 1
23592 *) conftest_s
=' .machine power4
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23598 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23599 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23600 $as_echo_n "(cached) " >&6
23602 gcc_cv_as_powerpc_mfcrf
=no
23603 if test $in_tree_gas = yes; then
23604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23605 then gcc_cv_as_powerpc_mfcrf
=yes
23607 elif test x
$gcc_cv_as != x
; then
23608 echo "$conftest_s" > conftest.s
23609 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23611 (eval $ac_try) 2>&5
23613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23614 test $ac_status = 0; }; }
23616 gcc_cv_as_powerpc_mfcrf
=yes
23618 echo "configure: failed program was" >&5
23621 rm -f conftest.o conftest.s
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23625 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23626 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23628 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23633 *-*-aix*) conftest_s
=' .machine "pwr5"
23636 *) conftest_s
=' .machine power5
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23642 $as_echo_n "checking assembler for popcntb support... " >&6; }
23643 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23644 $as_echo_n "(cached) " >&6
23646 gcc_cv_as_powerpc_popcntb
=no
23647 if test $in_tree_gas = yes; then
23648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23649 then gcc_cv_as_powerpc_popcntb
=yes
23651 elif test x
$gcc_cv_as != x
; then
23652 echo "$conftest_s" > conftest.s
23653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655 (eval $ac_try) 2>&5
23657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658 test $ac_status = 0; }; }
23660 gcc_cv_as_powerpc_popcntb
=yes
23662 echo "configure: failed program was" >&5
23665 rm -f conftest.o conftest.s
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23669 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23670 if test $gcc_cv_as_powerpc_popcntb = yes; then
23672 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23677 *-*-aix*) conftest_s
=' .machine "pwr5x"
23680 *) conftest_s
=' .machine power5
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23686 $as_echo_n "checking assembler for fp round support... " >&6; }
23687 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23688 $as_echo_n "(cached) " >&6
23690 gcc_cv_as_powerpc_fprnd
=no
23691 if test $in_tree_gas = yes; then
23692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23693 then gcc_cv_as_powerpc_fprnd
=yes
23695 elif test x
$gcc_cv_as != x
; then
23696 echo "$conftest_s" > conftest.s
23697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23699 (eval $ac_try) 2>&5
23701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23702 test $ac_status = 0; }; }
23704 gcc_cv_as_powerpc_fprnd
=yes
23706 echo "configure: failed program was" >&5
23709 rm -f conftest.o conftest.s
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23713 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23714 if test $gcc_cv_as_powerpc_fprnd = yes; then
23716 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23721 *-*-aix*) conftest_s
=' .machine "pwr6"
23724 *) conftest_s
=' .machine power6
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23730 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23731 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23732 $as_echo_n "(cached) " >&6
23734 gcc_cv_as_powerpc_mfpgpr
=no
23735 if test $in_tree_gas = yes; then
23736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23737 then gcc_cv_as_powerpc_mfpgpr
=yes
23739 elif test x
$gcc_cv_as != x
; then
23740 echo "$conftest_s" > conftest.s
23741 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23743 (eval $ac_try) 2>&5
23745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746 test $ac_status = 0; }; }
23748 gcc_cv_as_powerpc_mfpgpr
=yes
23750 echo "configure: failed program was" >&5
23753 rm -f conftest.o conftest.s
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23757 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23758 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23760 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23765 *-*-aix*) conftest_s
=' .csect .text[PR]
23767 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23771 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23772 *) conftest_s
=' .text
23774 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23778 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23779 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23780 $as_echo_n "(cached) " >&6
23782 gcc_cv_as_powerpc_rel16
=no
23783 if test $in_tree_gas = yes; then
23784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23785 then gcc_cv_as_powerpc_rel16
=yes
23787 elif test x
$gcc_cv_as != x
; then
23788 echo "$conftest_s" > conftest.s
23789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23791 (eval $ac_try) 2>&5
23793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23794 test $ac_status = 0; }; }
23796 gcc_cv_as_powerpc_rel16
=yes
23798 echo "configure: failed program was" >&5
23801 rm -f conftest.o conftest.s
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23805 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23806 if test $gcc_cv_as_powerpc_rel16 = yes; then
23808 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23813 *-*-aix*) conftest_s
=' .machine "pwr6"
23816 *) conftest_s
=' .machine power6
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23822 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23823 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23824 $as_echo_n "(cached) " >&6
23826 gcc_cv_as_powerpc_cmpb
=no
23827 if test $in_tree_gas = yes; then
23828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23829 then gcc_cv_as_powerpc_cmpb
=yes
23831 elif test x
$gcc_cv_as != x
; then
23832 echo "$conftest_s" > conftest.s
23833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; }
23840 gcc_cv_as_powerpc_cmpb
=yes
23842 echo "configure: failed program was" >&5
23845 rm -f conftest.o conftest.s
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23849 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23850 if test $gcc_cv_as_powerpc_cmpb = yes; then
23852 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23857 *-*-aix*) conftest_s
=' .machine "pwr6"
23860 *) conftest_s
=' .machine power6
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23866 $as_echo_n "checking assembler for decimal float support... " >&6; }
23867 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23868 $as_echo_n "(cached) " >&6
23870 gcc_cv_as_powerpc_dfp
=no
23871 if test $in_tree_gas = yes; then
23872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23873 then gcc_cv_as_powerpc_dfp
=yes
23875 elif test x
$gcc_cv_as != x
; then
23876 echo "$conftest_s" > conftest.s
23877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23884 gcc_cv_as_powerpc_dfp
=yes
23886 echo "configure: failed program was" >&5
23889 rm -f conftest.o conftest.s
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23893 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23894 if test $gcc_cv_as_powerpc_dfp = yes; then
23896 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23901 *-*-aix*) conftest_s
=' .machine "pwr7"
23904 *) conftest_s
=' .machine power7
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23910 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23911 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23914 gcc_cv_as_powerpc_vsx
=no
23915 if test $in_tree_gas = yes; then
23916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23917 then gcc_cv_as_powerpc_vsx
=yes
23919 elif test x
$gcc_cv_as != x
; then
23920 echo "$conftest_s" > conftest.s
23921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; }
23928 gcc_cv_as_powerpc_vsx
=yes
23930 echo "configure: failed program was" >&5
23933 rm -f conftest.o conftest.s
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23937 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23938 if test $gcc_cv_as_powerpc_vsx = yes; then
23940 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23945 *-*-aix*) conftest_s
=' .machine "pwr7"
23948 *) conftest_s
=' .machine power7
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23954 $as_echo_n "checking assembler for popcntd support... " >&6; }
23955 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23956 $as_echo_n "(cached) " >&6
23958 gcc_cv_as_powerpc_popcntd
=no
23959 if test $in_tree_gas = yes; then
23960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23961 then gcc_cv_as_powerpc_popcntd
=yes
23963 elif test x
$gcc_cv_as != x
; then
23964 echo "$conftest_s" > conftest.s
23965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967 (eval $ac_try) 2>&5
23969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970 test $ac_status = 0; }; }
23972 gcc_cv_as_powerpc_popcntd
=yes
23974 echo "configure: failed program was" >&5
23977 rm -f conftest.o conftest.s
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23981 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23982 if test $gcc_cv_as_powerpc_popcntd = yes; then
23984 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23989 *-*-aix*) conftest_s
=' .csect .text[PR]
23991 *) conftest_s
=' .text
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23996 $as_echo_n "checking assembler for lwsync support... " >&6; }
23997 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23998 $as_echo_n "(cached) " >&6
24000 gcc_cv_as_powerpc_lwsync
=no
24001 if test $in_tree_gas = yes; then
24002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24003 then gcc_cv_as_powerpc_lwsync
=yes
24005 elif test x
$gcc_cv_as != x
; then
24006 echo "$conftest_s" > conftest.s
24007 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24009 (eval $ac_try) 2>&5
24011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012 test $ac_status = 0; }; }
24014 gcc_cv_as_powerpc_lwsync
=yes
24016 echo "configure: failed program was" >&5
24019 rm -f conftest.o conftest.s
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24023 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24024 if test $gcc_cv_as_powerpc_lwsync = yes; then
24026 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24031 *-*-aix*) conftest_s
=' .machine "476"
24034 *) conftest_s
=' .machine "476"
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24040 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24041 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24042 $as_echo_n "(cached) " >&6
24044 gcc_cv_as_powerpc_dci
=no
24045 if test $in_tree_gas = yes; then
24046 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24047 then gcc_cv_as_powerpc_dci
=yes
24049 elif test x
$gcc_cv_as != x
; then
24050 echo "$conftest_s" > conftest.s
24051 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24053 (eval $ac_try) 2>&5
24055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24056 test $ac_status = 0; }; }
24058 gcc_cv_as_powerpc_dci
=yes
24060 echo "configure: failed program was" >&5
24063 rm -f conftest.o conftest.s
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24067 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24068 if test $gcc_cv_as_powerpc_dci = yes; then
24070 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24075 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24076 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24079 gcc_cv_as_powerpc_gnu_attribute
=no
24080 if test $in_tree_gas = yes; then
24081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24082 then gcc_cv_as_powerpc_gnu_attribute
=yes
24084 elif test x
$gcc_cv_as != x
; then
24085 echo '.gnu_attribute 4,1' > conftest.s
24086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088 (eval $ac_try) 2>&5
24090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091 test $ac_status = 0; }; }
24093 gcc_cv_as_powerpc_gnu_attribute
=yes
24095 echo "configure: failed program was" >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24102 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24103 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24105 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24110 $as_echo_n "checking assembler for tls marker support... " >&6; }
24111 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24114 gcc_cv_as_powerpc_tls_markers
=no
24115 if test $in_tree_gas = yes; then
24116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24117 then gcc_cv_as_powerpc_tls_markers
=yes
24119 elif test x
$gcc_cv_as != x
; then
24120 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123 (eval $ac_try) 2>&5
24125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126 test $ac_status = 0; }; }
24128 gcc_cv_as_powerpc_tls_markers
=yes
24130 echo "configure: failed program was" >&5
24133 rm -f conftest.o conftest.s
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24137 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24138 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24140 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24147 $as_echo_n "checking assembler for .ref support... " >&6; }
24148 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24149 $as_echo_n "(cached) " >&6
24151 gcc_cv_as_aix_ref
=no
24152 if test $in_tree_gas = yes; then
24153 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24156 elif test x
$gcc_cv_as != x
; then
24157 echo ' .csect stuff[rw]
24163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24165 (eval $ac_try) 2>&5
24167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24168 test $ac_status = 0; }; }
24170 gcc_cv_as_aix_ref
=yes
24172 echo "configure: failed program was" >&5
24175 rm -f conftest.o conftest.s
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24179 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24180 if test $gcc_cv_as_aix_ref = yes; then
24182 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24191 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24192 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24193 $as_echo_n "(cached) " >&6
24195 gcc_cv_as_mips_explicit_relocs
=no
24196 if test $in_tree_gas = yes; then
24197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24198 then gcc_cv_as_mips_explicit_relocs
=yes
24200 elif test x
$gcc_cv_as != x
; then
24201 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204 (eval $ac_try) 2>&5
24206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207 test $ac_status = 0; }; }
24209 gcc_cv_as_mips_explicit_relocs
=yes
24211 echo "configure: failed program was" >&5
24214 rm -f conftest.o conftest.s
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24218 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24219 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24220 if test x
$target_cpu_default = x
24221 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24222 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24226 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24227 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 gcc_cv_as_mips_no_shared
=no
24231 if test $in_tree_gas = yes; then
24232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24233 then gcc_cv_as_mips_no_shared
=yes
24235 elif test x
$gcc_cv_as != x
; then
24236 echo 'nop' > conftest.s
24237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24239 (eval $ac_try) 2>&5
24241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24242 test $ac_status = 0; }; }
24244 gcc_cv_as_mips_no_shared
=yes
24246 echo "configure: failed program was" >&5
24249 rm -f conftest.o conftest.s
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24253 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24254 if test $gcc_cv_as_mips_no_shared = yes; then
24256 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24261 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24262 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24263 $as_echo_n "(cached) " >&6
24265 gcc_cv_as_mips_gnu_attribute
=no
24266 if test $in_tree_gas = yes; then
24267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24268 then gcc_cv_as_mips_gnu_attribute
=yes
24270 elif test x
$gcc_cv_as != x
; then
24271 echo '.gnu_attribute 4,1' > conftest.s
24272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24279 gcc_cv_as_mips_gnu_attribute
=yes
24281 echo "configure: failed program was" >&5
24284 rm -f conftest.o conftest.s
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24288 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24289 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24291 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24296 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24297 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24300 gcc_cv_as_mips_dtprelword
=no
24301 if test $in_tree_gas = yes; then
24302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24303 then gcc_cv_as_mips_dtprelword
=yes
24305 elif test x
$gcc_cv_as != x
; then
24306 echo '.section .tdata,"awT",@progbits
24310 .dtprelword x+0x8000' > conftest.s
24311 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24313 (eval $ac_try) 2>&5
24315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24316 test $ac_status = 0; }; }
24318 gcc_cv_as_mips_dtprelword
=yes
24320 echo "configure: failed program was" >&5
24323 rm -f conftest.o conftest.s
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24327 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24328 if test $gcc_cv_as_mips_dtprelword = yes; then
24330 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24335 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24336 gcc_cv_as_ld_jalr_reloc
=no
24337 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24338 if test $in_tree_ld = yes ; then
24339 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 \
24340 && test $in_tree_ld_is_elf = yes; then
24341 gcc_cv_as_ld_jalr_reloc
=yes
24343 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24344 echo ' .ent x' > conftest.s
24345 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24346 echo ' ld $25,%call16(y)($28)' >> conftest.s
24347 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24348 echo '1: jalr $25' >> conftest.s
24349 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24350 echo '1: jalr $25' >> conftest.s
24351 echo ' .end x' >> conftest.s
24352 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24353 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24354 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
24355 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
24356 gcc_cv_as_ld_jalr_reloc
=yes
24362 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24363 if test x
$target_cpu_default = x
; then
24364 target_cpu_default
=MASK_RELAX_PIC_CALLS
24366 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24370 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24373 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24374 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24375 $as_echo_n "(cached) " >&6
24377 gcc_cv_ld_mips_personality_relaxation
=no
24378 if test $in_tree_ld = yes ; then
24379 if test "$gcc_cv_gld_major_version" -eq 2 \
24380 -a "$gcc_cv_gld_minor_version" -ge 21 \
24381 -o "$gcc_cv_gld_major_version" -gt 2; then
24382 gcc_cv_ld_mips_personality_relaxation
=yes
24384 elif test x
$gcc_cv_as != x \
24385 -a x
$gcc_cv_ld != x \
24386 -a x
$gcc_cv_readelf != x
; then
24387 cat > conftest.s
<<EOF
24389 .cfi_personality 0x80,indirect_ptr
24396 .section .data,"aw",@progbits
24400 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24401 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24402 if $gcc_cv_readelf -d conftest
2>&1 \
24403 |
grep TEXTREL
> /dev
/null
2>&1; then
24405 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24406 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24409 gcc_cv_ld_mips_personality_relaxation
=yes
24413 rm -f conftest.s conftest.o conftest
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24416 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24417 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24419 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24425 # Mips and HP-UX need the GNU assembler.
24426 # Linux on IA64 might be able to use the Intel assembler.
24429 mips
*-*-* |
*-*-hpux* )
24430 if test x
$gas_flag = xyes \
24431 ||
test x
"$host" != x
"$build" \
24432 ||
test ! -x "$gcc_cv_as" \
24433 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24436 echo "*** This configuration requires the GNU assembler" >&2
24442 # ??? Not all targets support dwarf2 debug_line, even within a version
24443 # of gas. Moreover, we need to emit a valid instruction to trigger any
24444 # info to the output file. So, as supported targets are added to gas 2.11,
24445 # add some instruction here to (also) show we expect this might work.
24446 # ??? Once 2.11 is released, probably need to add first known working
24447 # version to the per-target configury.
24449 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
24450 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
24451 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
24452 | spu-
*-* | fido
*-*-* | m32c-
*-*)
24455 ia64
*-*-* | s390
*-*-*)
24462 if test x
"$insn" != x
; then
24464 .file 1 \"conftest.s\"
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24468 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24469 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24472 gcc_cv_as_dwarf2_debug_line
=no
24473 if test $in_tree_gas = yes; then
24474 if test $in_tree_gas_is_elf = yes \
24475 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24476 then gcc_cv_as_dwarf2_debug_line
=yes
24478 elif test x
$gcc_cv_as != x
; then
24479 echo "$conftest_s" > conftest.s
24480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24482 (eval $ac_try) 2>&5
24484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24485 test $ac_status = 0; }; }
24487 if test x
$gcc_cv_objdump != x \
24488 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24489 |
grep debug_line
> /dev
/null
2>&1; then
24490 gcc_cv_as_dwarf2_debug_line
=yes
24493 echo "configure: failed program was" >&5
24496 rm -f conftest.o conftest.s
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24500 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24503 # The .debug_line file table must be in the exact order that
24504 # we specified the files, since these indices are also used
24505 # by DW_AT_decl_file. Approximate this test by testing if
24506 # the assembler bitches if the same index is assigned twice.
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24508 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24509 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24510 $as_echo_n "(cached) " >&6
24512 gcc_cv_as_dwarf2_file_buggy
=no
24513 if test x
$gcc_cv_as != x
; then
24514 echo ' .file 1 "foo.s"
24515 .file 1 "bar.s"' > conftest.s
24516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24518 (eval $ac_try) 2>&5
24520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521 test $ac_status = 0; }; }
24523 gcc_cv_as_dwarf2_file_buggy
=yes
24525 echo "configure: failed program was" >&5
24528 rm -f conftest.o conftest.s
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24532 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24535 if test $gcc_cv_as_dwarf2_debug_line = yes \
24536 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24538 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24543 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24544 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24545 $as_echo_n "(cached) " >&6
24547 gcc_cv_as_gdwarf2_flag
=no
24548 if test $in_tree_gas = yes; then
24549 if test $in_tree_gas_is_elf = yes \
24550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24551 then gcc_cv_as_gdwarf2_flag
=yes
24553 elif test x
$gcc_cv_as != x
; then
24554 echo "$insn" > conftest.s
24555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24562 gcc_cv_as_gdwarf2_flag
=yes
24564 echo "configure: failed program was" >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24571 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24572 if test $gcc_cv_as_gdwarf2_flag = yes; then
24574 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24579 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24580 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24583 gcc_cv_as_gstabs_flag
=no
24584 if test $in_tree_gas = yes; then
24585 if test $in_tree_gas_is_elf = yes \
24586 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24587 then gcc_cv_as_gstabs_flag
=yes
24589 elif test x
$gcc_cv_as != x
; then
24590 echo "$insn" > conftest.s
24591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24598 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24599 # and warns about it, but still exits successfully. So check for
24601 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
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; }; }
24608 else gcc_cv_as_gstabs_flag
=yes
24611 echo "configure: failed program was" >&5
24614 rm -f conftest.o conftest.s
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24618 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24619 if test $gcc_cv_as_gstabs_flag = yes; then
24621 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24626 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24627 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24628 $as_echo_n "(cached) " >&6
24630 gcc_cv_as_debug_prefix_map_flag
=no
24631 if test $in_tree_gas = yes; then
24632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24633 then gcc_cv_as_debug_prefix_map_flag
=yes
24635 elif test x
$gcc_cv_as != x
; then
24636 echo "$insn" > conftest.s
24637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639 (eval $ac_try) 2>&5
24641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642 test $ac_status = 0; }; }
24644 gcc_cv_as_debug_prefix_map_flag
=yes
24646 echo "configure: failed program was" >&5
24649 rm -f conftest.o conftest.s
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24653 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24654 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24656 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24662 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24663 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24664 $as_echo_n "(cached) " >&6
24666 gcc_cv_as_lcomm_with_alignment
=no
24667 if test x
$gcc_cv_as != x
; then
24668 echo '.lcomm bar,4,16' > conftest.s
24669 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671 (eval $ac_try) 2>&5
24673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674 test $ac_status = 0; }; }
24676 gcc_cv_as_lcomm_with_alignment
=yes
24678 echo "configure: failed program was" >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24685 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24686 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24688 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24692 # Check whether --enable-gnu-unique-object was given.
24693 if test "${enable_gnu_unique_object+set}" = set; then :
24694 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24696 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24697 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24701 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24702 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24703 $as_echo_n "(cached) " >&6
24705 gcc_cv_as_gnu_unique_object
=no
24706 if test $in_tree_gas = yes; then
24707 if test $in_tree_gas_is_elf = yes \
24708 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24709 then gcc_cv_as_gnu_unique_object
=yes
24711 elif test x
$gcc_cv_as != x
; then
24712 echo '.type foo, @gnu_unique_object' > conftest.s
24713 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }
24720 gcc_cv_as_gnu_unique_object
=yes
24722 echo "configure: failed program was" >&5
24725 rm -f conftest.o conftest.s
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24729 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24730 if test $gcc_cv_as_gnu_unique_object = yes; then
24731 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24732 if test x
$host = x
$build -a x
$host = x
$target &&
24733 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24734 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24735 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24736 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24737 if test "$glibcnum" -ge 2011 ; then
24738 enable_gnu_unique_object
=yes
24744 if test x
$enable_gnu_unique_object = xyes
; then
24746 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24751 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24752 if test "${gcc_cv_as_line_zero+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24755 gcc_cv_as_line_zero
=no
24756 if test $in_tree_gas = yes; then
24757 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24758 then gcc_cv_as_line_zero
=yes
24760 elif test "x$gcc_cv_as" != x
; then
24761 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24762 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; } &&
24768 test "x`cat conftest.out`" = x
24770 gcc_cv_as_line_zero
=yes
24772 echo "configure: failed program was" >&5
24774 echo "configure: error output was" >&5
24775 cat conftest.out
>&5
24777 rm -f conftest.o conftest.s conftest.out
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24781 $as_echo "$gcc_cv_as_line_zero" >&6; }
24782 if test "x$gcc_cv_as_line_zero" = xyes
; then
24784 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24789 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24790 gcc_cv_ld_eh_frame_hdr
=no
24791 if test $in_tree_ld = yes ; then
24792 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 \
24793 && test $in_tree_ld_is_elf = yes; then
24794 gcc_cv_ld_eh_frame_hdr
=yes
24796 elif test x
$gcc_cv_ld != x
; then
24797 # Check if linker supports --eh-frame-hdr option
24798 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24799 gcc_cv_ld_eh_frame_hdr
=yes
24803 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24805 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24809 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24812 $as_echo_n "checking linker position independent executable support... " >&6; }
24814 if test $in_tree_ld = yes ; then
24815 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 \
24816 && test $in_tree_ld_is_elf = yes; then
24819 elif test x
$gcc_cv_ld != x
; then
24820 # Check if linker supports -pie option
24821 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24825 if test x
"$gcc_cv_ld_pie" = xyes
; then
24827 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24831 $as_echo "$gcc_cv_ld_pie" >&6; }
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24834 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24835 gcc_cv_ld_eh_gc_sections
=no
24836 if test $in_tree_ld = yes ; then
24837 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 \
24838 && test $in_tree_ld_is_elf = yes; then
24839 gcc_cv_ld_eh_gc_sections
=yes
24841 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24842 cat > conftest.s
<<EOF
24845 .type _start, @function
24848 .size _start, .-_start
24849 .section .text.foo,"ax",@progbits
24850 .type foo, @function
24854 .section .gcc_except_table.foo,"a",@progbits
24857 .section .eh_frame,"a",@progbits
24860 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24861 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24862 |
grep "gc-sections option ignored" > /dev
/null
; then
24863 gcc_cv_ld_eh_gc_sections
=no
24864 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24865 |
grep gcc_except_table
> /dev
/null
; then
24866 gcc_cv_ld_eh_gc_sections
=yes
24867 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24868 if test x
$gcc_cv_as_comdat_group != xyes
; then
24869 gcc_cv_ld_eh_gc_sections
=no
24870 cat > conftest.s
<<EOF
24873 .type _start, @function
24876 .size _start, .-_start
24877 .section .gnu.linkonce.t.foo,"ax",@progbits
24878 .type foo, @function
24882 .section .gcc_except_table.foo,"a",@progbits
24885 .section .eh_frame,"a",@progbits
24888 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24889 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24890 |
grep "gc-sections option ignored" > /dev
/null
; then
24891 gcc_cv_ld_eh_gc_sections
=no
24892 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24893 |
grep gcc_except_table
> /dev
/null
; then
24894 gcc_cv_ld_eh_gc_sections
=yes
24900 rm -f conftest.s conftest.o conftest
24904 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24905 gcc_cv_ld_eh_gc_sections
=no
24908 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24910 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24914 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24921 $as_echo_n "checking linker --as-needed support... " >&6; }
24922 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24925 gcc_cv_ld_as_needed
=no
24926 if test $in_tree_ld = yes ; then
24927 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 \
24928 && test $in_tree_ld_is_elf = yes; then
24929 gcc_cv_ld_as_needed
=yes
24931 elif test x
$gcc_cv_ld != x
; then
24932 # Check if linker supports --as-needed and --no-as-needed options
24933 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24934 gcc_cv_ld_as_needed
=yes
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24940 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24941 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24943 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24947 case "$target:$tm_file" in
24948 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24950 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24951 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24952 $as_echo_n "(cached) " >&6
24954 gcc_cv_ld_no_dot_syms
=no
24955 if test $in_tree_ld = yes ; then
24956 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
24957 gcc_cv_ld_no_dot_syms
=yes
24959 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24960 cat > conftest1.s
<<EOF
24964 cat > conftest2.s
<<EOF
24965 .section ".opd","aw"
24968 .type foo,@function
24970 .quad .LEfoo,.TOC.@tocbase,0
24976 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24977 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24978 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24979 gcc_cv_ld_no_dot_syms
=yes
24981 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24986 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24987 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24989 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
24994 $as_echo_n "checking linker large toc support... " >&6; }
24995 if test "${gcc_cv_ld_large_toc+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24998 gcc_cv_ld_large_toc
=no
24999 if test $in_tree_ld = yes ; then
25000 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
25001 gcc_cv_ld_large_toc
=yes
25003 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25004 cat > conftest.s
<<EOF
25005 .section ".tbss","awT",@nobits
25011 addis 9,13,ie0@got@tprel@ha
25012 ld 9,ie0@got@tprel@l(9)
25014 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
25015 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
25016 gcc_cv_ld_large_toc
=yes
25018 rm -f conftest conftest.o conftest.s
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25023 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25024 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
25026 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25033 $as_echo_n "checking linker --build-id support... " >&6; }
25034 if test "${gcc_cv_ld_buildid+set}" = set; then :
25035 $as_echo_n "(cached) " >&6
25037 gcc_cv_ld_buildid
=no
25038 if test $in_tree_ld = yes ; then
25039 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25040 "$gcc_cv_gld_minor_version" -ge 18 -o \
25041 "$gcc_cv_gld_major_version" -gt 2 \
25042 && test $in_tree_ld_is_elf = yes; then
25043 gcc_cv_ld_buildid
=yes
25045 elif test x
$gcc_cv_ld != x
; then
25046 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
25047 gcc_cv_ld_buildid
=yes
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25052 $as_echo "$gcc_cv_ld_buildid" >&6; }
25053 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25055 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25059 # Check whether --enable-linker-build-id was given.
25060 if test "${enable_linker_build_id+set}" = set; then :
25061 enableval
=$enable_linker_build_id;
25063 enable_linker_build_id
=no
25067 if test x
"$enable_linker_build_id" = xyes
; then
25068 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25070 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25074 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25078 # In binutils 2.21, GNU ld gained support for new emulations fully
25079 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25081 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25082 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25083 $as_echo_n "(cached) " >&6
25085 gcc_cv_ld_sol2_emulation
=no
25086 if test $in_tree_ld = yes ; then
25087 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25088 "$gcc_cv_gld_minor_version" -ge 21 -o \
25089 "$gcc_cv_gld_major_version" -gt 2 \
25090 && test $in_tree_ld_is_elf = yes; then
25091 gcc_cv_ld_sol2_emulation
=yes
25093 elif test x
$gcc_cv_ld != x
; then
25094 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
25095 grep _sol2
> /dev
/null
; then
25096 gcc_cv_ld_sol2_emulation
=yes
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25101 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25102 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
25104 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25109 $as_echo_n "checking linker --sysroot support... " >&6; }
25110 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25111 $as_echo_n "(cached) " >&6
25113 gcc_cv_ld_sysroot
=no
25114 if test $in_tree_ld = yes ; then
25115 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
25116 gcc_cv_ld_sysroot
=yes
25118 elif test x
$gcc_cv_ld != x
; then
25119 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
25120 gcc_cv_ld_sysroot
=yes
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25125 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25126 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
25128 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25132 if test x
$with_sysroot = x
&& test x
$host = x
$target \
25133 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25134 && test "$prefix" != "NONE"; then
25136 cat >>confdefs.h
<<_ACEOF
25137 #define PREFIX_INCLUDE_DIR "$prefix/include"
25142 # Test for stack protector support in target C library.
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25144 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25145 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25146 $as_echo_n "(cached) " >&6
25148 gcc_cv_libc_provides_ssp
=no
25150 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
25151 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25152 if test "x$with_headers" != x
; then
25153 glibc_header_dir
=$with_headers
25154 elif test "x$with_sysroot" = x
; then
25155 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25156 elif test "x$with_build_sysroot" != "x"; then
25157 glibc_header_dir
="${with_build_sysroot}/usr/include"
25158 elif test "x$with_sysroot" = xyes
; then
25159 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25161 glibc_header_dir
="${with_sysroot}/usr/include"
25164 glibc_header_dir
=/usr
/include
25166 # glibc 2.4 and later provides __stack_chk_fail and
25167 # either __stack_chk_guard, or TLS access to stack guard canary.
25168 if test -f $glibc_header_dir/features.h \
25169 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25170 $glibc_header_dir/features.h
> /dev
/null
; then
25171 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25172 $glibc_header_dir/features.h
> /dev
/null
; then
25173 gcc_cv_libc_provides_ssp
=yes
25174 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25175 $glibc_header_dir/features.h
> /dev
/null \
25176 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25177 $glibc_header_dir/features.h
> /dev
/null
; then
25178 gcc_cv_libc_provides_ssp
=yes
25179 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25180 $glibc_header_dir/features.h
> /dev
/null
&& \
25181 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
25182 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25183 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
25184 gcc_cv_libc_provides_ssp
=yes
25189 # Avoid complicated tests (see
25190 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25191 # simply assert that glibc does provide this, which is true for all
25192 # realistically usable GNU/Hurd configurations.
25193 gcc_cv_libc_provides_ssp
=yes;;
25194 *-*-darwin* |
*-*-freebsd*)
25195 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25196 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
25197 gcc_cv_libc_provides_ssp
=yes
25199 echo "no __stack_chk_fail on this target"
25203 *) gcc_cv_libc_provides_ssp
=no
;;
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25207 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25209 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
25211 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25215 # Check if TFmode long double should be used by default or not.
25216 # Some glibc targets used DFmode long double, but with glibc 2.4
25217 # and later they can use TFmode.
25219 powerpc
*-*-linux* | \
25220 powerpc
*-*-gnu* | \
25221 sparc
*-*-linux* | \
25225 # Check whether --with-long-double-128 was given.
25226 if test "${with_long_double_128+set}" = set; then :
25227 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
25229 gcc_cv_target_ldbl128
=no
25230 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25231 if test "x$with_sysroot" = x
; then
25232 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25233 elif test "x$with_build_sysroot" != "x"; then
25234 glibc_header_dir
="${with_build_sysroot}/usr/include"
25235 elif test "x$with_sysroot" = xyes
; then
25236 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25238 glibc_header_dir
="${with_sysroot}/usr/include"
25241 glibc_header_dir
=/usr
/include
25243 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25244 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
25245 && gcc_cv_target_ldbl128
=yes
25251 if test x
$gcc_cv_target_ldbl128 = xyes
; then
25253 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25257 # Find out what GC implementation we want, or may, use.
25259 # Check whether --with-gc was given.
25260 if test "${with_gc+set}" = set; then :
25261 withval
=$with_gc; case "$withval" in
25268 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25272 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
25280 echo "Using $GGC for garbage collection."
25282 # Libraries to use on the host. This will normally be set by the top
25283 # level Makefile. Here we simply capture the value for our Makefile.
25284 if test -z "${HOST_LIBS+set}"; then
25289 # Use the system's zlib library.
25291 zlibinc
="-I\$(srcdir)/../zlib"
25293 # Check whether --with-system-zlib was given.
25294 if test "${with_system_zlib+set}" = set; then :
25295 withval
=$with_system_zlib; zlibdir
=
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25305 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25306 # Check whether --enable-maintainer-mode was given.
25307 if test "${enable_maintainer_mode+set}" = set; then :
25308 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25315 $as_echo "$maintainer_mode" >&6; }
25317 if test "$maintainer_mode" = "yes"; then
25327 # Make empty files to contain the specs and options for each language.
25328 # Then add #include lines to for a compiler that has specs and/or options.
25334 # These (without "all_") are set in each config-lang.in.
25335 # `language' must be a single word so is spelled singularly.
25338 all_outputs
='Makefile gccbug'
25339 # List of language makefile fragments.
25340 all_lang_makefrags
=
25341 # Additional files for gengtype
25342 all_gtfiles
="$target_gtfiles"
25344 # These are the languages that are set in --enable-languages,
25345 # and are available in the GCC tree.
25346 all_selected_languages
=
25348 # Add the language fragments.
25349 # Languages are added via two mechanisms. Some information must be
25350 # recorded in makefile variables, these are defined in config-lang.in.
25351 # We accumulate them and plug them into the main Makefile.
25352 # The other mechanism is a set of hooks for each of the main targets
25353 # like `clean', `install', etc.
25355 language_hooks
="Make-hooks"
25357 for lang
in ${srcdir}/*/config-lang.
in
25359 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25361 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25362 if test "x$lang_alias" = x
25364 echo "$lang doesn't set \$language." 1>&2
25367 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25368 subdirs
="$subdirs $subdir"
25370 # $gcc_subdir is where the gcc integration files are to be found
25371 # for a language, both for internal compiler purposes (compiler
25372 # sources implementing front-end to GCC tree converters), and for
25373 # build infrastructure purposes (Make-lang.in, etc.)
25375 # This will be <subdir> (relative to $srcdir) if a line like
25376 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25377 # is found in <langdir>/config-lang.in, and will remain <langdir>
25380 # Except for the language alias (fetched above), the regular
25381 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25382 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25383 # only this and the language alias.
25385 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25386 if [ "$gcc_subdir" = "" ]; then
25387 gcc_subdir
="$subdir"
25390 case ",$enable_languages," in
25392 all_selected_languages
="$all_selected_languages $lang_alias"
25393 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
25394 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25405 .
${srcdir}/$gcc_subdir/config-lang.
in
25406 if test "x$language" = x
25408 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25413 case ",$enable_languages," in
25414 *,$lang_alias,*) ;;
25416 for i
in $subdir_requires; do
25417 test -f "${srcdir}/$i/config-lang.in" && continue
25425 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25426 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25427 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25429 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25430 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25432 all_languages
="$all_languages $language"
25433 all_compilers
="$all_compilers $compilers"
25434 all_outputs
="$all_outputs $outputs"
25435 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25436 case ",$enable_languages," in
25439 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25443 # LTO needs to speak the platform's object file format, and has a
25444 # number of implementations of the required binary file access APIs.
25445 # ELF is the most common, and default. We only link libelf if ELF
25446 # is indeed the selected format.
25447 LTO_BINARY_READER
=${lto_binary_reader}
25448 LTO_USE_LIBELF
=-lelf
25449 if test "x$lto_binary_reader" != "xlto-elf" ; then
25459 # Pick up gtfiles for c
25461 .
${srcdir}/c-config-lang.
in
25462 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25465 for language
in $all_selected_languages
25467 check_languages
="$check_languages check-$language"
25470 # We link each language in with a set of hooks, reached indirectly via
25471 # lang.${target}. Only do so for selected languages.
25475 target_list
="all.cross start.encap rest.encap tags \
25476 install-common install-man install-info install-pdf install-html dvi \
25477 pdf html uninstall info man srcextra srcman srcinfo \
25478 mostlyclean clean distclean maintainer-clean install-plugin"
25480 for t
in $target_list
25483 for lang
in $all_selected_languages
25487 echo "lang.$t: $x" >> Make-hooks
25496 echo "dir ." > .gdbinit
25497 echo "dir ${srcdir}" >> .gdbinit
25498 if test x
$gdb_needs_out_file_path = xyes
25500 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25502 if test "x$subdirs" != x
; then
25505 echo "dir ${srcdir}/$s" >> .gdbinit
25508 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25510 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25514 # Find a directory in which to install a shared libgcc.
25516 # Check whether --enable-version-specific-runtime-libs was given.
25517 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25518 enableval
=$enable_version_specific_runtime_libs;
25523 # Check whether --with-slibdir was given.
25524 if test "${with_slibdir+set}" = set; then :
25525 withval
=$with_slibdir; slibdir
="$with_slibdir"
25527 if test "${enable_version_specific_runtime_libs+set}" = set; then
25528 slibdir
='$(libsubdir)'
25529 elif test "$host" != "$target"; then
25530 slibdir
='$(build_tooldir)/lib'
25532 slibdir
='$(libdir)'
25538 # Substitute configuration variables
25602 if test x
${build} = x
${host} ; then
25603 if test x
${host} = x
${target} ; then
25604 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25606 echo "Links are now set up to build a cross-compiler" 1>&2
25607 echo " from ${host} to ${target}." 1>&2
25610 if test x
${host} = x
${target} ; then
25611 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25612 echo " for ${target}." 1>&2
25614 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25615 echo " from ${host} to ${target}." 1>&2
25627 if test "x${CLOOGLIBS}" != "x" ; then
25629 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25635 if test "x${LIBELFLIBS}" != "x" ; then
25637 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25641 # Check for plugin support
25642 # Check whether --enable-plugin was given.
25643 if test "${enable_plugin+set}" = set; then :
25644 enableval
=$enable_plugin; enable_plugin
=$enableval
25646 enable_plugin
=yes; default_plugin
=yes
25651 if test x
"$enable_plugin" = x
"yes"; then
25655 export_sym_check
="$gcc_cv_nm -g"
25658 export_sym_check
="$gcc_cv_objdump -T"
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25662 $as_echo_n "checking for exported symbols... " >&6; }
25663 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25664 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25665 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25666 : # No need to use a flag
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25669 $as_echo_n "checking for -rdynamic... " >&6; }
25670 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25671 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25672 plugin_rdynamic
=yes
25673 pluginlibs
="-rdynamic"
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25679 $as_echo "$plugin_rdynamic" >&6; }
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25685 $as_echo_n "checking for library containing dlopen... " >&6; }
25686 if test "${ac_cv_search_dlopen+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25689 ac_func_search_save_LIBS
=$LIBS
25690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25691 /* end confdefs.h. */
25693 /* Override any GCC internal prototype to avoid an error.
25694 Use char because int might match the return type of a GCC
25695 builtin and then its argument prototype would still apply. */
25708 for ac_lib
in '' dl
; do
25709 if test -z "$ac_lib"; then
25710 ac_res
="none required"
25713 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25715 if ac_fn_c_try_link
"$LINENO"; then :
25716 ac_cv_search_dlopen
=$ac_res
25718 rm -f core conftest.err conftest.
$ac_objext \
25720 if test "${ac_cv_search_dlopen+set}" = set; then :
25724 if test "${ac_cv_search_dlopen+set}" = set; then :
25727 ac_cv_search_dlopen
=no
25729 rm conftest.
$ac_ext
25730 LIBS
=$ac_func_search_save_LIBS
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25733 $as_echo "$ac_cv_search_dlopen" >&6; }
25734 ac_res
=$ac_cv_search_dlopen
25735 if test "$ac_res" != no
; then :
25736 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25740 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25741 pluginlibs
="$pluginlibs -ldl"
25745 # Check that we can build shared objects with -fPIC -shared
25746 saved_LDFLAGS
="$LDFLAGS"
25749 LDFLAGS
="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25752 LDFLAGS
="$LDFLAGS -fPIC -shared"
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25756 $as_echo_n "checking for -fPIC -shared... " >&6; }
25757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25758 /* end confdefs.h. */
25768 if ac_fn_c_try_link
"$LINENO"; then :
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25770 $as_echo "yes" >&6; }; have_pic_shared
=yes
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25773 $as_echo "no" >&6; }; have_pic_shared
=no
25775 rm -f core conftest.err conftest.
$ac_objext \
25776 conftest
$ac_exeext conftest.
$ac_ext
25777 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25781 LDFLAGS
="$saved_LDFLAGS"
25783 # If plugin support had been requested but not available, fail.
25784 if test x
"$enable_plugin" = x
"no" ; then
25785 if test x
"$default_plugin" != x
"yes"; then
25787 Building GCC with plugin support requires a host that supports
25788 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25795 if test x
"$enable_plugin" = x
"yes"; then
25797 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25801 # Configure the subdirectories
25802 # AC_CONFIG_SUBDIRS($subdirs)
25804 # Create the Makefile
25805 # and configure language subdirectories
25806 ac_config_files
="$ac_config_files $all_outputs"
25809 ac_config_commands
="$ac_config_commands default"
25811 cat >confcache
<<\_ACEOF
25812 # This file is a shell script that caches the results of configure
25813 # tests run on this system so they can be shared between configure
25814 # scripts and configure runs, see configure's option --config-cache.
25815 # It is not useful on other systems. If it contains results you don't
25816 # want to keep, you may remove or edit it.
25818 # config.status only pays attention to the cache file if you give it
25819 # the --recheck option to rerun configure.
25821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25823 # following values.
25827 # The following way of writing the cache mishandles newlines in values,
25828 # but we know of no workaround that is simple, portable, and efficient.
25829 # So, we kill variables containing newlines.
25830 # Ultrix sh set writes to stderr and can't be redirected directly,
25831 # and sets the high bit in the cache file unless we assign to the vars.
25833 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25834 eval ac_val
=\$
$ac_var
25838 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25842 _ | IFS | as_nl
) ;; #(
25843 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25844 *) { eval $ac_var=; unset $ac_var;} ;;
25850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25851 *${as_nl}ac_space
=\
*)
25852 # `set' does not quote correctly, so add quotes: double-quote
25853 # substitution turns \\\\ into \\, and sed turns \\ into \.
25856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25859 # `set' quotes correctly as required by POSIX, so do not add quotes.
25860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25873 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25874 if test -w "$cache_file"; then
25875 test "x$cache_file" != "x/dev/null" &&
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25877 $as_echo "$as_me: updating cache $cache_file" >&6;}
25878 cat confcache
>$cache_file
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25886 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25887 # Let make expand exec_prefix.
25888 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25890 DEFS
=-DHAVE_CONFIG_H
25894 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25895 # 1. Remove the extension, and $U if already installed.
25896 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25897 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25899 # will be set to the directory where LIBOBJS objects are built.
25900 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25901 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25903 LIBOBJS
=$ac_libobjs
25905 LTLIBOBJS
=$ac_ltlibobjs
25910 : ${CONFIG_STATUS=./config.status}
25912 ac_clean_files_save
=$ac_clean_files
25913 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25919 # Generated by $as_me.
25920 # Run this file to recreate the current configuration.
25921 # Compiler output produced by configure, useful for debugging
25922 # configure, is in config.log if it exists.
25925 ac_cs_recheck=false
25928 SHELL=\${CONFIG_SHELL-$SHELL}
25931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25932 ## -------------------- ##
25933 ## M4sh Initialization. ##
25934 ## -------------------- ##
25936 # Be more Bourne compatible
25937 DUALCASE
=1; export DUALCASE
# for MKS sh
25938 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25942 # is contrary to our usage. Disable this feature.
25943 alias -g '${1+"$@"}'='"$@"'
25944 setopt NO_GLOB_SUBST
25946 case `(set -o) 2>/dev/null` in #(
25958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25959 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25962 # Prefer a ksh shell builtin over an external printf program on Solaris,
25963 # but without wasting forks for bash or zsh.
25964 if test -z "$BASH_VERSION$ZSH_VERSION" \
25965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25966 as_echo='print
-r --'
25967 as_echo_n='print
-rn --'
25968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25969 as_echo='printf %s
\n'
25970 as_echo_n='printf %s
'
25972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25973 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25974 as_echo_n='/usr
/ucb
/echo -n'
25976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25977 as_echo_n_body='eval
25981 expr "X$arg" : "X\\(.*\\)$as_nl";
25982 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25984 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25986 export as_echo_n_body
25987 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25989 export as_echo_body
25990 as_echo='sh
-c $as_echo_body as_echo
'
25993 # The user is always right.
25994 if test "${PATH_SEPARATOR+set}" != set; then
25996 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25997 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26004 # We need space, tab and new line, in precisely that order. Quoting is
26005 # there to prevent editors from complaining about space-tab.
26006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26007 # splitting by setting IFS to empty value.)
26010 # Find who we are. Look in the path if we contain no directory separator.
26012 *[\\/]* ) as_myself=$0 ;;
26013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26014 for as_dir in $PATH
26017 test -z "$as_dir" && as_dir=.
26018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26024 # We did not find ourselves, most probably we were run as `sh COMMAND'
26025 # in which case we are not to be found in the path.
26026 if test "x$as_myself" = x
; then
26029 if test ! -f "$as_myself"; then
26030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26034 # Unset variables that we do not need and which cause bugs (e.g. in
26035 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26036 # suppresses any "Segmentation fault" message there. '((' could
26037 # trigger a bug in pdksh 5.2.14.
26038 for as_var
in BASH_ENV ENV MAIL MAILPATH
26039 do eval test x\
${$as_var+set} = xset \
26040 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26053 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26056 # as_fn_error ERROR [LINENO LOG_FD]
26057 # ---------------------------------
26058 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26059 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26060 # script with status $?, using 1 if that was 0.
26063 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26065 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26068 $as_echo "$as_me: error: $1" >&2
26069 as_fn_exit
$as_status
26073 # as_fn_set_status STATUS
26074 # -----------------------
26075 # Set $? to STATUS, without forking.
26076 as_fn_set_status
()
26079 } # as_fn_set_status
26081 # as_fn_exit STATUS
26082 # -----------------
26083 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26087 as_fn_set_status
$1
26093 # Portably unset VAR.
26096 { eval $1=; unset $1;}
26098 as_unset
=as_fn_unset
26099 # as_fn_append VAR VALUE
26100 # ----------------------
26101 # Append the text in VALUE to the end of the definition contained in VAR. Take
26102 # advantage of any shell optimizations that allow amortized linear growth over
26103 # repeated appends, instead of the typical quadratic growth present in naive
26105 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26106 eval 'as_fn_append ()
26117 # as_fn_arith ARG...
26118 # ------------------
26119 # Perform arithmetic evaluation on the ARGs, and store the result in the
26120 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26121 # must be portable across $(()) and expr.
26122 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26123 eval 'as_fn_arith ()
26130 as_val
=`expr "$@" || test $? -eq 1`
26135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26143 as_basename
=basename
26148 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26154 as_me
=`$as_basename -- "$0" ||
26155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26156 X"$0" : 'X\(//\)$' \| \
26157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26159 sed '/^.*\/\([^/][^/]*\)\/*$/{
26173 # Avoid depending upon Character Ranges.
26174 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26175 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26176 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26177 as_cr_digits
='0123456789'
26178 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26180 ECHO_C
= ECHO_N
= ECHO_T
=
26181 case `echo -n x` in #(((((
26183 case `echo 'xy\c'` in
26184 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26186 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26193 rm -f conf$$ conf$$.exe conf$$.
file
26194 if test -d conf$$.dir
; then
26195 rm -f conf$$.dir
/conf$$.
file
26198 mkdir conf$$.dir
2>/dev
/null
26200 if (echo >conf$$.
file) 2>/dev
/null
; then
26201 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26203 # ... but there are two gotchas:
26204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26206 # In both cases, we have to default to `cp -p'.
26207 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26209 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26217 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26218 rmdir conf$$.dir
2>/dev
/null
26223 # Create "$as_dir" as a directory, including parents if necessary.
26228 -*) as_dir
=.
/$as_dir;;
26230 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26234 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26235 *) as_qdir
=$as_dir;;
26237 as_dirs
="'$as_qdir' $as_dirs"
26238 as_dir
=`$as_dirname -- "$as_dir" ||
26239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240 X"$as_dir" : 'X\(//\)[^/]' \| \
26241 X"$as_dir" : 'X\(//\)$' \| \
26242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26243 $as_echo X"$as_dir" |
26244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26248 /^X\(\/\/\)[^/].*/{
26261 test -d "$as_dir" && break
26263 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26264 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26268 if mkdir
-p .
2>/dev
/null
; then
26269 as_mkdir_p
='mkdir -p "$as_dir"'
26271 test -d .
/-p && rmdir .
/-p
26275 if test -x / >/dev
/null
2>&1; then
26276 as_test_x
='test -x'
26278 if ls -dL / >/dev
/null
2>&1; then
26285 if test -d "$1"; then
26291 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26292 ???[sx]*):;;*)false;;esac;fi
26296 as_executable_p
=$as_test_x
26298 # Sed expression to map a string onto a valid CPP name.
26299 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26301 # Sed expression to map a string onto a valid variable name.
26302 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26306 ## ----------------------------------- ##
26307 ## Main body of $CONFIG_STATUS script. ##
26308 ## ----------------------------------- ##
26310 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26313 # Save the log message, to keep $0 and so on meaningful, and to
26314 # report actual input values of CONFIG_FILES etc. instead of their
26315 # values after options handling.
26317 This file was extended by $as_me, which was
26318 generated by GNU Autoconf 2.64. Invocation command line was
26320 CONFIG_FILES = $CONFIG_FILES
26321 CONFIG_HEADERS = $CONFIG_HEADERS
26322 CONFIG_LINKS = $CONFIG_LINKS
26323 CONFIG_COMMANDS = $CONFIG_COMMANDS
26326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26331 case $ac_config_files in *"
26332 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26335 case $ac_config_headers in *"
26336 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26341 # Files that config.status was made for.
26342 config_files="$ac_config_files"
26343 config_headers="$ac_config_headers"
26344 config_commands="$ac_config_commands"
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26350 \`$as_me' instantiates files and other configuration actions
26351 from templates according to the current configuration. Unless the files
26352 and actions are specified as TAGs, all are instantiated by default.
26354 Usage: $0 [OPTION]... [TAG]...
26356 -h, --help print this help, then exit
26357 -V, --version print version number and configuration settings, then exit
26358 -q, --quiet, --silent
26359 do not print progress messages
26360 -d, --debug don't remove temporary files
26361 --recheck update $as_me by reconfiguring in the same conditions
26362 --file=FILE[:TEMPLATE]
26363 instantiate the configuration file FILE
26364 --header=FILE[:TEMPLATE]
26365 instantiate the configuration header FILE
26367 Configuration files:
26370 Configuration headers:
26373 Configuration commands:
26376 Report bugs to the package provider."
26379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26382 configured by $0, generated by GNU Autoconf 2.64,
26383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26385 Copyright (C) 2009 Free Software Foundation, Inc.
26386 This config.status script is free software; the Free Software Foundation
26387 gives unlimited permission to copy, distribute and modify it."
26392 test -n "\$AWK" || AWK=awk
26395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26396 # The default lists apply if the user does not specify any file.
26402 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26403 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26414 # Handling of the options.
26415 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26417 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26418 $as_echo "$ac_cs_version"; exit ;;
26419 --debug |
--debu |
--deb |
--de |
--d |
-d )
26421 --file |
--fil |
--fi |
--f )
26424 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26426 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26427 ac_need_defaults
=false
;;
26428 --header |
--heade |
--head |
--hea )
26431 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26433 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26434 ac_need_defaults
=false
;;
26436 # Conflict between --help and --header
26437 as_fn_error
"ambiguous option: \`$1'
26438 Try \`$0 --help' for more information.";;
26439 --help |
--hel |
-h )
26440 $as_echo "$ac_cs_usage"; exit ;;
26441 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26442 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26445 # This is an error.
26446 -*) as_fn_error
"unrecognized option: \`$1'
26447 Try \`$0 --help' for more information." ;;
26449 *) as_fn_append ac_config_targets
" $1"
26450 ac_need_defaults
=false
;;
26456 ac_configure_extra_args
=
26458 if $ac_cs_silent; then
26460 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26465 if \$ac_cs_recheck; then
26466 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26469 CONFIG_SHELL='$SHELL'
26470 export CONFIG_SHELL
26475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26480 ## Running $as_me. ##
26486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26496 # Handling of arguments.
26497 for ac_config_target
in $ac_config_targets
26499 case $ac_config_target in
26500 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26501 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26502 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26503 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26504 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26505 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26507 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26512 # If the user did not use the arguments to specify the items to instantiate,
26513 # then the envvar interface is used. Set only those that are not.
26514 # We use the long form for the default assignment because of an extremely
26515 # bizarre bug on SunOS 4.1.3.
26516 if $ac_need_defaults; then
26517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26522 # Have a temporary directory for convenience. Make it in the build tree
26523 # simply because there is no reason against having it here, and in addition,
26524 # creating and moving files from /tmp can sometimes cause problems.
26525 # Hook for its removal unless debugging.
26526 # Note that there is a small window in which the directory will not be cleaned:
26527 # after its creation but before its name has been assigned to `$tmp'.
26531 trap 'exit_status=$?
26532 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26534 trap 'as_fn_exit 1' 1 2 13 15
26536 # Create a (secure) tmp directory for tmp files.
26539 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26540 test -n "$tmp" && test -d "$tmp"
26543 tmp
=.
/conf$$
-$RANDOM
26544 (umask 077 && mkdir
"$tmp")
26545 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26547 # Set up the scripts for CONFIG_FILES section.
26548 # No need to generate them if there are no CONFIG_FILES.
26549 # This happens for instance with `./config.status config.h'.
26550 if test -n "$CONFIG_FILES"; then
26552 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26553 ac_cs_awk_getline
=:
26554 ac_cs_awk_pipe_init
=
26555 ac_cs_awk_read_file
='
26556 while ((getline aline < (F[key])) > 0)
26559 ac_cs_awk_pipe_fini
=
26561 ac_cs_awk_getline
=false
26562 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26563 ac_cs_awk_read_file
='
26565 print "cat " F[key] " &&"
26566 '$ac_cs_awk_pipe_init
26567 # The final `:' finishes the AND list.
26568 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26570 ac_cr
=`echo X | tr X '\015'`
26571 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26572 # But we know of no other shell where ac_cr would be empty at this
26573 # point, so we can use a bashism as a fallback.
26574 if test "x$ac_cr" = x
; then
26575 eval ac_cr
=\$
\'\\r
\'
26577 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26578 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26581 ac_cs_awk_cr
=$ac_cr
26584 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26587 # Create commands to substitute file output variables.
26589 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26590 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26591 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26594 } >conf$
$files.sh
&&
26595 . .
/conf$
$files.sh ||
26596 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26597 rm -f conf$
$files.sh
26600 echo "cat >conf$$subs.awk <<_ACEOF" &&
26601 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26603 } >conf$$subs.sh ||
26604 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26605 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26607 for ac_last_try in false false false false false :; do
26608 . ./conf$$subs.sh ||
26609 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26611 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26612 if test $ac_delim_n = $ac_delim_num; then
26614 elif $ac_last_try; then
26615 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26617 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26620 rm -f conf$$subs.sh
26622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26623 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26627 s/^/S["/; s
/!.
*/"]=/
26637 s/\(.\{148\}\).*/\1/
26639 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26644 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26651 s/\(.\{148\}\).*/\1/
26653 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26657 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26662 ' <conf$$subs.awk | sed '
26667 ' >>$CONFIG_STATUS || ac_write_fail=1
26668 rm -f conf$$subs.awk
26669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26671 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26672 for (key in S) S_is_set[key] = 1
26674 \$ac_cs_awk_pipe_init
26678 nfields = split(line, field, "@
")
26680 len = length(field[1])
26681 for (i = 2; i < nfields; i++) {
26683 keylen = length(key)
26684 if (S_is_set[key]) {
26686 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26687 len += length(value) + length(field[++i])
26692 if (nfields == 3 && !substed) {
26694 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26695 \$ac_cs_awk_read_file
26701 \$ac_cs_awk_pipe_fini
26704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26705 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26706 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26709 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26710 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26715 # trailing colons and then remove the whole line if VPATH becomes empty
26716 # (actually we leave an empty line to preserve line numbers).
26717 if test "x
$srcdir" = x.; then
26718 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26719 s/:*\$(srcdir):*/:/
26720 s/:*\${srcdir}:*/:/
26722 s/^\([^=]*=[ ]*\):*/\1/
26728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26729 fi # test -n "$CONFIG_FILES"
26731 # Set up the scripts for CONFIG_HEADERS section.
26732 # No need to generate them if there are no CONFIG_HEADERS.
26733 # This happens for instance with `./config.status Makefile'.
26734 if test -n "$CONFIG_HEADERS"; then
26735 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26739 # Transform confdefs.h into an awk script `defines.awk', embedded as
26740 # here-document in config.status, that substitutes the proper values into
26741 # config.h.in to produce config.h.
26743 # Create a delimiter string that does not exist in confdefs.h, to ease
26744 # handling of long lines.
26746 for ac_last_try in false false :; do
26747 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26748 if test -z "$ac_t"; then
26750 elif $ac_last_try; then
26751 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26753 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26757 # For the awk script, D is an array of macro values keyed by name,
26758 # likewise P contains macro parameters if any. Preserve backslash
26759 # newline sequences.
26761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26763 s/.\{148\}/&'"$ac_delim"'/g
26766 s/^[ ]*#[ ]*define[ ][ ]*/ /
26773 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26775 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26780 D["\
1"]=" \
3\\\\\\n
"\\/p
26782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26787 s/.\{148\}/&'"$ac_delim"'/g
26792 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26795 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26797 ' <confdefs.h | sed '
26798 s/'"$ac_delim"'/"\\\
26799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26802 for (key in D) D_is_set[key] = 1
26805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26807 split(line, arg, " ")
26808 if (arg[1] == "#") {
26812 defundef
= substr
(arg
[1], 2)
26815 split(mac1
, mac2
, "(") #)
26817 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26818 if (D_is_set
[macro
]) {
26819 # Preserve the white space surrounding the "#".
26820 print prefix
"define", macro P
[macro
] D
[macro
]
26823 # Replace #undef with comments. This is necessary, for example,
26824 # in the case of _POSIX_SOURCE, which is predefined and required
26825 # on some systems where configure will not decide to define it.
26826 if (defundef
== "undef") {
26827 print
"/*", prefix defundef
, macro
, "*/"
26835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26836 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26837 fi # test -n "$CONFIG_HEADERS"
26840 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26845 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26847 case $ac_mode$ac_tag in
26849 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26850 :[FH
]-) ac_tag
=-:-;;
26851 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26868 -) ac_f
="$tmp/stdin";;
26869 *) # Look for the file first in the build tree, then in the source tree
26870 # (if the path is not absolute). The absolute path cannot be DOS-style,
26871 # because $ac_f cannot contain `:'.
26875 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26877 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26879 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26880 as_fn_append ac_file_inputs
" '$ac_f'"
26883 # Let's still pretend it is `configure' which instantiates (i.e., don't
26884 # use $as_me), people would be surprised to read:
26885 # /* config.h. Generated by config.status. */
26886 configure_input
='Generated from '`
26887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26889 if test x
"$ac_file" != x-
; then
26890 configure_input
="$ac_file. $configure_input"
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26892 $as_echo "$as_me: creating $ac_file" >&6;}
26894 # Neutralize special characters interpreted by sed in replacement strings.
26895 case $configure_input in #(
26896 *\
&* |
*\|
* |
*\\* )
26897 ac_sed_conf_input
=`$as_echo "$configure_input" |
26898 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26899 *) ac_sed_conf_input
=$configure_input;;
26903 *:-:* |
*:-) cat >"$tmp/stdin" \
26904 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26909 ac_dir
=`$as_dirname -- "$ac_file" ||
26910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26911 X"$ac_file" : 'X\(//\)[^/]' \| \
26912 X"$ac_file" : 'X\(//\)$' \| \
26913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26914 $as_echo X"$ac_file" |
26915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26919 /^X\(\/\/\)[^/].*/{
26932 as_dir
="$ac_dir"; as_fn_mkdir_p
26936 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26938 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26939 # A ".." for each directory in $ac_dir_suffix.
26940 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26941 case $ac_top_builddir_sub in
26942 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26943 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26946 ac_abs_top_builddir
=$ac_pwd
26947 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26948 # for backward compatibility:
26949 ac_top_builddir
=$ac_top_build_prefix
26952 .
) # We are building in place.
26954 ac_top_srcdir
=$ac_top_builddir_sub
26955 ac_abs_top_srcdir
=$ac_pwd ;;
26956 [\\/]* | ?
:[\\/]* ) # Absolute name.
26957 ac_srcdir
=$srcdir$ac_dir_suffix;
26958 ac_top_srcdir
=$srcdir
26959 ac_abs_top_srcdir
=$srcdir ;;
26960 *) # Relative name.
26961 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26962 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26963 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26965 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26977 # If the template does not know about datarootdir, expand it.
26978 # FIXME: This hack should be removed a few years after 2.60.
26979 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26991 *datarootdir
*) ac_datarootdir_seen
=yes;;
26992 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26997 ac_datarootdir_hack='
26998 s&@datadir@&$datadir&g
26999 s&@docdir@&$docdir&g
27000 s&@infodir@&$infodir&g
27001 s&@localedir@&$localedir&g
27002 s&@mandir@&$mandir&g
27003 s&\\\${datarootdir}&$datarootdir&g' ;;
27007 # Neutralize VPATH when `$srcdir' = `.'.
27008 # Shell code in configure.ac might set extrasub.
27009 # FIXME: do we really want to maintain this feature?
27010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27011 ac_sed_extra="$ac_vpsub
27014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27016 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27017 s|@configure_input@|
$ac_sed_conf_input|
;t t
27018 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27019 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27020 s
&@srcdir@
&$ac_srcdir&;t t
27021 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27022 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27023 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27024 s
&@builddir@
&$ac_builddir&;t t
27025 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27026 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27027 $ac_datarootdir_hack
27029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27030 if $ac_cs_awk_getline; then
27031 $AWK -f "$tmp/subs.
awk"
27033 $AWK -f "$tmp/subs.
awk" | $SHELL
27035 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27038 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27041 which seems to be undefined. Please make sure it is defined." >&5
27042 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27043 which seems to be undefined. Please make sure it is defined." >&2;}
27047 -) cat "$tmp/out" && rm -f "$tmp/out";;
27048 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27050 || as_fn_error "could not create $ac_file" "$LINENO" 5
27056 if test x"$ac_file" != x-; then
27058 $as_echo "/* $configure_input */" \
27059 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27060 } >"$tmp/config.h" \
27061 || as_fn_error "could not create $ac_file" "$LINENO" 5
27062 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27064 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27067 mv "$tmp/config.h" "$ac_file" \
27068 || as_fn_error "could not create $ac_file" "$LINENO" 5
27071 $as_echo "/* $configure_input */" \
27072 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27073 || as_fn_error "could not create -" "$LINENO" 5
27077 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27078 $as_echo "$as_me: executing $ac_file commands" >&6;}
27083 case $ac_file$ac_mode in
27084 "as":F) chmod +x as ;;
27085 "collect-ld":F) chmod +x collect-ld ;;
27086 "nm":F) chmod +x nm ;;
27088 case ${CONFIG_HEADERS} in
27089 *auto-host.h:config.in*)
27092 # Make sure all the subdirs exist.
27093 for d in $subdirs doc build c-family
27095 test -d $d || mkdir $d
27105 ac_clean_files=$ac_clean_files_save
27107 test $ac_write_fail = 0 ||
27108 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27111 # configure is writing to config.log, and then calls config.status.
27112 # config.status does its own redirection, appending to config.log.
27113 # Unfortunately, on DOS this fails, as config.log is still kept open
27114 # by configure, so config.status won't be able to
write to it
; its
27115 # output is simply discarded. So we exec the FD to /dev/null,
27116 # effectively closing config.log, so it can be properly (re)opened and
27117 # appended to by config.status. When coming back to configure, we
27118 # need to make the FD available again.
27119 if test "$no_create" != yes; then
27121 ac_config_status_args
=
27122 test "$silent" = yes &&
27123 ac_config_status_args
="$ac_config_status_args --quiet"
27125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27128 # would make configure fail if this is the last instruction.
27129 $ac_cs_success || as_fn_exit $?
27131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}