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
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
849 program_transform_name
860 ac_subst_files
='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
890 with_native_system_header_dir
900 enable_sjlj_exceptions
902 enable_leading_mingw64_underscores
905 enable_win32_registry
911 enable_gnu_indirect_function
912 enable_initfini_array
914 enable_gnu_unique_object
915 enable_linker_build_id
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
922 enable_libquadmath_support
923 with_linker_hash_style
925 ac_precious_vars
='build_alias
946 # Initialize some variables set by options.
948 ac_init_version
=false
949 ac_unrecognized_opts
=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
960 program_transform_name
=s
,x
,x
,
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir
='${exec_prefix}/bin'
975 sbindir
='${exec_prefix}/sbin'
976 libexecdir
='${exec_prefix}/libexec'
977 datarootdir
='${prefix}/share'
978 datadir
='${datarootdir}'
979 sysconfdir
='${prefix}/etc'
980 sharedstatedir
='${prefix}/com'
981 localstatedir
='${prefix}/var'
982 includedir
='${prefix}/include'
983 oldincludedir
='/usr/include'
984 docdir
='${datarootdir}/doc/${PACKAGE}'
985 infodir
='${datarootdir}/info'
990 libdir
='${exec_prefix}/lib'
991 localedir
='${datarootdir}/locale'
992 mandir
='${datarootdir}/man'
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\
$ac_option
1006 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1018 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1019 bindir
=$ac_optarg ;;
1021 -build |
--build |
--buil |
--bui |
--bu)
1022 ac_prev
=build_alias
;;
1023 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1024 build_alias
=$ac_optarg ;;
1026 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1027 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1028 ac_prev
=cache_file
;;
1029 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1030 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1031 cache_file
=$ac_optarg ;;
1033 --config-cache |
-C)
1034 cache_file
=config.cache
;;
1036 -datadir |
--datadir |
--datadi |
--datad)
1038 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1039 datadir
=$ac_optarg ;;
1041 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1042 |
--dataroo |
--dataro |
--datar)
1043 ac_prev
=datarootdir
;;
1044 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1045 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1046 datarootdir
=$ac_optarg ;;
1048 -disable-* |
--disable-*)
1049 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1052 as_fn_error
"invalid feature name: $ac_useropt"
1053 ac_useropt_orig
=$ac_useropt
1054 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_
$ac_useropt"
1059 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep
=', ';;
1062 eval enable_
$ac_useropt=no
;;
1064 -docdir |
--docdir |
--docdi |
--doc |
--do)
1066 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1067 docdir
=$ac_optarg ;;
1069 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1071 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1072 dvidir
=$ac_optarg ;;
1074 -enable-* |
--enable-*)
1075 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1078 as_fn_error
"invalid feature name: $ac_useropt"
1079 ac_useropt_orig
=$ac_useropt
1080 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_
$ac_useropt"
1085 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep
=', ';;
1088 eval enable_
$ac_useropt=\
$ac_optarg ;;
1090 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1091 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1092 |
--exec |
--exe |
--ex)
1093 ac_prev
=exec_prefix
;;
1094 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1095 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1096 |
--exec=* |
--exe=* |
--ex=*)
1097 exec_prefix
=$ac_optarg ;;
1099 -gas |
--gas |
--ga |
--g)
1100 # Obsolete; use --with-gas.
1103 -help |
--help |
--hel |
--he |
-h)
1104 ac_init_help
=long
;;
1105 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1106 ac_init_help
=recursive
;;
1107 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1108 ac_init_help
=short
;;
1110 -host |
--host |
--hos |
--ho)
1111 ac_prev
=host_alias
;;
1112 -host=* |
--host=* |
--hos=* |
--ho=*)
1113 host_alias
=$ac_optarg ;;
1115 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1117 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1119 htmldir
=$ac_optarg ;;
1121 -includedir |
--includedir |
--includedi |
--included |
--include \
1122 |
--includ |
--inclu |
--incl |
--inc)
1123 ac_prev
=includedir
;;
1124 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1125 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1126 includedir
=$ac_optarg ;;
1128 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1130 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1131 infodir
=$ac_optarg ;;
1133 -libdir |
--libdir |
--libdi |
--libd)
1135 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1136 libdir
=$ac_optarg ;;
1138 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1139 |
--libexe |
--libex |
--libe)
1140 ac_prev
=libexecdir
;;
1141 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1142 |
--libexe=* |
--libex=* |
--libe=*)
1143 libexecdir
=$ac_optarg ;;
1145 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1146 ac_prev
=localedir
;;
1147 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1148 localedir
=$ac_optarg ;;
1150 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1151 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1152 ac_prev
=localstatedir
;;
1153 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1154 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1155 localstatedir
=$ac_optarg ;;
1157 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1159 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1160 mandir
=$ac_optarg ;;
1162 -nfp |
--nfp |
--nf)
1163 # Obsolete; use --without-fp.
1166 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1167 |
--no-cr |
--no-c |
-n)
1170 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1171 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1174 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1175 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1176 |
--oldin |
--oldi |
--old |
--ol |
--o)
1177 ac_prev
=oldincludedir
;;
1178 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1179 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1180 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1181 oldincludedir
=$ac_optarg ;;
1183 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1185 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1186 prefix
=$ac_optarg ;;
1188 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1189 |
--program-pre |
--program-pr |
--program-p)
1190 ac_prev
=program_prefix
;;
1191 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1192 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1193 program_prefix
=$ac_optarg ;;
1195 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1196 |
--program-suf |
--program-su |
--program-s)
1197 ac_prev
=program_suffix
;;
1198 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1199 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1200 program_suffix
=$ac_optarg ;;
1202 -program-transform-name |
--program-transform-name \
1203 |
--program-transform-nam |
--program-transform-na \
1204 |
--program-transform-n |
--program-transform- \
1205 |
--program-transform |
--program-transfor \
1206 |
--program-transfo |
--program-transf \
1207 |
--program-trans |
--program-tran \
1208 |
--progr-tra |
--program-tr |
--program-t)
1209 ac_prev
=program_transform_name
;;
1210 -program-transform-name=* |
--program-transform-name=* \
1211 |
--program-transform-nam=* |
--program-transform-na=* \
1212 |
--program-transform-n=* |
--program-transform-=* \
1213 |
--program-transform=* |
--program-transfor=* \
1214 |
--program-transfo=* |
--program-transf=* \
1215 |
--program-trans=* |
--program-tran=* \
1216 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1217 program_transform_name
=$ac_optarg ;;
1219 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1221 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1222 pdfdir
=$ac_optarg ;;
1224 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1226 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1229 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1230 |
-silent |
--silent |
--silen |
--sile |
--sil)
1233 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1235 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1237 sbindir
=$ac_optarg ;;
1239 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1240 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1241 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1243 ac_prev
=sharedstatedir
;;
1244 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1245 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1246 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1248 sharedstatedir
=$ac_optarg ;;
1250 -site |
--site |
--sit)
1252 -site=* |
--site=* |
--sit=*)
1255 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1257 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1258 srcdir
=$ac_optarg ;;
1260 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1261 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1262 ac_prev
=sysconfdir
;;
1263 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1264 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1265 sysconfdir
=$ac_optarg ;;
1267 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1268 ac_prev
=target_alias
;;
1269 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1270 target_alias
=$ac_optarg ;;
1272 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1275 -version |
--version |
--versio |
--versi |
--vers |
-V)
1276 ac_init_version
=: ;;
1279 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1282 as_fn_error
"invalid package name: $ac_useropt"
1283 ac_useropt_orig
=$ac_useropt
1284 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep
=', ';;
1292 eval with_
$ac_useropt=\
$ac_optarg ;;
1294 -without-* |
--without-*)
1295 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1298 as_fn_error
"invalid package name: $ac_useropt"
1299 ac_useropt_orig
=$ac_useropt
1300 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep
=', ';;
1308 eval with_
$ac_useropt=no
;;
1311 # Obsolete; use --with-x.
1314 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1315 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1316 ac_prev
=x_includes
;;
1317 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1318 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1319 x_includes
=$ac_optarg ;;
1321 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1322 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1323 ac_prev
=x_libraries
;;
1324 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1325 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1326 x_libraries
=$ac_optarg ;;
1328 -*) as_fn_error
"unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information."
1333 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1337 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1339 eval $ac_envvar=\
$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error
"missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1361 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 # Check all directory arguments for consistency.
1367 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val
=\$
$ac_var
1373 # Remove trailing slashes.
1376 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\
$ac_val;;
1379 # Be sure to have absolute directory names.
1381 [\\/$
]* | ?
:[\\/]* ) continue;;
1382 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1384 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1392 target
=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x
; then
1396 if test "x$build_alias" = x
; then
1397 cross_compiling
=maybe
1398 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1399 If a cross compiler is detected then cross compile mode will be used." >&2
1400 elif test "x$build_alias" != "x$host_alias"; then
1406 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1408 test "$silent" = yes && exec 6>/dev
/null
1411 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di
=`ls -di .` &&
1413 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error
"working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error
"pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted
=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir
=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1451 ac_srcdir_defaulted
=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1455 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1469 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 for ac_var
in $ac_precious_vars; do
1472 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1474 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1485 \`configure' configures this package to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1548 --build=BUILD configure
for building on BUILD
[guessed
]
1549 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1550 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1554 if test -n "$ac_init_help"; then
1559 --disable-option-checking ignore unrecognized
--enable/--with options
1560 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1561 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1562 --enable-generated-files-in-srcdir
1563 put copies of generated files
in source dir intended
1564 for creating
source tarballs
for users without
1565 texinfo bison or flex
1566 --disable-largefile omit support
for large files
1567 --enable-werror-always enable -Werror despite compiler version
1568 --enable-checking[=LIST
]
1569 enable expensive run-time checks. With LIST
, enable
1570 only specific categories of checks. Categories are
:
1571 yes,no
,all
,none
,release. Flags are
:
1572 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1573 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1574 --enable-coverage[=LEVEL
]
1575 enable compiler
's code coverage collection. Use to
1576 measure compiler performance and locate unused parts
1577 of the compiler. With LEVEL, specify optimization.
1578 Values are opt, noopt, default is noopt
1579 --enable-gather-detailed-mem-stats
1580 enable detailed memory allocation stats gathering
1581 --enable-multilib enable library support for multiple ABIs
1582 --enable-multiarch enable support for multiarch paths
1583 --enable-__cxa_atexit enable __cxa_atexit for C++
1584 --enable-decimal-float={no,yes,bid,dpd}
1585 enable decimal float extension to C. Selecting 'bid
'
1586 or 'dpd
' choses which decimal floating point format
1588 --enable-fixed-point enable fixed-point arithmetic extension to C
1589 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1591 --enable-tls enable or disable generation of tls code overriding
1592 the assembler check for tls support
1593 --enable-objc-gc enable the use of Boehm's garbage collector with the
1594 GNU Objective-C runtime
1595 --disable-shared don
't provide a shared libgcc
1596 --enable-languages=LIST specify which front-ends to build
1597 --disable-rpath do not hardcode runtime library paths
1598 --enable-sjlj-exceptions
1599 arrange to use setjmp/longjmp exception handling
1600 --enable-secureplt enable -msecure-plt by default for PowerPC
1601 --enable-leading-mingw64-underscores
1602 enable leading underscores on 64 bit mingw targets
1603 --enable-cld enable -mcld by default for 32bit x86
1604 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1606 --disable-win32-registry
1607 disable lookup of installation paths in the Registry
1609 --enable-win32-registry enable registry lookup (default)
1610 --enable-win32-registry=KEY
1611 use KEY instead of GCC version as the last portion
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --enable-gnu-indirect-function
1619 enable the use of the @gnu_indirect_function to
1621 --enable-initfini-array use .init_array/.fini_array sections
1622 --enable-comdat enable COMDAT group support
1623 --enable-gnu-unique-object
1624 enable the use of the @gnu_unique_object ELF
1625 extension on glibc systems
1626 --enable-linker-build-id
1627 compiler will always pass --build-id to linker
1628 --enable-maintainer-mode
1629 enable make rules and dependencies not useful (and
1630 sometimes confusing) to the casual installer
1631 --enable-version-specific-runtime-libs
1632 specify that runtime libraries should be installed
1633 in a compiler-specific directory
1634 --enable-plugin enable plugin support
1635 --disable-libquadmath-support
1636 disable libquadmath support for Fortran
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-build-libsubdir=DIR Directory where to find libraries for build system
1642 --with-local-prefix=DIR specifies directory to put local include
1643 --with-gxx-include-dir=DIR
1644 specifies directory to put g++ header files
1645 --with-cpp-install-dir=DIR
1646 install the user visible C preprocessor in DIR
1647 (relative to PREFIX) as well as PREFIX/bin
1648 --with-gnu-ld arrange to work with GNU ld
1649 --with-ld arrange to use the specified ld (full pathname)
1650 --with-demangler-in-ld try to use demangler in GNU ld
1651 --with-gnu-as arrange to work with GNU as
1652 --with-as arrange to use the specified as (full pathname)
1653 --with-stabs arrange to use stabs instead of host debug format
1654 --with-dwarf2 force the default debug format to be DWARF 2
1655 --with-native-system-header-dir=dir
1656 use dir as the directory to look for standard
1657 system header files in. Defaults to /usr/include.
1658 --with-build-sysroot=sysroot
1659 use sysroot as the system root during the build
1660 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1661 --with-specs=SPECS add SPECS to driver command-line processing
1662 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1663 --with-bugurl=URL Direct users to URL to report a bug
1664 --with-multilib-list select multilibs (SH and x86-64 only)
1665 --with-gnu-ld assume the C compiler uses GNU ld default=no
1666 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1667 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1668 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1670 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1671 --with-plugin-ld=[ARG
] specify the plugin linker
1672 --with-long-double-128 use
128-bit long double by default
1673 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1675 --with-system-zlib use installed libz
1676 --with-linker-hash-style={sysv
,gnu
,both
}
1677 specify the linker
hash style
1679 Some influential environment variables
:
1680 CC C compiler
command
1681 CFLAGS C compiler flags
1682 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1683 nonstandard directory
<lib dir
>
1684 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1685 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1686 you have headers
in a nonstandard directory
<include dir
>
1687 CXX C
++ compiler
command
1688 CXXFLAGS C
++ compiler flags
1690 CXXCPP C
++ preprocessor
1691 GMPLIBS How to link GMP
1692 GMPINC How to
find GMP include files
1693 ISLLIBS How to link ISL
1694 ISLINC How to
find ISL include files
1695 CLOOGLIBS How to link CLOOG
1696 CLOOGINC How to
find CLOOG include files
1698 Use these variables to override the choices made by
`configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to the package provider.
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1731 .) # We are building in place.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1765 generated by GNU Autoconf 2.64
1767 Copyright (C) 2009 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_c_try_compile LINENO
1779 # --------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1788 *) ac_try_echo
=$ac_try;;
1790 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1794 if test -s conftest.err
; then
1795 grep -v '^ *+' conftest.err
>conftest.er1
1796 cat conftest.er1
>&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.
$ac_objext; then :
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.
$ac_ext >&5
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1814 } # ac_fn_c_try_compile
1816 # ac_fn_cxx_try_compile LINENO
1817 # ----------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_compile
()
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 rm -f conftest.
$ac_objext
1823 if { { ac_try
="$ac_compile"
1825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_cxx_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_cxx_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1863 *) ac_try_echo
=$ac_try;;
1865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 if test -s conftest.err
; then
1870 grep -v '^ *+' conftest.err
>conftest.er1
1871 cat conftest.er1
>&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } >/dev
/null
&& {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1891 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1894 # the include files in INCLUDES and setting the cache variable VAR
1896 ac_fn_c_check_header_mongrel
()
1898 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1899 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1909 # Is the header compilable?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1911 $as_echo_n "checking $2 usability... " >&6; }
1912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1917 if ac_fn_c_try_compile
"$LINENO"; then :
1918 ac_header_compiler
=yes
1920 ac_header_compiler
=no
1922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1924 $as_echo "$ac_header_compiler" >&6; }
1926 # Is the header present?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1928 $as_echo_n "checking $2 presence... " >&6; }
1929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 if ac_fn_c_try_cpp
"$LINENO"; then :
1934 ac_header_preproc
=yes
1936 ac_header_preproc
=no
1938 rm -f conftest.err conftest.
$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1940 $as_echo "$ac_header_preproc" >&6; }
1942 # So? What about this header?
1943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1946 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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}: WARNING: $2: present but cannot be compiled" >&5
1952 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1954 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1956 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1958 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 $as_echo_n "(cached) " >&6
1968 eval "$3=\$ac_header_compiler"
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1976 } # ac_fn_c_check_header_mongrel
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1984 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1985 if { { ac_try
="$ac_link"
1987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>&5
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996 { { case "(($ac_try" in
1997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1998 *) ac_try_echo
=$ac_try;;
2000 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_try") 2>&5
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; }; }; then :
2008 $as_echo "$as_me: program exited with status $ac_status" >&5
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.
$ac_ext >&5
2012 ac_retval
=$ac_status
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2020 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2021 # -------------------------------------------------------
2022 # Tests whether HEADER exists and can be compiled using the include files in
2023 # INCLUDES, setting the cache variable VAR accordingly.
2024 ac_fn_c_check_header_compile
()
2026 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2037 if ac_fn_c_try_compile
"$LINENO"; then :
2042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2049 } # ac_fn_c_check_header_compile
2051 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052 # --------------------------------------------
2053 # Tries to find the compile-time value of EXPR in a program that includes
2054 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2056 ac_fn_c_compute_int
()
2058 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2059 if test "$cross_compiling" = yes; then
2060 # Depending upon the size, compute the lo and hi bounds.
2061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) >= 0)];
2074 if ac_fn_c_try_compile
"$LINENO"; then :
2077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 if ac_fn_c_try_compile
"$LINENO"; then :
2091 ac_hi
=$ac_mid; break
2093 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2094 if test $ac_lo -le $ac_mid; then
2098 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) < 0)];
2116 if ac_fn_c_try_compile
"$LINENO"; then :
2119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2125 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2132 if ac_fn_c_try_compile
"$LINENO"; then :
2133 ac_lo
=$ac_mid; break
2135 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2136 if test $ac_mid -le $ac_hi; then
2140 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2166 if ac_fn_c_try_compile
"$LINENO"; then :
2169 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2174 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2181 static long int longval () { return $2; }
2182 static unsigned long int ulongval () { return $2; }
2189 FILE *f = fopen ("conftest.val", "w");
2194 long int i = longval ();
2197 fprintf (f, "%ld", i);
2201 unsigned long int i = ulongval ();
2204 fprintf (f, "%lu", i);
2206 /* Do not output a trailing newline, as this causes \r\n confusion
2207 on some platforms. */
2208 return ferror (f) || fclose (f) != 0;
2214 if ac_fn_c_try_run
"$LINENO"; then :
2215 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2227 } # ac_fn_c_compute_int
2229 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2230 # -------------------------------------------
2231 # Tests whether TYPE exists after having included INCLUDES, setting cache
2232 # variable VAR accordingly.
2233 ac_fn_c_check_type
()
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2254 if ac_fn_c_try_compile
"$LINENO"; then :
2255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2267 if ac_fn_c_try_compile
"$LINENO"; then :
2272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2281 } # ac_fn_c_check_type
2283 # ac_fn_c_find_intX_t LINENO BITS VAR
2284 # -----------------------------------
2285 # Finds a signed integer type with width BITS, setting cache variable VAR
2287 ac_fn_c_find_intX_t
()
2289 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2291 $as_echo_n "checking for int$2_t... " >&6; }
2292 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2293 $as_echo_n "(cached) " >&6
2296 for ac_type
in int
$2_t 'int' 'long int' \
2297 'long long int' 'short int' 'signed char'; do
2298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $ac_includes_default
2304 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2311 if ac_fn_c_try_compile
"$LINENO"; then :
2312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $ac_includes_default
2318 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2319 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2326 if ac_fn_c_try_compile
"$LINENO"; then :
2333 eval "$3=\$ac_type" ;;
2336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2340 if test "x$as_val" = x
""no
; then :
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2352 } # ac_fn_c_find_intX_t
2354 # ac_fn_c_try_link LINENO
2355 # -----------------------
2356 # Try to link conftest.$ac_ext, and return whether this succeeded.
2359 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2360 rm -f conftest.
$ac_objext conftest
$ac_exeext
2361 if { { ac_try
="$ac_link"
2363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_link") 2>conftest.err
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest$ac_exeext && {
2380 test "$cross_compiling" = yes ||
2381 $as_test_x conftest$ac_exeext
2385 $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2390 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2391 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2392 # interfere with the next link command; also delete a directory that is
2393 # left behind by Apple's compiler. We do this before executing the actions.
2394 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_try_link
2400 # ac_fn_c_find_uintX_t LINENO BITS VAR
2401 # ------------------------------------
2402 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2404 ac_fn_c_find_uintX_t ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2408 $as_echo_n "checking for uint$2_t... " >&6; }
2409 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2410 $as_echo_n "(cached) " >&6
2413 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2414 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $ac_includes_default
2421 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2428 if ac_fn_c_try_compile "$LINENO"; then :
2433 eval "$3=\$ac_type" ;;
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 if test "x$as_val" = x""no; then :
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 } # ac_fn_c_find_uintX_t
2452 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2453 # ----------------------------------------------
2454 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2455 ac_fn_c_check_header_preproc ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2461 $as_echo_n "(cached) " >&6
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2467 if ac_fn_c_try_cpp "$LINENO"; then :
2472 rm -f conftest.err conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_c_check_header_preproc
2481 # ac_fn_cxx_try_cpp LINENO
2482 # ------------------------
2483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2484 ac_fn_cxx_try_cpp ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 if { { ac_try="$ac_cpp conftest.$ac_ext"
2489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2490 *) ac_try_echo
=$ac_try;;
2492 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2496 if test -s conftest.err
; then
2497 grep -v '^ *+' conftest.err
>conftest.er1
2498 cat conftest.er1
>&5
2499 mv -f conftest.er1 conftest.err
2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502 test $ac_status = 0; } >/dev
/null
&& {
2503 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2504 test ! -s conftest.err
2508 $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.
$ac_ext >&5
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2516 } # ac_fn_cxx_try_cpp
2518 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2519 # ------------------------------------------------
2520 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2521 ac_fn_cxx_check_header_preproc
()
2523 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2533 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2538 rm -f conftest.err conftest.
$ac_ext
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2545 } # ac_fn_cxx_check_header_preproc
2547 # ac_fn_c_check_func LINENO FUNC VAR
2548 # ----------------------------------
2549 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2550 ac_fn_c_check_func
()
2552 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2562 #define $2 innocuous_$2
2564 /* System header to define __stub macros and hopefully few prototypes,
2565 which can conflict with char $2 (); below.
2566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2567 <limits.h> exists even on freestanding compilers. */
2570 # include <limits.h>
2572 # include <assert.h>
2577 /* Override any GCC internal prototype to avoid an error.
2578 Use char because int might match the return type of a GCC
2579 builtin and then its argument prototype would still apply. */
2584 /* The GNU C library defines this for functions which it implements
2585 to always fail with ENOSYS. Some functions are actually named
2586 something starting with __ and the normal name is an alias. */
2587 #if defined __stub_$2 || defined __stub___$2
2599 if ac_fn_c_try_link
"$LINENO"; then :
2604 rm -f core conftest.err conftest.
$ac_objext \
2605 conftest
$ac_exeext conftest.
$ac_ext
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2612 } # ac_fn_c_check_func
2614 # ac_fn_cxx_try_link LINENO
2615 # -------------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2617 ac_fn_cxx_try_link
()
2619 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2620 rm -f conftest.
$ac_objext conftest
$ac_exeext
2621 if { { ac_try
="$ac_link"
2623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>conftest.err
2630 if test -s conftest.err; then
2631 grep -v '^ *+' conftest.err >conftest.er1
2632 cat conftest.er1 >&5
2633 mv -f conftest.er1 conftest.err
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; } && {
2637 test -z "$ac_cxx_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest$ac_exeext && {
2640 test "$cross_compiling" = yes ||
2641 $as_test_x conftest$ac_exeext
2645 $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652 # interfere with the next link command; also delete a directory that is
2653 # left behind by Apple's compiler. We do this before executing the actions.
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658 } # ac_fn_cxx_try_link
2659 cat >config.log <<_ACEOF
2660 This file contains any messages produced by compilers while
2661 running configure, to aid debugging if configure makes a mistake.
2663 It was created by $as_me, which was
2664 generated by GNU Autoconf 2.64. Invocation command line was
2676 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2677 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2678 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2679 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2680 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2683 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2685 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2687 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2688 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2689 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2690 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2691 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir=.
2700 $as_echo "PATH: $as_dir"
2716 # Keep a trace of the command line.
2717 # Strip out --no-create and --no-recursion so they do not pile up.
2718 # Strip out --silent because we don't want to record it for future runs.
2719 # Also quote any args containing shell meta-characters.
2720 # Make two passes to allow for proper duplicate-argument suppression.
2724 ac_must_keep_next=false
2730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2732 | -silent | --silent | --silen | --sile | --sil)
2735 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2738 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2740 as_fn_append ac_configure_args1 " '$ac_arg'"
2741 if test $ac_must_keep_next = true; then
2742 ac_must_keep_next=false # Got value, back to normal.
2745 *=* | --config-cache | -C | -disable-* | --disable-* \
2746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2748 | -with-* | --with-* | -without-* | --without-* | --x)
2749 case "$ac_configure_args0 " in
2750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2753 -* ) ac_must_keep_next=true ;;
2756 as_fn_append ac_configure_args " '$ac_arg'"
2761 { ac_configure_args0=; unset ac_configure_args0;}
2762 { ac_configure_args1=; unset ac_configure_args1;}
2764 # When interrupted or exit'd, cleanup temporary files, and complete
2765 # config.log. We remove comments because anyway the quotes in there
2766 # would cause problems or look ugly.
2767 # WARNING: Use '\'' to represent an apostrophe within the trap.
2768 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2769 trap 'exit_status=$?
2770 # Save into config.log some information that might help in debugging.
2775 ## ---------------- ##
2776 ## Cache variables. ##
2777 ## ---------------- ##
2780 # The following way of writing the cache mishandles newlines in values,
2782 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2783 eval ac_val=\$$ac_var
2787 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2791 _ | IFS | as_nl) ;; #(
2792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2793 *) { eval $ac_var=; unset $ac_var;} ;;
2798 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2799 *${as_nl}ac_space=\ *)
2801 "s/'\''/'\''\\\\'\'''\''/g;
2802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2813 ## ----------------- ##
2814 ## Output variables. ##
2815 ## ----------------- ##
2818 for ac_var in $ac_subst_vars
2820 eval ac_val=\$$ac_var
2822 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2824 $as_echo "$ac_var='\''$ac_val'\''"
2828 if test -n "$ac_subst_files"; then
2830 ## ------------------- ##
2831 ## File substitutions. ##
2832 ## ------------------- ##
2835 for ac_var in $ac_subst_files
2837 eval ac_val=\$$ac_var
2839 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2841 $as_echo "$ac_var='\''$ac_val'\''"
2846 if test -s confdefs.h; then
2856 test "$ac_signal" != 0 &&
2857 $as_echo "$as_me: caught signal $ac_signal"
2858 $as_echo "$as_me: exit $exit_status"
2860 rm -f core *.core core.conftest.* &&
2861 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2864 for ac_signal in 1 2 13 15; do
2865 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2870 rm -f -r conftest* confdefs.h
2872 $as_echo "/* confdefs.h */" > confdefs.h
2874 # Predefined preprocessor variables.
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_NAME "$PACKAGE_NAME"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_STRING "$PACKAGE_STRING"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_URL "$PACKAGE_URL"
2901 # Let the site file select an alternate cache file if it wants to.
2902 # Prefer an explicitly selected file to automatically selected ones.
2905 if test -n "$CONFIG_SITE"; then
2906 ac_site_file1=$CONFIG_SITE
2907 elif test "x$prefix" != xNONE; then
2908 ac_site_file1=$prefix/share/config.site
2909 ac_site_file2=$prefix/etc/config.site
2911 ac_site_file1=$ac_default_prefix/share/config.site
2912 ac_site_file2=$ac_default_prefix/etc/config.site
2914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2916 test "x$ac_site_file" = xNONE && continue
2917 if test -r "$ac_site_file"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2920 sed 's/^/| /' "$ac_site_file" >&5
2925 if test -r "$cache_file"; then
2926 # Some versions of bash will fail to source /dev/null (special
2927 # files actually), so we avoid doing that.
2928 if test -f "$cache_file"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2930 $as_echo "$as_me: loading cache $cache_file" >&6;}
2932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2933 *) . "./$cache_file";;
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2938 $as_echo "$as_me: creating cache $cache_file" >&6;}
2942 # Check that the precious variables saved in the cache have kept the same
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947 eval ac_new_set=\$ac_env_${ac_var}_set
2948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949 eval ac_new_val=\$ac_env_${ac_var}_value
2950 case $ac_old_set,$ac_new_set in
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2953 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2957 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2961 if test "x$ac_old_val" != "x$ac_new_val"; then
2962 # differences in whitespace do not lead to failure.
2963 ac_old_val_w=`echo x
$ac_old_val`
2964 ac_new_val_w=`echo x
$ac_new_val`
2965 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2968 ac_cache_corrupted=:
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2971 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972 eval $ac_var=\$ac_old_val
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2975 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2977 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2980 # Pass precious variables to config.status.
2981 if test "$ac_new_set" = set; then
2983 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2984 *) ac_arg=$ac_var=$ac_new_val ;;
2986 case " $ac_configure_args " in
2987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2988 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2992 if $ac_cache_corrupted; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2997 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2999 ## -------------------- ##
3000 ## Main body of script. ##
3001 ## -------------------- ##
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3017 gcc_version=`cat $srcdir/BASE-VER
`
3019 # Determine the host, build, and target systems
3021 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3022 for ac_t in install-sh install.sh shtool; do
3023 if test -f "$ac_dir/$ac_t"; then
3025 ac_install_sh="$ac_aux_dir/$ac_t -c"
3030 if test -z "$ac_aux_dir"; then
3031 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3034 # These three variables are undocumented and unsupported,
3035 # and are intended to be withdrawn in a future Autoconf release.
3036 # They can cause serious problems if a builder's source tree is in a directory
3037 # whose full name contains unusual characters.
3038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3043 # Make sure we can run config.sub.
3044 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3045 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3048 $as_echo_n "checking build system type... " >&6; }
3049 if test "${ac_cv_build+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3052 ac_build_alias=$build_alias
3053 test "x$ac_build_alias" = x &&
3054 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3055 test "x$ac_build_alias" = x &&
3056 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3058 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3062 $as_echo "$ac_cv_build" >&6; }
3063 case $ac_cv_build in
3065 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3068 ac_save_IFS=$IFS; IFS='-'
3074 # Remember, the first character of IFS is used to create $*,
3075 # except with old shells:
3078 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3082 $as_echo_n "checking host system type... " >&6; }
3083 if test "${ac_cv_host+set}" = set; then :
3084 $as_echo_n "(cached) " >&6
3086 if test "x$host_alias" = x; then
3087 ac_cv_host=$ac_cv_build
3089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3090 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3095 $as_echo "$ac_cv_host" >&6; }
3098 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3101 ac_save_IFS=$IFS; IFS='-'
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3111 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3115 $as_echo_n "checking target system type... " >&6; }
3116 if test "${ac_cv_target+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3119 if test "x$target_alias" = x; then
3120 ac_cv_target=$ac_cv_host
3122 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3123 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3128 $as_echo "$ac_cv_target" >&6; }
3129 case $ac_cv_target in
3131 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3133 target=$ac_cv_target
3134 ac_save_IFS=$IFS; IFS='-'
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3144 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3147 # The aliases save the names the user supplied, while $host etc.
3148 # will get canonicalized.
3149 test -n "$target_alias" &&
3150 test "$program_prefix$program_suffix$program_transform_name" = \
3152 program_prefix=${target_alias}-
3154 # Determine the noncanonical target name, for directory use.
3155 case ${build_alias} in
3156 "") build_noncanonical=${build} ;;
3157 *) build_noncanonical=${build_alias} ;;
3160 case ${host_alias} in
3161 "") host_noncanonical=${build_noncanonical} ;;
3162 *) host_noncanonical=${host_alias} ;;
3165 case ${target_alias} in
3166 "") target_noncanonical=${host_noncanonical} ;;
3167 *) target_noncanonical=${target_alias} ;;
3173 # Determine the target- and build-specific subdirectories
3175 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3176 # have matching libraries, they should use host libraries: Makefile.tpl
3177 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3178 # However, they still use the build modules, because the corresponding
3179 # host modules (e.g. bison) are only built for the host when bootstrap
3181 # - build_subdir is where we find build modules, and never changes.
3182 # - build_libsubdir is where we find build libraries, and can be overridden.
3184 # Prefix 'build-' so this never conflicts with target_subdir.
3185 build_subdir="build-${build_noncanonical}"
3187 # Check whether --with-build-libsubdir was given.
3188 if test "${with_build_libsubdir+set}" = set; then :
3189 withval=$with_build_libsubdir; build_libsubdir="$withval"
3191 build_libsubdir="$build_subdir"
3194 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3195 if ( test $srcdir = . && test -d gcc ) \
3196 || test -d $srcdir/../host-${host_noncanonical}; then
3197 host_subdir="host-${host_noncanonical}"
3202 target_subdir=${target_noncanonical}
3205 # Set program_transform_name
3206 test "$program_prefix" != NONE &&
3207 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3208 # Use a double $ so make ignores it.
3209 test "$program_suffix" != NONE &&
3210 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3211 # Double any \ or $.
3212 # By default was `s
,x
,x
', remove it if useless.
3213 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3214 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3217 # Check for bogus environment variables.
3218 # Test if LIBRARY_PATH contains the notation for the current directory
3219 # since this would lead to problems installing/building glibc.
3220 # LIBRARY_PATH contains the current directory if one of the following
3222 # - one of the terminals (":" and ";") is the first or last sign
3223 # - two terminals occur directly after each other
3224 # - the path contains an element with a dot in it
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3226 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3227 case ${LIBRARY_PATH} in
3228 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3229 library_path_setting="contains current directory"
3232 library_path_setting="ok"
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3236 $as_echo "$library_path_setting" >&6; }
3237 if test "$library_path_setting" != "ok"; then
3239 *** LIBRARY_PATH shouldn't contain the current directory when
3240 *** building gcc. Please change the environment variable
3241 *** and run configure again.
" "$LINENO" 5
3244 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3245 # since this would lead to problems installing/building glibc.
3246 # GCC_EXEC_PREFIX contains the current directory if one of the following
3248 # - one of the terminals (":" and ";") is the first or last sign
3249 # - two terminals occur directly after each other
3250 # - the path contains an element with a dot in it
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3252 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3253 case ${GCC_EXEC_PREFIX} in
3254 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3255 gcc_exec_prefix_setting="contains current directory
"
3258 gcc_exec_prefix_setting="ok
"
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3262 $as_echo "$gcc_exec_prefix_setting" >&6; }
3263 if test "$gcc_exec_prefix_setting" != "ok
"; then
3265 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3266 *** building gcc. Please change the environment variable
3267 *** and run configure again." "$LINENO" 5
3274 # Specify the local prefix
3277 # Check whether --with-local-prefix was given.
3278 if test "${with_local_prefix+set}" = set; then :
3279 withval=$with_local_prefix; case "${withval}" in
3280 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3282 *) local_prefix=$with_local_prefix ;;
3287 # Default local prefix if it is empty
3288 if test x$local_prefix = x; then
3289 local_prefix=/usr/local
3292 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3293 # passed in by the toplevel make and thus we'd get different behavior
3294 # depending on where we built the sources.
3295 gcc_gxx_include_dir
=
3296 # Specify the g++ header file directory
3298 # Check whether --with-gxx-include-dir was given.
3299 if test "${with_gxx_include_dir+set}" = set; then :
3300 withval
=$with_gxx_include_dir; case "${withval}" in
3301 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3303 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3308 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3309 if test x
${gcc_gxx_include_dir} = x
; then
3310 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3311 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3313 libstdcxx_incdir
='include/c++/$(version)'
3314 if test x
$host != x
$target; then
3315 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3317 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3321 gcc_gxx_include_dir_add_sysroot
=0
3322 if test "${with_sysroot+set}" = set; then
3323 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3324 if test "${gcc_gxx_without_sysroot}"; then
3325 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3326 gcc_gxx_include_dir_add_sysroot
=1
3331 # Check whether --with-cpp_install_dir was given.
3332 if test "${with_cpp_install_dir+set}" = set; then :
3333 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3334 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3335 elif test x
$withval != xno
; then
3336 cpp_install_dir
=$withval
3341 # We would like to our source tree to be readonly. However when releases or
3342 # pre-releases are generated, the flex/bison generated files as well as the
3343 # various formats of manuals need to be included along with the rest of the
3344 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3348 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3349 # Check whether --enable-generated-files-in-srcdir was given.
3350 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3351 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3353 generated_files_in_srcdir
=no
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3358 $as_echo "$generated_files_in_srcdir" >&6; }
3360 if test "$generated_files_in_srcdir" = "yes"; then
3367 # -------------------
3368 # Find default linker
3369 # -------------------
3373 # Check whether --with-gnu-ld was given.
3374 if test "${with_gnu_ld+set}" = set; then :
3375 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3381 # With pre-defined ld
3383 # Check whether --with-ld was given.
3384 if test "${with_ld+set}" = set; then :
3385 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3388 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3389 if test ! -x "$DEFAULT_LINKER"; then
3390 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3391 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3395 cat >>confdefs.h
<<_ACEOF
3396 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3404 if test x
"$gnu_ld_flag" = x
"no"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3416 # With demangler in GNU ld
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3446 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3447 if test ! -x "$DEFAULT_ASSEMBLER"; then
3448 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3453 cat >>confdefs.h
<<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3462 if test x
"$gas_flag" = x
"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3487 # Find the native compiler
3489 ac_cpp
='$CPP $CPPFLAGS'
3490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC
="$CC" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$ac_cv_prog_CC"; then
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc
; ac_word
=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir
=.
3549 for ac_exec_ext
in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC
="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3570 if test "x$ac_ct_CC" = x
; then
3573 case $cross_compiling:$ac_tool_warned in
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned
=yes ;;
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC
="$CC" # Let the user override the test.
3597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir
=.
3602 for ac_exec_ext
in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc
; ac_word
=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC
="$CC" # Let the user override the test.
3638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir
=.
3643 for ac_exec_ext
in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected
=yes
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy
$ac_cv_prog_CC
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3666 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog
in cl.exe
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC
="$CC" # Let the user override the test.
3696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir
=.
3701 for ac_exec_ext
in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$CC" && break
3726 if test -z "$CC"; then
3728 for ac_prog
in cl.exe
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy
$ac_prog; ac_word
=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir
=.
3745 for ac_exec_ext
in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC
="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$ac_ct_CC" && break
3770 if test "x$ac_ct_CC" = x
; then
3773 case $cross_compiling:$ac_tool_warned in
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned
=yes ;;
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error
"no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3795 for ac_option
in --version -v -V -qversion; do
3796 { { ac_try
="$ac_compiler $ac_option >&5"
3798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 if test -s conftest.err; then
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 for ac_file in $ac_files
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 if { { ac_try="$ac_link_default"
3851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3852 *) ac_try_echo
=$ac_try;;
3854 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3865 for ac_file
in $ac_files ''
3867 test -f "$ac_file" ||
continue
3869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3872 # We found the default executable, but exeext='' is most
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3878 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3890 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.
$ac_ext >&5
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status
77
3904 as_fn_error
"C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3907 ac_exeext
=$ac_cv_exeext
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try
='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3928 if test "$cross_compiling" = maybe; then
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile
, use \
`--host'.
3935 See \`config.log
' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3968 for ac_file
in conftest.exe conftest conftest.
*; do
3969 test -f "$ac_file" ||
continue
3971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3972 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest
$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.
$ac_ext
3988 EXEEXT
=$ac_cv_exeext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try
="$ac_compile"
4009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files
: cannot compile
4033 See \
`config.log' for more details." "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"; then :
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4150 if test "$GCC" = yes; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_cv_prog_cc_c89=no
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4183 s = g (p, va_arg (v,int));
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 rm -f conftest.$ac_ext
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4283 *) ac_try_echo
=$ac_try;;
4285 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4308 *) ac_try_echo
=$ac_try;;
4310 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 if { { case "(($ac_try" in
4319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4330 *) ac_try_echo
=$ac_try;;
4332 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4348 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4350 rm -f core conftest
*
4353 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir
=`cd $ac_aux_dir && pwd`
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4370 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC
="$am_aux_dir/compile $CC"
4383 ac_cpp
='$CXXCPP $CPPFLAGS'
4384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CXX" && break
4434 if test -z "$CXX"; then
4436 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy
$ac_prog; ac_word
=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir
=.
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CXX" && break
4478 if test "x$ac_ct_CXX" = x
; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned
=yes ;;
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4497 for ac_option
in --version -v -V -qversion; do
4498 { { ac_try
="$ac_compiler $ac_option >&5"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 if test -s conftest.err; then
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4627 if test "$GXX" = yes; then
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4719 if test "x$ac_ct_GNATBIND" = x; then
4722 case $cross_compiling:$ac_tool_warned in
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4728 GNATBIND=$ac_ct_GNATBIND
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_GNATMAKE" = x; then
4814 case $cross_compiling:$ac_tool_warned in
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4820 GNATMAKE=$ac_ct_GNATMAKE
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4863 OUTPUT_OPTION='-o $@'
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4873 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4878 # Determine PICFLAG for target gnatlib.
4884 # PIC is the default on some targets or must not be used.
4886 # PIC is the default on this platform
4887 # Common symbols not allowed in MH_DYLIB files
4888 PICFLAG_FOR_TARGET=-fno-common
4891 # PIC is the default.
4894 # PIC is the default for 64-bit PA HP-UX.
4896 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4898 i[34567]86-*-interix[3-9]*)
4899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4900 # Instead, we relocate shared libraries at runtime.
4902 i[34567]86-*-nto-qnx*)
4903 # QNX uses GNU C++, but need to define -shared option too, otherwise
4905 PICFLAG_FOR_TARGET='-fPIC -shared'
4907 i[34567]86-pc-msdosdjgpp*)
4908 # DJGPP does not support shared libraries at all.
4911 # On IA64 HP-UX, PIC is the default but the pic flag
4912 # sets the default TLS model and affects inlining.
4913 PICFLAG_FOR_TARGET=-fPIC
4916 # PIC is the default.
4918 rs6000-ibm-aix* | powerpc-ibm-aix*)
4919 # All AIX code is PIC.
4922 # Some targets support both -fPIC and -fpic, but prefer the latter.
4924 i[34567]86-*-* | x86_64-*-*)
4925 PICFLAG_FOR_TARGET=-fpic
4928 PICFLAG_FOR_TARGET=-fpic
4930 # FIXME: Override -fPIC default in libgcc only?
4931 sh-*-linux* | sh[2346lbe]*-*-linux*)
4932 PICFLAG_FOR_TARGET=-fpic
4934 # FIXME: Simplify to sh*-*-netbsd*?
4935 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4936 sh64-*-netbsd* | sh64l*-*-netbsd*)
4937 PICFLAG_FOR_TARGET=-fpic
4939 # Default to -fPIC unless specified otherwise.
4941 PICFLAG_FOR_TARGET=-fPIC
4945 # If the user explicitly uses -fpic/-fPIC, keep that.
4946 case "${CFLAGS_FOR_TARGET}" in
4948 PICFLAG_FOR_TARGET=-fpic
4951 PICFLAG_FOR_TARGET=-fPIC
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4973 if test -z "$CPP"; then
4974 if test "${ac_cv_prog_CPP+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4977 # Double quotes because CPP needs to be expanded
4978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981 for ac_c_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4992 # include <limits.h>
4994 # include <assert.h>
4998 if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: fails on valid input.
5004 rm -f conftest.err conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5016 # Passes both tests.
5020 rm -f conftest.err conftest.$ac_ext
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.
$ac_ext
5025 if $ac_preproc_ok; then :
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5040 for ac_c_preproc_warn_flag
in '' yes
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 # include <limits.h>
5053 # include <assert.h>
5057 if ac_fn_c_try_cpp
"$LINENO"; then :
5060 # Broken: fails on valid input.
5063 rm -f conftest.err conftest.
$ac_ext
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5071 if ac_fn_c_try_cpp
"$LINENO"; then :
5072 # Broken: success on invalid input.
5075 # Passes both tests.
5079 rm -f conftest.err conftest.
$ac_ext
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.
$ac_ext
5084 if $ac_preproc_ok; then :
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5094 ac_cpp
='$CPP $CPPFLAGS'
5095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found
=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5109 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_prog
in grep ggrep
; do
5114 for ac_exec_ext
in '' $ac_executable_extensions; do
5115 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5121 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5124 $as_echo_n 0123456789 >"conftest.in"
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5132 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5133 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP
="$ac_path_GREP"
5137 ac_path_GREP_max
=$ac_count
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5142 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5145 $ac_path_GREP_found && break 3
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 ac_cv_path_GREP
=$GREP
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP
="$ac_cv_path_GREP"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5168 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5169 then ac_cv_path_EGREP
="$GREP -E"
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found
=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5178 test -z "$as_dir" && as_dir
=.
5179 for ac_prog
in egrep; do
5180 for ac_exec_ext
in '' $ac_executable_extensions; do
5181 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5187 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5190 $as_echo_n 0123456789 >"conftest.in"
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'EGREP' >> "conftest.nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5199 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP
="$ac_path_EGREP"
5203 ac_path_EGREP_max
=$ac_count
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5211 $ac_path_EGREP_found && break 3
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 ac_cv_path_EGREP
=$EGREP
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP
="$ac_cv_path_EGREP"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5250 if ac_fn_c_try_compile
"$LINENO"; then :
5251 ac_cv_header_stdc
=yes
5253 ac_cv_header_stdc
=no
5255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265 $EGREP "memchr" >/dev
/null
2>&1; then :
5268 ac_cv_header_stdc
=no
5274 if test $ac_cv_header_stdc = yes; then
5275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "free" >/dev
/null
2>&1; then :
5285 ac_cv_header_stdc
=no
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then :
5296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5323 if ac_fn_c_try_run
"$LINENO"; then :
5326 ac_cv_header_stdc
=no
5328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5344 inttypes.h stdint.h unistd.h
5346 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 eval as_val
=\$
$as_ac_Header
5350 if test "x$as_val" = x
""yes; then :
5351 cat >>confdefs.h
<<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5369 if test "$MINIX" = yes; then
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 # define __EXTENSIONS__ 1
5391 $ac_includes_default
5400 if ac_fn_c_try_compile
"$LINENO"; then :
5401 ac_cv_safe_to_define___extensions__
=yes
5403 ac_cv_safe_to_define___extensions__
=no
5405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409 test $ac_cv_safe_to_define___extensions__ = yes &&
5410 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5422 ac_cpp
='$CPP $CPPFLAGS'
5423 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5432 if test -z "$CPP"; then
5433 if test "${ac_cv_prog_CPP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 # Double quotes because CPP needs to be expanded
5437 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5440 for ac_c_preproc_warn_flag
in '' yes
5442 # Use a header file that comes with gcc, so configuring glibc
5443 # with a fresh cross-compiler works.
5444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 # <limits.h> exists even on freestanding compilers.
5446 # On the NeXT, cc -E runs the code through the compiler's parser,
5447 # not just through cpp. "Syntax error" is here to catch this case.
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5451 # include <limits.h>
5453 # include <assert.h>
5457 if ac_fn_c_try_cpp
"$LINENO"; then :
5460 # Broken: fails on valid input.
5463 rm -f conftest.err conftest.
$ac_ext
5465 # OK, works on sane cases. Now check whether nonexistent headers
5466 # can be detected and how.
5467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5471 if ac_fn_c_try_cpp
"$LINENO"; then :
5472 # Broken: success on invalid input.
5475 # Passes both tests.
5479 rm -f conftest.err conftest.
$ac_ext
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.
$ac_ext
5484 if $ac_preproc_ok; then :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5499 for ac_c_preproc_warn_flag
in '' yes
5501 # Use a header file that comes with gcc, so configuring glibc
5502 # with a fresh cross-compiler works.
5503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 # <limits.h> exists even on freestanding compilers.
5505 # On the NeXT, cc -E runs the code through the compiler's parser,
5506 # not just through cpp. "Syntax error" is here to catch this case.
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # include <limits.h>
5512 # include <assert.h>
5516 if ac_fn_c_try_cpp
"$LINENO"; then :
5519 # Broken: fails on valid input.
5522 rm -f conftest.err conftest.
$ac_ext
5524 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how.
5526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5530 if ac_fn_c_try_cpp
"$LINENO"; then :
5531 # Broken: success on invalid input.
5534 # Passes both tests.
5538 rm -f conftest.err conftest.
$ac_ext
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.
$ac_ext
5543 if $ac_preproc_ok; then :
5546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5553 ac_cpp
='$CPP $CPPFLAGS'
5554 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5564 for ac_kw
in inline __inline__ __inline
; do
5565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5574 if ac_fn_c_try_compile
"$LINENO"; then :
5575 ac_cv_c_inline
=$ac_kw
5577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5578 test "$ac_cv_c_inline" != no
&& break
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5585 case $ac_cv_c_inline in
5588 case $ac_cv_c_inline in
5590 *) ac_val
=$ac_cv_c_inline;;
5592 cat >>confdefs.h
<<_ACEOF
5594 #define inline $ac_val
5601 # Check whether --enable-largefile was given.
5602 if test "${enable_largefile+set}" = set; then :
5603 enableval
=$enable_largefile;
5606 if test "$enable_largefile" != no
; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5609 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5610 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5613 ac_cv_sys_largefile_CC
=no
5614 if test "$GCC" != yes; then
5617 # IRIX 6.2 and later do not support large files by default,
5618 # so use the C compiler's -n32 option if that helps.
5619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5638 if ac_fn_c_try_compile
"$LINENO"; then :
5641 rm -f core conftest.err conftest.
$ac_objext
5643 if ac_fn_c_try_compile
"$LINENO"; then :
5644 ac_cv_sys_largefile_CC
=' -n32'; break
5646 rm -f core conftest.err conftest.
$ac_objext
5650 rm -f conftest.
$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5654 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5655 if test "$ac_cv_sys_largefile_CC" != no
; then
5656 CC
=$CC$ac_cv_sys_largefile_CC
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5660 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5661 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5684 if ac_fn_c_try_compile
"$LINENO"; then :
5685 ac_cv_sys_file_offset_bits
=no
; break
5687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #define _FILE_OFFSET_BITS 64
5691 #include <sys/types.h>
5692 /* Check that off_t can represent 2**63 - 1 correctly.
5693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5694 since some C++ compilers masquerading as C compilers
5695 incorrectly reject 9223372036854775807. */
5696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5698 && LARGE_OFF_T % 2147483647 == 1)
5708 if ac_fn_c_try_compile
"$LINENO"; then :
5709 ac_cv_sys_file_offset_bits
=64; break
5711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 ac_cv_sys_file_offset_bits
=unknown
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5717 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5721 cat >>confdefs.h
<<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5727 if test $ac_cv_sys_file_offset_bits = unknown
; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5729 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 /* Check that off_t can represent 2**63 - 1 correctly.
5738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5739 since some C++ compilers masquerading as C compilers
5740 incorrectly reject 9223372036854775807. */
5741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5743 && LARGE_OFF_T % 2147483647 == 1)
5753 if ac_fn_c_try_compile
"$LINENO"; then :
5754 ac_cv_sys_large_files
=no
; break
5756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5777 if ac_fn_c_try_compile
"$LINENO"; then :
5778 ac_cv_sys_large_files
=1; break
5780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 ac_cv_sys_large_files
=unknown
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5786 $as_echo "$ac_cv_sys_large_files" >&6; }
5787 case $ac_cv_sys_large_files in #(
5790 cat >>confdefs.h
<<_ACEOF
5791 #define _LARGE_FILES $ac_cv_sys_large_files
5800 # sizeof(char) is 1 by definition.
5801 # The cast to long int works around a bug in the HP C Compiler
5802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5804 # This bug is HP SR number 8606223364.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5806 $as_echo_n "checking size of void *... " >&6; }
5807 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5810 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5813 if test "$ac_cv_type_void_p" = yes; then
5814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816 { as_fn_set_status
77
5817 as_fn_error
"cannot compute sizeof (void *)
5818 See \`config.log' for more details." "$LINENO" 5; }; }
5820 ac_cv_sizeof_void_p
=0
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5826 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5830 cat >>confdefs.h
<<_ACEOF
5831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5835 # The cast to long int works around a bug in the HP C Compiler
5836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838 # This bug is HP SR number 8606223364.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5840 $as_echo_n "checking size of short... " >&6; }
5841 if test "${ac_cv_sizeof_short+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5844 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5847 if test "$ac_cv_type_short" = yes; then
5848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850 { as_fn_set_status
77
5851 as_fn_error
"cannot compute sizeof (short)
5852 See \`config.log' for more details." "$LINENO" 5; }; }
5854 ac_cv_sizeof_short
=0
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5860 $as_echo "$ac_cv_sizeof_short" >&6; }
5864 cat >>confdefs.h
<<_ACEOF
5865 #define SIZEOF_SHORT $ac_cv_sizeof_short
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5874 $as_echo_n "checking size of int... " >&6; }
5875 if test "${ac_cv_sizeof_int+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5878 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5881 if test "$ac_cv_type_int" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status
77
5885 as_fn_error
"cannot compute sizeof (int)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5894 $as_echo "$ac_cv_sizeof_int" >&6; }
5898 cat >>confdefs.h
<<_ACEOF
5899 #define SIZEOF_INT $ac_cv_sizeof_int
5903 # The cast to long int works around a bug in the HP C Compiler
5904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5906 # This bug is HP SR number 8606223364.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5908 $as_echo_n "checking size of long... " >&6; }
5909 if test "${ac_cv_sizeof_long+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5915 if test "$ac_cv_type_long" = yes; then
5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918 { as_fn_set_status
77
5919 as_fn_error
"cannot compute sizeof (long)
5920 See \`config.log' for more details." "$LINENO" 5; }; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5928 $as_echo "$ac_cv_sizeof_long" >&6; }
5932 cat >>confdefs.h
<<_ACEOF
5933 #define SIZEOF_LONG $ac_cv_sizeof_long
5937 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5938 if test "x$ac_cv_type_long_long" = x
""yes; then :
5940 cat >>confdefs.h
<<_ACEOF
5941 #define HAVE_LONG_LONG 1
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5949 $as_echo_n "checking size of long long... " >&6; }
5950 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5956 if test "$ac_cv_type_long_long" = yes; then
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status
77
5960 as_fn_error
"cannot compute sizeof (long long)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5963 ac_cv_sizeof_long_long
=0
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5969 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5973 cat >>confdefs.h
<<_ACEOF
5974 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5980 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5981 if test "x$ac_cv_type___int64" = x
""yes; then :
5983 cat >>confdefs.h
<<_ACEOF
5984 #define HAVE___INT64 1
5987 # The cast to long int works around a bug in the HP C Compiler
5988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5990 # This bug is HP SR number 8606223364.
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5992 $as_echo_n "checking size of __int64... " >&6; }
5993 if test "${ac_cv_sizeof___int64+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5999 if test "$ac_cv_type___int64" = yes; then
6000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6002 { as_fn_set_status
77
6003 as_fn_error
"cannot compute sizeof (__int64)
6004 See \`config.log' for more details." "$LINENO" 5; }; }
6006 ac_cv_sizeof___int64
=0
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6012 $as_echo "$ac_cv_sizeof___int64" >&6; }
6016 cat >>confdefs.h
<<_ACEOF
6017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6023 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6024 case $ac_cv_c_int8_t in #(
6028 cat >>confdefs.h
<<_ACEOF
6029 #define int8_t $ac_cv_c_int8_t
6034 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6035 case $ac_cv_c_int16_t in #(
6039 cat >>confdefs.h
<<_ACEOF
6040 #define int16_t $ac_cv_c_int16_t
6045 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6046 case $ac_cv_c_int32_t in #(
6050 cat >>confdefs.h
<<_ACEOF
6051 #define int32_t $ac_cv_c_int32_t
6056 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6057 case $ac_cv_c_int64_t in #(
6061 cat >>confdefs.h
<<_ACEOF
6062 #define int64_t $ac_cv_c_int64_t
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6069 $as_echo_n "checking for long long int... " >&6; }
6070 if test "${ac_cv_type_long_long_int+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 /* For now, do not test the preprocessor; as of 2007 there are too many
6077 implementations with broken preprocessors. Perhaps this can
6078 be revisited in 2012. In the meantime, code should not expect
6079 #if to work with literals wider than 32 bits. */
6080 /* Test literals. */
6081 long long int ll = 9223372036854775807ll;
6082 long long int nll = -9223372036854775807LL;
6083 unsigned long long int ull = 18446744073709551615ULL;
6084 /* Test constant expressions. */
6085 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6087 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6093 /* Test availability of runtime routines for shift and division. */
6094 long long int llmax = 9223372036854775807ll;
6095 unsigned long long int ullmax = 18446744073709551615ull;
6096 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097 | (llmax / ll) | (llmax % ll)
6098 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099 | (ullmax / ull) | (ullmax % ull));
6105 if ac_fn_c_try_link
"$LINENO"; then :
6106 if test "$cross_compiling" = yes; then :
6107 ac_cv_type_long_long_int
=yes
6109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6114 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6115 # define LLONG_MAX (HALF - 1 + HALF)
6120 long long int n = 1;
6124 long long int m = n << i;
6127 if (LLONG_MAX / 2 < m)
6135 if ac_fn_c_try_run
"$LINENO"; then :
6136 ac_cv_type_long_long_int
=yes
6138 ac_cv_type_long_long_int
=no
6140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6145 ac_cv_type_long_long_int
=no
6147 rm -f core conftest.err conftest.
$ac_objext \
6148 conftest
$ac_exeext conftest.
$ac_ext
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6151 $as_echo "$ac_cv_type_long_long_int" >&6; }
6152 if test $ac_cv_type_long_long_int = yes; then
6154 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6160 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6161 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6163 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6166 test $ac_cv_type_long_long_int = yes \
6167 && ac_type
='long long int' \
6168 || ac_type
='long int'
6170 cat >>confdefs.h
<<_ACEOF
6171 #define intmax_t $ac_type
6178 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6179 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6181 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6184 for ac_type
in 'int' 'long int' 'long long int'; do
6185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 $ac_includes_default
6191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6198 if ac_fn_c_try_compile
"$LINENO"; then :
6200 cat >>confdefs.h
<<_ACEOF
6201 #define intptr_t $ac_type
6206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6207 test -z "$ac_type" && break
6212 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6213 case $ac_cv_c_uint8_t in #(
6217 $as_echo "#define _UINT8_T 1" >>confdefs.h
6220 cat >>confdefs.h
<<_ACEOF
6221 #define uint8_t $ac_cv_c_uint8_t
6226 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6227 case $ac_cv_c_uint16_t in #(
6232 cat >>confdefs.h
<<_ACEOF
6233 #define uint16_t $ac_cv_c_uint16_t
6238 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6239 case $ac_cv_c_uint32_t in #(
6243 $as_echo "#define _UINT32_T 1" >>confdefs.h
6246 cat >>confdefs.h
<<_ACEOF
6247 #define uint32_t $ac_cv_c_uint32_t
6252 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6253 case $ac_cv_c_uint64_t in #(
6257 $as_echo "#define _UINT64_T 1" >>confdefs.h
6260 cat >>confdefs.h
<<_ACEOF
6261 #define uint64_t $ac_cv_c_uint64_t
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6268 $as_echo_n "checking for unsigned long long int... " >&6; }
6269 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6275 /* For now, do not test the preprocessor; as of 2007 there are too many
6276 implementations with broken preprocessors. Perhaps this can
6277 be revisited in 2012. In the meantime, code should not expect
6278 #if to work with literals wider than 32 bits. */
6279 /* Test literals. */
6280 long long int ll = 9223372036854775807ll;
6281 long long int nll = -9223372036854775807LL;
6282 unsigned long long int ull = 18446744073709551615ULL;
6283 /* Test constant expressions. */
6284 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6286 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6292 /* Test availability of runtime routines for shift and division. */
6293 long long int llmax = 9223372036854775807ll;
6294 unsigned long long int ullmax = 18446744073709551615ull;
6295 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6296 | (llmax / ll) | (llmax % ll)
6297 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6298 | (ullmax / ull) | (ullmax % ull));
6304 if ac_fn_c_try_link
"$LINENO"; then :
6305 ac_cv_type_unsigned_long_long_int
=yes
6307 ac_cv_type_unsigned_long_long_int
=no
6309 rm -f core conftest.err conftest.
$ac_objext \
6310 conftest
$ac_exeext conftest.
$ac_ext
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314 if test $ac_cv_type_unsigned_long_long_int = yes; then
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6322 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6323 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6325 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6328 test $ac_cv_type_unsigned_long_long_int = yes \
6329 && ac_type
='unsigned long long int' \
6330 || ac_type
='unsigned long int'
6332 cat >>confdefs.h
<<_ACEOF
6333 #define uintmax_t $ac_type
6340 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6341 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6343 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6346 for ac_type
in 'unsigned int' 'unsigned long int' \
6347 'unsigned long long int'; do
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 $ac_includes_default
6354 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6361 if ac_fn_c_try_compile
"$LINENO"; then :
6363 cat >>confdefs.h
<<_ACEOF
6364 #define uintptr_t $ac_type
6369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 test -z "$ac_type" && break
6388 # ---------------------
6389 # Warnings and checking
6390 # ---------------------
6392 # Check $CC warning features (if it's GCC).
6393 # We want to use -pedantic, but we don't want warnings about
6396 # * overlong strings
6397 # * C++11 narrowing conversions in { }
6398 # So, we only use -pedantic if we can disable those warnings.
6401 save_CFLAGS
="$CFLAGS"
6402 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6403 # Do the check with the no- prefix removed since gcc silently
6404 # accepts any -Wno-* option on purpose
6405 case $real_option in
6406 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6407 *) option
=$real_option ;;
6409 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6412 $as_echo_n "checking whether $CC supports $option... " >&6; }
6413 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6414 $as_echo_n "(cached) " >&6
6417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6428 if ac_fn_c_try_compile
"$LINENO"; then :
6429 eval "$as_acx_Woption=yes"
6431 eval "$as_acx_Woption=no"
6433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6436 eval ac_res
=\$
$as_acx_Woption
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6438 $as_echo "$ac_res" >&6; }
6439 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6440 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6443 CFLAGS
="$save_CFLAGS"
6446 save_CFLAGS
="$CFLAGS"
6447 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6448 # Do the check with the no- prefix removed since gcc silently
6449 # accepts any -Wno-* option on purpose
6450 case $real_option in
6451 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6452 *) option
=$real_option ;;
6454 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6457 $as_echo_n "checking whether $CC supports $option... " >&6; }
6458 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6459 $as_echo_n "(cached) " >&6
6462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6473 if ac_fn_c_try_compile
"$LINENO"; then :
6474 eval "$as_acx_Woption=yes"
6476 eval "$as_acx_Woption=no"
6478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6481 eval ac_res
=\$
$as_acx_Woption
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6483 $as_echo "$ac_res" >&6; }
6484 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6485 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6488 CFLAGS
="$save_CFLAGS"
6491 save_CFLAGS
="$CFLAGS"
6492 for real_option
in -Wmissing-format-attribute; do
6493 # Do the check with the no- prefix removed since gcc silently
6494 # accepts any -Wno-* option on purpose
6495 case $real_option in
6496 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497 *) option
=$real_option ;;
6499 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6518 if ac_fn_c_try_compile
"$LINENO"; then :
6519 eval "$as_acx_Woption=yes"
6521 eval "$as_acx_Woption=no"
6523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6526 eval ac_res
=\$
$as_acx_Woption
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6533 CFLAGS
="$save_CFLAGS"
6536 save_CFLAGS
="$CFLAGS"
6537 for real_option
in -Wold-style-definition -Wc++-compat; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option
=$real_option ;;
6544 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6563 if ac_fn_c_try_compile
"$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6571 eval ac_res
=\$
$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6578 CFLAGS
="$save_CFLAGS"
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6588 save_CFLAGS
="$CFLAGS"
6589 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6601 if ac_fn_c_try_compile
"$LINENO"; then :
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6607 CFLAGS
="$save_CFLAGS"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619 enableval
=$enable_werror_always;
6621 enable_werror_always
=no
6624 if test $enable_werror_always = yes; then :
6625 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6630 # The above macros do nothing if the compiler is not GCC. However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6635 if test "x$GCC" = "xyes"; then
6636 warn_cflags
='$(GCC_WARN_CFLAGS)'
6637 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6642 # Disable exceptions and RTTI if building with g++
6644 save_CFLAGS
="$CFLAGS"
6645 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option
=$real_option ;;
6652 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6671 if ac_fn_c_try_compile
"$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 eval ac_res
=\$
$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6686 CFLAGS
="$save_CFLAGS"
6689 # Enable expensive internal checks
6691 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6700 # Determine the default checks.
6701 if test x
$is_release = x
; then
6702 ac_checking_flags
=yes
6704 ac_checking_flags
=release
6708 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6709 for check
in release
$ac_checking_flags
6712 # these set all the flags to specific states
6713 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6714 ac_fold_checking
= ; ac_gc_checking
=1 ;
6715 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6716 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6717 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6718 ac_types_checking
=1 ;;
6719 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6720 ac_fold_checking
= ; ac_gc_checking
= ;
6721 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6722 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6723 ac_tree_checking
= ; ac_valgrind_checking
= ;
6724 ac_types_checking
= ;;
6725 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6726 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6727 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6728 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6729 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6730 ac_types_checking
=1 ;;
6731 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6732 ac_fold_checking
= ; ac_gc_checking
= ;
6733 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6734 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6735 ac_tree_checking
= ; ac_valgrind_checking
= ;
6736 ac_types_checking
= ;;
6737 # these enable particular checks
6738 assert
) ac_assert_checking
=1 ;;
6739 df
) ac_df_checking
=1 ;;
6740 fold) ac_fold_checking
=1 ;;
6741 gc
) ac_gc_checking
=1 ;;
6742 gcac
) ac_gc_always_collect
=1 ;;
6743 gimple
) ac_gimple_checking
=1 ;;
6744 misc
) ac_checking
=1 ;;
6745 rtl
) ac_rtl_checking
=1 ;;
6746 rtlflag
) ac_rtlflag_checking
=1 ;;
6747 runtime
) ac_runtime_checking
=1 ;;
6748 tree
) ac_tree_checking
=1 ;;
6749 types
) ac_types_checking
=1 ;;
6750 valgrind
) ac_valgrind_checking
=1 ;;
6751 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6757 if test x
$ac_checking != x
; then
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761 nocommon_flag
=-fno-common
6764 if test x
$ac_df_checking != x
; then
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6769 if test x
$ac_assert_checking != x
; then
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6774 if test x
$ac_gimple_checking != x
; then
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6780 if test x
$ac_runtime_checking != x
; then
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6785 if test x
$ac_tree_checking != x
; then
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789 TREEBROWSER
=tree-browser.o
6792 if test x
$ac_types_checking != x
; then
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6799 if test x
$ac_rtl_checking != x
; then
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6804 if test x
$ac_rtlflag_checking != x
; then
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6809 if test x
$ac_gc_checking != x
; then
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6814 if test x
$ac_gc_always_collect != x
; then
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6819 if test x
$ac_fold_checking != x
; then
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6824 valgrind_path_defines
=
6827 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6836 if test x
$ac_valgrind_checking != x
; then
6837 # It is certainly possible that there's valgrind but no valgrind.h.
6838 # GCC relies on making annotations so we must have both.
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6840 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 #include <valgrind/memcheck.h>
6844 #ifndef VALGRIND_DISCARD
6845 #error VALGRIND_DISCARD not defined
6848 if ac_fn_c_try_cpp
"$LINENO"; then :
6849 gcc_cv_header_valgrind_memcheck_h
=yes
6851 gcc_cv_header_valgrind_memcheck_h
=no
6853 rm -f conftest.err conftest.
$ac_ext
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6855 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6857 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 #include <memcheck.h>
6861 #ifndef VALGRIND_DISCARD
6862 #error VALGRIND_DISCARD not defined
6865 if ac_fn_c_try_cpp
"$LINENO"; then :
6866 gcc_cv_header_memcheck_h
=yes
6868 gcc_cv_header_memcheck_h
=no
6870 rm -f conftest.err conftest.
$ac_ext
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6872 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6874 # Prepare PATH_SEPARATOR.
6875 # The user is always right.
6876 if test "${PATH_SEPARATOR+set}" != set; then
6877 echo "#! /bin/sh" >conf$$.sh
6878 echo "exit 0" >>conf$$.sh
6880 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6888 # Find out how to test for executable files. Don't use a zero-byte file,
6889 # as systems may use methods other than mode bits to determine executability.
6890 cat >conf$$.
file <<_ASEOF
6894 chmod +x conf$$.
file
6895 if test -x conf$$.
file >/dev
/null
2>&1; then
6896 ac_executable_p
="test -x"
6898 ac_executable_p
="test -f"
6902 # Extract the first word of "valgrind", so it can be a program name with args.
6903 set dummy valgrind
; ac_word
=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6909 case "$valgrind_path" in
6911 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6914 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6915 for ac_dir
in $PATH; do
6917 test -z "$ac_dir" && ac_dir
=.
6918 for ac_exec_ext
in '' $ac_executable_extensions; do
6919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6920 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6921 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6931 valgrind_path
="$ac_cv_path_valgrind_path"
6932 if test -n "$valgrind_path"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6934 $as_echo "$valgrind_path" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6940 if test "x$valgrind_path" = "x" \
6941 ||
(test $have_valgrind_h = no \
6942 && test $gcc_cv_header_memcheck_h = no \
6943 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6944 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6946 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6947 valgrind_command
="$valgrind_path -q"
6949 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6951 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6953 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6956 if test $gcc_cv_header_memcheck_h = yes; then
6958 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6965 # Enable code coverage collection
6966 # Check whether --enable-coverage was given.
6967 if test "${enable_coverage+set}" = set; then :
6968 enableval
=$enable_coverage; case "${enableval}" in
6970 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6973 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6976 # a.k.a. --disable-coverage
6980 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6989 # Check whether --enable-gather-detailed-mem-stats was given.
6990 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6991 enableval
=$enable_gather_detailed_mem_stats;
6993 enable_gather_detailed_mem_stats
=no
6996 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6998 cat >>confdefs.h
<<_ACEOF
6999 #define GATHER_STATISTICS $gather_stats
7003 # -------------------------------
7004 # Miscenalleous configure options
7005 # -------------------------------
7009 # Check whether --with-stabs was given.
7010 if test "${with_stabs+set}" = set; then :
7011 withval
=$with_stabs; stabs
="$with_stabs"
7017 # Determine whether or not multilibs are enabled.
7018 # Check whether --enable-multilib was given.
7019 if test "${enable_multilib+set}" = set; then :
7020 enableval
=$enable_multilib;
7027 # Determine whether or not multiarch is enabled.
7028 # Check whether --enable-multiarch was given.
7029 if test "${enable_multiarch+set}" = set; then :
7030 enableval
=$enable_multiarch; case "${enableval}" in
7031 yes|no|auto
) enable_multiarch
=$enableval;;
7032 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7035 enable_multiarch
=auto
7038 if test x
${enable_multiarch} = xauto
; then
7039 if test x
${with_native_system_header_dir} != x
; then
7040 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7043 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7044 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7049 $as_echo_n "checking for multiarch configuration... " >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7052 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7054 # needed for setting the multiarch name for soft-float/hard-float ABIs
7058 # Enable __cxa_atexit for C++.
7059 # Check whether --enable-__cxa_atexit was given.
7060 if test "${enable___cxa_atexit+set}" = set; then :
7061 enableval
=$enable___cxa_atexit;
7065 # Enable C extension for decimal float if target supports it.
7067 # Check whether --enable-decimal-float was given.
7068 if test "${enable_decimal_float+set}" = set; then :
7069 enableval
=$enable_decimal_float;
7070 case $enable_decimal_float in
7071 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7072 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7073 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7079 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7081 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7083 enable_decimal_float
=yes
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7087 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7088 enable_decimal_float
=no
7095 # x86's use BID format instead of DPD
7096 case x
$enable_decimal_float in
7099 i?
86*-*-* | x86_64
*-*-*)
7100 enable_decimal_float
=bid
7103 enable_decimal_float
=dpd
7106 default_decimal_float
=$enable_decimal_float
7109 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7110 # dependency on libdecnumber.
7111 default_decimal_float
=dpd
7118 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7120 cat >>confdefs.h
<<_ACEOF
7121 #define ENABLE_DECIMAL_FLOAT $dfp
7125 # Use default_decimal_float for dependency.
7126 enable_decimal_float
=$default_decimal_float
7128 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7130 cat >>confdefs.h
<<_ACEOF
7131 #define ENABLE_DECIMAL_BID_FORMAT $bid
7135 # Enable C extension for fixed-point arithmetic.
7136 # Check whether --enable-fixed-point was given.
7137 if test "${enable_fixed_point+set}" = set; then :
7138 enableval
=$enable_fixed_point;
7143 enable_fixed_point
=yes
7147 enable_fixed_point
=yes
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7151 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7152 enable_fixed_point
=no
7160 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7162 cat >>confdefs.h
<<_ACEOF
7163 #define ENABLE_FIXED_POINT $fixedpoint
7168 # Pass with no value to take the default
7169 # Pass with a value to specify a thread package
7170 # Check whether --enable-threads was given.
7171 if test "${enable_threads+set}" = set; then :
7172 enableval
=$enable_threads;
7178 # Check whether --enable-tls was given.
7179 if test "${enable_tls+set}" = set; then :
7180 enableval
=$enable_tls;
7183 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7184 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7192 # Check whether --enable-objc-gc was given.
7193 if test "${enable_objc_gc+set}" = set; then :
7194 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7205 # Check whether --with-dwarf2 was given.
7206 if test "${with_dwarf2+set}" = set; then :
7207 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7213 # Check whether --enable-shared was given.
7214 if test "${enable_shared+set}" = set; then :
7215 enableval
=$enable_shared;
7216 case $enable_shared in
7220 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7221 for pkg
in $enableval; do
7222 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7237 # Check whether --with-native-system-header-dir was given.
7238 if test "${with_native_system_header_dir+set}" = set; then :
7239 withval
=$with_native_system_header_dir;
7240 case ${with_native_system_header_dir} in
7241 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7242 /* |
[A-Za-z
]:[\\/]*) ;;
7243 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7245 configured_native_system_header_dir
="${withval}"
7248 configured_native_system_header_dir
=
7253 # Check whether --with-build-sysroot was given.
7254 if test "${with_build_sysroot+set}" = set; then :
7255 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7256 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7259 SYSROOT_CFLAGS_FOR_TARGET
=
7264 if test "x$prefix" = xNONE
; then
7265 test_prefix
=/usr
/local
7269 if test "x$exec_prefix" = xNONE
; then
7270 test_exec_prefix
=$test_prefix
7272 test_exec_prefix
=$exec_prefix
7276 # Check whether --with-sysroot was given.
7277 if test "${with_sysroot+set}" = set; then :
7278 withval
=$with_sysroot;
7279 case ${with_sysroot} in
7280 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7281 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7284 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7285 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7287 case ${TARGET_SYSTEM_ROOT} in
7288 "${test_prefix}"|
"${test_prefix}/"*|\
7289 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7290 '${prefix}'|
'${prefix}/'*|\
7291 '${exec_prefix}'|
'${exec_prefix}/'*)
7292 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7293 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7300 TARGET_SYSTEM_ROOT_DEFINE
=
7301 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7310 # Check whether --with-specs was given.
7311 if test "${with_specs+set}" = set; then :
7312 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7322 # Check whether --with-pkgversion was given.
7323 if test "${with_pkgversion+set}" = set; then :
7324 withval
=$with_pkgversion; case "$withval" in
7325 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7327 *) PKGVERSION
="($withval) " ;;
7338 # Check whether --with-bugurl was given.
7339 if test "${with_bugurl+set}" = set; then :
7340 withval
=$with_bugurl; case "$withval" in
7341 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7344 *) BUGURL
="$withval"
7348 BUGURL
="http://gcc.gnu.org/bugs.html"
7358 REPORT_BUGS_TO
="<$BUGURL>"
7359 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7366 # Sanity check enable_languages in case someone does not run the toplevel
7367 # configure # script.
7368 # Check whether --enable-languages was given.
7369 if test "${enable_languages+set}" = set; then :
7370 enableval
=$enable_languages; case ,${enable_languages}, in
7372 # go safe -- we cannot be much sure without the toplevel
7374 # analysis of which target libs are present and usable
7378 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7383 enable_languages
=c
,${enable_languages}
7392 # Check whether --with-multilib-list was given.
7393 if test "${with_multilib_list+set}" = set; then :
7394 withval
=$with_multilib_list; :
7396 with_multilib_list
=default
7400 # -------------------------
7401 # Checks for other programs
7402 # -------------------------
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7405 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7407 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7408 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7409 $as_echo_n "(cached) " >&6
7411 cat >conftest.
make <<\_ACEOF
7414 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7419 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7421 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7425 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7427 $as_echo "yes" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 SET_MAKE
="MAKE=${MAKE-make}"
7436 # Find some useful tools
7437 for ac_prog
in gawk mawk nawk
awk
7439 # Extract the first word of "$ac_prog", so it can be a program name with args.
7440 set dummy
$ac_prog; ac_word
=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_AWK+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$AWK"; then
7447 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir
=.
7454 for ac_exec_ext
in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_AWK
="$ac_prog"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 if test -n "$AWK"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7469 $as_echo "$AWK" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7476 test -n "$AWK" && break
7479 # We need awk to create options.c and options.h.
7480 # Bail out if it's missing.
7482 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7486 $as_echo_n "checking whether ln -s works... " >&6; }
7487 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7490 rm -f conftestdata_t
7491 echo >conftestdata_f
7492 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7494 gcc_cv_prog_LN_S
="ln -s"
7496 if ln conftestdata_f conftestdata_t
2>/dev
/null
7500 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7502 gcc_cv_prog_LN_S
="cp -p"
7508 rm -f conftestdata_f conftestdata_t
7511 LN_S
="$gcc_cv_prog_LN_S"
7512 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7514 $as_echo "yes" >&6; }
7516 if test "$gcc_cv_prog_LN_S" = "ln"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7518 $as_echo "no, using ln" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7521 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7526 $as_echo_n "checking whether ln works... " >&6; }
7527 if test "${acx_cv_prog_LN+set}" = set; then :
7528 $as_echo_n "(cached) " >&6
7530 rm -f conftestdata_t
7531 echo >conftestdata_f
7532 if ln conftestdata_f conftestdata_t
2>/dev
/null
7538 rm -f conftestdata_f conftestdata_t
7541 if test $acx_cv_prog_LN = no
; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7544 $as_echo "no, using $LN" >&6; }
7546 LN
="$acx_cv_prog_LN"
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 $as_echo "yes" >&6; }
7551 if test -n "$ac_tool_prefix"; then
7552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7553 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$RANLIB"; then
7560 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir
=.
7567 for ac_exec_ext
in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 RANLIB
=$ac_cv_prog_RANLIB
7580 if test -n "$RANLIB"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7582 $as_echo "$RANLIB" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7590 if test -z "$ac_cv_prog_RANLIB"; then
7591 ac_ct_RANLIB
=$RANLIB
7592 # Extract the first word of "ranlib", so it can be a program name with args.
7593 set dummy ranlib
; ac_word
=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7599 if test -n "$ac_ct_RANLIB"; then
7600 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir
=.
7607 for ac_exec_ext
in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7620 if test -n "$ac_ct_RANLIB"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7622 $as_echo "$ac_ct_RANLIB" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7628 if test "x$ac_ct_RANLIB" = x
; then
7631 case $cross_compiling:$ac_tool_warned in
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned
=yes ;;
7637 RANLIB
=$ac_ct_RANLIB
7640 RANLIB
="$ac_cv_prog_RANLIB"
7646 # Find a good install program. We prefer a C program (faster),
7647 # so one script is as good as another. But avoid the broken or
7648 # incompatible versions:
7649 # SysV /etc/install, /usr/sbin/install
7650 # SunOS /usr/etc/install
7651 # IRIX /sbin/install
7653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7655 # ./install, which can be erroneously created by make from ./install.sh.
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7657 $as_echo_n "checking for a BSD compatible install... " >&6; }
7658 if test -z "$INSTALL"; then
7659 if test "${ac_cv_path_install+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7662 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7663 for ac_dir
in $PATH; do
7664 # Account for people who put trailing slashes in PATH elements.
7666 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7668 # OSF1 and SCO ODT 3.0 have their own names for install.
7669 for ac_prog
in ginstall scoinst
install; do
7670 if test -f $ac_dir/$ac_prog; then
7671 if test $ac_prog = install &&
7672 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7673 # AIX install. It has an incompatible calling convention.
7674 # OSF/1 installbsd also uses dspmsg, but is usable.
7677 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7688 if test "${ac_cv_path_install+set}" = set; then
7689 INSTALL
="$ac_cv_path_install"
7691 # As a last resort, use the slow shell script. We don't cache a
7692 # path for INSTALL within a source directory, because that will
7693 # break other packages using the cache if that directory is
7694 # removed, or if the path is relative.
7695 INSTALL
="$ac_install_sh"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7699 $as_echo "$INSTALL" >&6; }
7701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7702 # It thinks the first close brace ends the variable substitution.
7703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7705 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7708 # See if cmp has --ignore-initial.
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7710 $as_echo_n "checking for cmp's capabilities... " >&6; }
7711 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7716 gcc_cv_prog_cmp_skip
=slowcompare
7717 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7718 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7721 gcc_cv_prog_cmp_skip
=gnucompare
7724 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7725 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7726 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7729 gcc_cv_prog_cmp_skip
=fastcompare
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7737 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7738 make_compare_target
=$gcc_cv_prog_cmp_skip
7742 # See if we have the mktemp command.
7743 # Extract the first word of "mktemp", so it can be a program name with args.
7744 set dummy mktemp
; ac_word
=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7750 if test -n "$have_mktemp_command"; then
7751 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir
=.
7758 for ac_exec_ext
in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_have_mktemp_command
="yes"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7771 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7772 if test -n "$have_mktemp_command"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7774 $as_echo "$have_mktemp_command" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7782 # See if makeinfo has been installed and is modern enough
7783 # that we can use it.
7785 # Extract the first word of "makeinfo", so it can be a program name with args.
7786 set dummy makeinfo
; ac_word
=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7792 if test -n "$MAKEINFO"; then
7793 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir
=.
7800 for ac_exec_ext
in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_MAKEINFO
="makeinfo"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 MAKEINFO
=$ac_cv_prog_MAKEINFO
7813 if test -n "$MAKEINFO"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7815 $as_echo "$MAKEINFO" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7822 if test -n "$MAKEINFO"; then
7823 # Found it, now check the version.
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7825 $as_echo_n "checking for modern makeinfo... " >&6; }
7826 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7829 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7830 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7832 case $ac_prog_version in
7833 '') gcc_cv_prog_makeinfo_modern
=no
;;
7834 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7835 *) gcc_cv_prog_makeinfo_modern
=no
;;
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7840 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7842 gcc_cv_prog_makeinfo_modern
=no
7844 if test $gcc_cv_prog_makeinfo_modern = no
; then
7845 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7848 if test $gcc_cv_prog_makeinfo_modern = no
; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7850 *** Makeinfo is missing or too old.
7851 *** Info documentation will not be built." >&5
7852 $as_echo "$as_me: WARNING:
7853 *** Makeinfo is missing or too old.
7854 *** Info documentation will not be built." >&2;}
7861 # Is pod2man recent enough to regenerate manpages?
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7863 $as_echo_n "checking for recent Pod::Man... " >&6; }
7864 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7866 $as_echo "yes" >&6; }
7867 GENERATED_MANPAGES
=generated-manpages
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7875 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy
$ac_prog; ac_word
=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_prog_FLEX+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7887 if test -n "$FLEX"; then
7888 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7894 test -z "$as_dir" && as_dir
=.
7895 for ac_exec_ext
in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_prog_FLEX
="$ac_prog"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 FLEX
=$ac_cv_prog_FLEX
7908 if test -n "$FLEX"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7910 $as_echo "$FLEX" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7917 test -n "$FLEX" && break
7919 test -n "$FLEX" || FLEX
="$MISSING flex"
7923 for ac_prog
in bison
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy
$ac_prog; ac_word
=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_BISON+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7932 if test -n "$BISON"; then
7933 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir
=.
7940 for ac_exec_ext
in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_BISON
="$ac_prog"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 BISON
=$ac_cv_prog_BISON
7953 if test -n "$BISON"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7955 $as_echo "$BISON" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7962 test -n "$BISON" && break
7964 test -n "$BISON" || BISON
="$MISSING bison"
7967 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7968 # check for build == host before using them.
7971 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7972 && test -d ..
/binutils
; then
7973 NM
='${objdir}/../binutils/nm-new'
7975 # Extract the first word of "nm", so it can be a program name with args.
7976 set dummy nm
; ac_word
=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if test "${ac_cv_prog_NM+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7982 if test -n "$NM"; then
7983 ac_cv_prog_NM
="$NM" # Let the user override the test.
7985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7989 test -z "$as_dir" && as_dir
=.
7990 for ac_exec_ext
in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8004 if test -n "$NM"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8006 $as_echo "$NM" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8016 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8017 && test -d ..
/binutils
; then
8018 AR
='${objdir}/../binutils/ar'
8020 # Extract the first word of "ar", so it can be a program name with args.
8021 set dummy
ar; ac_word
=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_AR+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8027 if test -n "$AR"; then
8028 ac_cv_prog_AR
="$AR" # Let the user override the test.
8030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir
=.
8035 for ac_exec_ext
in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8049 if test -n "$AR"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8051 $as_echo "$AR" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8061 # --------------------
8062 # Checks for C headers
8063 # --------------------
8065 # Need to reject headers which give warnings, so that the -Werror bootstrap
8066 # works later. *sigh* This needs to come before all header checks.
8068 ac_c_preproc_warn_flag
=yes
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8071 $as_echo_n "checking for ANSI C header files... " >&6; }
8072 if test "${ac_cv_header_stdc+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8090 if ac_fn_c_try_compile
"$LINENO"; then :
8091 ac_cv_header_stdc
=yes
8093 ac_cv_header_stdc
=no
8095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 if test $ac_cv_header_stdc = yes; then
8098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8105 $EGREP "memchr" >/dev
/null
2>&1; then :
8108 ac_cv_header_stdc
=no
8114 if test $ac_cv_header_stdc = yes; then
8115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122 $EGREP "free" >/dev
/null
2>&1; then :
8125 ac_cv_header_stdc
=no
8131 if test $ac_cv_header_stdc = yes; then
8132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133 if test "$cross_compiling" = yes; then :
8136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8140 #if ((' ' & 0x0FF) == 0x020)
8141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8144 # define ISLOWER(c) \
8145 (('a' <= (c) && (c) <= 'i') \
8146 || ('j' <= (c) && (c) <= 'r') \
8147 || ('s' <= (c) && (c) <= 'z'))
8148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8156 for (i = 0; i < 256; i++)
8157 if (XOR (islower (i), ISLOWER (i))
8158 || toupper (i) != TOUPPER (i))
8163 if ac_fn_c_try_run
"$LINENO"; then :
8166 ac_cv_header_stdc
=no
8168 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8169 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8175 $as_echo "$ac_cv_header_stdc" >&6; }
8176 if test $ac_cv_header_stdc = yes; then
8178 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8183 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8184 if test "${ac_cv_header_time+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <sys/time.h>
8196 if ((struct tm *) 0)
8202 if ac_fn_c_try_compile
"$LINENO"; then :
8203 ac_cv_header_time
=yes
8205 ac_cv_header_time
=no
8207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8210 $as_echo "$ac_cv_header_time" >&6; }
8211 if test $ac_cv_header_time = yes; then
8213 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8218 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8219 if test "${gcc_cv_header_string+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8225 #include <strings.h>
8234 if ac_fn_c_try_compile
"$LINENO"; then :
8235 gcc_cv_header_string
=yes
8237 gcc_cv_header_string
=no
8239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8242 $as_echo "$gcc_cv_header_string" >&6; }
8243 if test $gcc_cv_header_string = yes; then
8245 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8250 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8251 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 #include <sys/types.h>
8257 #include <sys/wait.h>
8259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8275 if ac_fn_c_try_compile
"$LINENO"; then :
8276 ac_cv_header_sys_wait_h
=yes
8278 ac_cv_header_sys_wait_h
=no
8280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8283 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8284 if test $ac_cv_header_sys_wait_h = yes; then
8286 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8290 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8291 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8292 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8293 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8295 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8296 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8297 eval as_val
=\$
$as_ac_Header
8298 if test "x$as_val" = x
""yes; then :
8299 cat >>confdefs.h
<<_ACEOF
8300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8307 # Check for thread headers.
8308 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8309 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8315 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8316 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8323 # These tests can't be done till we know if we have limits.h.
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8325 $as_echo_n "checking for CHAR_BIT... " >&6; }
8326 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8331 #ifdef HAVE_LIMITS_H
8338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8339 $EGREP "found" >/dev
/null
2>&1; then :
8340 gcc_cv_decl_char_bit
=yes
8342 gcc_cv_decl_char_bit
=no
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8349 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8350 if test $gcc_cv_decl_char_bit = no
; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8352 $as_echo_n "checking number of bits in a byte... " >&6; }
8353 if test "${gcc_cv_c_nbby+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8358 while test $i -lt 65; do
8359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8366 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8367 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8373 if ac_fn_c_try_compile
"$LINENO"; then :
8374 gcc_cv_c_nbby
=$i; break
8376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8379 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8383 $as_echo "$gcc_cv_c_nbby" >&6; }
8384 if test $gcc_cv_c_nbby = failed
; then
8385 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8388 cat >>confdefs.h
<<_ACEOF
8389 #define CHAR_BIT $gcc_cv_c_nbby
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8396 if test "${ac_cv_c_bigendian+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8399 ac_cv_c_bigendian
=unknown
8400 # See if we're dealing with a universal compiler.
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifndef __APPLE_CC__
8404 not a universal capable compiler
8409 if ac_fn_c_try_compile
"$LINENO"; then :
8411 # Check for potential -arch flags. It is not universal unless
8412 # there are at least two -arch flags with different values.
8415 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8416 if test -n "$ac_prev"; then
8418 i?
86 | x86_64 | ppc | ppc64
)
8419 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8422 ac_cv_c_bigendian
=universal
8428 elif test "x$ac_word" = "x-arch"; then
8433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8434 if test $ac_cv_c_bigendian = unknown
; then
8435 # See if sys/param.h defines the BYTE_ORDER macro.
8436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 #include <sys/types.h>
8439 #include <sys/param.h>
8444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8454 if ac_fn_c_try_compile
"$LINENO"; then :
8455 # It does; now see whether it defined to BIG_ENDIAN or not.
8456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 #include <sys/types.h>
8459 #include <sys/param.h>
8464 #if BYTE_ORDER != BIG_ENDIAN
8472 if ac_fn_c_try_compile
"$LINENO"; then :
8473 ac_cv_c_bigendian
=yes
8475 ac_cv_c_bigendian
=no
8477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8481 if test $ac_cv_c_bigendian = unknown
; then
8482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8498 if ac_fn_c_try_compile
"$LINENO"; then :
8499 # It does; now see whether it defined to _BIG_ENDIAN or not.
8500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8515 if ac_fn_c_try_compile
"$LINENO"; then :
8516 ac_cv_c_bigendian
=yes
8518 ac_cv_c_bigendian
=no
8520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8524 if test $ac_cv_c_bigendian = unknown
; then
8525 # Compile a test program.
8526 if test "$cross_compiling" = yes; then :
8527 # Try to guess by grepping values from an object file.
8528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 short int ascii_mm[] =
8531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8532 short int ascii_ii[] =
8533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8534 int use_ascii (int i) {
8535 return ascii_mm[i] + ascii_ii[i];
8537 short int ebcdic_ii[] =
8538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8539 short int ebcdic_mm[] =
8540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8541 int use_ebcdic (int i) {
8542 return ebcdic_mm[i] + ebcdic_ii[i];
8549 return use_ascii (foo) == use_ebcdic (foo);
8554 if ac_fn_c_try_compile
"$LINENO"; then :
8555 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8556 ac_cv_c_bigendian
=yes
8558 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8559 if test "$ac_cv_c_bigendian" = unknown
; then
8560 ac_cv_c_bigendian
=no
8562 # finding both strings is unlikely to happen, but who knows?
8563 ac_cv_c_bigendian
=unknown
8567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 $ac_includes_default
8576 /* Are we little or big endian? From Harbison&Steele. */
8580 char c[sizeof (long int)];
8583 return u.c[sizeof (long int) - 1] == 1;
8589 if ac_fn_c_try_run
"$LINENO"; then :
8590 ac_cv_c_bigendian
=no
8592 ac_cv_c_bigendian
=yes
8594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8601 $as_echo "$ac_cv_c_bigendian" >&6; }
8602 case $ac_cv_c_bigendian in #(
8604 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8614 as_fn_error
"unknown endianness
8615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8619 # ----------------------
8620 # Checks for C++ headers
8621 # ----------------------
8624 ac_cpp
='$CXXCPP $CPPFLAGS'
8625 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8629 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8630 if test -z "$CXXCPP"; then
8631 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8634 # Double quotes because CXXCPP needs to be expanded
8635 for CXXCPP
in "$CXX -E" "/lib/cpp"
8638 for ac_cxx_preproc_warn_flag
in '' yes
8640 # Use a header file that comes with gcc, so configuring glibc
8641 # with a fresh cross-compiler works.
8642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643 # <limits.h> exists even on freestanding compilers.
8644 # On the NeXT, cc -E runs the code through the compiler's parser,
8645 # not just through cpp. "Syntax error" is here to catch this case.
8646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8649 # include <limits.h>
8651 # include <assert.h>
8655 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8658 # Broken: fails on valid input.
8661 rm -f conftest.err conftest.
$ac_ext
8663 # OK, works on sane cases. Now check whether nonexistent headers
8664 # can be detected and how.
8665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <ac_nonexistent.h>
8669 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8670 # Broken: success on invalid input.
8673 # Passes both tests.
8677 rm -f conftest.err conftest.
$ac_ext
8680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8681 rm -f conftest.err conftest.
$ac_ext
8682 if $ac_preproc_ok; then :
8687 ac_cv_prog_CXXCPP
=$CXXCPP
8690 CXXCPP
=$ac_cv_prog_CXXCPP
8692 ac_cv_prog_CXXCPP
=$CXXCPP
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8695 $as_echo "$CXXCPP" >&6; }
8697 for ac_cxx_preproc_warn_flag
in '' yes
8699 # Use a header file that comes with gcc, so configuring glibc
8700 # with a fresh cross-compiler works.
8701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8702 # <limits.h> exists even on freestanding compilers.
8703 # On the NeXT, cc -E runs the code through the compiler's parser,
8704 # not just through cpp. "Syntax error" is here to catch this case.
8705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8708 # include <limits.h>
8710 # include <assert.h>
8714 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8717 # Broken: fails on valid input.
8720 rm -f conftest.err conftest.
$ac_ext
8722 # OK, works on sane cases. Now check whether nonexistent headers
8723 # can be detected and how.
8724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #include <ac_nonexistent.h>
8728 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8729 # Broken: success on invalid input.
8732 # Passes both tests.
8736 rm -f conftest.err conftest.
$ac_ext
8739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8740 rm -f conftest.err conftest.
$ac_ext
8741 if $ac_preproc_ok; then :
8744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8747 See \`config.log' for more details." >&5
8748 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8749 See \`config.log' for more details." >&2;}; }
8753 ac_cpp
='$CPP $CPPFLAGS'
8754 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8760 ac_cpp
='$CXXCPP $CPPFLAGS'
8761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8768 for ac_header
in unordered_map
8770 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8771 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8772 cat >>confdefs.h
<<_ACEOF
8773 #define HAVE_UNORDERED_MAP 1
8779 for ac_header
in tr1/unordered_map
8781 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8782 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8783 cat >>confdefs.h
<<_ACEOF
8784 #define HAVE_TR1_UNORDERED_MAP 1
8790 for ac_header
in ext
/hash_map
8792 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8793 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8794 cat >>confdefs.h
<<_ACEOF
8795 #define HAVE_EXT_HASH_MAP 1
8803 ac_cpp
='$CPP $CPPFLAGS'
8804 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8814 # These libraries may be used by collect2.
8815 # We may need a special search path to get them linked.
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8817 $as_echo_n "checking for collect2 libraries... " >&6; }
8818 if test "${gcc_cv_collect2_libs+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8822 for libs
in '' -lld -lmld \
8823 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8824 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8845 if ac_fn_c_try_link
"$LINENO"; then :
8846 gcc_cv_collect2_libs
="$libs"; break
8848 rm -f core conftest.err conftest.
$ac_objext \
8849 conftest
$ac_exeext conftest.
$ac_ext
8852 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8855 $as_echo "$gcc_cv_collect2_libs" >&6; }
8856 case $gcc_cv_collect2_libs in
8858 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8862 # When building Ada code on Alpha, we need exc_resume which is usually in
8863 # -lexc. So test for it.
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8867 $as_echo_n "checking for library containing exc_resume... " >&6; }
8868 if test "${ac_cv_search_exc_resume+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8871 ac_func_search_save_LIBS
=$LIBS
8872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8875 /* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8885 return exc_resume ();
8890 for ac_lib
in '' exc
; do
8891 if test -z "$ac_lib"; then
8892 ac_res
="none required"
8895 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8897 if ac_fn_c_try_link
"$LINENO"; then :
8898 ac_cv_search_exc_resume
=$ac_res
8900 rm -f core conftest.err conftest.
$ac_objext \
8902 if test "${ac_cv_search_exc_resume+set}" = set; then :
8906 if test "${ac_cv_search_exc_resume+set}" = set; then :
8909 ac_cv_search_exc_resume
=no
8912 LIBS
=$ac_func_search_save_LIBS
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8915 $as_echo "$ac_cv_search_exc_resume" >&6; }
8916 ac_res
=$ac_cv_search_exc_resume
8917 if test "$ac_res" != no
; then :
8918 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8926 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8930 $as_echo_n "checking for library containing kstat_open... " >&6; }
8931 if test "${ac_cv_search_kstat_open+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8934 ac_func_search_save_LIBS
=$LIBS
8935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8938 /* Override any GCC internal prototype to avoid an error.
8939 Use char because int might match the return type of a GCC
8940 builtin and then its argument prototype would still apply. */
8948 return kstat_open ();
8953 for ac_lib
in '' kstat
; do
8954 if test -z "$ac_lib"; then
8955 ac_res
="none required"
8958 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8960 if ac_fn_c_try_link
"$LINENO"; then :
8961 ac_cv_search_kstat_open
=$ac_res
8963 rm -f core conftest.err conftest.
$ac_objext \
8965 if test "${ac_cv_search_kstat_open+set}" = set; then :
8969 if test "${ac_cv_search_kstat_open+set}" = set; then :
8972 ac_cv_search_kstat_open
=no
8975 LIBS
=$ac_func_search_save_LIBS
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8978 $as_echo "$ac_cv_search_kstat_open" >&6; }
8979 ac_res
=$ac_cv_search_kstat_open
8980 if test "$ac_res" != no
; then :
8981 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8985 EXTRA_GCC_LIBS
="$LIBS"
8989 # Some systems put ldexp and frexp in libm instead of libc; assume
8990 # they're both in the same place. jcf-dump needs them.
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8994 $as_echo_n "checking for library containing ldexp... " >&6; }
8995 if test "${ac_cv_search_ldexp+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8998 ac_func_search_save_LIBS
=$LIBS
8999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9002 /* Override any GCC internal prototype to avoid an error.
9003 Use char because int might match the return type of a GCC
9004 builtin and then its argument prototype would still apply. */
9017 for ac_lib
in '' m
; do
9018 if test -z "$ac_lib"; then
9019 ac_res
="none required"
9022 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9024 if ac_fn_c_try_link
"$LINENO"; then :
9025 ac_cv_search_ldexp
=$ac_res
9027 rm -f core conftest.err conftest.
$ac_objext \
9029 if test "${ac_cv_search_ldexp+set}" = set; then :
9033 if test "${ac_cv_search_ldexp+set}" = set; then :
9036 ac_cv_search_ldexp
=no
9039 LIBS
=$ac_func_search_save_LIBS
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9042 $as_echo "$ac_cv_search_ldexp" >&6; }
9043 ac_res
=$ac_cv_search_ldexp
9044 if test "$ac_res" != no
; then :
9045 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9053 # Use <inttypes.h> only if it exists,
9054 # doesn't clash with <sys/types.h>, and declares intmax_t.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9056 $as_echo_n "checking for inttypes.h... " >&6; }
9057 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 #include <sys/types.h>
9063 #include <inttypes.h>
9072 if ac_fn_c_try_compile
"$LINENO"; then :
9073 gcc_cv_header_inttypes_h
=yes
9075 gcc_cv_header_inttypes_h
=no
9077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9081 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9082 if test $gcc_cv_header_inttypes_h = yes; then
9084 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9090 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9091 sysconf strsignal getrusage nl_langinfo \
9092 gettimeofday mbstowcs wcswidth mmap setlocale \
9093 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9095 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9096 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9097 eval as_val
=\$
$as_ac_var
9098 if test "x$as_val" = x
""yes; then :
9099 cat >>confdefs.h
<<_ACEOF
9100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9107 if test x
$ac_cv_func_mbstowcs = xyes
; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9109 $as_echo_n "checking whether mbstowcs works... " >&6; }
9110 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9113 if test "$cross_compiling" = yes; then :
9114 gcc_cv_func_mbstowcs_works
=yes
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9125 if ac_fn_c_try_run
"$LINENO"; then :
9126 gcc_cv_func_mbstowcs_works
=yes
9128 gcc_cv_func_mbstowcs_works
=no
9130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9131 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9136 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9137 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9139 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9144 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9145 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9149 cat >>confdefs.h
<<_ACEOF
9155 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9156 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9160 cat >>confdefs.h
<<_ACEOF
9161 #define caddr_t char *
9168 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9169 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9170 gcc_header_sys_mman_h
=yes
9172 gcc_header_sys_mman_h
=no
9175 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9176 if test "x$ac_cv_func_mmap" = x
""yes; then :
9182 if test "$gcc_header_sys_mman_h" != yes \
9183 ||
test "$gcc_func_mmap" != yes; then
9184 gcc_cv_func_mmap_file
=no
9185 gcc_cv_func_mmap_dev_zero
=no
9186 gcc_cv_func_mmap_anon
=no
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9189 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9190 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9193 # Add a system to this blacklist if
9194 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9195 # memory area containing the same data that you'd get if you applied
9196 # read() to the same fd. The only system known to have a problem here
9197 # is VMS, where text files have record structure.
9200 gcc_cv_func_mmap_file
=no
;;
9202 gcc_cv_func_mmap_file
=yes;;
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9206 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9208 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9209 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9212 # Add a system to this blacklist if it has mmap() but /dev/zero
9213 # does not exist, or if mmapping /dev/zero does not give anonymous
9214 # zeroed pages with both the following properties:
9215 # 1. If you map N consecutive pages in with one call, and then
9216 # unmap any subset of those pages, the pages that were not
9217 # explicitly unmapped remain accessible.
9218 # 2. If you map two adjacent blocks of memory and then unmap them
9219 # both at once, they must both go away.
9220 # Systems known to be in this category are Windows (all variants),
9223 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9224 gcc_cv_func_mmap_dev_zero
=no
;;
9226 gcc_cv_func_mmap_dev_zero
=yes;;
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9230 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9232 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9234 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9235 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include <sys/types.h>
9241 #include <sys/mman.h>
9244 #ifndef MAP_ANONYMOUS
9245 #define MAP_ANONYMOUS MAP_ANON
9251 int n = MAP_ANONYMOUS;
9256 if ac_fn_c_try_compile
"$LINENO"; then :
9257 gcc_cv_decl_map_anon
=yes
9259 gcc_cv_decl_map_anon
=no
9261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9264 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9266 if test $gcc_cv_decl_map_anon = no
; then
9267 gcc_cv_func_mmap_anon
=no
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9270 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9271 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
9274 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9275 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9276 # doesn't give anonymous zeroed pages with the same properties listed
9277 # above for use of /dev/zero.
9278 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9280 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9281 gcc_cv_func_mmap_anon
=no
;;
9283 gcc_cv_func_mmap_anon
=yes;;
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9287 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9291 if test $gcc_cv_func_mmap_file = yes; then
9293 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9296 if test $gcc_cv_func_mmap_dev_zero = yes; then
9298 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9301 if test $gcc_cv_func_mmap_anon = yes; then
9303 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9310 # Under VMS, vfork works very differently than on Unix. The standard test
9311 # won't work, and it isn't easily adaptable. It makes more sense to
9313 ac_cv_func_vfork_works
=yes
9316 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9317 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9321 cat >>confdefs.h
<<_ACEOF
9327 for ac_header
in vfork.h
9329 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9330 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9331 cat >>confdefs.h
<<_ACEOF
9332 #define HAVE_VFORK_H 1
9338 for ac_func
in fork vfork
9340 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9341 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9342 eval as_val
=\$
$as_ac_var
9343 if test "x$as_val" = x
""yes; then :
9344 cat >>confdefs.h
<<_ACEOF
9345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9351 if test "x$ac_cv_func_fork" = xyes
; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9353 $as_echo_n "checking for working fork... " >&6; }
9354 if test "${ac_cv_func_fork_works+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9357 if test "$cross_compiling" = yes; then :
9358 ac_cv_func_fork_works
=cross
9360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 $ac_includes_default
9367 /* By Ruediger Kuhlmann. */
9374 if ac_fn_c_try_run
"$LINENO"; then :
9375 ac_cv_func_fork_works
=yes
9377 ac_cv_func_fork_works
=no
9379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9385 $as_echo "$ac_cv_func_fork_works" >&6; }
9388 ac_cv_func_fork_works
=$ac_cv_func_fork
9390 if test "x$ac_cv_func_fork_works" = xcross
; then
9392 *-*-amigaos* |
*-*-msdosdjgpp*)
9393 # Override, as these systems have only a dummy fork() stub
9394 ac_cv_func_fork_works
=no
9397 ac_cv_func_fork_works
=yes
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9401 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9403 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9404 if test "x$ac_cv_func_vfork" = xyes
; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9406 $as_echo_n "checking for working vfork... " >&6; }
9407 if test "${ac_cv_func_vfork_works+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9410 if test "$cross_compiling" = yes; then :
9411 ac_cv_func_vfork_works
=cross
9413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 /* Thanks to Paul Eggert for this test. */
9416 $ac_includes_default
9417 #include <sys/wait.h>
9421 /* On some sparc systems, changes by the child to local and incoming
9422 argument registers are propagated back to the parent. The compiler
9423 is told about this with #include <vfork.h>, but some compilers
9424 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9425 static variable whose address is put into a register that is
9426 clobbered by the vfork. */
9429 sparc_address_test (int arg)
9431 sparc_address_test (arg) int arg;
9452 pid_t parent = getpid ();
9455 sparc_address_test (0);
9460 /* Here is another test for sparc vfork register problems. This
9461 test uses lots of local variables, at least as many local
9462 variables as main has allocated so far including compiler
9463 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9464 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9465 reuse the register of parent for one of the local variables,
9466 since it will think that parent can't possibly be used any more
9467 in this routine. Assigning to the local variable will thus
9468 munge parent in the parent process. */
9470 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9471 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9472 /* Convince the compiler that p..p7 are live; otherwise, it might
9473 use the same hardware register for all 8 local variables. */
9474 if (p != p1 || p != p2 || p != p3 || p != p4
9475 || p != p5 || p != p6 || p != p7)
9478 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9479 from child file descriptors. If the child closes a descriptor
9480 before it execs or exits, this munges the parent's descriptor
9481 as well. Test for this by closing stdout in the child. */
9482 _exit(close(fileno(stdout)) != 0);
9487 while (wait(&status) != child)
9490 /* Was there some problem with vforking? */
9493 /* Did the child fail? (This shouldn't happen.) */
9496 /* Did the vfork/compiler bug occur? */
9497 || parent != getpid()
9499 /* Did the file descriptor bug occur? */
9500 || fstat(fileno(stdout), &st) != 0
9505 if ac_fn_c_try_run
"$LINENO"; then :
9506 ac_cv_func_vfork_works
=yes
9508 ac_cv_func_vfork_works
=no
9510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9516 $as_echo "$ac_cv_func_vfork_works" >&6; }
9519 if test "x$ac_cv_func_fork_works" = xcross
; then
9520 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9522 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9525 if test "x$ac_cv_func_vfork_works" = xyes
; then
9527 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9531 $as_echo "#define vfork fork" >>confdefs.h
9534 if test "x$ac_cv_func_fork_works" = xyes
; then
9536 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9541 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9542 # iconv() prototype.
9544 ac_cpp
='$CXXCPP $CPPFLAGS'
9545 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9550 if test "X$prefix" = "XNONE"; then
9551 acl_final_prefix
="$ac_default_prefix"
9553 acl_final_prefix
="$prefix"
9555 if test "X$exec_prefix" = "XNONE"; then
9556 acl_final_exec_prefix
='${prefix}'
9558 acl_final_exec_prefix
="$exec_prefix"
9560 acl_save_prefix
="$prefix"
9561 prefix
="$acl_final_prefix"
9562 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9563 prefix
="$acl_save_prefix"
9566 # Check whether --with-gnu-ld was given.
9567 if test "${with_gnu_ld+set}" = set; then :
9568 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9573 # Prepare PATH_SEPARATOR.
9574 # The user is always right.
9575 if test "${PATH_SEPARATOR+set}" != set; then
9576 echo "#! /bin/sh" >conf$$.sh
9577 echo "exit 0" >>conf$$.sh
9579 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9587 if test "$GCC" = yes; then
9588 # Check if gcc -print-prog-name=ld gives a path.
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9590 $as_echo_n "checking for ld used by GCC... " >&6; }
9593 # gcc leaves a trailing carriage return which upsets mingw
9594 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9596 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9599 # Accept absolute paths.
9600 [\\/]* |
[A-Za-z
]:[\\/]*)
9601 re_direlt
='/[^/][^/]*/\.\./'
9602 # Canonicalize the path of ld
9603 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9604 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9605 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9607 test -z "$LD" && LD
="$ac_prog"
9610 # If it fails, then pretend we aren't using GCC.
9614 # If it is relative, then search for the first ld in PATH.
9618 elif test "$with_gnu_ld" = yes; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9620 $as_echo_n "checking for GNU ld... " >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9623 $as_echo_n "checking for non-GNU ld... " >&6; }
9625 if test "${acl_cv_path_LD+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9628 if test -z "$LD"; then
9629 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9630 for ac_dir
in $PATH; do
9631 test -z "$ac_dir" && ac_dir
=.
9632 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9633 acl_cv_path_LD
="$ac_dir/$ac_prog"
9634 # Check to see if the program is GNU ld. I'd rather use --version,
9635 # but apparently some GNU ld's only accept -v.
9636 # Break only if it was the GNU/non-GNU ld that we prefer.
9637 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9638 test "$with_gnu_ld" != no
&& break
9640 test "$with_gnu_ld" != yes && break
9646 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9650 LD
="$acl_cv_path_LD"
9651 if test -n "$LD"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9653 $as_echo "$LD" >&6; }
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9658 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9660 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9661 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9664 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9665 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9666 acl_cv_prog_gnu_ld
=yes
9668 acl_cv_prog_gnu_ld
=no
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9672 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9673 with_gnu_ld
=$acl_cv_prog_gnu_ld
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9678 $as_echo_n "checking for shared library run path origin... " >&6; }
9679 if test "${acl_cv_rpath+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9683 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9684 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9691 $as_echo "$acl_cv_rpath" >&6; }
9693 libext
="$acl_cv_libext"
9694 shlibext
="$acl_cv_shlibext"
9695 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9696 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9697 hardcode_direct
="$acl_cv_hardcode_direct"
9698 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9699 # Check whether --enable-rpath was given.
9700 if test "${enable_rpath+set}" = set; then :
9701 enableval
=$enable_rpath; :
9715 acl_save_prefix
="$prefix"
9716 prefix
="$acl_final_prefix"
9717 acl_save_exec_prefix
="$exec_prefix"
9718 exec_prefix
="$acl_final_exec_prefix"
9720 eval additional_includedir
=\"$includedir\"
9721 eval additional_libdir
=\"$libdir\"
9723 exec_prefix
="$acl_save_exec_prefix"
9724 prefix
="$acl_save_prefix"
9727 # Check whether --with-libiconv-prefix was given.
9728 if test "${with_libiconv_prefix+set}" = set; then :
9729 withval
=$with_libiconv_prefix;
9730 if test "X$withval" = "Xno"; then
9733 if test "X$withval" = "X"; then
9735 acl_save_prefix
="$prefix"
9736 prefix
="$acl_final_prefix"
9737 acl_save_exec_prefix
="$exec_prefix"
9738 exec_prefix
="$acl_final_exec_prefix"
9740 eval additional_includedir
=\"$includedir\"
9741 eval additional_libdir
=\"$libdir\"
9743 exec_prefix
="$acl_save_exec_prefix"
9744 prefix
="$acl_save_prefix"
9747 additional_includedir
="$withval/include"
9748 additional_libdir
="$withval/lib"
9759 names_already_handled
=
9760 names_next_round
='iconv '
9761 while test -n "$names_next_round"; do
9762 names_this_round
="$names_next_round"
9764 for name
in $names_this_round; do
9766 for n
in $names_already_handled; do
9767 if test "$n" = "$name"; then
9772 if test -z "$already_handled"; then
9773 names_already_handled
="$names_already_handled $name"
9774 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9775 eval value
=\"\
$HAVE_LIB$uppername\"
9776 if test -n "$value"; then
9777 if test "$value" = yes; then
9778 eval value
=\"\
$LIB$uppername\"
9779 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9780 eval value
=\"\
$LTLIB$uppername\"
9781 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9790 if test $use_additional = yes; then
9791 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9792 found_dir
="$additional_libdir"
9793 found_so
="$additional_libdir/lib$name.$shlibext"
9794 if test -f "$additional_libdir/lib$name.la"; then
9795 found_la
="$additional_libdir/lib$name.la"
9798 if test -f "$additional_libdir/lib$name.$libext"; then
9799 found_dir
="$additional_libdir"
9800 found_a
="$additional_libdir/lib$name.$libext"
9801 if test -f "$additional_libdir/lib$name.la"; then
9802 found_la
="$additional_libdir/lib$name.la"
9807 if test "X$found_dir" = "X"; then
9808 for x
in $LDFLAGS $LTLIBICONV; do
9810 acl_save_prefix
="$prefix"
9811 prefix
="$acl_final_prefix"
9812 acl_save_exec_prefix
="$exec_prefix"
9813 exec_prefix
="$acl_final_exec_prefix"
9815 exec_prefix
="$acl_save_exec_prefix"
9816 prefix
="$acl_save_prefix"
9820 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9821 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9823 found_so
="$dir/lib$name.$shlibext"
9824 if test -f "$dir/lib$name.la"; then
9825 found_la
="$dir/lib$name.la"
9828 if test -f "$dir/lib$name.$libext"; then
9830 found_a
="$dir/lib$name.$libext"
9831 if test -f "$dir/lib$name.la"; then
9832 found_la
="$dir/lib$name.la"
9838 if test "X$found_dir" != "X"; then
9843 if test "X$found_dir" != "X"; then
9844 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9845 if test "X$found_so" != "X"; then
9846 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9847 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9850 for x
in $ltrpathdirs; do
9851 if test "X$x" = "X$found_dir"; then
9856 if test -z "$haveit"; then
9857 ltrpathdirs
="$ltrpathdirs $found_dir"
9859 if test "$hardcode_direct" = yes; then
9860 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9862 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9863 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9865 for x
in $rpathdirs; do
9866 if test "X$x" = "X$found_dir"; then
9871 if test -z "$haveit"; then
9872 rpathdirs
="$rpathdirs $found_dir"
9876 for x
in $LDFLAGS $LIBICONV; do
9878 acl_save_prefix
="$prefix"
9879 prefix
="$acl_final_prefix"
9880 acl_save_exec_prefix
="$exec_prefix"
9881 exec_prefix
="$acl_final_exec_prefix"
9883 exec_prefix
="$acl_save_exec_prefix"
9884 prefix
="$acl_save_prefix"
9886 if test "X$x" = "X-L$found_dir"; then
9891 if test -z "$haveit"; then
9892 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9894 if test "$hardcode_minus_L" != no
; then
9895 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9897 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9903 if test "X$found_a" != "X"; then
9904 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9906 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9909 additional_includedir
=
9910 case "$found_dir" in
9912 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9913 additional_includedir
="$basedir/include"
9916 if test "X$additional_includedir" != "X"; then
9917 if test "X$additional_includedir" != "X/usr/include"; then
9919 if test "X$additional_includedir" = "X/usr/local/include"; then
9920 if test -n "$GCC"; then
9922 linux
*) haveit
=yes;;
9926 if test -z "$haveit"; then
9927 for x
in $CPPFLAGS $INCICONV; do
9929 acl_save_prefix
="$prefix"
9930 prefix
="$acl_final_prefix"
9931 acl_save_exec_prefix
="$exec_prefix"
9932 exec_prefix
="$acl_final_exec_prefix"
9934 exec_prefix
="$acl_save_exec_prefix"
9935 prefix
="$acl_save_prefix"
9937 if test "X$x" = "X-I$additional_includedir"; then
9942 if test -z "$haveit"; then
9943 if test -d "$additional_includedir"; then
9944 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9950 if test -n "$found_la"; then
9951 save_libdir
="$libdir"
9953 */* |
*\\*) .
"$found_la" ;;
9954 *) .
"./$found_la" ;;
9956 libdir
="$save_libdir"
9957 for dep
in $dependency_libs; do
9960 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9961 if test "X$additional_libdir" != "X/usr/lib"; then
9963 if test "X$additional_libdir" = "X/usr/local/lib"; then
9964 if test -n "$GCC"; then
9966 linux
*) haveit
=yes;;
9970 if test -z "$haveit"; then
9972 for x
in $LDFLAGS $LIBICONV; do
9974 acl_save_prefix
="$prefix"
9975 prefix
="$acl_final_prefix"
9976 acl_save_exec_prefix
="$exec_prefix"
9977 exec_prefix
="$acl_final_exec_prefix"
9979 exec_prefix
="$acl_save_exec_prefix"
9980 prefix
="$acl_save_prefix"
9982 if test "X$x" = "X-L$additional_libdir"; then
9987 if test -z "$haveit"; then
9988 if test -d "$additional_libdir"; then
9989 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9993 for x
in $LDFLAGS $LTLIBICONV; do
9995 acl_save_prefix
="$prefix"
9996 prefix
="$acl_final_prefix"
9997 acl_save_exec_prefix
="$exec_prefix"
9998 exec_prefix
="$acl_final_exec_prefix"
10000 exec_prefix
="$acl_save_exec_prefix"
10001 prefix
="$acl_save_prefix"
10003 if test "X$x" = "X-L$additional_libdir"; then
10008 if test -z "$haveit"; then
10009 if test -d "$additional_libdir"; then
10010 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10017 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10018 if test "$enable_rpath" != no
; then
10020 for x
in $rpathdirs; do
10021 if test "X$x" = "X$dir"; then
10026 if test -z "$haveit"; then
10027 rpathdirs
="$rpathdirs $dir"
10030 for x
in $ltrpathdirs; do
10031 if test "X$x" = "X$dir"; then
10036 if test -z "$haveit"; then
10037 ltrpathdirs
="$ltrpathdirs $dir"
10042 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10045 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10048 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10049 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10055 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10056 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10062 if test "X$rpathdirs" != "X"; then
10063 if test -n "$hardcode_libdir_separator"; then
10065 for found_dir
in $rpathdirs; do
10066 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10068 acl_save_libdir
="$libdir"
10070 eval flag
=\"$hardcode_libdir_flag_spec\"
10071 libdir
="$acl_save_libdir"
10072 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10074 for found_dir
in $rpathdirs; do
10075 acl_save_libdir
="$libdir"
10076 libdir
="$found_dir"
10077 eval flag
=\"$hardcode_libdir_flag_spec\"
10078 libdir
="$acl_save_libdir"
10079 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10083 if test "X$ltrpathdirs" != "X"; then
10084 for found_dir
in $ltrpathdirs; do
10085 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10095 am_save_CPPFLAGS
="$CPPFLAGS"
10097 for element
in $INCICONV; do
10099 for x
in $CPPFLAGS; do
10101 acl_save_prefix
="$prefix"
10102 prefix
="$acl_final_prefix"
10103 acl_save_exec_prefix
="$exec_prefix"
10104 exec_prefix
="$acl_final_exec_prefix"
10106 exec_prefix
="$acl_save_exec_prefix"
10107 prefix
="$acl_save_prefix"
10109 if test "X$x" = "X$element"; then
10114 if test -z "$haveit"; then
10115 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10121 $as_echo_n "checking for iconv... " >&6; }
10122 if test "${am_cv_func_iconv+set}" = set; then :
10123 $as_echo_n "(cached) " >&6
10126 am_cv_func_iconv
="no, consider installing GNU libiconv"
10128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130 #include <stdlib.h>
10135 iconv_t cd = iconv_open("","");
10136 iconv(cd,NULL,NULL,NULL,NULL);
10142 if ac_fn_cxx_try_link
"$LINENO"; then :
10143 am_cv_func_iconv
=yes
10145 rm -f core conftest.err conftest.
$ac_objext \
10146 conftest
$ac_exeext conftest.
$ac_ext
10147 if test "$am_cv_func_iconv" != yes; then
10148 am_save_LIBS
="$LIBS"
10149 LIBS
="$LIBS $LIBICONV"
10150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 #include <stdlib.h>
10157 iconv_t cd = iconv_open("","");
10158 iconv(cd,NULL,NULL,NULL,NULL);
10164 if ac_fn_cxx_try_link
"$LINENO"; then :
10165 am_cv_lib_iconv
=yes
10166 am_cv_func_iconv
=yes
10168 rm -f core conftest.err conftest.
$ac_objext \
10169 conftest
$ac_exeext conftest.
$ac_ext
10170 LIBS
="$am_save_LIBS"
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10175 $as_echo "$am_cv_func_iconv" >&6; }
10176 if test "$am_cv_func_iconv" = yes; then
10178 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10181 if test "$am_cv_lib_iconv" = yes; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10183 $as_echo_n "checking how to link with libiconv... " >&6; }
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10185 $as_echo "$LIBICONV" >&6; }
10187 CPPFLAGS
="$am_save_CPPFLAGS"
10194 if test "$am_cv_func_iconv" = yes; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10196 $as_echo_n "checking for iconv declaration... " >&6; }
10197 if test "${am_cv_proto_iconv+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 #include <stdlib.h>
10210 #if defined(__STDC__) || defined(__cplusplus)
10211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10224 if ac_fn_cxx_try_compile
"$LINENO"; then :
10225 am_cv_proto_iconv_arg1
=""
10227 am_cv_proto_iconv_arg1
="const"
10229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10230 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);"
10233 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10235 }$am_cv_proto_iconv" >&5
10237 }$am_cv_proto_iconv" >&6; }
10239 cat >>confdefs.h
<<_ACEOF
10240 #define ICONV_CONST $am_cv_proto_iconv_arg1
10246 ac_cpp
='$CPP $CPPFLAGS'
10247 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10252 # Until we have in-tree GNU iconv:
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10258 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10259 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 #include <locale.h>
10273 if ac_fn_c_try_link
"$LINENO"; then :
10274 am_cv_val_LC_MESSAGES
=yes
10276 am_cv_val_LC_MESSAGES
=no
10278 rm -f core conftest.err conftest.
$ac_objext \
10279 conftest
$ac_exeext conftest.
$ac_ext
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10282 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10283 if test $am_cv_val_LC_MESSAGES = yes; then
10285 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10292 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10293 if test "${am_cv_langinfo_codeset+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 #include <langinfo.h>
10302 char* cs = nl_langinfo(CODESET);
10307 if ac_fn_c_try_link
"$LINENO"; then :
10308 am_cv_langinfo_codeset
=yes
10310 am_cv_langinfo_codeset
=no
10312 rm -f core conftest.err conftest.
$ac_objext \
10313 conftest
$ac_exeext conftest.
$ac_ext
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10317 $as_echo "$am_cv_langinfo_codeset" >&6; }
10318 if test $am_cv_langinfo_codeset = yes; then
10320 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10325 # We will need to find libiberty.h and ansidecl.h
10326 saved_CFLAGS
="$CFLAGS"
10327 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10328 saved_CXXFLAGS
="$CXXFLAGS"
10329 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10330 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10331 strsignal strstr stpcpy strverscmp \
10332 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10333 free
basename getopt
clock getpagesize ffs 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
10335 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10337 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10338 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10339 $as_echo_n "(cached) " >&6
10341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10344 #define $ac_tr_decl 1
10346 #include "ansidecl.h"
10347 #include "system.h"
10353 char *(*pfn) = (char *(*)) $ac_func ;
10359 if ac_fn_c_try_compile
"$LINENO"; then :
10360 eval "gcc_cv_have_decl_$ac_func=yes"
10362 eval "gcc_cv_have_decl_$ac_func=no"
10364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10367 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10370 #define $ac_tr_decl 1
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10376 #define $ac_tr_decl 0
10384 for ac_func
in getrlimit setrlimit getrusage
10386 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10388 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10389 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10390 $as_echo_n "(cached) " >&6
10392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10395 #define $ac_tr_decl 1
10397 #include "ansidecl.h"
10398 #include "system.h"
10399 #ifdef HAVE_SYS_RESOURCE_H
10400 #include <sys/resource.h>
10408 char *(*pfn) = (char *(*)) $ac_func ;
10414 if ac_fn_c_try_compile
"$LINENO"; then :
10415 eval "gcc_cv_have_decl_$ac_func=yes"
10417 eval "gcc_cv_have_decl_$ac_func=no"
10419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10422 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10425 #define $ac_tr_decl 1
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10431 #define $ac_tr_decl 0
10439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10442 #include "ansidecl.h"
10443 #include "system.h"
10444 #ifdef HAVE_SYS_RESOURCE_H
10445 #include <sys/resource.h>
10456 if ac_fn_c_try_compile
"$LINENO"; then :
10460 $as_echo "#define rlim_t long" >>confdefs.h
10463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10465 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10466 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10467 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10468 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10469 for ac_func
in ldgetname
10471 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10473 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10474 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10475 $as_echo_n "(cached) " >&6
10477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10480 #define $ac_tr_decl 1
10482 #include "ansidecl.h"
10483 #include "system.h"
10484 #ifdef HAVE_LDFCN_H
10495 char *(*pfn) = (char *(*)) $ac_func ;
10501 if ac_fn_c_try_compile
"$LINENO"; then :
10502 eval "gcc_cv_have_decl_$ac_func=yes"
10504 eval "gcc_cv_have_decl_$ac_func=no"
10506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10511 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10512 #define $ac_tr_decl 1
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10518 #define $ac_tr_decl 0
10526 for ac_func
in times
10528 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10530 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10531 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10532 $as_echo_n "(cached) " >&6
10534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10537 #define $ac_tr_decl 1
10539 #include "ansidecl.h"
10540 #include "system.h"
10541 #ifdef HAVE_SYS_TIMES_H
10542 #include <sys/times.h>
10550 char *(*pfn) = (char *(*)) $ac_func ;
10556 if ac_fn_c_try_compile
"$LINENO"; then :
10557 eval "gcc_cv_have_decl_$ac_func=yes"
10559 eval "gcc_cv_have_decl_$ac_func=no"
10561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10564 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10566 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10567 #define $ac_tr_decl 1
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10573 #define $ac_tr_decl 0
10581 for ac_func
in sigaltstack
10583 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10586 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10587 $as_echo_n "(cached) " >&6
10589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10592 #define $ac_tr_decl 1
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #include <signal.h>
10603 char *(*pfn) = (char *(*)) $ac_func ;
10609 if ac_fn_c_try_compile
"$LINENO"; then :
10610 eval "gcc_cv_have_decl_$ac_func=yes"
10612 eval "gcc_cv_have_decl_$ac_func=no"
10614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10617 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10620 #define $ac_tr_decl 1
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10626 #define $ac_tr_decl 0
10634 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10637 ac_cpp
='$CXXCPP $CPPFLAGS'
10638 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10642 for ac_func
in madvise
10644 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10647 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10648 $as_echo_n "(cached) " >&6
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 #define $ac_tr_decl 1
10655 #include "ansidecl.h"
10656 #include "system.h"
10663 char *(*pfn) = (char *(*)) $ac_func ;
10669 if ac_fn_cxx_try_compile
"$LINENO"; then :
10670 eval "gcc_cv_have_decl_$ac_func=yes"
10672 eval "gcc_cv_have_decl_$ac_func=no"
10674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10677 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10680 #define $ac_tr_decl 1
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10686 #define $ac_tr_decl 0
10694 ac_cpp
='$CPP $CPPFLAGS'
10695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10700 # More time-related stuff.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10702 $as_echo_n "checking for struct tms... " >&6; }
10703 if test "${ac_cv_struct_tms+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 #include "ansidecl.h"
10711 #include "system.h"
10712 #ifdef HAVE_SYS_TIMES_H
10713 #include <sys/times.h>
10724 if ac_fn_c_try_compile
"$LINENO"; then :
10725 ac_cv_struct_tms
=yes
10727 ac_cv_struct_tms
=no
10729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10732 $as_echo "$ac_cv_struct_tms" >&6; }
10733 if test $ac_cv_struct_tms = yes; then
10735 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10739 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10740 # revisit after autoconf 2.50.
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10742 $as_echo_n "checking for clock_t... " >&6; }
10743 if test "${gcc_cv_type_clock_t+set}" = set; then :
10744 $as_echo_n "(cached) " >&6
10747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 #include "ansidecl.h"
10751 #include "system.h"
10761 if ac_fn_c_try_compile
"$LINENO"; then :
10762 gcc_cv_type_clock_t
=yes
10764 gcc_cv_type_clock_t
=no
10766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10769 $as_echo "$gcc_cv_type_clock_t" >&6; }
10770 if test $gcc_cv_type_clock_t = yes; then
10772 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10776 # Check if F_SETLKW is supported by fcntl.
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10778 $as_echo_n "checking for F_SETLKW... " >&6; }
10779 if test "${ac_cv_f_setlkw+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10796 return fcntl (1, F_SETLKW, &fl);
10801 if ac_fn_c_try_compile
"$LINENO"; then :
10806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10809 $as_echo "$ac_cv_f_setlkw" >&6; }
10810 if test $ac_cv_f_setlkw = yes; then
10812 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10816 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10817 CFLAGS
="$saved_CFLAGS"
10818 CXXFLAGS
="$saved_CXXFLAGS"
10820 # mkdir takes a single argument on some systems.
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10822 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10823 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 #include <sys/types.h>
10830 #ifdef HAVE_SYS_STAT_H
10831 # include <sys/stat.h>
10833 #ifdef HAVE_UNISTD_H
10834 # include <unistd.h>
10836 #ifdef HAVE_DIRECT_H
10837 # include <direct.h>
10847 if ac_fn_c_try_compile
"$LINENO"; then :
10848 gcc_cv_mkdir_takes_one_arg
=no
10850 gcc_cv_mkdir_takes_one_arg
=yes
10852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10855 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10856 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10858 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10869 # With Setjmp/Longjmp based exception handling.
10870 # Check whether --enable-sjlj-exceptions was given.
10871 if test "${enable_sjlj_exceptions+set}" = set; then :
10872 enableval
=$enable_sjlj_exceptions; case $target in
10874 if test $enableval != yes; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10876 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10881 force_sjlj_exceptions
=yes
10885 force_sjlj_exceptions
=yes
10889 force_sjlj_exceptions
=no
10894 if test $force_sjlj_exceptions = yes; then
10895 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10897 cat >>confdefs.h
<<_ACEOF
10898 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10903 # --------------------------------------------------------
10904 # Build, host, and target specific configuration fragments
10905 # --------------------------------------------------------
10907 # Collect build-machine-specific information.
10908 .
${srcdir}/config.build
10910 # Collect host-machine-specific information.
10911 .
${srcdir}/config.
host
10915 # Collect target-machine-specific information.
10916 .
${srcdir}/config.gcc
10918 extra_objs
="${host_extra_objs} ${extra_objs}"
10919 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10921 # Default the target-machine variables that were not explicitly set.
10922 if test x
"$tm_file" = x
10923 then tm_file
=$cpu_type/$cpu_type.h
; fi
10925 if test x
"$extra_headers" = x
10926 then extra_headers
=; fi
10928 if test x
$md_file = x
10929 then md_file
=$cpu_type/$cpu_type.md
; fi
10931 if test x
$out_file = x
10932 then out_file
=$cpu_type/$cpu_type.c
; fi
10934 if test x
"$tmake_file" = x
10935 then tmake_file
=$cpu_type/t-
$cpu_type
10938 # Support --enable-initfini-array.
10939 if test x
$enable_initfini_array != xno
; then
10940 tm_file
="${tm_file} initfini-array.h"
10943 if test x
"$dwarf2" = xyes
10944 then tm_file
="$tm_file tm-dwarf2.h"
10947 # Say what files are being used for the output code and MD file.
10948 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10949 echo "Using \`$srcdir/config/$md_file' as machine description file."
10951 # If any of the xm_file variables contain nonexistent files, warn
10952 # about them and drop them.
10955 for x
in $build_xm_file; do
10956 if test -f $srcdir/config
/$x
10958 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10959 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10962 build_xm_file
="$bx"
10965 for x
in $host_xm_file; do
10966 if test -f $srcdir/config
/$x
10968 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10969 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10975 for x
in $xm_file; do
10976 if test -f $srcdir/config
/$x
10978 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10979 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10985 for f
in $tm_file; do
10988 if test $count = ax
; then
10989 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10991 echo "Using the following target machine macro files:"
10992 for f
in $tm_file; do
10993 echo " $srcdir/config/$f"
10997 if test x
$need_64bit_hwint = xyes
; then
10999 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11003 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11005 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11009 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11011 cat >>confdefs.h
<<_ACEOF
11012 #define HAVE_GNU_LD $gnu_ld_bool
11016 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11018 cat >>confdefs.h
<<_ACEOF
11019 #define HAVE_GNU_AS $gnu_as_bool
11024 for f
in $host_xm_file; do
11027 if test $count = a
; then
11029 elif test $count = ax
; then
11030 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11032 echo "Using the following host machine macro files:"
11033 for f
in $host_xm_file; do
11034 echo " $srcdir/config/$f"
11037 echo "Using ${out_host_hook_obj} for host machine hooks."
11039 if test "$host_xm_file" != "$build_xm_file"; then
11041 for f
in $build_xm_file; do
11044 if test $count = a
; then
11046 elif test $count = ax
; then
11047 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11049 echo "Using the following build machine macro files:"
11050 for f
in $build_xm_file; do
11051 echo " $srcdir/config/$f"
11056 if test -n "$configured_native_system_header_dir"; then
11057 native_system_header_dir
=$configured_native_system_header_dir
11059 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11063 powerpc
*-*-darwin*)
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11065 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11066 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 #include <sys/cdefs.h>
11073 #include <sys/signal.h>
11074 #include <ucontext.h>
11075 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11078 if ac_fn_c_try_compile
"$LINENO"; then :
11079 gcc_cv_mcontext_underscores
=no
11081 gcc_cv_mcontext_underscores
=yes
11083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11086 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11087 if test $gcc_cv_mcontext_underscores = yes; then
11089 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11099 # Check if a valid thread package
11100 case ${enable_threads} in
11103 target_thread_file
='single'
11107 target_thread_file
='single'
11109 aix | dce | lynx | mipssde | posix | rtems | \
11110 single | tpf | vxworks | win32
)
11111 target_thread_file
=${enable_threads}
11114 echo "${enable_threads} is an unknown thread package" 1>&2
11119 if test x
${thread_file} = x
; then
11120 # No thread file set by target-specific clauses in config.gcc,
11121 # so use file chosen by default logic above
11122 thread_file
=${target_thread_file}
11130 if test x
$enable___cxa_atexit = xyes || \
11131 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11132 if test x
$host = x
$target; then
11134 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11135 # keyed to flag_use_cxa_atexit
11140 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11141 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11144 echo "__cxa_atexit can't be enabled on this target"
11150 # We can't check for __cxa_atexit when building a cross, so assume
11154 if test x
$use_cxa_atexit = xyes
; then
11156 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11161 # Look for a file containing extra machine modes.
11162 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11163 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11166 cat >>confdefs.h
<<_ACEOF
11167 #define EXTRA_MODES_FILE "config/$extra_modes"
11172 # Convert extra_options into a form suitable for Makefile use.
11175 for f
in $extra_options; do
11176 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11177 all_opt_files
="$all_opt_files $srcdir/config/$f"
11181 # auto-host.h is the file containing items generated by autoconf and is
11182 # the first file included by config.h.
11183 # If host=build, it is correct to have bconfig include auto-host.h
11184 # as well. If host!=build, we are in error and need to do more
11185 # work to find out the build config parameters.
11186 if test x
$host = x
$build
11188 build_auto
=auto-host.h
11190 # We create a subdir, then run autoconf in the subdir.
11191 # To prevent recursion we set host and build for the new
11192 # invocation of configure to the build for this invocation
11199 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11200 *) realsrcdir
=..
/${srcdir};;
11202 saved_CFLAGS
="${CFLAGS}"
11203 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11204 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11205 ${realsrcdir}/configure \
11206 --enable-languages=${enable_languages-all} \
11207 --target=$target_alias --host=$build_alias --build=$build_alias
11208 CFLAGS
="${saved_CFLAGS}"
11210 # We just finished tests for the build machine, so rename
11211 # the file auto-build.h in the gcc directory.
11212 mv auto-host.h ..
/auto-build.h
11215 build_auto
=auto-build.h
11219 tm_file
="${tm_file} defaults.h"
11220 tm_p_file
="${tm_p_file} tm-preds.h"
11221 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11222 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11223 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11224 # put this back in temporarily.
11225 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11231 # Compile in configure arguments.
11232 if test -f configargs.h
; then
11233 # Being re-configured.
11234 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11235 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11237 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11240 # Double all backslashes and backslash all quotes to turn
11241 # gcc_config_arguments into a C string.
11242 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11243 $gcc_config_arguments
11245 gcc_config_arguments_str
=`cat conftest.out`
11248 cat > configargs.h
<<EOF
11249 /* Generated automatically. */
11250 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11251 static const char thread_model[] = "$thread_file";
11253 static const struct {
11254 const char *name, *value;
11255 } configure_default_options[] = $configure_default_options;
11258 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11259 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11260 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11261 if test -f $srcdir/REVISION
; then
11262 gcc_REVISION
=`cat $srcdir/REVISION`
11266 cat > plugin-version.h
<<EOF
11267 #include "configargs.h"
11269 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11270 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11271 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11272 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11274 static char basever[] = "$gcc_BASEVER";
11275 static char datestamp[] = "$gcc_DATESTAMP";
11276 static char devphase[] = "$gcc_DEVPHASE";
11277 static char revision[] = "$gcc_REVISION";
11279 /* FIXME plugins: We should make the version information more precise.
11280 One way to do is to add a checksum. */
11282 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11283 devphase, revision,
11284 configuration_arguments};
11287 # Internationalization
11288 # If we haven't got the data from the intl directory,
11289 # assume NLS is disabled.
11298 if test -f ..
/intl
/config.intl
; then
11299 . ..
/intl
/config.intl
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11302 $as_echo_n "checking whether NLS is requested... " >&6; }
11303 if test x
"$USE_NLS" != xyes
; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308 $as_echo "yes" >&6; }
11310 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11314 $as_echo_n "checking for catalogs to be installed... " >&6; }
11315 # Look for .po and .gmo files in the source directory.
11318 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11319 # If there aren't any .gmo files the shell will give us the
11320 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11322 case "$cat" in *\
**)
11325 # The quadruple backslash is collapsed to a double backslash
11326 # by the backticks, then collapsed again by the double quotes,
11327 # leaving us with one backslash in the sed expression (right
11328 # before the dot that mustn't act as a wildcard).
11329 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11330 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11331 # The user is allowed to set LINGUAS to a list of languages to
11332 # install catalogs for. If it's empty that means "all of them."
11333 if test "x$LINGUAS" = x
; then
11334 CATALOGS
="$CATALOGS $cat"
11335 XLINGUAS
="$XLINGUAS $lang"
11337 case "$LINGUAS" in *$lang*)
11338 CATALOGS
="$CATALOGS $cat"
11339 XLINGUAS
="$XLINGUAS $lang"
11344 LINGUAS
="$XLINGUAS"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11346 $as_echo "$LINGUAS" >&6; }
11359 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11360 # -liconv on the link line twice.
11361 case "$LIBINTL" in *$LIBICONV*)
11365 # Check whether --enable-secureplt was given.
11366 if test "${enable_secureplt+set}" = set; then :
11367 enableval
=$enable_secureplt;
11371 # Check whether --enable-leading-mingw64-underscores was given.
11372 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11373 enableval
=$enable_leading_mingw64_underscores;
11376 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11378 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11382 # Check whether --enable-cld was given.
11383 if test "${enable_cld+set}" = set; then :
11384 enableval
=$enable_cld;
11390 # Check whether --enable-frame-pointer was given.
11391 if test "${enable_frame_pointer+set}" = set; then :
11392 enableval
=$enable_frame_pointer;
11396 linux
* | darwin
[8912]*)
11397 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11399 enable_frame_pointer
=no
11402 enable_frame_pointer
=yes
11409 # Windows32 Registry support for specifying GCC installation paths.
11410 # Check whether --enable-win32-registry was given.
11411 if test "${enable_win32_registry+set}" = set; then :
11412 enableval
=$enable_win32_registry;
11417 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11418 if test "x$enable_win32_registry" != xno
; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11420 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11421 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11424 ac_func_search_save_LIBS
=$LIBS
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11434 char RegOpenKeyExA ();
11438 return RegOpenKeyExA ();
11443 for ac_lib
in '' advapi32
; do
11444 if test -z "$ac_lib"; then
11445 ac_res
="none required"
11448 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11450 if ac_fn_c_try_link
"$LINENO"; then :
11451 ac_cv_search_RegOpenKeyExA
=$ac_res
11453 rm -f core conftest.err conftest.
$ac_objext \
11455 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11459 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11462 ac_cv_search_RegOpenKeyExA
=no
11464 rm conftest.
$ac_ext
11465 LIBS
=$ac_func_search_save_LIBS
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11468 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11469 ac_res
=$ac_cv_search_RegOpenKeyExA
11470 if test "$ac_res" != no
; then :
11471 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11474 enable_win32_registry
=no
11479 if test "x$enable_win32_registry" != xno
; then
11481 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11484 if test "x$enable_win32_registry" != xyes \
11485 && test "x$enable_win32_registry" != x
; then
11487 cat >>confdefs.h
<<_ACEOF
11488 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11496 # Get an absolute path to the GCC top-level source directory
11497 holddir
=`${PWDCMD-pwd}`
11499 topdir
=`${PWDCMD-pwd}`
11502 # Conditionalize the makefile for this host machine.
11504 for f
in ${host_xmake_file}
11506 if test -f ${srcdir}/config
/$f
11508 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11512 # Conditionalize the makefile for this target machine.
11514 for f
in ${tmake_file}
11516 if test -f ${srcdir}/config
/$f
11518 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11521 tmake_file
="${tmake_file_}"
11523 out_object_file
=`basename $out_file .c`.o
11524 common_out_object_file
=`basename $common_out_file .c`.o
11526 tm_file_list
="options.h"
11527 tm_include_list
="options.h insn-constants.h"
11528 for f
in $tm_file; do
11531 f
=`echo $f | sed 's/^..//'`
11532 tm_file_list
="${tm_file_list} $f"
11533 tm_include_list
="${tm_include_list} $f"
11536 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11537 tm_include_list
="${tm_include_list} $f"
11540 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11541 tm_include_list
="${tm_include_list} config/$f"
11548 for f
in $tm_p_file; do
11551 tm_p_file_list
="${tm_p_file_list} $f"
11552 tm_p_include_list
="${tm_p_include_list} $f"
11555 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11556 tm_p_include_list
="${tm_p_include_list} config/$f"
11562 for f
in $xm_file; do
11565 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11566 xm_include_list
="${xm_include_list} $f"
11569 xm_file_list
="${xm_file_list} $f"
11570 xm_include_list
="${xm_include_list} $f"
11573 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11574 xm_include_list
="${xm_include_list} config/$f"
11580 host_xm_include_list
=
11581 for f
in $host_xm_file; do
11584 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11585 host_xm_include_list
="${host_xm_include_list} $f"
11588 host_xm_file_list
="${host_xm_file_list} $f"
11589 host_xm_include_list
="${host_xm_include_list} $f"
11592 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11593 host_xm_include_list
="${host_xm_include_list} config/$f"
11598 build_xm_file_list
=
11599 for f
in $build_xm_file; do
11602 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11603 build_xm_include_list
="${build_xm_include_list} $f"
11605 auto-build.h | auto-host.h
)
11606 build_xm_file_list
="${build_xm_file_list} $f"
11607 build_xm_include_list
="${build_xm_include_list} $f"
11610 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11611 build_xm_include_list
="${build_xm_include_list} config/$f"
11616 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11617 # cross-compiler which does not use the native headers and libraries.
11618 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11621 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11623 if test "x$with_build_sysroot" != x
; then
11624 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11626 # This value is used, even on a native system, because
11627 # CROSS_SYSTEM_HEADER_DIR is just
11628 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11629 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11632 if test x
$host != x
$target
11634 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11636 SYSTEM_HEADER_DIR
=$build_system_header_dir
11637 case "$host","$target" in
11638 # Darwin crosses can use the host system's libraries and headers,
11639 # because of the fat library support. Of course, it must be the
11640 # same version of Darwin on both sides. Allow the user to
11641 # just say --target=foo-darwin without a version number to mean
11642 # "the version on this system".
11643 *-*-darwin*,*-*-darwin*)
11644 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11645 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11646 if test $hostos = $targetos -o $targetos = darwin
; then
11648 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11653 i?
86-*-*,x86_64-
*-* \
11654 | powerpc
*-*-*,powerpc64
*-*-*)
11655 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11660 if test "x$with_headers" = x
; then
11667 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11668 SYSTEM_HEADER_DIR
=$build_system_header_dir
11671 # If this is a cross-compiler that does not
11672 # have its own set of headers then define
11675 # If this is using newlib, without having the headers available now,
11676 # then define inhibit_libc in LIBGCC2_CFLAGS.
11677 # This prevents libgcc2 from containing any code which requires libc
11679 : ${inhibit_libc=false}
11680 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11681 test x
$with_newlib = xyes
; } &&
11682 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11687 # When building gcc with a cross-compiler, we need to adjust things so
11688 # that the generator programs are still built with the native compiler.
11689 # Also, we cannot run fixincludes.
11691 # These are the normal (build=host) settings:
11692 CC_FOR_BUILD
='$(CC)'
11693 CXX_FOR_BUILD
='$(CXX)'
11694 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11695 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11696 BUILD_LDFLAGS
='$(LDFLAGS)'
11697 STMP_FIXINC
=stmp-fixinc
11699 # And these apply if build != host, or we are generating coverage data
11700 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11702 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11703 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11706 # Expand extra_headers to include complete path.
11707 # This substitutes for lots of t-* files.
11708 extra_headers_list
=
11709 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11710 for file in ${extra_headers} ; do
11711 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11714 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11715 if test x
"$use_gcc_tgmath" = xyes
11716 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11719 # Define collect2 in Makefile.
11720 case $host_can_use_collect2 in
11722 *) collect2
='collect2$(exeext)' ;;
11726 # Add a definition of USE_COLLECT2 if system wants one.
11727 case $use_collect2 in
11728 no
) use_collect2
= ;;
11731 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11732 xm_defines
="${xm_defines} USE_COLLECT2"
11733 case $host_can_use_collect2 in
11735 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11742 cat >>confdefs.h
<<_ACEOF
11743 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11747 # ---------------------------
11748 # Assembler & linker features
11749 # ---------------------------
11751 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11752 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11753 # However when ld-new is first executed from the build tree, libtool will
11754 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11755 # to the build tree. While doing this we need to use the previous-stage
11756 # linker, or we have an infinite loop. The presence of a shell script as
11757 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11758 # the gcc/collect-ld script. So we need to know how libtool works, or
11759 # exec-tool will fail.
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11770 macro_version
='2.2.7a'
11771 macro_revision
='1.3134'
11785 ltmain
="$ac_aux_dir/ltmain.sh"
11787 # Backslashify metacharacters that are still active within
11788 # double-quoted strings.
11789 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11791 # Same as above, but do not quote variable references.
11792 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11794 # Sed substitution to delay expansion of an escaped shell variable in a
11795 # double_quote_subst'ed string.
11796 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11798 # Sed substitution to delay expansion of an escaped single quote.
11799 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11801 # Sed substitution to avoid accidental globbing in evaled expressions
11802 no_glob_subst
='s/\*/\\\*/g'
11804 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11809 $as_echo_n "checking how to print strings... " >&6; }
11810 # Test print first, because it will be a builtin if present.
11811 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11812 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11814 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11817 # Use this function as a fallback that always works.
11818 func_fallback_echo ()
11820 eval 'cat <<_LTECHO_EOF
11824 ECHO='func_fallback_echo
'
11827 # func_echo_all arg...
11828 # Invoke $ECHO with all args, space-separated.
11835 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11836 $as_echo "printf" >&6; } ;;
11837 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11838 $as_echo "print -r" >&6; } ;;
11839 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11840 $as_echo "cat" >&6; } ;;
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11857 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11858 if test "${ac_cv_path_SED+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11861 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11862 for ac_i in 1 2 3 4 5 6 7; do
11863 ac_script="$ac_script$as_nl$ac_script"
11865 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11866 { ac_script=; unset ac_script;}
11867 if test -z "$SED"; then
11868 ac_path_SED_found=false
11869 # Loop through the user's path and
test for each of PROGNAME-LIST
11870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11871 for as_dir
in $PATH
11874 test -z "$as_dir" && as_dir
=.
11875 for ac_prog
in sed gsed
; do
11876 for ac_exec_ext
in '' $ac_executable_extensions; do
11877 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11878 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11879 # Check for GNU ac_path_SED and select it if it is found.
11880 # Check for GNU $ac_path_SED
11881 case `"$ac_path_SED" --version 2>&1` in
11883 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11886 $as_echo_n 0123456789 >"conftest.in"
11889 cat "conftest.in" "conftest.in" >"conftest.tmp"
11890 mv "conftest.tmp" "conftest.in"
11891 cp "conftest.in" "conftest.nl"
11892 $as_echo '' >> "conftest.nl"
11893 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11894 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11895 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11896 if test $ac_count -gt ${ac_path_SED_max-0}; then
11897 # Best one so far, save it but keep looking for a better one
11898 ac_cv_path_SED
="$ac_path_SED"
11899 ac_path_SED_max
=$ac_count
11901 # 10*(2^10) chars as input seems more than enough
11902 test $ac_count -gt 10 && break
11904 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11907 $ac_path_SED_found && break 3
11912 if test -z "$ac_cv_path_SED"; then
11913 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11916 ac_cv_path_SED
=$SED
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11921 $as_echo "$ac_cv_path_SED" >&6; }
11922 SED
="$ac_cv_path_SED"
11925 test -z "$SED" && SED
=sed
11926 Xsed
="$SED -e 1s/^X//"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11939 $as_echo_n "checking for fgrep... " >&6; }
11940 if test "${ac_cv_path_FGREP+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11943 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11944 then ac_cv_path_FGREP
="$GREP -F"
11946 if test -z "$FGREP"; then
11947 ac_path_FGREP_found
=false
11948 # Loop through the user's path and test for each of PROGNAME-LIST
11949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11950 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11953 test -z "$as_dir" && as_dir
=.
11954 for ac_prog
in fgrep
; do
11955 for ac_exec_ext
in '' $ac_executable_extensions; do
11956 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11957 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11958 # Check for GNU ac_path_FGREP and select it if it is found.
11959 # Check for GNU $ac_path_FGREP
11960 case `"$ac_path_FGREP" --version 2>&1` in
11962 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11965 $as_echo_n 0123456789 >"conftest.in"
11968 cat "conftest.in" "conftest.in" >"conftest.tmp"
11969 mv "conftest.tmp" "conftest.in"
11970 cp "conftest.in" "conftest.nl"
11971 $as_echo 'FGREP' >> "conftest.nl"
11972 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11973 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11974 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11975 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11976 # Best one so far, save it but keep looking for a better one
11977 ac_cv_path_FGREP
="$ac_path_FGREP"
11978 ac_path_FGREP_max
=$ac_count
11980 # 10*(2^10) chars as input seems more than enough
11981 test $ac_count -gt 10 && break
11983 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11986 $ac_path_FGREP_found && break 3
11991 if test -z "$ac_cv_path_FGREP"; then
11992 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11995 ac_cv_path_FGREP
=$FGREP
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12001 $as_echo "$ac_cv_path_FGREP" >&6; }
12002 FGREP
="$ac_cv_path_FGREP"
12005 test -z "$GREP" && GREP
=grep
12025 # Check whether --with-gnu-ld was given.
12026 if test "${with_gnu_ld+set}" = set; then :
12027 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12033 if test "$GCC" = yes; then
12034 # Check if gcc -print-prog-name=ld gives a path.
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12036 $as_echo_n "checking for ld used by $CC... " >&6; }
12039 # gcc leaves a trailing carriage return which upsets mingw
12040 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12042 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12045 # Accept absolute paths.
12047 re_direlt
='/[^/][^/]*/\.\./'
12048 # Canonicalize the pathname of ld
12049 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12050 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12051 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12053 test -z "$LD" && LD
="$ac_prog"
12056 # If it fails, then pretend we aren't using GCC.
12060 # If it is relative, then search for the first ld in PATH.
12061 with_gnu_ld
=unknown
12064 elif test "$with_gnu_ld" = yes; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12066 $as_echo_n "checking for GNU ld... " >&6; }
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12069 $as_echo_n "checking for non-GNU ld... " >&6; }
12071 if test "${lt_cv_path_LD+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12074 if test -z "$LD"; then
12075 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12076 for ac_dir
in $PATH; do
12078 test -z "$ac_dir" && ac_dir
=.
12079 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12080 lt_cv_path_LD
="$ac_dir/$ac_prog"
12081 # Check to see if the program is GNU ld. I'd rather use --version,
12082 # but apparently some variants of GNU ld only accept -v.
12083 # Break only if it was the GNU/non-GNU ld that we prefer.
12084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12085 *GNU
* |
*'with BFD'*)
12086 test "$with_gnu_ld" != no
&& break
12089 test "$with_gnu_ld" != yes && break
12096 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12100 LD
="$lt_cv_path_LD"
12101 if test -n "$LD"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12103 $as_echo "$LD" >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12108 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12111 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
12114 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12115 case `$LD -v 2>&1 </dev/null` in
12116 *GNU
* |
*'with BFD'*)
12117 lt_cv_prog_gnu_ld
=yes
12120 lt_cv_prog_gnu_ld
=no
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12125 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12126 with_gnu_ld
=$lt_cv_prog_gnu_ld
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12137 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12138 if test "${lt_cv_path_NM+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12141 if test -n "$NM"; then
12142 # Let the user override the test.
12143 lt_cv_path_NM
="$NM"
12145 lt_nm_to_check
="${ac_tool_prefix}nm"
12146 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12147 lt_nm_to_check
="$lt_nm_to_check nm"
12149 for lt_tmp_nm
in $lt_nm_to_check; do
12150 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12151 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12153 test -z "$ac_dir" && ac_dir
=.
12154 tmp_nm
="$ac_dir/$lt_tmp_nm"
12155 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12156 # Check to see if the nm accepts a BSD-compat flag.
12157 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12158 # nm: unknown option "B" ignored
12159 # Tru64's nm complains that /dev/null is an invalid object file
12160 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12161 */dev
/null
* |
*'Invalid file or object type'*)
12162 lt_cv_path_NM
="$tmp_nm -B"
12166 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12168 lt_cv_path_NM
="$tmp_nm -p"
12172 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12173 continue # so that we can try to find one that supports BSD flags
12182 : ${lt_cv_path_NM=no}
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12186 $as_echo "$lt_cv_path_NM" >&6; }
12187 if test "$lt_cv_path_NM" != "no"; then
12188 NM
="$lt_cv_path_NM"
12190 # Didn't find any BSD compatible name lister, look for dumpbin.
12191 if test -n "$DUMPBIN"; then :
12192 # Let the user override the test.
12194 if test -n "$ac_tool_prefix"; then
12195 for ac_prog
in dumpbin
"link -dump"
12197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12198 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200 $as_echo_n "checking for $ac_word... " >&6; }
12201 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12204 if test -n "$DUMPBIN"; then
12205 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12208 for as_dir
in $PATH
12211 test -z "$as_dir" && as_dir
=.
12212 for ac_exec_ext
in '' $ac_executable_extensions; do
12213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12214 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 DUMPBIN
=$ac_cv_prog_DUMPBIN
12225 if test -n "$DUMPBIN"; then
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12227 $as_echo "$DUMPBIN" >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230 $as_echo "no" >&6; }
12234 test -n "$DUMPBIN" && break
12237 if test -z "$DUMPBIN"; then
12238 ac_ct_DUMPBIN
=$DUMPBIN
12239 for ac_prog
in dumpbin
"link -dump"
12241 # Extract the first word of "$ac_prog", so it can be a program name with args.
12242 set dummy
$ac_prog; ac_word
=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12246 $as_echo_n "(cached) " >&6
12248 if test -n "$ac_ct_DUMPBIN"; then
12249 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12252 for as_dir
in $PATH
12255 test -z "$as_dir" && as_dir
=.
12256 for ac_exec_ext
in '' $ac_executable_extensions; do
12257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12258 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12269 if test -n "$ac_ct_DUMPBIN"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12271 $as_echo "$ac_ct_DUMPBIN" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12278 test -n "$ac_ct_DUMPBIN" && break
12281 if test "x$ac_ct_DUMPBIN" = 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 ;;
12290 DUMPBIN
=$ac_ct_DUMPBIN
12294 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12296 DUMPBIN
="$DUMPBIN -symbols"
12304 if test "$DUMPBIN" != ":"; then
12308 test -z "$NM" && NM
=nm
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12316 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12317 if test "${lt_cv_nm_interface+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12320 lt_cv_nm_interface
="BSD nm"
12321 echo "int some_variable = 0;" > conftest.
$ac_ext
12322 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12323 (eval "$ac_compile" 2>conftest.err
)
12324 cat conftest.err
>&5
12325 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12326 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12327 cat conftest.err
>&5
12328 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12329 cat conftest.out
>&5
12330 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12331 lt_cv_nm_interface
="MS dumpbin"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12336 $as_echo "$lt_cv_nm_interface" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12339 $as_echo_n "checking whether ln -s works... " >&6; }
12341 if test "$LN_S" = "ln -s"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; }
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12346 $as_echo "no, using $LN_S" >&6; }
12349 # find the maximum length of command line arguments
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12351 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12352 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12360 # On DJGPP, this test can blow up pretty badly due to problems in libc
12361 # (any single argument exceeding 2000 bytes causes a buffer overrun
12362 # during glob expansion). Even if it were fixed, the result of this
12363 # check would be larger than it should be.
12364 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12368 # Under GNU Hurd, this test is not required because there is
12369 # no limit to the length of command line arguments.
12370 # Libtool will interpret -1 as no limit whatsoever
12371 lt_cv_sys_max_cmd_len
=-1;
12374 cygwin
* | mingw
* | cegcc
*)
12375 # On Win9x/ME, this test blows up -- it succeeds, but takes
12376 # about 5 minutes as the teststring grows exponentially.
12377 # Worse, since 9x/ME are not pre-emptively multitasking,
12378 # you end up with a "frozen" computer, even though with patience
12379 # the test eventually succeeds (with a max line length of 256k).
12380 # Instead, let's just punt: use the minimum linelength reported by
12381 # all of the supported platforms: 8192 (on NT/2K/XP).
12382 lt_cv_sys_max_cmd_len
=8192;
12386 # On MiNT this can take a long time and run out of memory.
12387 lt_cv_sys_max_cmd_len
=8192;
12391 # On AmigaOS with pdksh, this test takes hours, literally.
12392 # So we just punt and use a minimum line length of 8192.
12393 lt_cv_sys_max_cmd_len
=8192;
12396 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12397 # This has been around since 386BSD, at least. Likely further.
12398 if test -x /sbin
/sysctl
; then
12399 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12400 elif test -x /usr
/sbin
/sysctl
; then
12401 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12403 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12405 # And add a safety zone
12406 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12407 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12411 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12412 lt_cv_sys_max_cmd_len
=196608
12416 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12417 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12418 # nice to cause kernel panics so lets avoid the loop below.
12419 # First set a reasonable default.
12420 lt_cv_sys_max_cmd_len
=16384
12422 if test -x /sbin
/sysconfig
; then
12423 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12424 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12429 lt_cv_sys_max_cmd_len
=102400
12431 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12432 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12433 if test -n "$kargmax"; then
12434 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12436 lt_cv_sys_max_cmd_len
=32768
12440 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12441 if test -n "$lt_cv_sys_max_cmd_len"; then
12442 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12443 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12445 # Make teststring a little bigger before we do anything with it.
12446 # a 1K string should be a reasonable start.
12447 for i
in 1 2 3 4 5 6 7 8 ; do
12448 teststring
=$teststring$teststring
12450 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12451 # If test is not a shell built-in, we'll probably end up computing a
12452 # maximum length that is only half of the actual maximum length, but
12454 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12455 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12456 test $i != 17 # 1/2 MB should be enough
12459 teststring
=$teststring$teststring
12461 # Only check the string length outside the loop.
12462 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12464 # Add a significant safety factor because C++ compilers can tack on
12465 # massive amounts of additional arguments before passing them to the
12466 # linker. It appears as though 1/2 is a usable value.
12467 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12474 if test -n $lt_cv_sys_max_cmd_len ; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12476 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12479 $as_echo "none" >&6; }
12481 max_cmd_len
=$lt_cv_sys_max_cmd_len
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12493 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12494 # Try some XSI features
12496 ( _lt_dummy
="a/b/c"
12497 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12499 && eval 'test $(( 1 + 1 )) -eq 2 \
12500 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12503 $as_echo "$xsi_shell" >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12507 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12509 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12511 && lt_shell_append=yes
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12513 $as_echo "$lt_shell_append" >&6; }
12516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12526 # test EBCDIC or ASCII
12527 case `echo X|tr X '\101'` in
12528 A) # ASCII based system
12529 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12530 lt_SP2NL='tr \040 \012'
12531 lt_NL2SP='tr \015\012 \040\040'
12533 *) # EBCDIC based system
12534 lt_SP2NL='tr \100 \n'
12535 lt_NL2SP='tr \r\n \100\100'
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12548 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12549 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12550 $as_echo_n "(cached
) " >&6
12552 lt_cv_ld_reload_flag='-r'
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12555 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12556 reload_flag=$lt_cv_ld_reload_flag
12557 case $reload_flag in
12559 *) reload_flag=" $reload_flag" ;;
12561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12564 if test "$GCC" = yes; then
12565 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12580 if test -n "$ac_tool_prefix"; then
12581 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12582 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12584 $as_echo_n "checking
for $ac_word...
" >&6; }
12585 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12586 $as_echo_n "(cached
) " >&6
12588 if test -n "$OBJDUMP"; then
12589 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12608 OBJDUMP=$ac_cv_prog_OBJDUMP
12609 if test -n "$OBJDUMP"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12611 $as_echo "$OBJDUMP" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12614 $as_echo "no
" >&6; }
12619 if test -z "$ac_cv_prog_OBJDUMP"; then
12620 ac_ct_OBJDUMP=$OBJDUMP
12621 # Extract the first word of "objdump
", so it can be a program name with args.
12622 set dummy objdump; ac_word=$2
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12624 $as_echo_n "checking
for $ac_word...
" >&6; }
12625 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12626 $as_echo_n "(cached
) " >&6
12628 if test -n "$ac_ct_OBJDUMP"; then
12629 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 for as_dir in $PATH
12635 test -z "$as_dir" && as_dir=.
12636 for ac_exec_ext in '' $ac_executable_extensions; do
12637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12638 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12639 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12648 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12649 if test -n "$ac_ct_OBJDUMP"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12651 $as_echo "$ac_ct_OBJDUMP" >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12654 $as_echo "no
" >&6; }
12657 if test "x
$ac_ct_OBJDUMP" = x; then
12660 case $cross_compiling:$ac_tool_warned in
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12663 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12664 ac_tool_warned=yes ;;
12666 OBJDUMP=$ac_ct_OBJDUMP
12669 OBJDUMP="$ac_cv_prog_OBJDUMP"
12672 test -z "$OBJDUMP" && OBJDUMP=objdump
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12683 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12684 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12685 $as_echo_n "(cached
) " >&6
12687 lt_cv_file_magic_cmd='$MAGIC_CMD'
12688 lt_cv_file_magic_test_file=
12689 lt_cv_deplibs_check_method='unknown'
12690 # Need to set the preceding variable on all platforms that support
12691 # interlibrary dependencies.
12692 # 'none' -- dependencies not supported.
12693 # `unknown' -- same as none, but documents that we really don't know.
12694 # 'pass_all' -- all dependencies passed with no checks.
12695 # 'test_compile' -- check by making test program.
12696 # 'file_magic [[regex]]' -- check by looking for files in library path
12697 # which responds to the $file_magic_cmd with a given extended regex.
12698 # If you have `file' or equivalent on your system and you're not sure
12699 # whether `pass_all' will *always* work, you probably want this one.
12703 lt_cv_deplibs_check_method=pass_all
12707 lt_cv_deplibs_check_method=pass_all
12711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12712 lt_cv_file_magic_cmd='/usr/bin/file -L'
12713 lt_cv_file_magic_test_file=/shlib/libc.so
12717 # func_win32_libid is a shell function defined in ltmain.sh
12718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12719 lt_cv_file_magic_cmd='func_win32_libid'
12723 # Base MSYS/MinGW do not provide the 'file' command needed by
12724 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12725 # unless we find 'file', for example because we are cross-compiling.
12726 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12727 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12729 lt_cv_file_magic_cmd='func_win32_libid'
12731 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12732 lt_cv_file_magic_cmd='$OBJDUMP -f'
12737 # use the weaker test based on 'objdump'. See mingw*.
12738 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12739 lt_cv_file_magic_cmd='$OBJDUMP -f'
12742 darwin* | rhapsody*)
12743 lt_cv_deplibs_check_method=pass_all
12746 freebsd* | dragonfly*)
12747 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12750 # Not sure whether the presence of OpenBSD here was a mistake.
12751 # Let's accept both of them until this is cleared up.
12752 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12753 lt_cv_file_magic_cmd=/usr/bin/file
12754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12758 lt_cv_deplibs_check_method=pass_all
12763 lt_cv_deplibs_check_method=pass_all
12767 lt_cv_deplibs_check_method=pass_all
12770 hpux10.20* | hpux11*)
12771 lt_cv_file_magic_cmd=/usr/bin/file
12774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12775 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12778 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]'
12779 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12783 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12789 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12793 irix5* | irix6* | nonstopux*)
12795 *-32|*"-32 ") libmagic=32-bit;;
12796 *-n32|*"-n32 ") libmagic=N32;;
12797 *-64|*"-64 ") libmagic=64-bit;;
12798 *) libmagic=never-match;;
12800 lt_cv_deplibs_check_method=pass_all
12803 # This must be Linux ELF.
12804 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12805 lt_cv_deplibs_check_method=pass_all
12809 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12818 lt_cv_file_magic_cmd=/usr/bin/file
12819 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12823 lt_cv_deplibs_check_method=pass_all
12827 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12834 osf3* | osf4* | osf5*)
12835 lt_cv_deplibs_check_method=pass_all
12839 lt_cv_deplibs_check_method=pass_all
12843 lt_cv_deplibs_check_method=pass_all
12846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12847 lt_cv_deplibs_check_method=pass_all
12851 case $host_vendor in
12853 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]'
12854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12857 lt_cv_deplibs_check_method=pass_all
12860 lt_cv_file_magic_cmd='/bin/file'
12861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12864 lt_cv_file_magic_cmd='/bin/file'
12865 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12866 lt_cv_file_magic_test_file=/lib/libc.so
12869 lt_cv_deplibs_check_method=pass_all
12872 lt_cv_deplibs_check_method=pass_all
12878 lt_cv_deplibs_check_method=pass_all
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12884 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12885 file_magic_cmd=$lt_cv_file_magic_cmd
12886 deplibs_check_method=$lt_cv_deplibs_check_method
12887 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12900 if test -n "$ac_tool_prefix"; then
12901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12902 set dummy ${ac_tool_prefix}ar; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12904 $as_echo_n "checking
for $ac_word...
" >&6; }
12905 if test "${ac_cv_prog_AR+set}" = set; then :
12906 $as_echo_n "(cached
) " >&6
12908 if test -n "$AR"; then
12909 ac_cv_prog_AR="$AR" # Let the user override the test.
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918 ac_cv_prog_AR="${ac_tool_prefix}ar"
12919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12929 if test -n "$AR"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12931 $as_echo "$AR" >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12934 $as_echo "no
" >&6; }
12939 if test -z "$ac_cv_prog_AR"; then
12941 # Extract the first word of "ar", so it can be a program name with args.
12942 set dummy ar; ac_word=$2
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12944 $as_echo_n "checking
for $ac_word...
" >&6; }
12945 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12946 $as_echo_n "(cached
) " >&6
12948 if test -n "$ac_ct_AR"; then
12949 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $PATH
12955 test -z "$as_dir" && as_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12958 ac_cv_prog_ac_ct_AR="ar"
12959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12968 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12969 if test -n "$ac_ct_AR"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12971 $as_echo "$ac_ct_AR" >&6; }
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12974 $as_echo "no
" >&6; }
12977 if test "x
$ac_ct_AR" = x; then
12980 case $cross_compiling:$ac_tool_warned in
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12983 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12984 ac_tool_warned=yes ;;
12989 AR="$ac_cv_prog_AR"
12992 test -z "$AR" && AR=ar
12993 test -z "$AR_FLAGS" && AR_FLAGS=cru
13005 if test -n "$ac_tool_prefix"; then
13006 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13007 set dummy ${ac_tool_prefix}strip; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13009 $as_echo_n "checking
for $ac_word...
" >&6; }
13010 if test "${ac_cv_prog_STRIP+set}" = set; then :
13011 $as_echo_n "(cached
) " >&6
13013 if test -n "$STRIP"; then
13014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13033 STRIP=$ac_cv_prog_STRIP
13034 if test -n "$STRIP"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13036 $as_echo "$STRIP" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13039 $as_echo "no
" >&6; }
13044 if test -z "$ac_cv_prog_STRIP"; then
13046 # Extract the first word of "strip
", so it can be a program name with args.
13047 set dummy strip; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13049 $as_echo_n "checking
for $ac_word...
" >&6; }
13050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13051 $as_echo_n "(cached
) " >&6
13053 if test -n "$ac_ct_STRIP"; then
13054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063 ac_cv_prog_ac_ct_STRIP="strip
"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13074 if test -n "$ac_ct_STRIP"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13076 $as_echo "$ac_ct_STRIP" >&6; }
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13079 $as_echo "no
" >&6; }
13082 if test "x
$ac_ct_STRIP" = x; then
13085 case $cross_compiling:$ac_tool_warned in
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13088 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13089 ac_tool_warned=yes ;;
13094 STRIP="$ac_cv_prog_STRIP"
13097 test -z "$STRIP" && STRIP=:
13104 if test -n "$ac_tool_prefix"; then
13105 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13108 $as_echo_n "checking
for $ac_word...
" >&6; }
13109 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13110 $as_echo_n "(cached
) " >&6
13112 if test -n "$RANLIB"; then
13113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13123 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13132 RANLIB=$ac_cv_prog_RANLIB
13133 if test -n "$RANLIB"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13135 $as_echo "$RANLIB" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13138 $as_echo "no
" >&6; }
13143 if test -z "$ac_cv_prog_RANLIB"; then
13144 ac_ct_RANLIB=$RANLIB
13145 # Extract the first word of "ranlib
", so it can be a program name with args.
13146 set dummy ranlib; ac_word=$2
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13148 $as_echo_n "checking
for $ac_word...
" >&6; }
13149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13150 $as_echo_n "(cached
) " >&6
13152 if test -n "$ac_ct_RANLIB"; then
13153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156 for as_dir in $PATH
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13162 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13173 if test -n "$ac_ct_RANLIB"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13175 $as_echo "$ac_ct_RANLIB" >&6; }
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13178 $as_echo "no
" >&6; }
13181 if test "x
$ac_ct_RANLIB" = x; then
13184 case $cross_compiling:$ac_tool_warned in
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13187 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13188 ac_tool_warned=yes ;;
13190 RANLIB=$ac_ct_RANLIB
13193 RANLIB="$ac_cv_prog_RANLIB"
13196 test -z "$RANLIB" && RANLIB=:
13203 # Determine commands to create old-style static archives.
13204 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13205 old_postinstall_cmds='chmod 644 $oldlib'
13206 old_postuninstall_cmds=
13208 if test -n "$RANLIB"; then
13211 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13214 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13217 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13222 lock_old_archive_extraction=yes ;;
13224 lock_old_archive_extraction=no ;;
13265 # If no C compiler was specified, use CC.
13268 # If no C compiler flags were specified, use CFLAGS.
13269 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13271 # Allow CC to be a program name with arguments.
13275 # Check for command to grab the raw symbol name followed by C symbol from nm.
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13277 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13278 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13279 $as_echo_n "(cached
) " >&6
13282 # These are sane defaults that work on at least a few old systems.
13283 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13285 # Character class describing NM global symbol codes.
13286 symcode='[BCDEGRST]'
13288 # Regexp to match symbols that can be accessed directly from C.
13289 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13291 # Define system-specific variables.
13296 cygwin* | mingw* | pw32* | cegcc*)
13297 symcode='[ABCDGISTW]'
13300 if test "$host_cpu" = ia64; then
13301 symcode='[ABCDEGRST]'
13304 irix* | nonstopux*)
13305 symcode='[BCDEGRST]'
13308 symcode='[BCDEGQRST]'
13319 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13327 # If we're using GNU nm, then use its standard symbol codes.
13328 case `$NM -V 2>&1` in
13329 *GNU* | *'with BFD'*)
13330 symcode='[ABCDGIRSTW]' ;;
13333 # Transform an extracted symbol line into a proper C declaration.
13334 # Some systems (esp. on ia64) link data and code symbols differently,
13335 # so use this general approach.
13336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13338 # Transform an extracted symbol line into symbol name and symbol address
13339 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13340 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'"
13342 # Handle CRLF in mingw tool chain
13346 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13350 # Try without a prefix underscore, then with it.
13351 for ac_symprfx in "" "_
"; do
13353 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13354 symxfrm="\\1 $ac_symprfx\\2 \\2"
13356 # Write the raw and C identifiers.
13357 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13358 # Fake it for dumpbin and say T for any non-static function
13359 # and D for any global variable.
13360 # Also find C++ and __fastcall symbols from MSVC++,
13361 # which start with @ or ?.
13362 lt_cv_sys_global_symbol_pipe="$AWK '"\
13363 " {last_section=section; section=\$ 3};"\
13364 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13365 " \$ 0!~/External *\|/{next};"\
13366 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13367 " {if(hide[section]) next};"\
13368 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13369 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13370 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13371 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13372 " ' prfx
=^
$ac_symprfx"
13374 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13377 # Check to see that the pipe works correctly.
13381 cat > conftest.$ac_ext <<_LT_EOF
13386 void nm_test_func(void);
13387 void nm_test_func(void){}
13391 int main(){nm_test_var='a';nm_test_func();return(0);}
13394 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13395 (eval $ac_compile) 2>&5
13397 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13398 test $ac_status = 0; }; then
13399 # Now try to grab the symbols.
13401 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13402 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13404 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13405 test $ac_status = 0; } && test -s "$nlist"; then
13406 # Try sorting and uniquifying the output.
13407 if sort "$nlist" | uniq > "$nlist"T; then
13408 mv -f "$nlist"T "$nlist"
13413 # Make sure that we snagged all the symbols we need.
13414 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13415 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13416 cat <<_LT_EOF > conftest.$ac_ext
13422 # Now generate the symbol file.
13423 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13425 cat <<_LT_EOF >> conftest.$ac_ext
13427 /* The mapping between symbol names and symbols. */
13432 lt__PROGRAM__LTX_preloaded_symbols[] =
13434 { "@PROGRAM@
", (void *) 0 },
13436 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13437 cat <<\_LT_EOF >> conftest.$ac_ext
13441 /* This works around a problem in FreeBSD linker */
13442 #ifdef FREEBSD_WORKAROUND
13443 static const void *lt_preloaded_setup() {
13444 return lt__PROGRAM__LTX_preloaded_symbols;
13452 # Now try linking the two files.
13453 mv conftest.$ac_objext conftstm.$ac_objext
13454 lt_save_LIBS="$LIBS"
13455 lt_save_CFLAGS="$CFLAGS"
13456 LIBS="conftstm.
$ac_objext"
13457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13458 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13459 (eval $ac_link) 2>&5
13461 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13462 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13465 LIBS="$lt_save_LIBS"
13466 CFLAGS="$lt_save_CFLAGS"
13468 echo "cannot
find nm_test_func
in $nlist" >&5
13471 echo "cannot
find nm_test_var
in $nlist" >&5
13474 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13477 echo "$progname: failed program was
:" >&5
13478 cat conftest.$ac_ext >&5
13480 rm -rf conftest* conftst*
13482 # Do not use the global_symbol_pipe unless it works.
13483 if test "$pipe_works" = yes; then
13486 lt_cv_sys_global_symbol_pipe=
13492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13493 lt_cv_sys_global_symbol_to_cdecl=
13495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13497 $as_echo "failed
" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13500 $as_echo "ok
" >&6; }
13524 # Check whether --enable-libtool-lock was given.
13525 if test "${enable_libtool_lock+set}" = set; then :
13526 enableval=$enable_libtool_lock;
13529 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13531 # Some flags need to be propagated to the compiler or linker for good
13535 # Find out which ABI we are using.
13536 echo 'int i;' > conftest.$ac_ext
13537 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13538 (eval $ac_compile) 2>&5
13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 case `/usr/bin/file conftest.$ac_objext` in
13544 HPUX_IA64_MODE="32"
13547 HPUX_IA64_MODE="64"
13554 # Find out which ABI we are using.
13555 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13556 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13557 (eval $ac_compile) 2>&5
13559 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13560 test $ac_status = 0; }; then
13561 if test "$lt_cv_prog_gnu_ld" = yes; then
13562 case `/usr/bin/file conftest.$ac_objext` in
13564 LD="${LD-ld} -melf32bsmip"
13567 LD="${LD-ld} -melf32bmipn32"
13570 LD="${LD-ld} -melf64bmip"
13574 case `/usr/bin/file conftest.$ac_objext` in
13590 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13591 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13592 # Find out which ABI we are using.
13593 echo 'int i;' > conftest.$ac_ext
13594 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13595 (eval $ac_compile) 2>&5
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13598 test $ac_status = 0; }; then
13599 case `/usr/bin/file conftest.o` in
13602 x86_64-*kfreebsd*-gnu)
13603 LD="${LD-ld} -m elf_i386_fbsd
"
13606 case `/usr/bin/file conftest.o` in
13608 LD="${LD-ld} -m elf32_x86_64
"
13611 LD="${LD-ld} -m elf_i386
"
13615 ppc64-*linux*|powerpc64-*linux*)
13616 LD="${LD-ld} -m elf32ppclinux
"
13619 LD="${LD-ld} -m elf_s390
"
13622 LD="${LD-ld} -m elf32_sparc
"
13628 x86_64-*kfreebsd*-gnu)
13629 LD="${LD-ld} -m elf_x86_64_fbsd
"
13632 LD="${LD-ld} -m elf_x86_64
"
13634 ppc*-*linux*|powerpc*-*linux*)
13635 LD="${LD-ld} -m elf64ppc
"
13637 s390*-*linux*|s390*-*tpf*)
13638 LD="${LD-ld} -m elf64_s390
"
13641 LD="${LD-ld} -m elf64_sparc
"
13651 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13652 SAVE_CFLAGS="$CFLAGS"
13653 CFLAGS="$CFLAGS -belf"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13655 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13656 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13657 $as_echo_n "(cached
) " >&6
13660 ac_cpp='$CPP $CPPFLAGS'
13661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 lt_cv_cc_needs_belf=yes
13679 lt_cv_cc_needs_belf=no
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13684 ac_cpp='$CPP $CPPFLAGS'
13685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13691 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13692 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13693 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13694 CFLAGS="$SAVE_CFLAGS"
13698 # Find out which ABI we are using.
13699 echo 'int i;' > conftest.$ac_ext
13700 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13701 (eval $ac_compile) 2>&5
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13704 test $ac_status = 0; }; then
13705 case `/usr/bin/file conftest.o` in
13707 case $lt_cv_prog_gnu_ld in
13708 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13710 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13722 need_locks="$enable_libtool_lock"
13726 rhapsody* | darwin*)
13727 if test -n "$ac_tool_prefix"; then
13728 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13729 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13731 $as_echo_n "checking
for $ac_word...
" >&6; }
13732 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13733 $as_echo_n "(cached
) " >&6
13735 if test -n "$DSYMUTIL"; then
13736 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13745 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13755 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13756 if test -n "$DSYMUTIL"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13758 $as_echo "$DSYMUTIL" >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13761 $as_echo "no
" >&6; }
13766 if test -z "$ac_cv_prog_DSYMUTIL"; then
13767 ac_ct_DSYMUTIL=$DSYMUTIL
13768 # Extract the first word of "dsymutil
", so it can be a program name with args.
13769 set dummy dsymutil; ac_word=$2
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13771 $as_echo_n "checking
for $ac_word...
" >&6; }
13772 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13773 $as_echo_n "(cached
) " >&6
13775 if test -n "$ac_ct_DSYMUTIL"; then
13776 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in $PATH
13782 test -z "$as_dir" && as_dir=.
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13785 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13795 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13796 if test -n "$ac_ct_DSYMUTIL"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13798 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13801 $as_echo "no
" >&6; }
13804 if test "x
$ac_ct_DSYMUTIL" = x; then
13807 case $cross_compiling:$ac_tool_warned in
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13810 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13811 ac_tool_warned=yes ;;
13813 DSYMUTIL=$ac_ct_DSYMUTIL
13816 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13819 if test -n "$ac_tool_prefix"; then
13820 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13821 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13823 $as_echo_n "checking
for $ac_word...
" >&6; }
13824 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13825 $as_echo_n "(cached
) " >&6
13827 if test -n "$NMEDIT"; then
13828 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13837 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13847 NMEDIT=$ac_cv_prog_NMEDIT
13848 if test -n "$NMEDIT"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13850 $as_echo "$NMEDIT" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13853 $as_echo "no
" >&6; }
13858 if test -z "$ac_cv_prog_NMEDIT"; then
13859 ac_ct_NMEDIT=$NMEDIT
13860 # Extract the first word of "nmedit
", so it can be a program name with args.
13861 set dummy nmedit; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13863 $as_echo_n "checking
for $ac_word...
" >&6; }
13864 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13865 $as_echo_n "(cached
) " >&6
13867 if test -n "$ac_ct_NMEDIT"; then
13868 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13877 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13878 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13887 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13888 if test -n "$ac_ct_NMEDIT"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13890 $as_echo "$ac_ct_NMEDIT" >&6; }
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13893 $as_echo "no
" >&6; }
13896 if test "x
$ac_ct_NMEDIT" = x; then
13899 case $cross_compiling:$ac_tool_warned in
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13902 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13903 ac_tool_warned=yes ;;
13905 NMEDIT=$ac_ct_NMEDIT
13908 NMEDIT="$ac_cv_prog_NMEDIT"
13911 if test -n "$ac_tool_prefix"; then
13912 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13913 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13915 $as_echo_n "checking
for $ac_word...
" >&6; }
13916 if test "${ac_cv_prog_LIPO+set}" = set; then :
13917 $as_echo_n "(cached
) " >&6
13919 if test -n "$LIPO"; then
13920 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13929 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13939 LIPO=$ac_cv_prog_LIPO
13940 if test -n "$LIPO"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13942 $as_echo "$LIPO" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13945 $as_echo "no
" >&6; }
13950 if test -z "$ac_cv_prog_LIPO"; then
13952 # Extract the first word of "lipo
", so it can be a program name with args.
13953 set dummy lipo; ac_word=$2
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13955 $as_echo_n "checking
for $ac_word...
" >&6; }
13956 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13957 $as_echo_n "(cached
) " >&6
13959 if test -n "$ac_ct_LIPO"; then
13960 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13966 test -z "$as_dir" && as_dir=.
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13969 ac_cv_prog_ac_ct_LIPO="lipo
"
13970 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13979 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13980 if test -n "$ac_ct_LIPO"; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13982 $as_echo "$ac_ct_LIPO" >&6; }
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13985 $as_echo "no
" >&6; }
13988 if test "x
$ac_ct_LIPO" = x; then
13991 case $cross_compiling:$ac_tool_warned in
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13994 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13995 ac_tool_warned=yes ;;
14000 LIPO="$ac_cv_prog_LIPO"
14003 if test -n "$ac_tool_prefix"; then
14004 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14005 set dummy ${ac_tool_prefix}otool; ac_word=$2
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14007 $as_echo_n "checking
for $ac_word...
" >&6; }
14008 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14009 $as_echo_n "(cached
) " >&6
14011 if test -n "$OTOOL"; then
14012 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14015 for as_dir in $PATH
14018 test -z "$as_dir" && as_dir=.
14019 for ac_exec_ext in '' $ac_executable_extensions; do
14020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14021 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14022 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14031 OTOOL=$ac_cv_prog_OTOOL
14032 if test -n "$OTOOL"; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14034 $as_echo "$OTOOL" >&6; }
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14037 $as_echo "no
" >&6; }
14042 if test -z "$ac_cv_prog_OTOOL"; then
14044 # Extract the first word of "otool
", so it can be a program name with args.
14045 set dummy otool; ac_word=$2
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14047 $as_echo_n "checking
for $ac_word...
" >&6; }
14048 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14049 $as_echo_n "(cached
) " >&6
14051 if test -n "$ac_ct_OTOOL"; then
14052 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14055 for as_dir in $PATH
14058 test -z "$as_dir" && as_dir=.
14059 for ac_exec_ext in '' $ac_executable_extensions; do
14060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14061 ac_cv_prog_ac_ct_OTOOL="otool
"
14062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14071 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14072 if test -n "$ac_ct_OTOOL"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14074 $as_echo "$ac_ct_OTOOL" >&6; }
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14077 $as_echo "no
" >&6; }
14080 if test "x
$ac_ct_OTOOL" = x; then
14083 case $cross_compiling:$ac_tool_warned in
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14086 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14087 ac_tool_warned=yes ;;
14092 OTOOL="$ac_cv_prog_OTOOL"
14095 if test -n "$ac_tool_prefix"; then
14096 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14097 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14099 $as_echo_n "checking
for $ac_word...
" >&6; }
14100 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14101 $as_echo_n "(cached
) " >&6
14103 if test -n "$OTOOL64"; then
14104 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14113 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14123 OTOOL64=$ac_cv_prog_OTOOL64
14124 if test -n "$OTOOL64"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14126 $as_echo "$OTOOL64" >&6; }
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14129 $as_echo "no
" >&6; }
14134 if test -z "$ac_cv_prog_OTOOL64"; then
14135 ac_ct_OTOOL64=$OTOOL64
14136 # Extract the first word of "otool64
", so it can be a program name with args.
14137 set dummy otool64; ac_word=$2
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14139 $as_echo_n "checking
for $ac_word...
" >&6; }
14140 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14141 $as_echo_n "(cached
) " >&6
14143 if test -n "$ac_ct_OTOOL64"; then
14144 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14150 test -z "$as_dir" && as_dir=.
14151 for ac_exec_ext in '' $ac_executable_extensions; do
14152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14153 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14163 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14164 if test -n "$ac_ct_OTOOL64"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14166 $as_echo "$ac_ct_OTOOL64" >&6; }
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14169 $as_echo "no
" >&6; }
14172 if test "x
$ac_ct_OTOOL64" = x; then
14175 case $cross_compiling:$ac_tool_warned in
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14178 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14179 ac_tool_warned=yes ;;
14181 OTOOL64=$ac_ct_OTOOL64
14184 OTOOL64="$ac_cv_prog_OTOOL64"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14214 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14215 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14216 $as_echo_n "(cached
) " >&6
14218 lt_cv_apple_cc_single_mod=no
14219 if test -z "${LT_MULTI_MODULE}"; then
14220 # By default we will add the -single_module flag. You can override
14221 # by either setting the environment variable LT_MULTI_MODULE
14222 # non-empty at configure time, or by adding -multi_module to the
14224 rm -rf libconftest.dylib*
14225 echo "int foo
(void
){return 1;}" > conftest.c
14226 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14227 -dynamiclib -Wl,-single_module conftest.c
" >&5
14228 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14229 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14231 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14232 lt_cv_apple_cc_single_mod=yes
14234 cat conftest.err >&5
14236 rm -rf libconftest.dylib*
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14241 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14243 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14244 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14245 $as_echo_n "(cached
) " >&6
14247 lt_cv_ld_exported_symbols_list=no
14248 save_LDFLAGS=$LDFLAGS
14249 echo "_main
" > conftest.sym
14250 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14262 if ac_fn_c_try_link "$LINENO"; then :
14263 lt_cv_ld_exported_symbols_list=yes
14265 lt_cv_ld_exported_symbols_list=no
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 LDFLAGS="$save_LDFLAGS"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14273 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14275 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14276 if test "${lt_cv_ld_force_load+set}" = set; then :
14277 $as_echo_n "(cached
) " >&6
14279 lt_cv_ld_force_load=no
14280 cat > conftest.c << _LT_EOF
14281 int forced_loaded() { return 2;}
14283 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14284 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14285 echo "$AR cru libconftest.a conftest.o
" >&5
14286 $AR cru libconftest.a conftest.o 2>&5
14287 cat > conftest.c << _LT_EOF
14288 int main() { return 0;}
14290 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14291 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14293 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14294 lt_cv_ld_force_load=yes
14296 cat conftest.err >&5
14298 rm -f conftest.err libconftest.a conftest conftest.c
14299 rm -rf conftest.dSYM
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14303 $as_echo "$lt_cv_ld_force_load" >&6; }
14305 rhapsody* | darwin1.[012])
14306 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14309 darwin*) # darwin 5.x on
14310 # if running on 10.5 or later, the deployment target defaults
14311 # to the OS version, if on x86, and 10.4, the deployment
14312 # target defaults to 10.4. Don't you love it?
14313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14314 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14315 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14317 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14319 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14323 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14324 _lt_dar_single_mod='$single_module'
14326 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14327 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14331 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14332 _lt_dsymutil='~$DSYMUTIL $lib || :'
14339 for ac_header in dlfcn.h
14341 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14342 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14343 cat >>confdefs.h <<_ACEOF
14344 #define HAVE_DLFCN_H 1
14361 enable_win32_dll=no
14364 # Check whether --enable-shared was given.
14365 if test "${enable_shared+set}" = set; then :
14366 enableval=$enable_shared; p=${PACKAGE-default}
14368 yes) enable_shared=yes ;;
14369 no) enable_shared=no ;;
14372 # Look at the argument we got. We use all the common list separators.
14373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14374 for pkg in $enableval; do
14376 if test "X
$pkg" = "X
$p"; then
14395 # Check whether --enable-static was given.
14396 if test "${enable_static+set}" = set; then :
14397 enableval=$enable_static; p=${PACKAGE-default}
14399 yes) enable_static=yes ;;
14400 no) enable_static=no ;;
14403 # Look at the argument we got. We use all the common list separators.
14404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14405 for pkg in $enableval; do
14407 if test "X
$pkg" = "X
$p"; then
14427 # Check whether --with-pic was given.
14428 if test "${with_pic+set}" = set; then :
14429 withval=$with_pic; pic_mode="$withval"
14435 test -z "$pic_mode" && pic_mode=default
14443 # Check whether --enable-fast-install was given.
14444 if test "${enable_fast_install+set}" = set; then :
14445 enableval=$enable_fast_install; p=${PACKAGE-default}
14447 yes) enable_fast_install=yes ;;
14448 no) enable_fast_install=no ;;
14450 enable_fast_install=no
14451 # Look at the argument we got. We use all the common list separators.
14452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14453 for pkg in $enableval; do
14455 if test "X
$pkg" = "X
$p"; then
14456 enable_fast_install=yes
14463 enable_fast_install=yes
14476 # This can be used to rebuild libtool when needed
14477 LIBTOOL_DEPS="$ltmain"
14479 # Always use our own libtool.
14480 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14507 test -z "$LN_S" && LN_S="ln -s"
14522 if test -n "${ZSH_VERSION+set}" ; then
14523 setopt NO_GLOB_SUBST
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14527 $as_echo_n "checking
for objdir...
" >&6; }
14528 if test "${lt_cv_objdir+set}" = set; then :
14529 $as_echo_n "(cached
) " >&6
14531 rm -f .libs 2>/dev/null
14532 mkdir .libs 2>/dev/null
14533 if test -d .libs; then
14536 # MS-DOS does not allow filenames that begin with a dot.
14539 rmdir .libs 2>/dev/null
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14542 $as_echo "$lt_cv_objdir" >&6; }
14543 objdir=$lt_cv_objdir
14549 cat >>confdefs.h <<_ACEOF
14550 #define LT_OBJDIR "$lt_cv_objdir/"
14558 # AIX sometimes has problems with the GCC collect2 program. For some
14559 # reason, if we set the COLLECT_NAMES environment variable, the problems
14560 # vanish in a puff of smoke.
14561 if test "X
${COLLECT_NAMES+set}" != Xset; then
14563 export COLLECT_NAMES
14568 # Global variables:
14570 can_build_shared=yes
14572 # All known linkers require a `.a' archive for static linking (except MSVC,
14573 # which needs '.lib').
14576 with_gnu_ld="$lt_cv_prog_gnu_ld"
14579 old_CFLAGS="$CFLAGS"
14581 # Set sane defaults for various variables
14582 test -z "$CC" && CC=cc
14583 test -z "$LTCC" && LTCC=$CC
14584 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14585 test -z "$LD" && LD=ld
14586 test -z "$ac_objext" && ac_objext=o
14588 for cc_temp in $compiler""; do
14590 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14591 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14596 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14599 # Only perform the check for file, if the check method requires it
14600 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14601 case $deplibs_check_method in
14603 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14605 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14606 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14607 $as_echo_n "(cached
) " >&6
14611 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14614 lt_save_MAGIC_CMD="$MAGIC_CMD"
14615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14616 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14617 for ac_dir in $ac_dummy; do
14619 test -z "$ac_dir" && ac_dir=.
14620 if test -f $ac_dir/${ac_tool_prefix}file; then
14621 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14622 if test -n "$file_magic_test_file"; then
14623 case $deplibs_check_method in
14625 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14626 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14627 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14628 $EGREP "$file_magic_regex" > /dev/null; then
14633 *** Warning: the command libtool uses to detect shared libraries,
14634 *** $file_magic_cmd, produces output that libtool cannot recognize.
14635 *** The result is that libtool may fail to recognize shared libraries
14636 *** as such. This will affect the creation of libtool libraries that
14637 *** depend on shared libraries, but programs linked with such libtool
14638 *** libraries will work regardless of this problem. Nevertheless, you
14639 *** may want to report the problem to your system manager and/or to
14640 *** bug-libtool@gnu.org
14650 MAGIC_CMD="$lt_save_MAGIC_CMD"
14655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14656 if test -n "$MAGIC_CMD"; then
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14658 $as_echo "$MAGIC_CMD" >&6; }
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14661 $as_echo "no
" >&6; }
14668 if test -z "$lt_cv_path_MAGIC_CMD"; then
14669 if test -n "$ac_tool_prefix"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14671 $as_echo_n "checking
for file...
" >&6; }
14672 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14673 $as_echo_n "(cached
) " >&6
14677 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14680 lt_save_MAGIC_CMD="$MAGIC_CMD"
14681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14682 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14683 for ac_dir in $ac_dummy; do
14685 test -z "$ac_dir" && ac_dir=.
14686 if test -f $ac_dir/file; then
14687 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14688 if test -n "$file_magic_test_file"; then
14689 case $deplibs_check_method in
14691 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14692 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14693 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14694 $EGREP "$file_magic_regex" > /dev/null; then
14699 *** Warning: the command libtool uses to detect shared libraries,
14700 *** $file_magic_cmd, produces output that libtool cannot recognize.
14701 *** The result is that libtool may fail to recognize shared libraries
14702 *** as such. This will affect the creation of libtool libraries that
14703 *** depend on shared libraries, but programs linked with such libtool
14704 *** libraries will work regardless of this problem. Nevertheless, you
14705 *** may want to report the problem to your system manager and/or to
14706 *** bug-libtool@gnu.org
14716 MAGIC_CMD="$lt_save_MAGIC_CMD"
14721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14722 if test -n "$MAGIC_CMD"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14724 $as_echo "$MAGIC_CMD" >&6; }
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14727 $as_echo "no
" >&6; }
14740 # Use C for the default configuration in the libtool script
14744 ac_cpp='$CPP $CPPFLAGS'
14745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14750 # Source file extension for C test sources.
14753 # Object file extension for compiled C test sources.
14757 # Code to be used in simple compile tests
14758 lt_simple_compile_test_code="int some_variable
= 0;"
14760 # Code to be used in simple link tests
14761 lt_simple_link_test_code='int main(){return(0);}'
14769 # If no C compiler was specified, use CC.
14772 # If no C compiler flags were specified, use CFLAGS.
14773 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14775 # Allow CC to be a program name with arguments.
14778 # Save the default compiler, since it gets overwritten when the other
14779 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14780 compiler_DEFAULT=$CC
14782 # save warnings/boilerplate of simple test code
14783 ac_outfile=conftest.$ac_objext
14784 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14785 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14786 _lt_compiler_boilerplate=`cat conftest.err`
14789 ac_outfile=conftest.$ac_objext
14790 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14791 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14792 _lt_linker_boilerplate=`cat conftest.err`
14797 ## There is no encapsulation within the following macros, do not change
14798 ## the running order or otherwise move them around unless you know exactly
14799 ## what you are doing...
14800 if test -n "$compiler"; then
14802 lt_prog_compiler_no_builtin_flag=
14804 if test "$GCC" = yes; then
14805 case $cc_basename in
14807 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14809 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14813 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14814 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14815 $as_echo_n "(cached
) " >&6
14817 lt_cv_prog_compiler_rtti_exceptions=no
14818 ac_outfile=conftest.$ac_objext
14819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14820 lt_compiler_flag="-fno-rtti -fno-exceptions"
14821 # Insert the option either (1) after the last *FLAGS variable, or
14822 # (2) before a word containing "conftest.
", or (3) at the end.
14823 # Note that $ac_compile itself does not contain backslashes and begins
14824 # with a dollar sign (not a hyphen), so the echo should work correctly.
14825 # The option is referenced via a variable to avoid confusing sed.
14826 lt_compile=`echo "$ac_compile" | $SED \
14827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14829 -e 's:$: $lt_compiler_flag:'`
14830 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14831 (eval "$lt_compile" 2>conftest.err)
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14835 if (exit $ac_status) && test -s "$ac_outfile"; then
14836 # The compiler can only warn and ignore the option if not recognized
14837 # So say no if there are warnings other than the usual output.
14838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14841 lt_cv_prog_compiler_rtti_exceptions=yes
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14848 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14850 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14851 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14863 lt_prog_compiler_wl=
14864 lt_prog_compiler_pic=
14865 lt_prog_compiler_static=
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14868 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14870 if test "$GCC" = yes; then
14871 lt_prog_compiler_wl='-Wl,'
14872 lt_prog_compiler_static='-static'
14876 # All AIX code is PIC.
14877 if test "$host_cpu" = ia64; then
14878 # AIX 5 now supports IA64 processor
14879 lt_prog_compiler_static='-Bstatic'
14881 lt_prog_compiler_pic='-fPIC'
14887 # see comment about AmigaOS4 .so support
14888 lt_prog_compiler_pic='-fPIC'
14891 # FIXME: we need at least 68020 code to build shared libraries, but
14892 # adding the `-m68020' flag to GCC prevents building anything better,
14894 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14899 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14900 # PIC is the default for these OSes.
14903 mingw* | cygwin* | pw32* | os2* | cegcc*)
14904 # This hack is so that the source file can tell whether it is being
14905 # built for inclusion in a dll (and should export symbols for example).
14906 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14907 # (--disable-auto-import) libraries
14908 lt_prog_compiler_pic='-DDLL_EXPORT'
14911 darwin* | rhapsody*)
14912 # PIC is the default on this platform
14913 # Common symbols not allowed in MH_DYLIB files
14914 lt_prog_compiler_pic='-fno-common'
14918 # PIC is the default for Haiku.
14919 # The "-static" flag exists, but is broken.
14920 lt_prog_compiler_static=
14924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14926 # sets the default TLS model and affects inlining.
14932 lt_prog_compiler_pic='-fPIC'
14938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14939 # Instead, we relocate shared libraries at runtime.
14943 # Just because we use GCC doesn't mean we suddenly get shared libraries
14944 # on systems that don't support them.
14945 lt_prog_compiler_can_build_shared=no
14950 # QNX uses GNU C++, but need to define -shared option too, otherwise
14951 # it will coredump.
14952 lt_prog_compiler_pic='-fPIC -shared'
14956 if test -d /usr/nec; then
14957 lt_prog_compiler_pic=-Kconform_pic
14962 lt_prog_compiler_pic='-fPIC'
14966 case $cc_basename in
14967 nvcc*) # Cuda Compiler Driver 2.2
14968 lt_prog_compiler_wl='-Xlinker '
14969 lt_prog_compiler_pic='-Xcompiler -fPIC'
14973 # PORTME Check for flag to pass linker flags through the system compiler.
14976 lt_prog_compiler_wl='-Wl,'
14977 if test "$host_cpu" = ia64; then
14978 # AIX 5 now supports IA64 processor
14979 lt_prog_compiler_static='-Bstatic'
14981 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14985 mingw* | cygwin* | pw32* | os2* | cegcc*)
14986 # This hack is so that the source file can tell whether it is being
14987 # built for inclusion in a dll (and should export symbols for example).
14988 lt_prog_compiler_pic='-DDLL_EXPORT'
14991 hpux9* | hpux10* | hpux11*)
14992 lt_prog_compiler_wl='-Wl,'
14993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14994 # not for PA HP-UX.
15000 lt_prog_compiler_pic='+Z'
15003 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15004 lt_prog_compiler_static='${wl}-a ${wl}archive'
15007 irix5* | irix6* | nonstopux*)
15008 lt_prog_compiler_wl='-Wl,'
15009 # PIC (with -KPIC) is the default.
15010 lt_prog_compiler_static='-non_shared'
15013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15014 case $cc_basename in
15015 # old Intel for x86_64 which still supported -KPIC.
15017 lt_prog_compiler_wl='-Wl,'
15018 lt_prog_compiler_pic='-KPIC'
15019 lt_prog_compiler_static='-static'
15021 # icc used to be incompatible with GCC.
15022 # ICC 10 doesn't accept -KPIC any more.
15024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='-fPIC'
15026 lt_prog_compiler_static='-static'
15028 # Lahey Fortran 8.1.
15030 lt_prog_compiler_wl='-Wl,'
15031 lt_prog_compiler_pic='--shared'
15032 lt_prog_compiler_static='--static'
15034 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15035 # Portland Group compilers (*not* the Pentium gcc compiler,
15036 # which looks to be a dead project)
15037 lt_prog_compiler_wl='-Wl,'
15038 lt_prog_compiler_pic='-fpic'
15039 lt_prog_compiler_static='-Bstatic'
15042 lt_prog_compiler_wl='-Wl,'
15043 # All Alpha code is PIC.
15044 lt_prog_compiler_static='-non_shared'
15046 xl* | bgxl* | bgf* | mpixl*)
15047 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15048 lt_prog_compiler_wl='-Wl,'
15049 lt_prog_compiler_pic='-qpic'
15050 lt_prog_compiler_static='-qstaticlink'
15053 case `$CC -V 2>&1 | sed 5q` in
15054 *Sun\ F* | *Sun*Fortran*)
15055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15056 lt_prog_compiler_pic='-KPIC'
15057 lt_prog_compiler_static='-Bstatic'
15058 lt_prog_compiler_wl=''
15062 lt_prog_compiler_pic='-KPIC'
15063 lt_prog_compiler_static='-Bstatic'
15064 lt_prog_compiler_wl='-Wl,'
15072 lt_prog_compiler_pic='-KPIC'
15073 lt_prog_compiler_static='-Bstatic'
15077 # QNX uses GNU C++, but need to define -shared option too, otherwise
15078 # it will coredump.
15079 lt_prog_compiler_pic='-fPIC -shared'
15082 osf3* | osf4* | osf5*)
15083 lt_prog_compiler_wl='-Wl,'
15084 # All OSF/1 code is PIC.
15085 lt_prog_compiler_static='-non_shared'
15089 lt_prog_compiler_static='-non_shared'
15093 lt_prog_compiler_pic='-KPIC'
15094 lt_prog_compiler_static='-Bstatic'
15095 case $cc_basename in
15096 f77* | f90* | f95*)
15097 lt_prog_compiler_wl='-Qoption ld ';;
15099 lt_prog_compiler_wl='-Wl,';;
15104 lt_prog_compiler_wl='-Qoption ld '
15105 lt_prog_compiler_pic='-PIC'
15106 lt_prog_compiler_static='-Bstatic'
15109 sysv4 | sysv4.2uw2* | sysv4.3*)
15110 lt_prog_compiler_wl='-Wl,'
15111 lt_prog_compiler_pic='-KPIC'
15112 lt_prog_compiler_static='-Bstatic'
15116 if test -d /usr/nec ;then
15117 lt_prog_compiler_pic='-Kconform_pic'
15118 lt_prog_compiler_static='-Bstatic'
15122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_pic='-KPIC'
15125 lt_prog_compiler_static='-Bstatic'
15129 lt_prog_compiler_wl='-Wl,'
15130 lt_prog_compiler_can_build_shared=no
15134 lt_prog_compiler_pic='-pic'
15135 lt_prog_compiler_static='-Bstatic'
15139 lt_prog_compiler_can_build_shared=no
15145 # For platforms which do not support PIC, -DPIC is meaningless:
15147 lt_prog_compiler_pic=
15150 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15154 $as_echo "$lt_prog_compiler_pic" >&6; }
15162 # Check to make sure the PIC flag actually works.
15164 if test -n "$lt_prog_compiler_pic"; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15166 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15167 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15168 $as_echo_n "(cached
) " >&6
15170 lt_cv_prog_compiler_pic_works=no
15171 ac_outfile=conftest.$ac_objext
15172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15173 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15174 # Insert the option either (1) after the last *FLAGS variable, or
15175 # (2) before a word containing "conftest.
", or (3) at the end.
15176 # Note that $ac_compile itself does not contain backslashes and begins
15177 # with a dollar sign (not a hyphen), so the echo should work correctly.
15178 # The option is referenced via a variable to avoid confusing sed.
15179 lt_compile=`echo "$ac_compile" | $SED \
15180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15182 -e 's:$: $lt_compiler_flag:'`
15183 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15184 (eval "$lt_compile" 2>conftest.err)
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15188 if (exit $ac_status) && test -s "$ac_outfile"; then
15189 # The compiler can only warn and ignore the option if not recognized
15190 # So say no if there are warnings other than the usual output.
15191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15194 lt_cv_prog_compiler_pic_works=yes
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15201 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15203 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15204 case $lt_prog_compiler_pic in
15206 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15209 lt_prog_compiler_pic=
15210 lt_prog_compiler_can_build_shared=no
15221 # Check to make sure the static flag actually works.
15223 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15225 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15226 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15227 $as_echo_n "(cached
) " >&6
15229 lt_cv_prog_compiler_static_works=no
15230 save_LDFLAGS="$LDFLAGS"
15231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15234 # The linker can only warn and ignore the option if not recognized
15235 # So say no if there are warnings
15236 if test -s conftest.err; then
15237 # Append any errors to the config.log.
15238 cat conftest.err 1>&5
15239 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15241 if diff conftest.exp conftest.er2 >/dev/null; then
15242 lt_cv_prog_compiler_static_works=yes
15245 lt_cv_prog_compiler_static_works=yes
15249 LDFLAGS="$save_LDFLAGS"
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15253 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15255 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15258 lt_prog_compiler_static=
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15268 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15269 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15270 $as_echo_n "(cached
) " >&6
15272 lt_cv_prog_compiler_c_o=no
15273 $RM -r conftest 2>/dev/null
15277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15279 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15280 # Insert the option either (1) after the last *FLAGS variable, or
15281 # (2) before a word containing "conftest.
", or (3) at the end.
15282 # Note that $ac_compile itself does not contain backslashes and begins
15283 # with a dollar sign (not a hyphen), so the echo should work correctly.
15284 lt_compile=`echo "$ac_compile" | $SED \
15285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15287 -e 's:$: $lt_compiler_flag:'`
15288 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15289 (eval "$lt_compile" 2>out/conftest.err)
15291 cat out/conftest.err >&5
15292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15295 # The compiler can only warn and ignore the option if not recognized
15296 # So say no if there are warnings
15297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15300 lt_cv_prog_compiler_c_o=yes
15305 # SGI C++ compiler will create directory out/ii_files/ for
15306 # template instantiation
15307 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15308 $RM out/* && rmdir out
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15315 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15323 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15324 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15325 $as_echo_n "(cached
) " >&6
15327 lt_cv_prog_compiler_c_o=no
15328 $RM -r conftest 2>/dev/null
15332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15334 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15335 # Insert the option either (1) after the last *FLAGS variable, or
15336 # (2) before a word containing "conftest.
", or (3) at the end.
15337 # Note that $ac_compile itself does not contain backslashes and begins
15338 # with a dollar sign (not a hyphen), so the echo should work correctly.
15339 lt_compile=`echo "$ac_compile" | $SED \
15340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15342 -e 's:$: $lt_compiler_flag:'`
15343 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15344 (eval "$lt_compile" 2>out/conftest.err)
15346 cat out/conftest.err >&5
15347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15350 # The compiler can only warn and ignore the option if not recognized
15351 # So say no if there are warnings
15352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15355 lt_cv_prog_compiler_c_o=yes
15360 # SGI C++ compiler will create directory out/ii_files/ for
15361 # template instantiation
15362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15363 $RM out/* && rmdir out
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15370 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15375 hard_links="nottested
"
15376 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15377 # do not overwrite the value of need_locks provided by the user
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15379 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15384 ln conftest.a conftest.b 2>&5 || hard_links=no
15385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15387 $as_echo "$hard_links" >&6; }
15388 if test "$hard_links" = no; then
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15390 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15403 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15406 allow_undefined_flag=
15407 always_export_symbols=no
15409 archive_expsym_cmds=
15410 compiler_needs_object=no
15411 enable_shared_with_static_runtimes=no
15412 export_dynamic_flag_spec=
15413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15414 hardcode_automatic=no
15416 hardcode_direct_absolute=no
15417 hardcode_libdir_flag_spec=
15418 hardcode_libdir_flag_spec_ld=
15419 hardcode_libdir_separator=
15420 hardcode_minus_L=no
15421 hardcode_shlibpath_var=unsupported
15423 link_all_deplibs=unknown
15425 module_expsym_cmds=
15426 old_archive_from_new_cmds=
15427 old_archive_from_expsyms_cmds=
15428 thread_safe_flag_spec=
15429 whole_archive_flag_spec=
15430 # include_expsyms should be a list of space-separated symbols to be *always*
15431 # included in the symbol list
15433 # exclude_expsyms can be an extended regexp of symbols to exclude
15434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15436 # as well as any symbol that contains `d'.
15437 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15439 # platforms (ab)use it in PIC code, but their linkers get confused if
15440 # the symbol is explicitly referenced. Since portable code cannot
15441 # rely on this symbol name, it's probably fine to never include it in
15442 # preloaded symbol tables.
15443 # Exclude shared library initialization/finalization symbols.
15444 extract_expsyms_cmds=
15447 cygwin* | mingw* | pw32* | cegcc*)
15448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15449 # When not using gcc, we currently assume that we are using
15450 # Microsoft Visual C++.
15451 if test "$GCC" != yes; then
15456 # we just hope/assume this is gcc and not c89 (= MSVC++)
15466 # On some targets, GNU ld is compatible enough with the native linker
15467 # that we're better off using the native interface for both.
15468 lt_use_gnu_ld_interface=no
15469 if test "$with_gnu_ld" = yes; then
15472 # The AIX port of GNU ld has always aspired to compatibility
15473 # with the native linker. However, as the warning in the GNU ld
15474 # block says, versions before 2.19.5* couldn't really create working
15475 # shared libraries, regardless of the interface used.
15476 case `$LD -v 2>&1` in
15477 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15478 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15479 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15481 lt_use_gnu_ld_interface=yes
15486 lt_use_gnu_ld_interface=yes
15491 if test "$lt_use_gnu_ld_interface" = yes; then
15492 # If archive_cmds runs LD, not CC, wlarc should be empty
15495 # Set some defaults for GNU ld with shared library support. These
15496 # are reset later if shared libraries are not supported. Putting them
15497 # here allows them to be overridden if necessary.
15498 runpath_var=LD_RUN_PATH
15499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15500 export_dynamic_flag_spec='${wl}--export-dynamic'
15501 # ancient GNU ld didn't support --whole-archive et. al.
15502 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15503 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15505 whole_archive_flag_spec=
15507 supports_anon_versioning=no
15508 case `$LD -v 2>&1` in
15509 *GNU\ gold*) supports_anon_versioning=yes ;;
15510 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15511 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15512 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15513 *\ 2.11.*) ;; # other 2.11 versions
15514 *) supports_anon_versioning=yes ;;
15517 # See if GNU ld supports shared libraries.
15520 # On AIX/PPC, the GNU linker is very broken
15521 if test "$host_cpu" != ia64; then
15525 *** Warning: the GNU linker, at least up to release 2.19, is reported
15526 *** to be unable to reliably create shared libraries on AIX.
15527 *** Therefore, libtool is disabling shared libraries support. If you
15528 *** really care for shared libraries, you may want to install binutils
15529 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15530 *** You will then need to restart the configuration process.
15539 # see comment about AmigaOS4 .so support
15540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 archive_expsym_cmds=''
15544 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)'
15545 hardcode_libdir_flag_spec
='-L$libdir'
15546 hardcode_minus_L
=yes
15552 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15553 allow_undefined_flag
=unsupported
15554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15555 # support --undefined. This deserves some investigation. FIXME
15556 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15562 cygwin
* | mingw
* | pw32
* | cegcc
*)
15563 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15564 # as there is no search path for DLLs.
15565 hardcode_libdir_flag_spec
='-L$libdir'
15566 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15567 allow_undefined_flag
=unsupported
15568 always_export_symbols
=no
15569 enable_shared_with_static_runtimes
=yes
15570 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15572 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15573 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15574 # If the export-symbols file already is a .def file (1st line
15575 # is EXPORTS), use it as is; otherwise, prepend...
15576 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15577 cp $export_symbols $output_objdir/$soname.def;
15579 echo EXPORTS > $output_objdir/$soname.def;
15580 cat $export_symbols >> $output_objdir/$soname.def;
15582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15589 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15590 link_all_deplibs
=yes
15595 hardcode_shlibpath_var
=no
15596 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15597 export_dynamic_flag_spec
='${wl}-E'
15598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15599 # Instead, shared libraries are loaded at an image base (0x10000000 by
15600 # default) and relocated if they conflict, which is a slow very memory
15601 # consuming and fragmenting process. To avoid this, we pick a random,
15602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15604 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15605 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'
15608 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15610 if test "$host_os" = linux-dietlibc
; then
15611 case $cc_basename in
15612 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15615 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15616 && test "$tmp_diet" = no
15619 tmp_sharedflag
='-shared'
15620 case $cc_basename,$host_cpu in
15621 pgcc
*) # Portland Group C compiler
15622 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'
15623 tmp_addflag
=' $pic_flag'
15625 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15626 # Portland Group f77 and f90 compilers
15627 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'
15628 tmp_addflag
=' $pic_flag -Mnomain' ;;
15629 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15630 tmp_addflag
=' -i_dynamic' ;;
15631 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15632 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15633 ifc
* | ifort
*) # Intel Fortran compiler
15634 tmp_addflag
=' -nofor_main' ;;
15635 lf95
*) # Lahey Fortran 8.1
15636 whole_archive_flag_spec
=
15637 tmp_sharedflag
='--shared' ;;
15638 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15639 tmp_sharedflag
='-qmkshrobj'
15641 nvcc
*) # Cuda Compiler Driver 2.2
15642 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'
15643 compiler_needs_object
=yes
15646 case `$CC -V 2>&1 | sed 5q` in
15647 *Sun\ C
*) # Sun C 5.9
15648 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'
15649 compiler_needs_object
=yes
15650 tmp_sharedflag
='-G' ;;
15651 *Sun\ F
*) # Sun Fortran 8.3
15652 tmp_sharedflag
='-G' ;;
15654 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15656 if test "x$supports_anon_versioning" = xyes
; then
15657 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15659 echo "local: *; };" >> $output_objdir/$libname.ver~
15660 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15663 case $cc_basename in
15664 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15665 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15666 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15667 hardcode_libdir_flag_spec
=
15668 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15669 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15670 if test "x$supports_anon_versioning" = xyes
; then
15671 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15673 echo "local: *; };" >> $output_objdir/$libname.ver~
15674 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15684 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15685 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15688 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15689 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15694 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15698 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15699 *** create shared libraries on Solaris systems. Therefore, libtool
15700 *** is disabling shared libraries support. We urge you to upgrade GNU
15701 *** binutils to release 2.9.1 or newer. Another option is to modify
15702 *** your PATH or compiler configuration so that the native linker is
15703 *** used, and then restart.
15706 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15707 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15708 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15714 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15715 case `$LD -v 2>&1` in
15716 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15720 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15721 *** reliably create shared libraries on SCO systems. Therefore, libtool
15722 *** is disabling shared libraries support. We urge you to upgrade GNU
15723 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15724 *** your PATH or compiler configuration so that the native linker is
15725 *** used, and then restart.
15730 # For security reasons, it is highly recommended that you always
15731 # use absolute paths for naming shared libraries, and exclude the
15732 # DT_RUNPATH tag from executables and libraries. But doing so
15733 # requires that you compile everything twice, which is a pain.
15734 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15735 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15736 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15737 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15746 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_direct
=yes
15749 hardcode_shlibpath_var
=no
15753 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15754 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15755 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15762 if test "$ld_shlibs" = no
; then
15764 hardcode_libdir_flag_spec
=
15765 export_dynamic_flag_spec
=
15766 whole_archive_flag_spec
=
15769 # PORTME fill in a description of your system's linker (not GNU ld)
15772 allow_undefined_flag
=unsupported
15773 always_export_symbols
=yes
15774 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'
15775 # Note: this linker hardcodes the directories in LIBPATH if there
15776 # are no directories specified by -L.
15777 hardcode_minus_L
=yes
15778 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15779 # Neither direct hardcoding nor static linking is supported with a
15781 hardcode_direct
=unsupported
15786 if test "$host_cpu" = ia64
; then
15787 # On IA64, the linker does run time linking by default, so we don't
15788 # have to do anything special.
15789 aix_use_runtimelinking
=no
15790 exp_sym_flag
='-Bexport'
15793 # If we're using GNU nm, then we don't want the "-C" option.
15794 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15795 # Also, AIX nm treats weak defined symbols like other global
15796 # defined symbols, whereas GNU nm marks them as "W".
15797 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15798 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'
15800 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'
15802 aix_use_runtimelinking
=no
15804 # Test if we are trying to use run time linking or normal
15805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15806 # need to do runtime linking.
15807 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15808 for ld_flag
in $LDFLAGS; do
15809 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15810 aix_use_runtimelinking
=yes
15817 exp_sym_flag
='-bexport'
15818 no_entry_flag
='-bnoentry'
15821 # When large executables or shared objects are built, AIX ld can
15822 # have problems creating the table of contents. If linking a library
15823 # or program results in "error TOC overflow" add -mminimal-toc to
15824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15828 hardcode_direct
=yes
15829 hardcode_direct_absolute
=yes
15830 hardcode_libdir_separator
=':'
15831 link_all_deplibs
=yes
15832 file_list_spec
='${wl}-f,'
15834 if test "$GCC" = yes; then
15835 case $host_os in aix4.
[012]|aix4.
[012].
*)
15836 # We only want to do this on AIX 4.2 and lower, the check
15837 # below for broken collect2 doesn't work under 4.3+
15838 collect2name
=`${CC} -print-prog-name=collect2`
15839 if test -f "$collect2name" &&
15840 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15842 # We have reworked collect2
15845 # We have old collect2
15846 hardcode_direct
=unsupported
15847 # It fails to find uninstalled libraries when the uninstalled
15848 # path is not listed in the libpath. Setting hardcode_minus_L
15849 # to unsupported forces relinking
15850 hardcode_minus_L
=yes
15851 hardcode_libdir_flag_spec
='-L$libdir'
15852 hardcode_libdir_separator
=
15856 shared_flag
='-shared'
15857 if test "$aix_use_runtimelinking" = yes; then
15858 shared_flag
="$shared_flag "'${wl}-G'
15862 if test "$host_cpu" = ia64
; then
15863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15864 # chokes on -Wl,-G. The following line is correct:
15867 if test "$aix_use_runtimelinking" = yes; then
15868 shared_flag
='${wl}-G'
15870 shared_flag
='${wl}-bM:SRE'
15875 export_dynamic_flag_spec
='${wl}-bexpall'
15876 # It seems that -bexpall does not export symbols beginning with
15877 # underscore (_), so it is better to generate a list of symbols to export.
15878 always_export_symbols
=yes
15879 if test "$aix_use_runtimelinking" = yes; then
15880 # Warning - without using the other runtime loading flags (-brtl),
15881 # -berok will link without error, but may produce a broken library.
15882 allow_undefined_flag
='-berok'
15883 # Determine the default libpath from the value encoded in an
15884 # empty executable.
15885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15896 if ac_fn_c_try_link
"$LINENO"; then :
15898 lt_aix_libpath_sed
='
15899 /Import File Strings/,/^$/ {
15905 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15906 # Check for a 64-bit object if we didn't find anything.
15907 if test -z "$aix_libpath"; then
15908 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15911 rm -f core conftest.err conftest.
$ac_objext \
15912 conftest
$ac_exeext conftest.
$ac_ext
15913 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15915 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15916 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"
15918 if test "$host_cpu" = ia64
; then
15919 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15920 allow_undefined_flag
="-z nodefs"
15921 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"
15923 # Determine the default libpath from the value encoded in an
15924 # empty executable.
15925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15936 if ac_fn_c_try_link
"$LINENO"; then :
15938 lt_aix_libpath_sed
='
15939 /Import File Strings/,/^$/ {
15945 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15946 # Check for a 64-bit object if we didn't find anything.
15947 if test -z "$aix_libpath"; then
15948 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15951 rm -f core conftest.err conftest.
$ac_objext \
15952 conftest
$ac_exeext conftest.
$ac_ext
15953 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15955 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15956 # Warning - without using the other run time loading flags,
15957 # -berok will link without error, but may produce a broken library.
15958 no_undefined_flag
=' ${wl}-bernotok'
15959 allow_undefined_flag
=' ${wl}-berok'
15960 if test "$with_gnu_ld" = yes; then
15961 # We only use this code for GNU lds that support --whole-archive.
15962 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15964 # Exported symbols can be pulled into shared objects from archives
15965 whole_archive_flag_spec
='$convenience'
15967 archive_cmds_need_lc
=yes
15968 # This is similar to how AIX traditionally builds its shared libraries.
15969 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'
15977 # see comment about AmigaOS4 .so support
15978 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15979 archive_expsym_cmds
=''
15982 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)'
15983 hardcode_libdir_flag_spec
='-L$libdir'
15984 hardcode_minus_L
=yes
15990 export_dynamic_flag_spec
=-rdynamic
15993 cygwin
* | mingw
* | pw32
* | cegcc
*)
15994 # When not using gcc, we currently assume that we are using
15995 # Microsoft Visual C++.
15996 # hardcode_libdir_flag_spec is actually meaningless, as there is
15997 # no search path for DLLs.
15998 hardcode_libdir_flag_spec
=' '
15999 allow_undefined_flag
=unsupported
16000 # Tell ltmain to make .lib files, not .a files.
16002 # Tell ltmain to make .dll files, not .so files.
16004 # FIXME: Setting linknames here is a bad hack.
16005 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16006 # The linker will automatically build a .lib file if we build a DLL.
16007 old_archive_from_new_cmds
='true'
16008 # FIXME: Should let the user specify the lib program.
16009 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16010 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16011 enable_shared_with_static_runtimes
=yes
16014 darwin
* | rhapsody
*)
16017 archive_cmds_need_lc
=no
16019 hardcode_automatic
=yes
16020 hardcode_shlibpath_var
=unsupported
16021 if test "$lt_cv_ld_force_load" = "yes"; then
16022 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\"`'
16024 whole_archive_flag_spec
=''
16026 link_all_deplibs
=yes
16027 allow_undefined_flag
="$_lt_dar_allow_undefined"
16028 case $cc_basename in
16029 ifort
*) _lt_dar_can_shared
=yes ;;
16030 *) _lt_dar_can_shared
=$GCC ;;
16032 if test "$_lt_dar_can_shared" = "yes"; then
16033 output_verbose_link_cmd
=func_echo_all
16034 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16035 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16036 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}"
16037 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}"
16046 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 hardcode_libdir_flag_spec
='-L$libdir'
16048 hardcode_shlibpath_var
=no
16051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16052 # support. Future versions do this automatically, but an explicit c++rt0.o
16053 # does not break anything, and helps significantly (at the cost of a little
16056 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16057 hardcode_libdir_flag_spec
='-R$libdir'
16058 hardcode_direct
=yes
16059 hardcode_shlibpath_var
=no
16062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16064 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_direct
=yes
16066 hardcode_minus_L
=yes
16067 hardcode_shlibpath_var
=no
16070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16071 freebsd
* | dragonfly
*)
16072 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16073 hardcode_libdir_flag_spec
='-R$libdir'
16074 hardcode_direct
=yes
16075 hardcode_shlibpath_var
=no
16079 if test "$GCC" = yes; then
16080 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'
16082 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'
16084 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16085 hardcode_libdir_separator
=:
16086 hardcode_direct
=yes
16088 # hardcode_minus_L: Not really in the search PATH,
16089 # but as the default location of the library.
16090 hardcode_minus_L
=yes
16091 export_dynamic_flag_spec
='${wl}-E'
16095 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16096 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16098 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16100 if test "$with_gnu_ld" = no
; then
16101 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16102 hardcode_libdir_flag_spec_ld
='+b $libdir'
16103 hardcode_libdir_separator
=:
16104 hardcode_direct
=yes
16105 hardcode_direct_absolute
=yes
16106 export_dynamic_flag_spec
='${wl}-E'
16107 # hardcode_minus_L: Not really in the search PATH,
16108 # but as the default location of the library.
16109 hardcode_minus_L
=yes
16114 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16117 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16136 # Older versions of the 11.00 compiler do not understand -b yet
16137 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16139 $as_echo_n "checking if $CC understands -b... " >&6; }
16140 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16141 $as_echo_n "(cached) " >&6
16143 lt_cv_prog_compiler__b
=no
16144 save_LDFLAGS
="$LDFLAGS"
16145 LDFLAGS
="$LDFLAGS -b"
16146 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16147 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16148 # The linker can only warn and ignore the option if not recognized
16149 # So say no if there are warnings
16150 if test -s conftest.err
; then
16151 # Append any errors to the config.log.
16152 cat conftest.err
1>&5
16153 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16154 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16155 if diff conftest.exp conftest.er2
>/dev
/null
; then
16156 lt_cv_prog_compiler__b
=yes
16159 lt_cv_prog_compiler__b
=yes
16163 LDFLAGS
="$save_LDFLAGS"
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16167 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16169 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16170 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16172 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16178 if test "$with_gnu_ld" = no
; then
16179 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16180 hardcode_libdir_separator
=:
16185 hardcode_shlibpath_var
=no
16188 hardcode_direct
=yes
16189 hardcode_direct_absolute
=yes
16190 export_dynamic_flag_spec
='${wl}-E'
16192 # hardcode_minus_L: Not really in the search PATH,
16193 # but as the default location of the library.
16194 hardcode_minus_L
=yes
16200 irix5
* | irix6
* | nonstopux
*)
16201 if test "$GCC" = yes; then
16202 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'
16203 # Try to use the -exported_symbol ld option, if it does not
16204 # work, assume that -exports_file does not work either and
16205 # implicitly export all symbols.
16206 save_LDFLAGS
="$LDFLAGS"
16207 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16212 if ac_fn_c_try_link
"$LINENO"; then :
16213 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'
16216 rm -f core conftest.err conftest.
$ac_objext \
16217 conftest
$ac_exeext conftest.
$ac_ext
16218 LDFLAGS
="$save_LDFLAGS"
16220 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'
16221 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'
16223 archive_cmds_need_lc
='no'
16224 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16225 hardcode_libdir_separator
=:
16227 link_all_deplibs
=yes
16231 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16232 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16234 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16236 hardcode_libdir_flag_spec
='-R$libdir'
16237 hardcode_direct
=yes
16238 hardcode_shlibpath_var
=no
16242 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16243 hardcode_direct
=yes
16244 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16245 hardcode_libdir_separator
=:
16246 hardcode_shlibpath_var
=no
16253 if test -f /usr
/libexec
/ld.so
; then
16254 hardcode_direct
=yes
16255 hardcode_shlibpath_var
=no
16256 hardcode_direct_absolute
=yes
16257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16258 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16259 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16260 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16261 export_dynamic_flag_spec
='${wl}-E'
16264 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16265 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_libdir_flag_spec
='-R$libdir'
16269 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16270 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16280 hardcode_libdir_flag_spec
='-L$libdir'
16281 hardcode_minus_L
=yes
16282 allow_undefined_flag
=unsupported
16283 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'
16284 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16288 if test "$GCC" = yes; then
16289 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16290 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'
16292 allow_undefined_flag
=' -expect_unresolved \*'
16293 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'
16295 archive_cmds_need_lc
='no'
16296 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16297 hardcode_libdir_separator
=:
16300 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16301 if test "$GCC" = yes; then
16302 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16303 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'
16304 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16306 allow_undefined_flag
=' -expect_unresolved \*'
16307 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'
16308 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~
16309 $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'
16311 # Both c and cxx compiler support -rpath directly
16312 hardcode_libdir_flag_spec
='-rpath $libdir'
16314 archive_cmds_need_lc
='no'
16315 hardcode_libdir_separator
=:
16319 no_undefined_flag
=' -z defs'
16320 if test "$GCC" = yes; then
16322 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16323 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16324 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16326 case `$CC -V 2>&1` in
16329 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16330 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16335 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16336 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16337 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16341 hardcode_libdir_flag_spec
='-R$libdir'
16342 hardcode_shlibpath_var
=no
16344 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16346 # The compiler driver will combine and reorder linker options,
16347 # but understands `-z linker_flag'. GCC discards it without `$wl',
16348 # but is careful enough not to reorder.
16349 # Supported since Solaris 2.6 (maybe 2.5.1?)
16350 if test "$GCC" = yes; then
16351 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16353 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16357 link_all_deplibs
=yes
16361 if test "x$host_vendor" = xsequent
; then
16362 # Use $CC to link under sequent, because it throws in some extra .o
16363 # files that make .init and .fini sections work.
16364 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16366 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_libdir_flag_spec
='-L$libdir'
16369 hardcode_direct
=yes
16370 hardcode_minus_L
=yes
16371 hardcode_shlibpath_var
=no
16375 case $host_vendor in
16377 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16378 hardcode_direct
=yes # is this really true???
16381 ## LD is ld it makes a PLAMLIB
16382 ## CC just makes a GrossModule.
16383 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16384 reload_cmds
='$CC -r -o $output$reload_objs'
16388 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16392 runpath_var
='LD_RUN_PATH'
16393 hardcode_shlibpath_var
=no
16397 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 hardcode_shlibpath_var
=no
16399 export_dynamic_flag_spec
='-Bexport'
16403 if test -d /usr
/nec
; then
16404 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405 hardcode_shlibpath_var
=no
16406 runpath_var
=LD_RUN_PATH
16407 hardcode_runpath_var
=yes
16412 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16413 no_undefined_flag
='${wl}-z,text'
16414 archive_cmds_need_lc
=no
16415 hardcode_shlibpath_var
=no
16416 runpath_var
='LD_RUN_PATH'
16418 if test "$GCC" = yes; then
16419 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16420 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16427 sysv5
* | sco3.2v5
* | sco5v6
*)
16428 # Note: We can NOT use -z defs as we might desire, because we do not
16429 # link with -lc, and that would cause any symbols used from libc to
16430 # always be unresolved, which means just about no library would
16431 # ever link correctly. If we're not using GNU ld we use -z text
16432 # though, which does catch some bad symbols but isn't as heavy-handed
16434 no_undefined_flag
='${wl}-z,text'
16435 allow_undefined_flag
='${wl}-z,nodefs'
16436 archive_cmds_need_lc
=no
16437 hardcode_shlibpath_var
=no
16438 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16439 hardcode_libdir_separator
=':'
16440 link_all_deplibs
=yes
16441 export_dynamic_flag_spec
='${wl}-Bexport'
16442 runpath_var
='LD_RUN_PATH'
16444 if test "$GCC" = yes; then
16445 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16455 hardcode_libdir_flag_spec
='-L$libdir'
16456 hardcode_shlibpath_var
=no
16464 if test x
$host_vendor = xsni
; then
16466 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16467 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16474 $as_echo "$ld_shlibs" >&6; }
16475 test "$ld_shlibs" = no
&& can_build_shared
=no
16477 with_gnu_ld
=$with_gnu_ld
16494 # Do we need to explicitly link libc?
16496 case "x$archive_cmds_need_lc" in
16498 # Assume -lc should be added
16499 archive_cmds_need_lc
=yes
16501 if test "$enable_shared" = yes && test "$GCC" = yes; then
16502 case $archive_cmds in
16504 # FIXME: we may have to deal with multi-command sequences.
16507 # Test whether the compiler implicitly links with -lc since on some
16508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16509 # to ld, don't add -lc before -lgcc.
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16512 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16513 $as_echo_n "(cached) " >&6
16516 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16519 (eval $ac_compile) 2>&5
16521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 test $ac_status = 0; } 2>conftest.err
; then
16525 libobjs
=conftest.
$ac_objext
16527 wl
=$lt_prog_compiler_wl
16528 pic_flag
=$lt_prog_compiler_pic
16534 lt_save_allow_undefined_flag
=$allow_undefined_flag
16535 allow_undefined_flag
=
16536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16537 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16540 test $ac_status = 0; }
16542 lt_cv_archive_cmds_need_lc
=no
16544 lt_cv_archive_cmds_need_lc
=yes
16546 allow_undefined_flag
=$lt_save_allow_undefined_flag
16548 cat conftest.err
1>&5
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16554 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16555 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16719 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16721 if test "$GCC" = yes; then
16723 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16724 *) lt_awk_arg
="/^libraries:/" ;;
16727 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16728 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16730 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16731 case $lt_search_path_spec in
16733 # if the path contains ";" then we assume it to be the separator
16734 # otherwise default to the standard path separator (i.e. ":") - it is
16735 # assumed that no part of a normal pathname contains ";" but that should
16736 # okay in the real world where ";" in dirpaths is itself problematic.
16737 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16740 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16743 # Ok, now we have the path, separated by spaces, we can step through it
16744 # and add multilib dir if necessary.
16745 lt_tmp_lt_search_path_spec
=
16746 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16747 for lt_sys_path
in $lt_search_path_spec; do
16748 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16749 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16751 test -d "$lt_sys_path" && \
16752 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16755 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16756 BEGIN {RS=" "; FS="/|\n";} {
16759 for (lt_i = NF; lt_i > 0; lt_i--) {
16760 if ($lt_i != "" && $lt_i != ".") {
16761 if ($lt_i == "..") {
16764 if (lt_count == 0) {
16765 lt_foo="/" $lt_i lt_foo;
16772 if (lt_foo != "") { lt_freq[lt_foo]++; }
16773 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16775 # AWK program above erroneously prepends '/' to C:/dos/paths
16778 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16779 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16781 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16783 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16785 library_names_spec
=
16786 libname_spec
='lib$name'
16790 postuninstall_cmds
=
16794 shlibpath_overrides_runpath
=unknown
16796 dynamic_linker
="$host_os ld.so"
16797 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16798 need_lib_prefix
=unknown
16799 hardcode_into_libs
=no
16801 # when you set need_version to no, make sure it does not cause -set_version
16802 # flags to be left without arguments
16803 need_version
=unknown
16808 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16809 shlibpath_var
=LIBPATH
16811 # AIX 3 has no versioning support, so we append a major version to the name.
16812 soname_spec
='${libname}${release}${shared_ext}$major'
16819 hardcode_into_libs
=yes
16820 if test "$host_cpu" = ia64
; then
16821 # AIX 5 supports IA64
16822 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16823 shlibpath_var
=LD_LIBRARY_PATH
16825 # With GCC up to 2.95.x, collect2 would create an import file
16826 # for dependence libraries. The import file would start with
16827 # the line `#! .'. This would cause the generated library to
16828 # depend on `.', always an invalid library. This was fixed in
16829 # development snapshots of GCC prior to 3.0.
16831 aix4 | aix4.
[01] | aix4.
[01].
*)
16832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16834 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16837 can_build_shared
=no
16841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16842 # soname into executable. Probably we can add versioning support to
16843 # collect2, so additional links can be useful in future.
16844 if test "$aix_use_runtimelinking" = yes; then
16845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16846 # instead of lib<name>.a to let people know that these are not
16847 # typical AIX shared libraries.
16848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 # We preserve .a as extension for shared libraries through AIX4.2
16851 # and later when we are not doing run time linking.
16852 library_names_spec
='${libname}${release}.a $libname.a'
16853 soname_spec
='${libname}${release}${shared_ext}$major'
16855 shlibpath_var
=LIBPATH
16862 # Since July 2007 AmigaOS4 officially supports .so libraries.
16863 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 library_names_spec
='$libname.ixlibrary $libname.a'
16868 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16869 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'
16875 library_names_spec
='${libname}${shared_ext}'
16876 dynamic_linker
="$host_os ld.so"
16877 shlibpath_var
=LIBRARY_PATH
16883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 soname_spec
='${libname}${release}${shared_ext}$major'
16885 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16886 shlibpath_var
=LD_LIBRARY_PATH
16887 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16888 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16889 # the default ld.so.conf also contains /usr/contrib/lib and
16890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16891 # libtool to hard-code these into programs
16894 cygwin
* | mingw
* | pw32
* | cegcc
*)
16895 version_type
=windows
16900 case $GCC,$host_os in
16901 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16902 library_names_spec
='$libname.dll.a'
16903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16904 postinstall_cmds
='base_file=`basename \${file}`~
16905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16906 dldir=$destdir/`dirname \$dlpath`~
16907 test -d \$dldir || mkdir -p \$dldir~
16908 $install_prog $dir/$dlname \$dldir/$dlname~
16909 chmod a+x \$dldir/$dlname~
16910 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16911 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16913 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16914 dlpath=$dir/\$dldll~
16916 shlibpath_overrides_runpath
=yes
16920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16921 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16923 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16926 # MinGW DLLs use traditional 'lib' prefix
16927 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16930 # pw32 DLLs use 'pw' prefix rather than 'lib'
16931 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16937 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16940 dynamic_linker
='Win32 ld.exe'
16941 # FIXME: first we should search . and the directory the executable is in
16945 darwin
* | rhapsody
*)
16946 dynamic_linker
="$host_os dyld"
16947 version_type
=darwin
16950 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16951 soname_spec
='${libname}${release}${major}$shared_ext'
16952 shlibpath_overrides_runpath
=yes
16953 shlibpath_var
=DYLD_LIBRARY_PATH
16954 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16956 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16957 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16965 soname_spec
='${libname}${release}${shared_ext}$major'
16966 shlibpath_var
=LD_LIBRARY_PATH
16969 freebsd
* | dragonfly
*)
16970 # DragonFly does not have aout. When/if they implement a new
16971 # versioning mechanism, adjust this.
16972 if test -x /usr
/bin
/objformat
; then
16973 objformat
=`/usr/bin/objformat`
16976 freebsd
[23].
*) objformat
=aout
;;
16977 *) objformat
=elf
;;
16980 version_type
=freebsd-
$objformat
16981 case $version_type in
16983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16988 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16992 shlibpath_var
=LD_LIBRARY_PATH
16995 shlibpath_overrides_runpath
=yes
16997 freebsd3.
[01]* | freebsdelf3.
[01]*)
16998 shlibpath_overrides_runpath
=yes
16999 hardcode_into_libs
=yes
17001 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17002 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17003 shlibpath_overrides_runpath
=no
17004 hardcode_into_libs
=yes
17006 *) # from 4.6 on, and DragonFly
17007 shlibpath_overrides_runpath
=yes
17008 hardcode_into_libs
=yes
17017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17018 soname_spec
='${libname}${release}${shared_ext}$major'
17019 shlibpath_var
=LD_LIBRARY_PATH
17020 hardcode_into_libs
=yes
17027 dynamic_linker
="$host_os runtime_loader"
17028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17029 soname_spec
='${libname}${release}${shared_ext}$major'
17030 shlibpath_var
=LIBRARY_PATH
17031 shlibpath_overrides_runpath
=yes
17032 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17033 hardcode_into_libs
=yes
17036 hpux9
* | hpux10
* | hpux11
*)
17037 # Give a soname corresponding to the major version so that dld.sl refuses to
17038 # link against other versions.
17045 hardcode_into_libs
=yes
17046 dynamic_linker
="$host_os dld.so"
17047 shlibpath_var
=LD_LIBRARY_PATH
17048 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec
='${libname}${release}${shared_ext}$major'
17051 if test "X$HPUX_IA64_MODE" = X32
; then
17052 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17054 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17056 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17060 hardcode_into_libs
=yes
17061 dynamic_linker
="$host_os dld.sl"
17062 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17063 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec
='${libname}${release}${shared_ext}$major'
17066 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17067 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17071 dynamic_linker
="$host_os dld.sl"
17072 shlibpath_var
=SHLIB_PATH
17073 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec
='${libname}${release}${shared_ext}$major'
17078 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17079 postinstall_cmds
='chmod 555 $lib'
17080 # or fails outright, so override atomically:
17081 install_override_mode
=555
17088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17089 soname_spec
='${libname}${release}${shared_ext}$major'
17090 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17091 shlibpath_var
=LD_LIBRARY_PATH
17092 shlibpath_overrides_runpath
=no
17093 hardcode_into_libs
=yes
17096 irix5
* | irix6
* | nonstopux
*)
17098 nonstopux
*) version_type
=nonstopux
;;
17100 if test "$lt_cv_prog_gnu_ld" = yes; then
17108 soname_spec
='${libname}${release}${shared_ext}$major'
17109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17111 irix5
* | nonstopux
*)
17112 libsuff
= shlibsuff
=
17115 case $LD in # libtool.m4 will add one of these switches to LD
17116 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17117 libsuff
= shlibsuff
= libmagic
=32-bit;;
17118 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17119 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17120 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17121 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17122 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17126 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17127 shlibpath_overrides_runpath
=no
17128 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17129 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17130 hardcode_into_libs
=yes
17133 # No shared lib support for Linux oldld, aout, or coff.
17134 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17138 # This must be Linux ELF.
17139 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec
='${libname}${release}${shared_ext}$major'
17145 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17146 shlibpath_var
=LD_LIBRARY_PATH
17147 shlibpath_overrides_runpath
=no
17149 # Some binutils ld are patched to set DT_RUNPATH
17150 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17151 $as_echo_n "(cached) " >&6
17153 lt_cv_shlibpath_overrides_runpath
=no
17154 save_LDFLAGS
=$LDFLAGS
17155 save_libdir
=$libdir
17156 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17157 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17169 if ac_fn_c_try_link
"$LINENO"; then :
17170 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17171 lt_cv_shlibpath_overrides_runpath
=yes
17174 rm -f core conftest.err conftest.
$ac_objext \
17175 conftest
$ac_exeext conftest.
$ac_ext
17176 LDFLAGS
=$save_LDFLAGS
17177 libdir
=$save_libdir
17181 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17183 # This implies no fast_install, which is unacceptable.
17184 # Some rework will be needed to allow for fast_install
17185 # before this can be enabled.
17186 hardcode_into_libs
=yes
17188 # Append ld.so.conf contents to the search path
17189 if test -f /etc
/ld.so.conf
; then
17190 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' ' '`
17191 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17194 # We used to test for /lib/ld.so.1 and disable shared libraries on
17195 # powerpc, because MkLinux only supported shared libraries with the
17196 # GNU dynamic linker. Since this was broken with cross compilers,
17197 # most powerpc-linux boxes support dynamic linking these days and
17198 # people can always --disable-shared, the test was removed, and we
17199 # assume the GNU/Linux dynamic linker is in use.
17200 dynamic_linker
='GNU/Linux ld.so'
17207 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17209 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17210 dynamic_linker
='NetBSD (a.out) ld.so'
17212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17213 soname_spec
='${libname}${release}${shared_ext}$major'
17214 dynamic_linker
='NetBSD ld.elf_so'
17216 shlibpath_var
=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath
=yes
17218 hardcode_into_libs
=yes
17223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 shlibpath_var
=LD_LIBRARY_PATH
17225 shlibpath_overrides_runpath
=yes
17232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 soname_spec
='${libname}${release}${shared_ext}$major'
17234 shlibpath_var
=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath
=no
17236 hardcode_into_libs
=yes
17237 dynamic_linker
='ldqnx.so'
17242 sys_lib_dlsearch_path_spec
="/usr/lib"
17244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17246 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17247 *) need_version
=no
;;
17249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17250 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17251 shlibpath_var
=LD_LIBRARY_PATH
17252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17254 openbsd2.
[89] | openbsd2.
[89].
*)
17255 shlibpath_overrides_runpath
=no
17258 shlibpath_overrides_runpath
=yes
17262 shlibpath_overrides_runpath
=yes
17267 libname_spec
='$name'
17270 library_names_spec
='$libname${shared_ext} $libname.a'
17271 dynamic_linker
='OS/2 ld.exe'
17272 shlibpath_var
=LIBPATH
17275 osf3
* | osf4
* | osf5
*)
17279 soname_spec
='${libname}${release}${shared_ext}$major'
17280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 shlibpath_var
=LD_LIBRARY_PATH
17282 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17283 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec
='${libname}${release}${shared_ext}$major'
17296 shlibpath_var
=LD_LIBRARY_PATH
17297 shlibpath_overrides_runpath
=yes
17298 hardcode_into_libs
=yes
17299 # ldd complains unless libraries are executable
17300 postinstall_cmds
='chmod +x $lib'
17305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17306 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17307 shlibpath_var
=LD_LIBRARY_PATH
17308 shlibpath_overrides_runpath
=yes
17309 if test "$with_gnu_ld" = yes; then
17317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec
='${libname}${release}${shared_ext}$major'
17319 shlibpath_var
=LD_LIBRARY_PATH
17320 case $host_vendor in
17322 shlibpath_overrides_runpath
=no
17324 runpath_var
=LD_RUN_PATH
17332 shlibpath_overrides_runpath
=no
17333 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17339 if test -d /usr
/nec
;then
17341 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17342 soname_spec
='$libname${shared_ext}.$major'
17343 shlibpath_var
=LD_LIBRARY_PATH
17347 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17348 version_type
=freebsd-elf
17351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17352 soname_spec
='${libname}${release}${shared_ext}$major'
17353 shlibpath_var
=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath
=yes
17355 hardcode_into_libs
=yes
17356 if test "$with_gnu_ld" = yes; then
17357 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17359 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17362 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17366 sys_lib_dlsearch_path_spec
='/usr/lib'
17370 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375 shlibpath_var
=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath
=no
17377 hardcode_into_libs
=yes
17382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 soname_spec
='${libname}${release}${shared_ext}$major'
17384 shlibpath_var
=LD_LIBRARY_PATH
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17392 $as_echo "$dynamic_linker" >&6; }
17393 test "$dynamic_linker" = no
&& can_build_shared
=no
17395 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17396 if test "$GCC" = yes; then
17397 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17401 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17404 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17501 if test -n "$hardcode_libdir_flag_spec" ||
17502 test -n "$runpath_var" ||
17503 test "X$hardcode_automatic" = "Xyes" ; then
17505 # We can hardcode non-existent directories.
17506 if test "$hardcode_direct" != no
&&
17507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17508 # have to relink, otherwise we might link with an installed library
17509 # when we should be linking with a yet-to-be-installed one
17510 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17511 test "$hardcode_minus_L" != no
; then
17512 # Linking always hardcodes the temporary library directory.
17513 hardcode_action
=relink
17515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17516 hardcode_action
=immediate
17519 # We cannot hardcode anything, or else we can only hardcode existing
17521 hardcode_action
=unsupported
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17524 $as_echo "$hardcode_action" >&6; }
17526 if test "$hardcode_action" = relink ||
17527 test "$inherit_rpath" = yes; then
17528 # Fast installation is not supported
17529 enable_fast_install
=no
17530 elif test "$shlibpath_overrides_runpath" = yes ||
17531 test "$enable_shared" = no
; then
17532 # Fast installation is not necessary
17533 enable_fast_install
=needless
17541 if test "x$enable_dlopen" != xyes
; then
17542 enable_dlopen
=unknown
17543 enable_dlopen_self
=unknown
17544 enable_dlopen_self_static
=unknown
17551 lt_cv_dlopen
="load_add_on"
17553 lt_cv_dlopen_self
=yes
17556 mingw
* | pw32
* | cegcc
*)
17557 lt_cv_dlopen
="LoadLibrary"
17562 lt_cv_dlopen
="dlopen"
17567 # if libdl is installed we need to link against it
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17571 $as_echo_n "(cached) " >&6
17573 ac_check_lib_save_LIBS
=$LIBS
17575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17578 /* Override any GCC internal prototype to avoid an error.
17579 Use char because int might match the return type of a GCC
17580 builtin and then its argument prototype would still apply. */
17593 if ac_fn_c_try_link
"$LINENO"; then :
17594 ac_cv_lib_dl_dlopen
=yes
17596 ac_cv_lib_dl_dlopen
=no
17598 rm -f core conftest.err conftest.
$ac_objext \
17599 conftest
$ac_exeext conftest.
$ac_ext
17600 LIBS
=$ac_check_lib_save_LIBS
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17604 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17605 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17608 lt_cv_dlopen
="dyld"
17610 lt_cv_dlopen_self
=yes
17617 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17618 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17619 lt_cv_dlopen
="shl_load"
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17622 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17624 $as_echo_n "(cached) " >&6
17626 ac_check_lib_save_LIBS
=$LIBS
17628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17631 /* Override any GCC internal prototype to avoid an error.
17632 Use char because int might match the return type of a GCC
17633 builtin and then its argument prototype would still apply. */
17641 return shl_load ();
17646 if ac_fn_c_try_link
"$LINENO"; then :
17647 ac_cv_lib_dld_shl_load
=yes
17649 ac_cv_lib_dld_shl_load
=no
17651 rm -f core conftest.err conftest.
$ac_objext \
17652 conftest
$ac_exeext conftest.
$ac_ext
17653 LIBS
=$ac_check_lib_save_LIBS
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17656 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17657 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17658 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17660 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17661 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17662 lt_cv_dlopen
="dlopen"
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
17669 ac_check_lib_save_LIBS
=$LIBS
17671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17674 /* Override any GCC internal prototype to avoid an error.
17675 Use char because int might match the return type of a GCC
17676 builtin and then its argument prototype would still apply. */
17689 if ac_fn_c_try_link
"$LINENO"; then :
17690 ac_cv_lib_dl_dlopen
=yes
17692 ac_cv_lib_dl_dlopen
=no
17694 rm -f core conftest.err conftest.
$ac_objext \
17695 conftest
$ac_exeext conftest.
$ac_ext
17696 LIBS
=$ac_check_lib_save_LIBS
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17700 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17701 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17704 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17705 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17706 $as_echo_n "(cached) " >&6
17708 ac_check_lib_save_LIBS
=$LIBS
17709 LIBS
="-lsvld $LIBS"
17710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17713 /* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
17728 if ac_fn_c_try_link
"$LINENO"; then :
17729 ac_cv_lib_svld_dlopen
=yes
17731 ac_cv_lib_svld_dlopen
=no
17733 rm -f core conftest.err conftest.
$ac_objext \
17734 conftest
$ac_exeext conftest.
$ac_ext
17735 LIBS
=$ac_check_lib_save_LIBS
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17738 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17739 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17740 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17743 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17744 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17745 $as_echo_n "(cached) " >&6
17747 ac_check_lib_save_LIBS
=$LIBS
17749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h. */
17752 /* Override any GCC internal prototype to avoid an error.
17753 Use char because int might match the return type of a GCC
17754 builtin and then its argument prototype would still apply. */
17762 return dld_link ();
17767 if ac_fn_c_try_link
"$LINENO"; then :
17768 ac_cv_lib_dld_dld_link
=yes
17770 ac_cv_lib_dld_dld_link
=no
17772 rm -f core conftest.err conftest.
$ac_objext \
17773 conftest
$ac_exeext conftest.
$ac_ext
17774 LIBS
=$ac_check_lib_save_LIBS
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17777 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17778 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17779 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17800 if test "x$lt_cv_dlopen" != xno
; then
17806 case $lt_cv_dlopen in
17808 save_CPPFLAGS
="$CPPFLAGS"
17809 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17811 save_LDFLAGS
="$LDFLAGS"
17812 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17815 LIBS
="$lt_cv_dlopen_libs $LIBS"
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17818 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17819 if test "${lt_cv_dlopen_self+set}" = set; then :
17820 $as_echo_n "(cached) " >&6
17822 if test "$cross_compiling" = yes; then :
17823 lt_cv_dlopen_self
=cross
17825 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17826 lt_status
=$lt_dlunknown
17827 cat > conftest.
$ac_ext <<_LT_EOF
17828 #line 17828 "configure"
17829 #include "confdefs.h"
17838 # define LT_DLGLOBAL RTLD_GLOBAL
17841 # define LT_DLGLOBAL DL_GLOBAL
17843 # define LT_DLGLOBAL 0
17847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17848 find out it does not work in some platform. */
17849 #ifndef LT_DLLAZY_OR_NOW
17851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17854 # define LT_DLLAZY_OR_NOW DL_LAZY
17857 # define LT_DLLAZY_OR_NOW RTLD_NOW
17860 # define LT_DLLAZY_OR_NOW DL_NOW
17862 # define LT_DLLAZY_OR_NOW 0
17869 /* When -fvisbility=hidden is used, assume the code has been annotated
17870 correspondingly for the symbols needed. */
17871 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17872 void fnord () __attribute__((visibility("default")));
17875 void fnord () { int i=42; }
17878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17879 int status = $lt_dlunknown;
17883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17887 else puts (dlerror ());
17889 /* dlclose (self); */
17897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17898 (eval $ac_link) 2>&5
17900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17902 (.
/conftest
; exit; ) >&5 2>/dev
/null
17904 case x
$lt_status in
17905 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17906 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17907 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17910 # compilation failed
17911 lt_cv_dlopen_self
=no
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17919 $as_echo "$lt_cv_dlopen_self" >&6; }
17921 if test "x$lt_cv_dlopen_self" = xyes
; then
17922 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17924 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17925 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17926 $as_echo_n "(cached) " >&6
17928 if test "$cross_compiling" = yes; then :
17929 lt_cv_dlopen_self_static
=cross
17931 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17932 lt_status
=$lt_dlunknown
17933 cat > conftest.
$ac_ext <<_LT_EOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17944 # define LT_DLGLOBAL RTLD_GLOBAL
17947 # define LT_DLGLOBAL DL_GLOBAL
17949 # define LT_DLGLOBAL 0
17953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954 find out it does not work in some platform. */
17955 #ifndef LT_DLLAZY_OR_NOW
17957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17960 # define LT_DLLAZY_OR_NOW DL_LAZY
17963 # define LT_DLLAZY_OR_NOW RTLD_NOW
17966 # define LT_DLLAZY_OR_NOW DL_NOW
17968 # define LT_DLLAZY_OR_NOW 0
17975 /* When -fvisbility=hidden is used, assume the code has been annotated
17976 correspondingly for the symbols needed. */
17977 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17978 void fnord () __attribute__((visibility("default")));
17981 void fnord () { int i=42; }
17984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17985 int status = $lt_dlunknown;
17989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17993 else puts (dlerror ());
17995 /* dlclose (self); */
18003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18004 (eval $ac_link) 2>&5
18006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18008 (.
/conftest
; exit; ) >&5 2>/dev
/null
18010 case x
$lt_status in
18011 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18012 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18013 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18016 # compilation failed
18017 lt_cv_dlopen_self_static
=no
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18025 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18028 CPPFLAGS
="$save_CPPFLAGS"
18029 LDFLAGS
="$save_LDFLAGS"
18034 case $lt_cv_dlopen_self in
18035 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18036 *) enable_dlopen_self
=unknown
;;
18039 case $lt_cv_dlopen_self_static in
18040 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18041 *) enable_dlopen_self_static
=unknown
;;
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18064 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18065 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18066 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18067 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18069 $as_echo "yes" >&6; }
18071 # FIXME - insert some real tests, host_os isn't really good enough
18074 if test -n "$STRIP" ; then
18075 striplib
="$STRIP -x"
18076 old_striplib
="$STRIP -S"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18078 $as_echo "yes" >&6; }
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18081 $as_echo "no" >&6; }
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18086 $as_echo "no" >&6; }
18102 # Report which library types will actually be built
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18104 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18106 $as_echo "$can_build_shared" >&6; }
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18109 $as_echo_n "checking whether to build shared libraries... " >&6; }
18110 test "$can_build_shared" = "no" && enable_shared
=no
18112 # On AIX, shared libraries and static libraries use the same namespace, and
18113 # are all built from PIC.
18116 test "$enable_shared" = yes && enable_static
=no
18117 if test -n "$RANLIB"; then
18118 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18119 postinstall_cmds
='$RANLIB $lib'
18124 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18125 test "$enable_shared" = yes && enable_static
=no
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18130 $as_echo "$enable_shared" >&6; }
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18133 $as_echo_n "checking whether to build static libraries... " >&6; }
18134 # Make sure either enable_shared or enable_static is yes.
18135 test "$enable_shared" = yes || enable_static
=yes
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18137 $as_echo "$enable_static" >&6; }
18144 ac_cpp
='$CPP $CPPFLAGS'
18145 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18146 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18147 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18151 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18152 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18153 (test "X$CXX" != "Xg++"))) ; then
18155 ac_cpp
='$CXXCPP $CPPFLAGS'
18156 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18157 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18158 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18160 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18161 if test -z "$CXXCPP"; then
18162 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18163 $as_echo_n "(cached) " >&6
18165 # Double quotes because CXXCPP needs to be expanded
18166 for CXXCPP
in "$CXX -E" "/lib/cpp"
18168 ac_preproc_ok
=false
18169 for ac_cxx_preproc_warn_flag
in '' yes
18171 # Use a header file that comes with gcc, so configuring glibc
18172 # with a fresh cross-compiler works.
18173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18174 # <limits.h> exists even on freestanding compilers.
18175 # On the NeXT, cc -E runs the code through the compiler's parser,
18176 # not just through cpp. "Syntax error" is here to catch this case.
18177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18180 # include <limits.h>
18182 # include <assert.h>
18186 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18189 # Broken: fails on valid input.
18192 rm -f conftest.err conftest.
$ac_ext
18194 # OK, works on sane cases. Now check whether nonexistent headers
18195 # can be detected and how.
18196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18198 #include <ac_nonexistent.h>
18200 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18201 # Broken: success on invalid input.
18204 # Passes both tests.
18208 rm -f conftest.err conftest.
$ac_ext
18211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18212 rm -f conftest.err conftest.
$ac_ext
18213 if $ac_preproc_ok; then :
18218 ac_cv_prog_CXXCPP
=$CXXCPP
18221 CXXCPP
=$ac_cv_prog_CXXCPP
18223 ac_cv_prog_CXXCPP
=$CXXCPP
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18226 $as_echo "$CXXCPP" >&6; }
18227 ac_preproc_ok
=false
18228 for ac_cxx_preproc_warn_flag
in '' yes
18230 # Use a header file that comes with gcc, so configuring glibc
18231 # with a fresh cross-compiler works.
18232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18233 # <limits.h> exists even on freestanding compilers.
18234 # On the NeXT, cc -E runs the code through the compiler's parser,
18235 # not just through cpp. "Syntax error" is here to catch this case.
18236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18239 # include <limits.h>
18241 # include <assert.h>
18245 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18248 # Broken: fails on valid input.
18251 rm -f conftest.err conftest.
$ac_ext
18253 # OK, works on sane cases. Now check whether nonexistent headers
18254 # can be detected and how.
18255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257 #include <ac_nonexistent.h>
18259 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18260 # Broken: success on invalid input.
18263 # Passes both tests.
18267 rm -f conftest.err conftest.
$ac_ext
18270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18271 rm -f conftest.err conftest.
$ac_ext
18272 if $ac_preproc_ok; then :
18275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18277 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18278 See \`config.log' for more details." "$LINENO" 5; }
18282 ac_cpp
='$CPP $CPPFLAGS'
18283 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18284 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18285 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18288 _lt_caught_CXX_error
=yes
18292 ac_cpp
='$CXXCPP $CPPFLAGS'
18293 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18294 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18295 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18297 archive_cmds_need_lc_CXX
=no
18298 allow_undefined_flag_CXX
=
18299 always_export_symbols_CXX
=no
18300 archive_expsym_cmds_CXX
=
18301 compiler_needs_object_CXX
=no
18302 export_dynamic_flag_spec_CXX
=
18303 hardcode_direct_CXX
=no
18304 hardcode_direct_absolute_CXX
=no
18305 hardcode_libdir_flag_spec_CXX
=
18306 hardcode_libdir_flag_spec_ld_CXX
=
18307 hardcode_libdir_separator_CXX
=
18308 hardcode_minus_L_CXX
=no
18309 hardcode_shlibpath_var_CXX
=unsupported
18310 hardcode_automatic_CXX
=no
18311 inherit_rpath_CXX
=no
18313 module_expsym_cmds_CXX
=
18314 link_all_deplibs_CXX
=unknown
18315 old_archive_cmds_CXX
=$old_archive_cmds
18316 reload_flag_CXX
=$reload_flag
18317 reload_cmds_CXX
=$reload_cmds
18318 no_undefined_flag_CXX
=
18319 whole_archive_flag_spec_CXX
=
18320 enable_shared_with_static_runtimes_CXX
=no
18322 # Source file extension for C++ test sources.
18325 # Object file extension for compiled C++ test sources.
18329 # No sense in running all these tests if we already determined that
18330 # the CXX compiler isn't working. Some variables (like enable_shared)
18331 # are currently assumed to apply to all compilers on this platform,
18332 # and will be corrupted by setting them based on a non-working compiler.
18333 if test "$_lt_caught_CXX_error" != yes; then
18334 # Code to be used in simple compile tests
18335 lt_simple_compile_test_code
="int some_variable = 0;"
18337 # Code to be used in simple link tests
18338 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18340 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18347 # If no C compiler was specified, use CC.
18350 # If no C compiler flags were specified, use CFLAGS.
18351 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18353 # Allow CC to be a program name with arguments.
18357 # save warnings/boilerplate of simple test code
18358 ac_outfile
=conftest.
$ac_objext
18359 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18360 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18361 _lt_compiler_boilerplate
=`cat conftest.err`
18364 ac_outfile
=conftest.
$ac_objext
18365 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18366 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18367 _lt_linker_boilerplate
=`cat conftest.err`
18371 # Allow CC to be a program name with arguments.
18376 lt_save_with_gnu_ld
=$with_gnu_ld
18377 lt_save_path_LD
=$lt_cv_path_LD
18378 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18379 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18381 $as_unset lt_cv_prog_gnu_ld
18383 if test -n "${lt_cv_path_LDCXX+set}"; then
18384 lt_cv_path_LD
=$lt_cv_path_LDCXX
18386 $as_unset lt_cv_path_LD
18388 test -z "${LDCXX+set}" || LD
=$LDCXX
18392 for cc_temp
in $compiler""; do
18394 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18395 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18400 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18403 if test -n "$compiler"; then
18404 # We don't want -fno-exception when compiling C++ code, so set the
18405 # no_builtin_flag separately
18406 if test "$GXX" = yes; then
18407 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18409 lt_prog_compiler_no_builtin_flag_CXX
=
18412 if test "$GXX" = yes; then
18413 # Set up default GNU C++ configuration
18417 # Check whether --with-gnu-ld was given.
18418 if test "${with_gnu_ld+set}" = set; then :
18419 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18425 if test "$GCC" = yes; then
18426 # Check if gcc -print-prog-name=ld gives a path.
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18428 $as_echo_n "checking for ld used by $CC... " >&6; }
18431 # gcc leaves a trailing carriage return which upsets mingw
18432 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18434 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18437 # Accept absolute paths.
18439 re_direlt
='/[^/][^/]*/\.\./'
18440 # Canonicalize the pathname of ld
18441 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18442 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18443 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18445 test -z "$LD" && LD
="$ac_prog"
18448 # If it fails, then pretend we aren't using GCC.
18452 # If it is relative, then search for the first ld in PATH.
18453 with_gnu_ld
=unknown
18456 elif test "$with_gnu_ld" = yes; then
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18458 $as_echo_n "checking for GNU ld... " >&6; }
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18461 $as_echo_n "checking for non-GNU ld... " >&6; }
18463 if test "${lt_cv_path_LD+set}" = set; then :
18464 $as_echo_n "(cached) " >&6
18466 if test -z "$LD"; then
18467 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18468 for ac_dir
in $PATH; do
18470 test -z "$ac_dir" && ac_dir
=.
18471 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18472 lt_cv_path_LD
="$ac_dir/$ac_prog"
18473 # Check to see if the program is GNU ld. I'd rather use --version,
18474 # but apparently some variants of GNU ld only accept -v.
18475 # Break only if it was the GNU/non-GNU ld that we prefer.
18476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18477 *GNU
* |
*'with BFD'*)
18478 test "$with_gnu_ld" != no
&& break
18481 test "$with_gnu_ld" != yes && break
18488 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18492 LD
="$lt_cv_path_LD"
18493 if test -n "$LD"; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18495 $as_echo "$LD" >&6; }
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 $as_echo "no" >&6; }
18500 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18502 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18503 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18504 $as_echo_n "(cached) " >&6
18506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18507 case `$LD -v 2>&1 </dev/null` in
18508 *GNU
* |
*'with BFD'*)
18509 lt_cv_prog_gnu_ld
=yes
18512 lt_cv_prog_gnu_ld
=no
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18517 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18518 with_gnu_ld
=$lt_cv_prog_gnu_ld
18526 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18527 # archiving commands below assume that GNU ld is being used.
18528 if test "$with_gnu_ld" = yes; then
18529 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18530 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'
18532 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18533 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18535 # If archive_cmds runs LD, not CC, wlarc should be empty
18536 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18537 # investigate it a little bit more. (MM)
18540 # ancient GNU ld didn't support --whole-archive et. al.
18541 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18542 $GREP 'no-whole-archive' > /dev
/null
; then
18543 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18545 whole_archive_flag_spec_CXX
=
18551 # A generic and very simple default shared library creation
18552 # command for GNU C++ for the case where it uses the native
18553 # linker, instead of GNU ld. If possible, this setting should
18554 # overridden to take advantage of the native linker features on
18555 # the platform it is being used on.
18556 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18559 # Commands to make compiler produce verbose output that lists
18560 # what "hidden" libraries, object files and flags are used when
18561 # linking a shared library.
18562 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18570 # PORTME: fill in a description of your system's C++ link characteristics
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18572 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18576 # FIXME: insert proper C++ library support
18580 if test "$host_cpu" = ia64
; then
18581 # On IA64, the linker does run time linking by default, so we don't
18582 # have to do anything special.
18583 aix_use_runtimelinking
=no
18584 exp_sym_flag
='-Bexport'
18587 aix_use_runtimelinking
=no
18589 # Test if we are trying to use run time linking or normal
18590 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18591 # need to do runtime linking.
18592 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18593 for ld_flag
in $LDFLAGS; do
18596 aix_use_runtimelinking
=yes
18604 exp_sym_flag
='-bexport'
18605 no_entry_flag
='-bnoentry'
18608 # When large executables or shared objects are built, AIX ld can
18609 # have problems creating the table of contents. If linking a library
18610 # or program results in "error TOC overflow" add -mminimal-toc to
18611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18614 archive_cmds_CXX
=''
18615 hardcode_direct_CXX
=yes
18616 hardcode_direct_absolute_CXX
=yes
18617 hardcode_libdir_separator_CXX
=':'
18618 link_all_deplibs_CXX
=yes
18619 file_list_spec_CXX
='${wl}-f,'
18621 if test "$GXX" = yes; then
18622 case $host_os in aix4.
[012]|aix4.
[012].
*)
18623 # We only want to do this on AIX 4.2 and lower, the check
18624 # below for broken collect2 doesn't work under 4.3+
18625 collect2name
=`${CC} -print-prog-name=collect2`
18626 if test -f "$collect2name" &&
18627 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18629 # We have reworked collect2
18632 # We have old collect2
18633 hardcode_direct_CXX
=unsupported
18634 # It fails to find uninstalled libraries when the uninstalled
18635 # path is not listed in the libpath. Setting hardcode_minus_L
18636 # to unsupported forces relinking
18637 hardcode_minus_L_CXX
=yes
18638 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18639 hardcode_libdir_separator_CXX
=
18642 shared_flag
='-shared'
18643 if test "$aix_use_runtimelinking" = yes; then
18644 shared_flag
="$shared_flag "'${wl}-G'
18648 if test "$host_cpu" = ia64
; then
18649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18650 # chokes on -Wl,-G. The following line is correct:
18653 if test "$aix_use_runtimelinking" = yes; then
18654 shared_flag
='${wl}-G'
18656 shared_flag
='${wl}-bM:SRE'
18661 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18662 # It seems that -bexpall does not export symbols beginning with
18663 # underscore (_), so it is better to generate a list of symbols to
18665 always_export_symbols_CXX
=yes
18666 if test "$aix_use_runtimelinking" = yes; then
18667 # Warning - without using the other runtime loading flags (-brtl),
18668 # -berok will link without error, but may produce a broken library.
18669 allow_undefined_flag_CXX
='-berok'
18670 # Determine the default libpath from the value encoded in an empty
18672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18683 if ac_fn_cxx_try_link
"$LINENO"; then :
18685 lt_aix_libpath_sed
='
18686 /Import File Strings/,/^$/ {
18692 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18693 # Check for a 64-bit object if we didn't find anything.
18694 if test -z "$aix_libpath"; then
18695 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18698 rm -f core conftest.err conftest.
$ac_objext \
18699 conftest
$ac_exeext conftest.
$ac_ext
18700 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18702 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18704 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"
18706 if test "$host_cpu" = ia64
; then
18707 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18708 allow_undefined_flag_CXX
="-z nodefs"
18709 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"
18711 # Determine the default libpath from the value encoded in an
18712 # empty executable.
18713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18714 /* end confdefs.h. */
18724 if ac_fn_cxx_try_link
"$LINENO"; then :
18726 lt_aix_libpath_sed
='
18727 /Import File Strings/,/^$/ {
18733 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18734 # Check for a 64-bit object if we didn't find anything.
18735 if test -z "$aix_libpath"; then
18736 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18739 rm -f core conftest.err conftest.
$ac_objext \
18740 conftest
$ac_exeext conftest.
$ac_ext
18741 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18743 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18744 # Warning - without using the other run time loading flags,
18745 # -berok will link without error, but may produce a broken library.
18746 no_undefined_flag_CXX
=' ${wl}-bernotok'
18747 allow_undefined_flag_CXX
=' ${wl}-berok'
18748 if test "$with_gnu_ld" = yes; then
18749 # We only use this code for GNU lds that support --whole-archive.
18750 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18752 # Exported symbols can be pulled into shared objects from archives
18753 whole_archive_flag_spec_CXX
='$convenience'
18755 archive_cmds_need_lc_CXX
=yes
18756 # This is similar to how AIX traditionally builds its shared
18758 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'
18764 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18765 allow_undefined_flag_CXX
=unsupported
18766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18767 # support --undefined. This deserves some investigation. FIXME
18768 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18775 case $cc_basename in
18777 # FIXME: insert proper C++ library support
18783 cygwin
* | mingw
* | pw32
* | cegcc
*)
18784 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18785 # as there is no search path for DLLs.
18786 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18787 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18788 allow_undefined_flag_CXX
=unsupported
18789 always_export_symbols_CXX
=no
18790 enable_shared_with_static_runtimes_CXX
=yes
18792 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18793 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'
18794 # If the export-symbols file already is a .def file (1st line
18795 # is EXPORTS), use it as is; otherwise, prepend...
18796 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18797 cp $export_symbols $output_objdir/$soname.def;
18799 echo EXPORTS > $output_objdir/$soname.def;
18800 cat $export_symbols >> $output_objdir/$soname.def;
18802 $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'
18807 darwin
* | rhapsody
*)
18810 archive_cmds_need_lc_CXX
=no
18811 hardcode_direct_CXX
=no
18812 hardcode_automatic_CXX
=yes
18813 hardcode_shlibpath_var_CXX
=unsupported
18814 if test "$lt_cv_ld_force_load" = "yes"; then
18815 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\"`'
18817 whole_archive_flag_spec_CXX
=''
18819 link_all_deplibs_CXX
=yes
18820 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18821 case $cc_basename in
18822 ifort
*) _lt_dar_can_shared
=yes ;;
18823 *) _lt_dar_can_shared
=$GCC ;;
18825 if test "$_lt_dar_can_shared" = "yes"; then
18826 output_verbose_link_cmd
=func_echo_all
18827 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}"
18828 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18829 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}"
18830 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}"
18831 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18832 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}"
18833 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}"
18843 case $cc_basename in
18845 # FIXME: insert proper C++ library support
18849 # Green Hills C++ Compiler
18850 # FIXME: insert proper C++ library support
18854 # FIXME: insert proper C++ library support
18861 # C++ shared libraries reported to be fairly broken before
18867 archive_cmds_need_lc_CXX
=no
18870 freebsd
* | dragonfly
*)
18871 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18880 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18881 link_all_deplibs_CXX
=yes
18885 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18886 hardcode_libdir_separator_CXX
=:
18887 export_dynamic_flag_spec_CXX
='${wl}-E'
18888 hardcode_direct_CXX
=yes
18889 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18890 # but as the default
18891 # location of the library.
18893 case $cc_basename in
18895 # FIXME: insert proper C++ library support
18899 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'
18900 # Commands to make compiler produce verbose output that lists
18901 # what "hidden" libraries, object files and flags are used when
18902 # linking a shared library.
18904 # There doesn't appear to be a way to prevent this compiler from
18905 # explicitly linking system object files so we need to strip them
18906 # from the output so that they don't get included in the library
18908 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"'
18911 if test "$GXX" = yes; then
18912 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'
18914 # FIXME: insert proper C++ library support
18922 if test $with_gnu_ld = no
; then
18923 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18924 hardcode_libdir_separator_CXX
=:
18930 export_dynamic_flag_spec_CXX
='${wl}-E'
18936 hardcode_direct_CXX
=no
18937 hardcode_shlibpath_var_CXX
=no
18940 hardcode_direct_CXX
=yes
18941 hardcode_direct_absolute_CXX
=yes
18942 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18943 # but as the default
18944 # location of the library.
18948 case $cc_basename in
18950 # FIXME: insert proper C++ library support
18956 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18959 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18962 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18965 # Commands to make compiler produce verbose output that lists
18966 # what "hidden" libraries, object files and flags are used when
18967 # linking a shared library.
18969 # There doesn't appear to be a way to prevent this compiler from
18970 # explicitly linking system object files so we need to strip them
18971 # from the output so that they don't get included in the library
18973 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"'
18976 if test "$GXX" = yes; then
18977 if test $with_gnu_ld = no
; then
18980 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18983 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18986 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'
18991 # FIXME: insert proper C++ library support
18999 hardcode_direct_CXX
=no
19000 hardcode_shlibpath_var_CXX
=no
19001 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19002 export_dynamic_flag_spec_CXX
='${wl}-E'
19003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19004 # Instead, shared libraries are loaded at an image base (0x10000000 by
19005 # default) and relocated if they conflict, which is a slow very memory
19006 # consuming and fragmenting process. To avoid this, we pick a random,
19007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19008 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19009 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'
19010 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'
19013 case $cc_basename in
19016 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'
19018 # Archives containing C++ object files must be created using
19019 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19020 # necessary to make sure instantiated templates are included
19022 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19025 if test "$GXX" = yes; then
19026 if test "$with_gnu_ld" = no
; then
19027 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'
19029 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'
19032 link_all_deplibs_CXX
=yes
19035 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19036 hardcode_libdir_separator_CXX
=:
19037 inherit_rpath_CXX
=yes
19040 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19041 case $cc_basename in
19043 # Kuck and Associates, Inc. (KAI) C++ Compiler
19045 # KCC will only create a shared library if the output file
19046 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19047 # to its proper name (with version) after linking.
19048 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'
19049 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'
19050 # Commands to make compiler produce verbose output that lists
19051 # what "hidden" libraries, object files and flags are used when
19052 # linking a shared library.
19054 # There doesn't appear to be a way to prevent this compiler from
19055 # explicitly linking system object files so we need to strip them
19056 # from the output so that they don't get included in the library
19058 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"'
19060 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19061 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19063 # Archives containing C++ object files must be created using
19064 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19065 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19070 # version 8.0 and above of icpc choke on multiply defined symbols
19071 # if we add $predep_objects and $postdep_objects, however 7.1 and
19072 # earlier do not add the objects themselves.
19073 case `$CC -V 2>&1` in
19075 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19076 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'
19078 *) # Version 8.0 or newer
19081 ia64
*) tmp_idyn
=' -i_dynamic';;
19083 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19084 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'
19087 archive_cmds_need_lc_CXX
=no
19088 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19089 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19090 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19093 # Portland Group C++ compiler
19095 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19096 prelink_cmds_CXX
='tpldir=Template.dir~
19098 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19099 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19100 old_archive_cmds_CXX
='tpldir=Template.dir~
19102 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19103 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19105 archive_cmds_CXX
='tpldir=Template.dir~
19107 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19108 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19109 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19111 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19112 $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'
19114 *) # Version 6 and above use weak symbols
19115 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19116 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'
19120 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19121 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19122 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'
19126 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19127 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'
19129 runpath_var
=LD_RUN_PATH
19130 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19131 hardcode_libdir_separator_CXX
=:
19133 # Commands to make compiler produce verbose output that lists
19134 # what "hidden" libraries, object files and flags are used when
19135 # linking a shared library.
19137 # There doesn't appear to be a way to prevent this compiler from
19138 # explicitly linking system object files so we need to strip them
19139 # from the output so that they don't get included in the library
19141 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'
19143 xl
* | mpixl
* | bgxl
*)
19144 # IBM XL 8.0 on PPC, with GNU ld
19145 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19146 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19147 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148 if test "x$supports_anon_versioning" = xyes
; then
19149 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19151 echo "local: *; };" >> $output_objdir/$libname.ver~
19152 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19156 case `$CC -V 2>&1 | sed 5q` in
19159 no_undefined_flag_CXX
=' -zdefs'
19160 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19161 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'
19162 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19163 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'
19164 compiler_needs_object_CXX
=yes
19166 # Not sure whether something based on
19167 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19169 output_verbose_link_cmd
='func_echo_all'
19171 # Archives containing C++ object files must be created using
19172 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19173 # necessary to make sure instantiated templates are included
19175 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19183 # FIXME: insert proper C++ library support
19188 # FIXME: insert proper C++ library support
19193 case $cc_basename in
19195 # FIXME: insert proper C++ library support
19199 # FIXME: insert proper C++ library support
19206 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19207 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19209 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19210 hardcode_direct_CXX
=yes
19211 hardcode_shlibpath_var_CXX
=no
19213 # Workaround some broken pre-1.5 toolchains
19214 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19222 # C++ shared libraries are fairly broken
19227 if test -f /usr
/libexec
/ld.so
; then
19228 hardcode_direct_CXX
=yes
19229 hardcode_shlibpath_var_CXX
=no
19230 hardcode_direct_absolute_CXX
=yes
19231 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19232 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19234 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19235 export_dynamic_flag_spec_CXX
='${wl}-E'
19236 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19238 output_verbose_link_cmd
=func_echo_all
19244 osf3
* | osf4
* | osf5
*)
19245 case $cc_basename in
19247 # Kuck and Associates, Inc. (KAI) C++ Compiler
19249 # KCC will only create a shared library if the output file
19250 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19251 # to its proper name (with version) after linking.
19252 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'
19254 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19255 hardcode_libdir_separator_CXX
=:
19257 # Archives containing C++ object files must be created using
19258 # the KAI C++ compiler.
19260 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19261 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19265 # Rational C++ 2.4.1
19266 # FIXME: insert proper C++ library support
19272 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19273 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'
19274 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19277 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19278 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'
19279 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19280 echo "-hidden">> $lib.exp~
19281 $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~
19283 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19287 hardcode_libdir_separator_CXX
=:
19289 # Commands to make compiler produce verbose output that lists
19290 # what "hidden" libraries, object files and flags are used when
19291 # linking a shared library.
19293 # There doesn't appear to be a way to prevent this compiler from
19294 # explicitly linking system object files so we need to strip them
19295 # from the output so that they don't get included in the library
19297 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"'
19300 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19301 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19304 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'
19307 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'
19311 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19312 hardcode_libdir_separator_CXX
=:
19314 # Commands to make compiler produce verbose output that lists
19315 # what "hidden" libraries, object files and flags are used when
19316 # linking a shared library.
19317 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19320 # FIXME: insert proper C++ library support
19328 # FIXME: insert proper C++ library support
19333 case $cc_basename in
19336 # FIXME: insert proper C++ library support
19341 # FIXME: insert proper C++ library support
19345 # FIXME: insert proper C++ library support
19352 case $cc_basename in
19354 # Sun C++ 4.2, 5.x and Centerline C++
19355 archive_cmds_need_lc_CXX
=yes
19356 no_undefined_flag_CXX
=' -zdefs'
19357 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19358 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19359 $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'
19361 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19362 hardcode_shlibpath_var_CXX
=no
19364 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19366 # The compiler driver will combine and reorder linker options,
19367 # but understands `-z linker_flag'.
19368 # Supported since Solaris 2.6 (maybe 2.5.1?)
19369 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19372 link_all_deplibs_CXX
=yes
19374 output_verbose_link_cmd
='func_echo_all'
19376 # Archives containing C++ object files must be created using
19377 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19378 # necessary to make sure instantiated templates are included
19380 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19383 # Green Hills C++ Compiler
19384 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19386 # The C++ compiler must be used to create the archive.
19387 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19390 # GNU C++ compiler with Solaris linker
19391 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19392 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19393 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19394 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19395 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19396 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19398 # Commands to make compiler produce verbose output that lists
19399 # what "hidden" libraries, object files and flags are used when
19400 # linking a shared library.
19401 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19403 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19405 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19406 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19407 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19409 # Commands to make compiler produce verbose output that lists
19410 # what "hidden" libraries, object files and flags are used when
19411 # linking a shared library.
19412 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19415 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19417 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19419 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19427 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19428 no_undefined_flag_CXX
='${wl}-z,text'
19429 archive_cmds_need_lc_CXX
=no
19430 hardcode_shlibpath_var_CXX
=no
19431 runpath_var
='LD_RUN_PATH'
19433 case $cc_basename in
19435 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19436 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19439 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19440 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19445 sysv5
* | sco3.2v5
* | sco5v6
*)
19446 # Note: We can NOT use -z defs as we might desire, because we do not
19447 # link with -lc, and that would cause any symbols used from libc to
19448 # always be unresolved, which means just about no library would
19449 # ever link correctly. If we're not using GNU ld we use -z text
19450 # though, which does catch some bad symbols but isn't as heavy-handed
19452 no_undefined_flag_CXX
='${wl}-z,text'
19453 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19454 archive_cmds_need_lc_CXX
=no
19455 hardcode_shlibpath_var_CXX
=no
19456 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19457 hardcode_libdir_separator_CXX
=':'
19458 link_all_deplibs_CXX
=yes
19459 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19460 runpath_var
='LD_RUN_PATH'
19462 case $cc_basename in
19464 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19465 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19466 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19467 '"$old_archive_cmds_CXX"
19468 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19469 '"$reload_cmds_CXX"
19472 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19473 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19479 case $cc_basename in
19481 # NonStop-UX NCC 3.20
19482 # FIXME: insert proper C++ library support
19486 # FIXME: insert proper C++ library support
19493 # FIXME: insert proper C++ library support
19498 # FIXME: insert proper C++ library support
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19504 $as_echo "$ld_shlibs_CXX" >&6; }
19505 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19511 ## There is no encapsulation within the following macros, do not change
19512 ## the running order or otherwise move them around unless you know exactly
19513 ## what you are doing...
19514 # Dependencies to place before and after the object being linked:
19515 predep_objects_CXX
=
19516 postdep_objects_CXX
=
19519 compiler_lib_search_path_CXX
=
19521 cat > conftest.
$ac_ext <<_LT_EOF
19525 Foo (void) { a = 0; }
19531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19532 (eval $ac_compile) 2>&5
19534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19535 test $ac_status = 0; }; then
19536 # Parse the compiler output and extract the necessary
19537 # objects, libraries and library flags.
19539 # Sentinel used to keep track of whether or not we are before
19540 # the conftest object file.
19541 pre_test_object_deps_done
=no
19543 for p
in `eval "$output_verbose_link_cmd"`; do
19547 # Some compilers place space between "-{L,R}" and the path.
19548 # Remove the space.
19549 if test $p = "-L" ||
19550 test $p = "-R"; then
19557 if test "$pre_test_object_deps_done" = no
; then
19560 # Internal compiler library paths should come after those
19561 # provided the user. The postdeps already come after the
19562 # user supplied libs so there is no need to process them.
19563 if test -z "$compiler_lib_search_path_CXX"; then
19564 compiler_lib_search_path_CXX
="${prev}${p}"
19566 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19569 # The "-l" case would never come before the object being
19570 # linked, so don't bother handling this case.
19573 if test -z "$postdeps_CXX"; then
19574 postdeps_CXX
="${prev}${p}"
19576 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19582 # This assumes that the test object file only shows up
19583 # once in the compiler output.
19584 if test "$p" = "conftest.$objext"; then
19585 pre_test_object_deps_done
=yes
19589 if test "$pre_test_object_deps_done" = no
; then
19590 if test -z "$predep_objects_CXX"; then
19591 predep_objects_CXX
="$p"
19593 predep_objects_CXX
="$predep_objects_CXX $p"
19596 if test -z "$postdep_objects_CXX"; then
19597 postdep_objects_CXX
="$p"
19599 postdep_objects_CXX
="$postdep_objects_CXX $p"
19604 *) ;; # Ignore the rest.
19612 echo "libtool.m4: error: problem compiling CXX test program"
19615 $RM -f confest.
$objext
19617 # PORTME: override above test on systems where it is broken
19620 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19621 # hack all around it, let's just trust "g++" to DTRT.
19622 predep_objects_CXX
=
19623 postdep_objects_CXX
=
19628 case `$CC -V 2>&1 | sed 5q` in
19632 # The more standards-conforming stlport4 library is
19633 # incompatible with the Cstd library. Avoid specifying
19634 # it if it's in CXXFLAGS. Ignore libCrun as
19635 # -library=stlport4 depends on it.
19636 case " $CXX $CXXFLAGS " in
19637 *" -library=stlport4 "*)
19638 solaris_use_stlport4
=yes
19642 if test "$solaris_use_stlport4" != yes; then
19643 postdeps_CXX
='-library=Cstd -library=Crun'
19650 case $cc_basename in
19652 # The more standards-conforming stlport4 library is
19653 # incompatible with the Cstd library. Avoid specifying
19654 # it if it's in CXXFLAGS. Ignore libCrun as
19655 # -library=stlport4 depends on it.
19656 case " $CXX $CXXFLAGS " in
19657 *" -library=stlport4 "*)
19658 solaris_use_stlport4
=yes
19662 # Adding this requires a known-good setup of shared libraries for
19663 # Sun compiler versions before 5.6, else PIC objects from an old
19664 # archive will be linked into the output, leading to subtle bugs.
19665 if test "$solaris_use_stlport4" != yes; then
19666 postdeps_CXX
='-library=Cstd -library=Crun'
19674 case " $postdeps_CXX " in
19675 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19677 compiler_lib_search_dirs_CXX
=
19678 if test -n "${compiler_lib_search_path_CXX}"; then
19679 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19712 lt_prog_compiler_wl_CXX
=
19713 lt_prog_compiler_pic_CXX
=
19714 lt_prog_compiler_static_CXX
=
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19717 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19719 # C++ specific cases for pic, static, wl, etc.
19720 if test "$GXX" = yes; then
19721 lt_prog_compiler_wl_CXX
='-Wl,'
19722 lt_prog_compiler_static_CXX
='-static'
19726 # All AIX code is PIC.
19727 if test "$host_cpu" = ia64
; then
19728 # AIX 5 now supports IA64 processor
19729 lt_prog_compiler_static_CXX
='-Bstatic'
19731 lt_prog_compiler_pic_CXX
='-fPIC'
19737 # see comment about AmigaOS4 .so support
19738 lt_prog_compiler_pic_CXX
='-fPIC'
19741 # FIXME: we need at least 68020 code to build shared libraries, but
19742 # adding the `-m68020' flag to GCC prevents building anything better,
19744 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19749 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19750 # PIC is the default for these OSes.
19752 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19753 # This hack is so that the source file can tell whether it is being
19754 # built for inclusion in a dll (and should export symbols for example).
19755 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19756 # (--disable-auto-import) libraries
19757 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19759 darwin
* | rhapsody
*)
19760 # PIC is the default on this platform
19761 # Common symbols not allowed in MH_DYLIB files
19762 lt_prog_compiler_pic_CXX
='-fno-common'
19765 # DJGPP does not support shared libraries at all
19766 lt_prog_compiler_pic_CXX
=
19769 # PIC is the default for Haiku.
19770 # The "-static" flag exists, but is broken.
19771 lt_prog_compiler_static_CXX
=
19774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19775 # Instead, we relocate shared libraries at runtime.
19778 if test -d /usr
/nec
; then
19779 lt_prog_compiler_pic_CXX
=-Kconform_pic
19783 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19784 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19785 # sets the default TLS model and affects inlining.
19790 lt_prog_compiler_pic_CXX
='-fPIC'
19795 # QNX uses GNU C++, but need to define -shared option too, otherwise
19796 # it will coredump.
19797 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19800 lt_prog_compiler_pic_CXX
='-fPIC'
19806 # All AIX code is PIC.
19807 if test "$host_cpu" = ia64
; then
19808 # AIX 5 now supports IA64 processor
19809 lt_prog_compiler_static_CXX
='-Bstatic'
19811 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19815 case $cc_basename in
19817 # Green Hills C++ Compiler
19818 # _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"
19823 case $cc_basename in
19825 lt_prog_compiler_pic_CXX
='-KPIC'
19828 # Green Hills C++ Compiler
19829 lt_prog_compiler_pic_CXX
='-pic'
19835 freebsd
* | dragonfly
*)
19836 # FreeBSD uses GNU C++
19838 hpux9
* | hpux10
* | hpux11
*)
19839 case $cc_basename in
19841 lt_prog_compiler_wl_CXX
='-Wl,'
19842 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19843 if test "$host_cpu" != ia64
; then
19844 lt_prog_compiler_pic_CXX
='+Z'
19848 lt_prog_compiler_wl_CXX
='-Wl,'
19849 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19855 lt_prog_compiler_pic_CXX
='+Z'
19864 # This is c89, which is MS Visual C++ (no shared libs)
19865 # Anyone wants to do a port?
19867 irix5
* | irix6
* | nonstopux
*)
19868 case $cc_basename in
19870 lt_prog_compiler_wl_CXX
='-Wl,'
19871 lt_prog_compiler_static_CXX
='-non_shared'
19872 # CC pic flag -KPIC is the default.
19878 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19879 case $cc_basename in
19882 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19883 lt_prog_compiler_pic_CXX
='-fPIC'
19886 # old Intel C++ for x86_64 which still supported -KPIC.
19887 lt_prog_compiler_wl_CXX
='-Wl,'
19888 lt_prog_compiler_pic_CXX
='-KPIC'
19889 lt_prog_compiler_static_CXX
='-static'
19892 # Intel C++, used to be incompatible with GCC.
19893 # ICC 10 doesn't accept -KPIC any more.
19894 lt_prog_compiler_wl_CXX
='-Wl,'
19895 lt_prog_compiler_pic_CXX
='-fPIC'
19896 lt_prog_compiler_static_CXX
='-static'
19899 # Portland Group C++ compiler
19900 lt_prog_compiler_wl_CXX
='-Wl,'
19901 lt_prog_compiler_pic_CXX
='-fpic'
19902 lt_prog_compiler_static_CXX
='-Bstatic'
19906 # Make sure the PIC flag is empty. It appears that all Alpha
19907 # Linux and Compaq Tru64 Unix objects are PIC.
19908 lt_prog_compiler_pic_CXX
=
19909 lt_prog_compiler_static_CXX
='-non_shared'
19911 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19912 # IBM XL 8.0, 9.0 on PPC and BlueGene
19913 lt_prog_compiler_wl_CXX
='-Wl,'
19914 lt_prog_compiler_pic_CXX
='-qpic'
19915 lt_prog_compiler_static_CXX
='-qstaticlink'
19918 case `$CC -V 2>&1 | sed 5q` in
19921 lt_prog_compiler_pic_CXX
='-KPIC'
19922 lt_prog_compiler_static_CXX
='-Bstatic'
19923 lt_prog_compiler_wl_CXX
='-Qoption ld '
19934 case $cc_basename in
19936 lt_prog_compiler_pic_CXX
='-W c,exportall'
19945 # QNX uses GNU C++, but need to define -shared option too, otherwise
19946 # it will coredump.
19947 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19949 osf3
* | osf4
* | osf5
*)
19950 case $cc_basename in
19952 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19955 # Rational C++ 2.4.1
19956 lt_prog_compiler_pic_CXX
='-pic'
19959 # Digital/Compaq C++
19960 lt_prog_compiler_wl_CXX
='-Wl,'
19961 # Make sure the PIC flag is empty. It appears that all Alpha
19962 # Linux and Compaq Tru64 Unix objects are PIC.
19963 lt_prog_compiler_pic_CXX
=
19964 lt_prog_compiler_static_CXX
='-non_shared'
19973 case $cc_basename in
19975 # Sun C++ 4.2, 5.x and Centerline C++
19976 lt_prog_compiler_pic_CXX
='-KPIC'
19977 lt_prog_compiler_static_CXX
='-Bstatic'
19978 lt_prog_compiler_wl_CXX
='-Qoption ld '
19981 # Green Hills C++ Compiler
19982 lt_prog_compiler_pic_CXX
='-PIC'
19989 case $cc_basename in
19992 lt_prog_compiler_pic_CXX
='-pic'
19993 lt_prog_compiler_static_CXX
='-Bstatic'
19997 lt_prog_compiler_pic_CXX
='-pic'
20003 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20004 case $cc_basename in
20006 lt_prog_compiler_wl_CXX
='-Wl,'
20007 lt_prog_compiler_pic_CXX
='-KPIC'
20008 lt_prog_compiler_static_CXX
='-Bstatic'
20013 case $cc_basename in
20015 # NonStop-UX NCC 3.20
20016 lt_prog_compiler_pic_CXX
='-KPIC'
20025 lt_prog_compiler_can_build_shared_CXX
=no
20031 # For platforms which do not support PIC, -DPIC is meaningless:
20033 lt_prog_compiler_pic_CXX
=
20036 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20040 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20045 # Check to make sure the PIC flag actually works.
20047 if test -n "$lt_prog_compiler_pic_CXX"; then
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20049 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20050 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20051 $as_echo_n "(cached) " >&6
20053 lt_cv_prog_compiler_pic_works_CXX
=no
20054 ac_outfile
=conftest.
$ac_objext
20055 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20056 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20057 # Insert the option either (1) after the last *FLAGS variable, or
20058 # (2) before a word containing "conftest.", or (3) at the end.
20059 # Note that $ac_compile itself does not contain backslashes and begins
20060 # with a dollar sign (not a hyphen), so the echo should work correctly.
20061 # The option is referenced via a variable to avoid confusing sed.
20062 lt_compile
=`echo "$ac_compile" | $SED \
20063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20065 -e 's:$: $lt_compiler_flag:'`
20066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20067 (eval "$lt_compile" 2>conftest.err
)
20069 cat conftest.err
>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 if (exit $ac_status) && test -s "$ac_outfile"; then
20072 # The compiler can only warn and ignore the option if not recognized
20073 # So say no if there are warnings other than the usual output.
20074 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20075 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20076 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20077 lt_cv_prog_compiler_pic_works_CXX
=yes
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20084 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20086 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20087 case $lt_prog_compiler_pic_CXX in
20089 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20092 lt_prog_compiler_pic_CXX
=
20093 lt_prog_compiler_can_build_shared_CXX
=no
20101 # Check to make sure the static flag actually works.
20103 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20105 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20106 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20107 $as_echo_n "(cached) " >&6
20109 lt_cv_prog_compiler_static_works_CXX
=no
20110 save_LDFLAGS
="$LDFLAGS"
20111 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20112 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20113 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20114 # The linker can only warn and ignore the option if not recognized
20115 # So say no if there are warnings
20116 if test -s conftest.err
; then
20117 # Append any errors to the config.log.
20118 cat conftest.err
1>&5
20119 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20120 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20121 if diff conftest.exp conftest.er2
>/dev
/null
; then
20122 lt_cv_prog_compiler_static_works_CXX
=yes
20125 lt_cv_prog_compiler_static_works_CXX
=yes
20129 LDFLAGS
="$save_LDFLAGS"
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20133 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20135 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20138 lt_prog_compiler_static_CXX
=
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20146 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20147 $as_echo_n "(cached) " >&6
20149 lt_cv_prog_compiler_c_o_CXX
=no
20150 $RM -r conftest
2>/dev
/null
20154 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20156 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20157 # Insert the option either (1) after the last *FLAGS variable, or
20158 # (2) before a word containing "conftest.", or (3) at the end.
20159 # Note that $ac_compile itself does not contain backslashes and begins
20160 # with a dollar sign (not a hyphen), so the echo should work correctly.
20161 lt_compile
=`echo "$ac_compile" | $SED \
20162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20164 -e 's:$: $lt_compiler_flag:'`
20165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20166 (eval "$lt_compile" 2>out
/conftest.err
)
20168 cat out
/conftest.err
>&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20172 # The compiler can only warn and ignore the option if not recognized
20173 # So say no if there are warnings
20174 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20175 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20176 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20177 lt_cv_prog_compiler_c_o_CXX
=yes
20182 # SGI C++ compiler will create directory out/ii_files/ for
20183 # template instantiation
20184 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20185 $RM out
/* && rmdir out
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20192 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20198 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20199 $as_echo_n "(cached) " >&6
20201 lt_cv_prog_compiler_c_o_CXX
=no
20202 $RM -r conftest
2>/dev
/null
20206 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20208 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20209 # Insert the option either (1) after the last *FLAGS variable, or
20210 # (2) before a word containing "conftest.", or (3) at the end.
20211 # Note that $ac_compile itself does not contain backslashes and begins
20212 # with a dollar sign (not a hyphen), so the echo should work correctly.
20213 lt_compile
=`echo "$ac_compile" | $SED \
20214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20216 -e 's:$: $lt_compiler_flag:'`
20217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20218 (eval "$lt_compile" 2>out
/conftest.err
)
20220 cat out
/conftest.err
>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20224 # The compiler can only warn and ignore the option if not recognized
20225 # So say no if there are warnings
20226 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20227 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20228 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20229 lt_cv_prog_compiler_c_o_CXX
=yes
20234 # SGI C++ compiler will create directory out/ii_files/ for
20235 # template instantiation
20236 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20237 $RM out
/* && rmdir out
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20244 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20249 hard_links
="nottested"
20250 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20251 # do not overwrite the value of need_locks provided by the user
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20253 $as_echo_n "checking if we can lock with hard links... " >&6; }
20256 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20258 ln conftest.a conftest.b
2>&5 || hard_links
=no
20259 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20261 $as_echo "$hard_links" >&6; }
20262 if test "$hard_links" = no
; then
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20264 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20274 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20276 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20279 # If we're using GNU nm, then we don't want the "-C" option.
20280 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20281 # Also, AIX nm treats weak defined symbols like other global defined
20282 # symbols, whereas GNU nm marks them as "W".
20283 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20284 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'
20286 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'
20290 export_symbols_cmds_CXX
="$ltdll_cmds"
20292 cygwin
* | mingw
* | cegcc
*)
20293 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'
20296 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20299 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20302 $as_echo "$ld_shlibs_CXX" >&6; }
20303 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20305 with_gnu_ld_CXX
=$with_gnu_ld
20313 # Do we need to explicitly link libc?
20315 case "x$archive_cmds_need_lc_CXX" in
20317 # Assume -lc should be added
20318 archive_cmds_need_lc_CXX
=yes
20320 if test "$enable_shared" = yes && test "$GCC" = yes; then
20321 case $archive_cmds_CXX in
20323 # FIXME: we may have to deal with multi-command sequences.
20326 # Test whether the compiler implicitly links with -lc since on some
20327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20328 # to ld, don't add -lc before -lgcc.
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20330 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20331 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20332 $as_echo_n "(cached) " >&6
20335 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20338 (eval $ac_compile) 2>&5
20340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20341 test $ac_status = 0; } 2>conftest.err
; then
20344 libobjs
=conftest.
$ac_objext
20346 wl
=$lt_prog_compiler_wl_CXX
20347 pic_flag
=$lt_prog_compiler_pic_CXX
20353 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20354 allow_undefined_flag_CXX
=
20355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20356 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20359 test $ac_status = 0; }
20361 lt_cv_archive_cmds_need_lc_CXX
=no
20363 lt_cv_archive_cmds_need_lc_CXX
=yes
20365 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20367 cat conftest.err
1>&5
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20373 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20374 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20445 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20447 library_names_spec
=
20448 libname_spec
='lib$name'
20452 postuninstall_cmds
=
20456 shlibpath_overrides_runpath
=unknown
20458 dynamic_linker
="$host_os ld.so"
20459 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20460 need_lib_prefix
=unknown
20461 hardcode_into_libs
=no
20463 # when you set need_version to no, make sure it does not cause -set_version
20464 # flags to be left without arguments
20465 need_version
=unknown
20470 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20471 shlibpath_var
=LIBPATH
20473 # AIX 3 has no versioning support, so we append a major version to the name.
20474 soname_spec
='${libname}${release}${shared_ext}$major'
20481 hardcode_into_libs
=yes
20482 if test "$host_cpu" = ia64
; then
20483 # AIX 5 supports IA64
20484 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20485 shlibpath_var
=LD_LIBRARY_PATH
20487 # With GCC up to 2.95.x, collect2 would create an import file
20488 # for dependence libraries. The import file would start with
20489 # the line `#! .'. This would cause the generated library to
20490 # depend on `.', always an invalid library. This was fixed in
20491 # development snapshots of GCC prior to 3.0.
20493 aix4 | aix4.
[01] | aix4.
[01].
*)
20494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20496 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20499 can_build_shared
=no
20503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20504 # soname into executable. Probably we can add versioning support to
20505 # collect2, so additional links can be useful in future.
20506 if test "$aix_use_runtimelinking" = yes; then
20507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20508 # instead of lib<name>.a to let people know that these are not
20509 # typical AIX shared libraries.
20510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 # We preserve .a as extension for shared libraries through AIX4.2
20513 # and later when we are not doing run time linking.
20514 library_names_spec
='${libname}${release}.a $libname.a'
20515 soname_spec
='${libname}${release}${shared_ext}$major'
20517 shlibpath_var
=LIBPATH
20524 # Since July 2007 AmigaOS4 officially supports .so libraries.
20525 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 library_names_spec
='$libname.ixlibrary $libname.a'
20530 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20531 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'
20537 library_names_spec
='${libname}${shared_ext}'
20538 dynamic_linker
="$host_os ld.so"
20539 shlibpath_var
=LIBRARY_PATH
20545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20546 soname_spec
='${libname}${release}${shared_ext}$major'
20547 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20548 shlibpath_var
=LD_LIBRARY_PATH
20549 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20550 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20551 # the default ld.so.conf also contains /usr/contrib/lib and
20552 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20553 # libtool to hard-code these into programs
20556 cygwin
* | mingw
* | pw32
* | cegcc
*)
20557 version_type
=windows
20562 case $GCC,$host_os in
20563 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20564 library_names_spec
='$libname.dll.a'
20565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20566 postinstall_cmds
='base_file=`basename \${file}`~
20567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20568 dldir=$destdir/`dirname \$dlpath`~
20569 test -d \$dldir || mkdir -p \$dldir~
20570 $install_prog $dir/$dlname \$dldir/$dlname~
20571 chmod a+x \$dldir/$dlname~
20572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20575 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20576 dlpath=$dir/\$dldll~
20578 shlibpath_overrides_runpath
=yes
20582 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20583 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20587 # MinGW DLLs use traditional 'lib' prefix
20588 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20591 # pw32 DLLs use 'pw' prefix rather than 'lib'
20592 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20598 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20601 dynamic_linker
='Win32 ld.exe'
20602 # FIXME: first we should search . and the directory the executable is in
20606 darwin
* | rhapsody
*)
20607 dynamic_linker
="$host_os dyld"
20608 version_type
=darwin
20611 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20612 soname_spec
='${libname}${release}${major}$shared_ext'
20613 shlibpath_overrides_runpath
=yes
20614 shlibpath_var
=DYLD_LIBRARY_PATH
20615 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20617 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20625 soname_spec
='${libname}${release}${shared_ext}$major'
20626 shlibpath_var
=LD_LIBRARY_PATH
20629 freebsd
* | dragonfly
*)
20630 # DragonFly does not have aout. When/if they implement a new
20631 # versioning mechanism, adjust this.
20632 if test -x /usr
/bin
/objformat
; then
20633 objformat
=`/usr/bin/objformat`
20636 freebsd
[23].
*) objformat
=aout
;;
20637 *) objformat
=elf
;;
20640 version_type
=freebsd-
$objformat
20641 case $version_type in
20643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20648 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20652 shlibpath_var
=LD_LIBRARY_PATH
20655 shlibpath_overrides_runpath
=yes
20657 freebsd3.
[01]* | freebsdelf3.
[01]*)
20658 shlibpath_overrides_runpath
=yes
20659 hardcode_into_libs
=yes
20661 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20662 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20663 shlibpath_overrides_runpath
=no
20664 hardcode_into_libs
=yes
20666 *) # from 4.6 on, and DragonFly
20667 shlibpath_overrides_runpath
=yes
20668 hardcode_into_libs
=yes
20677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20678 soname_spec
='${libname}${release}${shared_ext}$major'
20679 shlibpath_var
=LD_LIBRARY_PATH
20680 hardcode_into_libs
=yes
20687 dynamic_linker
="$host_os runtime_loader"
20688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20689 soname_spec
='${libname}${release}${shared_ext}$major'
20690 shlibpath_var
=LIBRARY_PATH
20691 shlibpath_overrides_runpath
=yes
20692 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20693 hardcode_into_libs
=yes
20696 hpux9
* | hpux10
* | hpux11
*)
20697 # Give a soname corresponding to the major version so that dld.sl refuses to
20698 # link against other versions.
20705 hardcode_into_libs
=yes
20706 dynamic_linker
="$host_os dld.so"
20707 shlibpath_var
=LD_LIBRARY_PATH
20708 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20709 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710 soname_spec
='${libname}${release}${shared_ext}$major'
20711 if test "X$HPUX_IA64_MODE" = X32
; then
20712 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20714 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20716 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20720 hardcode_into_libs
=yes
20721 dynamic_linker
="$host_os dld.sl"
20722 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20723 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20725 soname_spec
='${libname}${release}${shared_ext}$major'
20726 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20727 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20731 dynamic_linker
="$host_os dld.sl"
20732 shlibpath_var
=SHLIB_PATH
20733 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20735 soname_spec
='${libname}${release}${shared_ext}$major'
20738 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20739 postinstall_cmds
='chmod 555 $lib'
20740 # or fails outright, so override atomically:
20741 install_override_mode
=555
20748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20749 soname_spec
='${libname}${release}${shared_ext}$major'
20750 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20751 shlibpath_var
=LD_LIBRARY_PATH
20752 shlibpath_overrides_runpath
=no
20753 hardcode_into_libs
=yes
20756 irix5
* | irix6
* | nonstopux
*)
20758 nonstopux
*) version_type
=nonstopux
;;
20760 if test "$lt_cv_prog_gnu_ld" = yes; then
20768 soname_spec
='${libname}${release}${shared_ext}$major'
20769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20771 irix5
* | nonstopux
*)
20772 libsuff
= shlibsuff
=
20775 case $LD in # libtool.m4 will add one of these switches to LD
20776 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20777 libsuff
= shlibsuff
= libmagic
=32-bit;;
20778 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20779 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20780 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20781 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20782 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20786 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20787 shlibpath_overrides_runpath
=no
20788 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20789 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20790 hardcode_into_libs
=yes
20793 # No shared lib support for Linux oldld, aout, or coff.
20794 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20798 # This must be Linux ELF.
20799 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 soname_spec
='${libname}${release}${shared_ext}$major'
20805 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20806 shlibpath_var
=LD_LIBRARY_PATH
20807 shlibpath_overrides_runpath
=no
20809 # Some binutils ld are patched to set DT_RUNPATH
20810 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20811 $as_echo_n "(cached) " >&6
20813 lt_cv_shlibpath_overrides_runpath
=no
20814 save_LDFLAGS
=$LDFLAGS
20815 save_libdir
=$libdir
20816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20819 /* end confdefs.h. */
20829 if ac_fn_cxx_try_link
"$LINENO"; then :
20830 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20831 lt_cv_shlibpath_overrides_runpath
=yes
20834 rm -f core conftest.err conftest.
$ac_objext \
20835 conftest
$ac_exeext conftest.
$ac_ext
20836 LDFLAGS
=$save_LDFLAGS
20837 libdir
=$save_libdir
20841 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20843 # This implies no fast_install, which is unacceptable.
20844 # Some rework will be needed to allow for fast_install
20845 # before this can be enabled.
20846 hardcode_into_libs
=yes
20848 # Append ld.so.conf contents to the search path
20849 if test -f /etc
/ld.so.conf
; then
20850 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' ' '`
20851 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20854 # We used to test for /lib/ld.so.1 and disable shared libraries on
20855 # powerpc, because MkLinux only supported shared libraries with the
20856 # GNU dynamic linker. Since this was broken with cross compilers,
20857 # most powerpc-linux boxes support dynamic linking these days and
20858 # people can always --disable-shared, the test was removed, and we
20859 # assume the GNU/Linux dynamic linker is in use.
20860 dynamic_linker
='GNU/Linux ld.so'
20867 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20869 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20870 dynamic_linker
='NetBSD (a.out) ld.so'
20872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20873 soname_spec
='${libname}${release}${shared_ext}$major'
20874 dynamic_linker
='NetBSD ld.elf_so'
20876 shlibpath_var
=LD_LIBRARY_PATH
20877 shlibpath_overrides_runpath
=yes
20878 hardcode_into_libs
=yes
20883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 shlibpath_var
=LD_LIBRARY_PATH
20885 shlibpath_overrides_runpath
=yes
20892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 soname_spec
='${libname}${release}${shared_ext}$major'
20894 shlibpath_var
=LD_LIBRARY_PATH
20895 shlibpath_overrides_runpath
=no
20896 hardcode_into_libs
=yes
20897 dynamic_linker
='ldqnx.so'
20902 sys_lib_dlsearch_path_spec
="/usr/lib"
20904 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20906 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20907 *) need_version
=no
;;
20909 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20910 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20911 shlibpath_var
=LD_LIBRARY_PATH
20912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20914 openbsd2.
[89] | openbsd2.
[89].
*)
20915 shlibpath_overrides_runpath
=no
20918 shlibpath_overrides_runpath
=yes
20922 shlibpath_overrides_runpath
=yes
20927 libname_spec
='$name'
20930 library_names_spec
='$libname${shared_ext} $libname.a'
20931 dynamic_linker
='OS/2 ld.exe'
20932 shlibpath_var
=LIBPATH
20935 osf3
* | osf4
* | osf5
*)
20939 soname_spec
='${libname}${release}${shared_ext}$major'
20940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20941 shlibpath_var
=LD_LIBRARY_PATH
20942 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20943 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20955 soname_spec
='${libname}${release}${shared_ext}$major'
20956 shlibpath_var
=LD_LIBRARY_PATH
20957 shlibpath_overrides_runpath
=yes
20958 hardcode_into_libs
=yes
20959 # ldd complains unless libraries are executable
20960 postinstall_cmds
='chmod +x $lib'
20965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20966 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20967 shlibpath_var
=LD_LIBRARY_PATH
20968 shlibpath_overrides_runpath
=yes
20969 if test "$with_gnu_ld" = yes; then
20977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20978 soname_spec
='${libname}${release}${shared_ext}$major'
20979 shlibpath_var
=LD_LIBRARY_PATH
20980 case $host_vendor in
20982 shlibpath_overrides_runpath
=no
20984 runpath_var
=LD_RUN_PATH
20992 shlibpath_overrides_runpath
=no
20993 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20999 if test -d /usr
/nec
;then
21001 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21002 soname_spec
='$libname${shared_ext}.$major'
21003 shlibpath_var
=LD_LIBRARY_PATH
21007 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21008 version_type
=freebsd-elf
21011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21012 soname_spec
='${libname}${release}${shared_ext}$major'
21013 shlibpath_var
=LD_LIBRARY_PATH
21014 shlibpath_overrides_runpath
=yes
21015 hardcode_into_libs
=yes
21016 if test "$with_gnu_ld" = yes; then
21017 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21019 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21022 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21026 sys_lib_dlsearch_path_spec
='/usr/lib'
21030 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21035 shlibpath_var
=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath
=no
21037 hardcode_into_libs
=yes
21042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec
='${libname}${release}${shared_ext}$major'
21044 shlibpath_var
=LD_LIBRARY_PATH
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21052 $as_echo "$dynamic_linker" >&6; }
21053 test "$dynamic_linker" = no
&& can_build_shared
=no
21055 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21056 if test "$GCC" = yes; then
21057 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21060 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21061 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21063 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21064 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21106 hardcode_action_CXX
=
21107 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21108 test -n "$runpath_var_CXX" ||
21109 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21111 # We can hardcode non-existent directories.
21112 if test "$hardcode_direct_CXX" != no
&&
21113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21114 # have to relink, otherwise we might link with an installed library
21115 # when we should be linking with a yet-to-be-installed one
21116 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21117 test "$hardcode_minus_L_CXX" != no
; then
21118 # Linking always hardcodes the temporary library directory.
21119 hardcode_action_CXX
=relink
21121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21122 hardcode_action_CXX
=immediate
21125 # We cannot hardcode anything, or else we can only hardcode existing
21127 hardcode_action_CXX
=unsupported
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21130 $as_echo "$hardcode_action_CXX" >&6; }
21132 if test "$hardcode_action_CXX" = relink ||
21133 test "$inherit_rpath_CXX" = yes; then
21134 # Fast installation is not supported
21135 enable_fast_install
=no
21136 elif test "$shlibpath_overrides_runpath" = yes ||
21137 test "$enable_shared" = no
; then
21138 # Fast installation is not necessary
21139 enable_fast_install
=needless
21148 fi # test -n "$compiler"
21154 with_gnu_ld
=$lt_save_with_gnu_ld
21155 lt_cv_path_LDCXX
=$lt_cv_path_LD
21156 lt_cv_path_LD
=$lt_save_path_LD
21157 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21158 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21159 fi # test "$_lt_caught_CXX_error" != yes
21162 ac_cpp
='$CPP $CPPFLAGS'
21163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21182 # Only expand once:
21188 # Identify the assembler which will work hand-in-glove with the newly
21189 # built GCC, so that we can examine its features. This is the assembler
21190 # which will be driven by the driver program.
21192 # If build != host, and we aren't building gas in-tree, we identify a
21193 # build->target assembler and hope that it will have the same features
21194 # as the host->target assembler we'll be using.
21195 gcc_cv_gas_major_version
=
21196 gcc_cv_gas_minor_version
=
21197 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21199 if test "${gcc_cv_as+set}" = set; then :
21203 if test -x "$DEFAULT_ASSEMBLER"; then
21204 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21205 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21206 && test -f ..
/gas
/Makefile \
21207 && test x
$build = x
$host; then
21208 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21209 elif test -x as
$build_exeext; then
21210 # Build using assembler in the current directory.
21211 gcc_cv_as
=.
/as
$build_exeext
21212 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21213 gcc_cv_as
="$AS_FOR_TARGET"
21215 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21216 set dummy
$AS_FOR_TARGET; ac_word
=$2
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21218 $as_echo_n "checking for $ac_word... " >&6; }
21219 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21220 $as_echo_n "(cached) " >&6
21224 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21228 for as_dir
in $PATH
21231 test -z "$as_dir" && as_dir
=.
21232 for ac_exec_ext
in '' $ac_executable_extensions; do
21233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21234 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21245 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21246 if test -n "$gcc_cv_as"; then
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21248 $as_echo "$gcc_cv_as" >&6; }
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21251 $as_echo "no" >&6; }
21258 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21260 case "$ORIGINAL_AS_FOR_TARGET" in
21261 .
/as | .
/as
$build_exeext) ;;
21262 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21267 $as_echo_n "checking what assembler to use... " >&6; }
21268 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21269 # Single tree build which includes gas. We want to prefer it
21270 # over whatever linker top-level may have detected, since
21271 # we'll use what we're building after installation anyway.
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21273 $as_echo "newly built gas" >&6; }
21275 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21276 for f
in $gcc_cv_as_bfd_srcdir/configure \
21277 $gcc_cv_as_gas_srcdir/configure \
21278 $gcc_cv_as_gas_srcdir/configure.
in \
21279 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21280 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21281 if test x
$gcc_cv_gas_version != x
; then
21285 case $gcc_cv_gas_version in
21287 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21289 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21290 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21291 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21292 case $gcc_cv_gas_patch_version in
21293 "") gcc_cv_gas_patch_version
="0" ;;
21295 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21296 + $gcc_cv_gas_minor_version \) \* 1000 \
21297 + $gcc_cv_gas_patch_version`
21299 in_tree_gas_is_elf
=no
21300 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21301 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21302 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21304 in_tree_gas_is_elf
=yes
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21308 $as_echo "$gcc_cv_as" >&6; }
21312 # Identify the linker which will work hand-in-glove with the newly
21313 # built GCC, so that we can examine its features. This is the linker
21314 # which will be driven by the driver program.
21316 # If build != host, and we aren't building gas in-tree, we identify a
21317 # build->target linker and hope that it will have the same features
21318 # as the host->target linker we'll be using.
21319 gcc_cv_gld_major_version
=
21320 gcc_cv_gld_minor_version
=
21321 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21322 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21324 if test "${gcc_cv_ld+set}" = set; then :
21328 if test -x "$DEFAULT_LINKER"; then
21329 gcc_cv_ld
="$DEFAULT_LINKER"
21330 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21331 && test -f ..
/ld
/Makefile \
21332 && test x
$build = x
$host; then
21333 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21334 elif test -x collect-ld
$build_exeext; then
21335 # Build using linker in the current directory.
21336 gcc_cv_ld
=.
/collect-ld
$build_exeext
21337 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21338 gcc_cv_ld
="$LD_FOR_TARGET"
21340 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21341 set dummy
$LD_FOR_TARGET; ac_word
=$2
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21343 $as_echo_n "checking for $ac_word... " >&6; }
21344 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21345 $as_echo_n "(cached) " >&6
21349 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21353 for as_dir
in $PATH
21356 test -z "$as_dir" && as_dir
=.
21357 for ac_exec_ext
in '' $ac_executable_extensions; do
21358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21359 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21370 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21371 if test -n "$gcc_cv_ld"; then
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21373 $as_echo "$gcc_cv_ld" >&6; }
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21376 $as_echo "no" >&6; }
21383 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21384 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21385 # if the PLUGIN_LD is set ld-new, just have it as ld
21386 # as that is the installed named.
21387 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21388 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21389 PLUGIN_LD_SUFFIX
=ld
21392 # Check whether --with-plugin-ld was given.
21393 if test "${with_plugin_ld+set}" = set; then :
21394 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21395 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21396 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21402 cat >>confdefs.h
<<_ACEOF
21403 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21407 # Check to see if we are using gold instead of ld
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21409 $as_echo_n "checking whether we are using gold... " >&6; }
21411 if test x
$gcc_cv_ld != x
; then
21412 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21413 |
grep "GNU gold" > /dev
/null
; then
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21418 $as_echo "$ld_is_gold" >&6; }
21420 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21422 case "$ORIGINAL_LD_FOR_TARGET" in
21423 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21424 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21429 $as_echo_n "checking what linker to use... " >&6; }
21430 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21431 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21432 # Single tree build which includes ld. We want to prefer it
21433 # over whatever linker top-level may have detected, since
21434 # we'll use what we're building after installation anyway.
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21436 $as_echo "newly built ld" >&6; }
21438 in_tree_ld_is_elf
=no
21439 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21440 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21441 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21442 in_tree_ld_is_elf
=yes
21443 elif test "$ld_is_gold" = yes; then
21444 in_tree_ld_is_elf
=yes
21446 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
21448 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21449 if test x
$gcc_cv_gld_version != x
; then
21453 case $gcc_cv_gld_version in
21455 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21457 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21458 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21461 $as_echo "$gcc_cv_ld" >&6; }
21465 # Figure out what nm we will be using.
21466 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21467 if test "${gcc_cv_nm+set}" = set; then :
21471 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21472 && test -f ..
/binutils
/Makefile \
21473 && test x
$build = x
$host; then
21474 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21475 elif test -x nm
$build_exeext; then
21476 gcc_cv_nm
=.
/nm
$build_exeext
21477 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21478 gcc_cv_nm
="$NM_FOR_TARGET"
21480 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21481 set dummy
$NM_FOR_TARGET; ac_word
=$2
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21483 $as_echo_n "checking for $ac_word... " >&6; }
21484 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21489 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21493 for as_dir
in $PATH
21496 test -z "$as_dir" && as_dir
=.
21497 for ac_exec_ext
in '' $ac_executable_extensions; do
21498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21499 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21510 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21511 if test -n "$gcc_cv_nm"; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21513 $as_echo "$gcc_cv_nm" >&6; }
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516 $as_echo "no" >&6; }
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21524 $as_echo_n "checking what nm to use... " >&6; }
21525 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21526 # Single tree build which includes binutils.
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21528 $as_echo "newly built nm" >&6; }
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21532 $as_echo "$gcc_cv_nm" >&6; }
21536 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21538 case "$ORIGINAL_NM_FOR_TARGET" in
21539 .
/nm | .
/nm
$build_exeext) ;;
21540 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21545 # Figure out what objdump we will be using.
21546 if test "${gcc_cv_objdump+set}" = set; then :
21550 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21551 && test -f ..
/binutils
/Makefile \
21552 && test x
$build = x
$host; then
21553 # Single tree build which includes binutils.
21554 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21555 elif test -x objdump
$build_exeext; then
21556 gcc_cv_objdump
=.
/objdump
$build_exeext
21557 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21558 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21560 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21561 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21563 $as_echo_n "checking for $ac_word... " >&6; }
21564 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21565 $as_echo_n "(cached) " >&6
21567 case $gcc_cv_objdump in
21569 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21573 for as_dir
in $PATH
21576 test -z "$as_dir" && as_dir
=.
21577 for ac_exec_ext
in '' $ac_executable_extensions; do
21578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21579 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21590 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21591 if test -n "$gcc_cv_objdump"; then
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21593 $as_echo "$gcc_cv_objdump" >&6; }
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21596 $as_echo "no" >&6; }
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21604 $as_echo_n "checking what objdump to use... " >&6; }
21605 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21606 # Single tree build which includes binutils.
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21608 $as_echo "newly built objdump" >&6; }
21609 elif test x
$gcc_cv_objdump = x
; then
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21611 $as_echo "not found" >&6; }
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21614 $as_echo "$gcc_cv_objdump" >&6; }
21617 # Figure out what readelf we will be using.
21618 if test "${gcc_cv_readelf+set}" = set; then :
21622 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21623 && test -f ..
/binutils
/Makefile \
21624 && test x
$build = x
$host; then
21625 # Single tree build which includes binutils.
21626 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21627 elif test -x readelf
$build_exeext; then
21628 gcc_cv_readelf
=.
/readelf
$build_exeext
21630 # Extract the first word of "readelf", so it can be a program name with args.
21631 set dummy readelf
; ac_word
=$2
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21633 $as_echo_n "checking for $ac_word... " >&6; }
21634 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21637 case $gcc_cv_readelf in
21639 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21643 for as_dir
in $PATH
21646 test -z "$as_dir" && as_dir
=.
21647 for ac_exec_ext
in '' $ac_executable_extensions; do
21648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21649 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21660 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21661 if test -n "$gcc_cv_readelf"; then
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21663 $as_echo "$gcc_cv_readelf" >&6; }
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21666 $as_echo "no" >&6; }
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21674 $as_echo_n "checking what readelf to use... " >&6; }
21675 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21676 # Single tree build which includes binutils.
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21678 $as_echo "newly built readelf" >&6; }
21679 elif test x
$gcc_cv_readelf = x
; then
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21681 $as_echo "not found" >&6; }
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21684 $as_echo "$gcc_cv_readelf" >&6; }
21687 # Figure out what assembler alignment features are present.
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21689 $as_echo_n "checking assembler flags... " >&6; }
21690 if test "${gcc_cv_as_flags+set}" = set; then :
21691 $as_echo_n "(cached) " >&6
21694 i
[34567]86-*-linux*)
21695 gcc_cv_as_flags
="--32"
21697 powerpc
*-*-darwin*)
21698 gcc_cv_as_flags
="-arch ppc"
21701 gcc_cv_as_flags
=" "
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21706 $as_echo "$gcc_cv_as_flags" >&6; }
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21709 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21710 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21711 $as_echo_n "(cached) " >&6
21713 gcc_cv_as_balign_and_p2align
=no
21714 if test $in_tree_gas = yes; then
21715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21716 then gcc_cv_as_balign_and_p2align
=yes
21718 elif test x
$gcc_cv_as != x
; then
21719 $as_echo '.balign 4
21720 .p2align 2' > conftest.s
21721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21723 (eval $ac_try) 2>&5
21725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21726 test $ac_status = 0; }; }
21728 gcc_cv_as_balign_and_p2align
=yes
21730 echo "configure: failed program was" >&5
21733 rm -f conftest.o conftest.s
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21737 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21738 if test $gcc_cv_as_balign_and_p2align = yes; then
21740 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21745 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21746 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21747 $as_echo_n "(cached) " >&6
21749 gcc_cv_as_max_skip_p2align
=no
21750 if test $in_tree_gas = yes; then
21751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21752 then gcc_cv_as_max_skip_p2align
=yes
21754 elif test x
$gcc_cv_as != x
; then
21755 $as_echo '.p2align 4,,7' > conftest.s
21756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21758 (eval $ac_try) 2>&5
21760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21761 test $ac_status = 0; }; }
21763 gcc_cv_as_max_skip_p2align
=yes
21765 echo "configure: failed program was" >&5
21768 rm -f conftest.o conftest.s
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21772 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21773 if test $gcc_cv_as_max_skip_p2align = yes; then
21775 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21780 $as_echo_n "checking assembler for .literal16... " >&6; }
21781 if test "${gcc_cv_as_literal16+set}" = set; then :
21782 $as_echo_n "(cached) " >&6
21784 gcc_cv_as_literal16
=no
21785 if test $in_tree_gas = yes; then
21786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21787 then gcc_cv_as_literal16
=yes
21789 elif test x
$gcc_cv_as != x
; then
21790 $as_echo '.literal16' > conftest.s
21791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21793 (eval $ac_try) 2>&5
21795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21796 test $ac_status = 0; }; }
21798 gcc_cv_as_literal16
=yes
21800 echo "configure: failed program was" >&5
21803 rm -f conftest.o conftest.s
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21807 $as_echo "$gcc_cv_as_literal16" >&6; }
21808 if test $gcc_cv_as_literal16 = yes; then
21810 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21815 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21816 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21817 $as_echo_n "(cached) " >&6
21819 gcc_cv_as_subsection_m1
=no
21820 if test $in_tree_gas = yes; then
21821 if test $in_tree_gas_is_elf = yes \
21822 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21823 then gcc_cv_as_subsection_m1
=yes
21825 elif test x
$gcc_cv_as != x
; then
21826 $as_echo 'conftest_label1: .word 0
21828 conftest_label2: .word 0
21829 .previous' > conftest.s
21830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21832 (eval $ac_try) 2>&5
21834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21835 test $ac_status = 0; }; }
21837 if test x
$gcc_cv_nm != x
; then
21838 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21839 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21840 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21842 else gcc_cv_as_subsection_m1
=yes
21844 rm -f conftest.nm1 conftest.nm2
21847 echo "configure: failed program was" >&5
21850 rm -f conftest.o conftest.s
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21854 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21855 if test $gcc_cv_as_subsection_m1 = yes; then
21857 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21862 $as_echo_n "checking assembler for .weak... " >&6; }
21863 if test "${gcc_cv_as_weak+set}" = set; then :
21864 $as_echo_n "(cached) " >&6
21867 if test $in_tree_gas = yes; then
21868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21869 then gcc_cv_as_weak
=yes
21871 elif test x
$gcc_cv_as != x
; then
21872 $as_echo ' .weak foobar' > conftest.s
21873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; }
21882 echo "configure: failed program was" >&5
21885 rm -f conftest.o conftest.s
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21889 $as_echo "$gcc_cv_as_weak" >&6; }
21890 if test $gcc_cv_as_weak = yes; then
21892 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21897 $as_echo_n "checking assembler for .weakref... " >&6; }
21898 if test "${gcc_cv_as_weakref+set}" = set; then :
21899 $as_echo_n "(cached) " >&6
21901 gcc_cv_as_weakref
=no
21902 if test $in_tree_gas = yes; then
21903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21904 then gcc_cv_as_weakref
=yes
21906 elif test x
$gcc_cv_as != x
; then
21907 $as_echo ' .weakref foobar, barfnot' > conftest.s
21908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21910 (eval $ac_try) 2>&5
21912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21913 test $ac_status = 0; }; }
21915 gcc_cv_as_weakref
=yes
21917 echo "configure: failed program was" >&5
21920 rm -f conftest.o conftest.s
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21924 $as_echo "$gcc_cv_as_weakref" >&6; }
21925 if test $gcc_cv_as_weakref = yes; then
21927 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21932 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21933 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21934 $as_echo_n "(cached) " >&6
21936 gcc_cv_as_nsubspa_comdat
=no
21937 if test $in_tree_gas = yes; then
21938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21939 then gcc_cv_as_nsubspa_comdat
=yes
21941 elif test x
$gcc_cv_as != x
; then
21942 $as_echo ' .SPACE $TEXT$
21943 .NSUBSPA $CODE$,COMDAT' > conftest.s
21944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21946 (eval $ac_try) 2>&5
21948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21949 test $ac_status = 0; }; }
21951 gcc_cv_as_nsubspa_comdat
=yes
21953 echo "configure: failed program was" >&5
21956 rm -f conftest.o conftest.s
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21960 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21961 if test $gcc_cv_as_nsubspa_comdat = yes; then
21963 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21967 # .hidden needs to be supported in both the assembler and the linker,
21968 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21969 # This is irritatingly difficult to feature test for; we have to check the
21970 # date string after the version number. If we've got an in-tree
21971 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21973 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21975 $as_echo_n "checking assembler for .hidden... " >&6; }
21976 if test "${gcc_cv_as_hidden+set}" = set; then :
21977 $as_echo_n "(cached) " >&6
21979 gcc_cv_as_hidden
=no
21980 if test $in_tree_gas = yes; then
21981 if test $in_tree_gas_is_elf = yes \
21982 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21983 then gcc_cv_as_hidden
=yes
21985 elif test x
$gcc_cv_as != x
; then
21986 $as_echo ' .hidden foobar
21987 foobar:' > conftest.s
21988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21990 (eval $ac_try) 2>&5
21992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21993 test $ac_status = 0; }; }
21996 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21997 # STV_HIDDEN, so disable .hidden support if so.
21998 case "${target}" in
21999 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22000 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22001 cat > conftest.s
<<EOF
22006 .set default,hidden
22008 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22009 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22010 grep '\.hidden default' > /dev
/null
; then
22011 gcc_cv_as_hidden
=no
22013 gcc_cv_as_hidden
=yes
22016 # Assume bug is present if objdump is missing.
22017 gcc_cv_as_hidden
=no
22021 gcc_cv_as_hidden
=yes
22025 echo "configure: failed program was" >&5
22028 rm -f conftest.o conftest.s
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22032 $as_echo "$gcc_cv_as_hidden" >&6; }
22034 case "${target}" in
22036 # Darwin as has some visibility support, though with a different syntax.
22037 gcc_cv_as_hidden
=yes
22041 # gnu_indirect_function type is an extension proposed at
22042 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22043 # selection of function implementation
22044 # Check whether --enable-gnu-indirect-function was given.
22045 if test "${enable_gnu_indirect_function+set}" = set; then :
22046 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22048 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22049 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22052 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22055 if test x
$enable_gnu_indirect_function = xyes
; then
22057 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22061 if test $in_tree_ld != yes ; then
22062 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22063 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22064 if test x
"$ld_is_gold" = xyes
; then
22065 # GNU gold --version looks like this:
22067 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22069 # We extract the binutils version which is more familiar and specific
22070 # than the gold version.
22071 ld_vers
=`echo $ld_ver | sed -n \
22072 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22074 # GNU ld --version looks like this:
22076 # GNU ld (GNU Binutils) 2.21.51.20110225
22077 ld_vers
=`echo $ld_ver | sed -n \
22078 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22080 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'`
22081 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22082 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22083 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22085 case "${target}" in
22087 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22090 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22091 # /usr/ccs/bin/ld has been configured.
22092 ld_ver
=`$gcc_cv_ld -V 2>&1`
22093 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22094 ld_vers
=`echo $ld_ver | sed -n \
22095 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22096 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22097 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22105 $as_echo_n "checking linker for .hidden support... " >&6; }
22106 if test "${gcc_cv_ld_hidden+set}" = set; then :
22107 $as_echo_n "(cached) " >&6
22109 if test $in_tree_ld = yes ; then
22110 gcc_cv_ld_hidden
=no
22111 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 \
22112 && test $in_tree_ld_is_elf = yes; then
22113 gcc_cv_ld_hidden
=yes
22116 gcc_cv_ld_hidden
=yes
22117 if test x
"$ld_is_gold" = xyes
; then
22119 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22120 case "${target}" in
22121 mmix-knuth-mmixware
)
22122 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22123 gcc_cv_ld_hidden
=no
22126 if test 0"$ld_date" -lt 20020404; then
22127 if test -n "$ld_date"; then
22128 # If there was date string, but was earlier than 2002-04-04, fail
22129 gcc_cv_ld_hidden
=no
22130 elif test -z "$ld_vers"; then
22131 # If there was no date string nor ld version number, something is wrong
22132 gcc_cv_ld_hidden
=no
22134 test -z "$ld_vers_patch" && ld_vers_patch
=0
22135 if test "$ld_vers_major" -lt 2; then
22136 gcc_cv_ld_hidden
=no
22137 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22138 gcc_cv_ld_hidden
="no"
22139 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22140 gcc_cv_ld_hidden
=no
22145 case "${target}" in
22147 # Darwin ld has some visibility support.
22148 gcc_cv_ld_hidden
=yes
22150 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22151 gcc_cv_ld_hidden
=yes
22153 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22154 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22155 # .symbolic was only added in Solaris 9 12/02.
22156 gcc_cv_ld_hidden
=yes
22159 gcc_cv_ld_hidden
=no
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22166 $as_echo "$gcc_cv_ld_hidden" >&6; }
22167 libgcc_visibility
=no
22170 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22171 libgcc_visibility
=yes
22173 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22178 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22179 gcc_cv_ld_ro_rw_mix
=unknown
22180 if test $in_tree_ld = yes ; then
22181 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 \
22182 && test $in_tree_ld_is_elf = yes; then
22183 gcc_cv_ld_ro_rw_mix
=read-write
22185 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22186 echo '.section myfoosect, "a"' > conftest1.s
22187 echo '.section myfoosect, "aw"' > conftest2.s
22188 echo '.byte 1' >> conftest2.s
22189 echo '.section myfoosect, "a"' > conftest3.s
22190 echo '.byte 0' >> conftest3.s
22191 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22192 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22193 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22194 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22195 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22196 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22197 | sed -e '/myfoosect/!d' -e N`
22198 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22199 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22200 gcc_cv_ld_ro_rw_mix
=read-only
22202 gcc_cv_ld_ro_rw_mix
=read-write
22206 rm -f conftest.
* conftest
[123].
*
22208 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22210 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22214 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22216 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22217 case "${target}" in
22220 # Solaris 2 ld -V output looks like this for a regular version:
22222 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22224 # but test versions add stuff at the end:
22226 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22228 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22229 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22230 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22231 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22232 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22233 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22239 # Check whether --enable-initfini-array was given.
22240 if test "${enable_initfini_array+set}" = set; then :
22241 enableval
=$enable_initfini_array;
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22245 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22246 if test "${gcc_cv_initfini_array+set}" = set; then :
22247 $as_echo_n "(cached) " >&6
22249 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22250 case "${target}" in
22252 if test "$cross_compiling" = yes; then :
22253 gcc_cv_initfini_array
=no
22255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22259 #error Not an ELF OS
22261 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22262 if it can be used. */
22264 int main (void) { return x; }
22265 int foo (void) { x = 0; }
22266 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22269 if ac_fn_c_try_run
"$LINENO"; then :
22270 gcc_cv_initfini_array
=yes
22272 gcc_cv_initfini_array
=no
22274 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22275 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22279 gcc_cv_initfini_array
=no
22280 if test $in_tree_ld = yes ; then
22281 if test "$gcc_cv_gld_major_version" -eq 2 \
22282 -a "$gcc_cv_gld_minor_version" -ge 22 \
22283 -o "$gcc_cv_gld_major_version" -gt 2 \
22284 && test $in_tree_ld_is_elf = yes; then
22285 gcc_cv_initfini_array
=yes
22287 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22288 cat > conftest.s
<<\EOF
22289 .section .dtors
,"a",%progbits
22291 .byte
'A', 'A', 'A', 'A'
22292 .section .ctors
,"a",%progbits
22294 .byte
'B', 'B', 'B', 'B'
22295 .section .fini_array
.65530,"a",%progbits
22297 .byte
'C', 'C', 'C', 'C'
22298 .section .init_array
.65530,"a",%progbits
22300 .byte
'D', 'D', 'D', 'D'
22301 .section .dtors
.64528,"a",%progbits
22303 .byte
'E', 'E', 'E', 'E'
22304 .section .ctors
.64528,"a",%progbits
22306 .byte
'F', 'F', 'F', 'F'
22307 .section .fini_array
.01005,"a",%progbits
22309 .byte
'G', 'G', 'G', 'G'
22310 .section .init_array
.01005,"a",%progbits
22312 .byte
'H', 'H', 'H', 'H'
22317 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22318 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22319 && $gcc_cv_objdump -s -j .init_array conftest \
22320 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22321 && $gcc_cv_objdump -s -j .fini_array conftest \
22322 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22323 gcc_cv_initfini_array
=yes
22325 rm -f conftest conftest.
*
22327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22328 /* end confdefs.h. */
22331 # error Not an ELF OS
22333 #include <stdlib.h>
22334 #if defined __GLIBC_PREREQ
22335 # if __GLIBC_PREREQ (2, 4)
22337 # error GLIBC 2.4 required
22340 # if defined __sun__ && defined __svr4__
22341 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22343 # error The C library not known to support .init_array/.fini_array
22348 if ac_fn_c_try_cpp
"$LINENO"; then :
22351 gcc_cv_initfini_array
=no
22353 rm -f conftest.err conftest.
$ac_ext;;
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22357 $as_echo_n "checking cross compile... guessing... " >&6; }
22358 gcc_cv_initfini_array
=no
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22362 $as_echo "$gcc_cv_initfini_array" >&6; }
22363 enable_initfini_array
=$gcc_cv_initfini_array
22367 if test $enable_initfini_array = yes; then
22369 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22373 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22375 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22376 if test "${gcc_cv_as_leb128+set}" = set; then :
22377 $as_echo_n "(cached) " >&6
22379 gcc_cv_as_leb128
=no
22380 if test $in_tree_gas = yes; then
22381 if test $in_tree_gas_is_elf = yes \
22382 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22383 then gcc_cv_as_leb128
=yes
22385 elif test x
$gcc_cv_as != x
; then
22392 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22394 (eval $ac_try) 2>&5
22396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22397 test $ac_status = 0; }; }
22399 # GAS versions before 2.11 do not support uleb128,
22400 # despite appearing to.
22401 # ??? There exists an elf-specific test that will crash
22402 # the assembler. Perhaps it's better to figure out whether
22403 # arbitrary sections are supported and try the test.
22404 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22405 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22406 as_vers
=`echo $as_ver | sed -n \
22407 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22408 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22409 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22410 if test $as_major -eq 2 && test $as_minor -lt 11
22412 else gcc_cv_as_leb128
=yes
22416 echo "configure: failed program was" >&5
22419 rm -f conftest.o conftest.s
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22423 $as_echo "$gcc_cv_as_leb128" >&6; }
22424 if test $gcc_cv_as_leb128 = yes; then
22426 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22430 # Check if we have assembler support for unwind directives.
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22432 $as_echo_n "checking assembler for cfi directives... " >&6; }
22433 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22436 gcc_cv_as_cfi_directive
=no
22437 if test x
$gcc_cv_as != x
; then
22443 .cfi_escape 1, 2, 3, 4, 5
22444 .cfi_endproc' > conftest.s
22445 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22447 (eval $ac_try) 2>&5
22449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22450 test $ac_status = 0; }; }
22454 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22455 # read-only and read-write sections, we need to make sure that the
22456 # assembler used emits read-write .eh_frame sections.
22457 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22458 if test "x$gcc_cv_objdump" != x
; then
22459 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22460 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22461 gcc_cv_as_cfi_directive
=no
22464 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22465 # On Solaris/x86, make sure that GCC and gas agree on using
22466 # read-only .eh_frame sections for 64-bit.
22467 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22468 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22469 sed -e /.eh_frame
/!d
-e N | \
22470 grep READONLY
> /dev
/null
; then
22471 gcc_cv_as_cfi_directive
=yes
22473 gcc_cv_as_cfi_directive
=no
22477 gcc_cv_as_cfi_directive
=yes
22482 # no objdump, err on the side of caution
22483 gcc_cv_as_cfi_directive
=no
22486 gcc_cv_as_cfi_directive
=yes
22490 gcc_cv_as_cfi_directive
=yes
22494 echo "configure: failed program was" >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22501 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22503 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22505 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22506 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22507 $as_echo_n "(cached) " >&6
22509 gcc_cv_as_cfi_advance_working
=no
22510 if test x
$gcc_cv_as != x
; then
22513 .cfi_adjust_cfa_offset 64
22515 .cfi_adjust_cfa_offset 128
22516 .cfi_endproc' > conftest.s
22517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22519 (eval $ac_try) 2>&5
22521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522 test $ac_status = 0; }; }
22525 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22526 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22527 gcc_cv_as_cfi_advance_working
=yes
22531 echo "configure: failed program was" >&5
22534 rm -f conftest.o conftest.s
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22538 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22541 # no objdump, err on the side of caution
22542 gcc_cv_as_cfi_advance_working
=no
22546 cat >>confdefs.h
<<_ACEOF
22547 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22548 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22554 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22555 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22556 $as_echo_n "(cached) " >&6
22558 gcc_cv_as_cfi_personality_directive
=no
22559 if test x
$gcc_cv_as != x
; then
22562 .cfi_personality 0, symbol
22563 .cfi_endproc' > conftest.s
22564 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22566 (eval $ac_try) 2>&5
22568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22569 test $ac_status = 0; }; }
22571 gcc_cv_as_cfi_personality_directive
=yes
22573 echo "configure: failed program was" >&5
22576 rm -f conftest.o conftest.s
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22580 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22583 cat >>confdefs.h
<<_ACEOF
22584 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22585 then echo 1; else echo 0; fi`
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22590 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22591 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22594 gcc_cv_as_cfi_sections_directive
=no
22595 if test x
$gcc_cv_as != x
; then
22597 .cfi_sections .debug_frame, .eh_frame
22599 .cfi_endproc' > conftest.s
22600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602 (eval $ac_try) 2>&5
22604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605 test $ac_status = 0; }; }
22608 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22609 # Need to check that we generated the correct relocation for the
22610 # .debug_frame section. This was fixed for binutils 2.21.
22611 gcc_cv_as_cfi_sections_directive
=no
22612 if test "x$gcc_cv_objdump" != x
; then
22613 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22614 grep secrel
> /dev
/null
; then
22615 gcc_cv_as_cfi_sections_directive
=yes
22620 gcc_cv_as_cfi_sections_directive
=yes
22624 echo "configure: failed program was" >&5
22627 rm -f conftest.o conftest.s
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22631 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22635 cat >>confdefs.h
<<_ACEOF
22636 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22637 then echo 1; else echo 0; fi`
22641 # GAS versions up to and including 2.11.0 may mis-optimize
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22644 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22645 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22648 gcc_cv_as_eh_frame
=no
22649 if test $in_tree_gas = yes; then
22650 if test $in_tree_gas_is_elf = yes \
22651 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22652 then gcc_cv_as_eh_frame
=yes
22654 elif test x
$gcc_cv_as != x
; then
22661 .section .eh_frame,"aw",@progbits
22663 .4byte .LECIE1-.LSCIE1
22677 .4byte .LEFDE1-.LASFDE1
22679 .4byte .LASFDE1-__FRAME_BEGIN__
22686 .LEFDE1:' > conftest.s
22687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; }
22694 cat > conftest.lit
<<EOF
22695 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22696 0010 01000000 12000000 18000000 00000000 ................
22697 0020 08000000 04080000 0044 .........D
22699 cat > conftest.big
<<EOF
22700 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22701 0010 00000001 00000012 00000018 00000000 ................
22702 0020 00000008 04000000 0844 .........D
22704 # If the assembler didn't choke, and we can objdump,
22705 # and we got the correct data, then succeed.
22706 # The text in the here-document typically retains its unix-style line
22707 # endings, while the output of objdump will use host line endings.
22708 # Therefore, use diff -b for the comparisons.
22709 if test x
$gcc_cv_objdump != x \
22710 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22711 |
tail -3 > conftest.got \
22712 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22713 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22715 gcc_cv_as_eh_frame
=yes
22716 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22718 (eval $ac_try) 2>&5
22720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22721 test $ac_status = 0; }; }; then
22722 gcc_cv_as_eh_frame
=buggy
22724 # Uh oh, what do we do now?
22725 gcc_cv_as_eh_frame
=no
22728 echo "configure: failed program was" >&5
22731 rm -f conftest.o conftest.s
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22735 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22738 if test $gcc_cv_as_eh_frame = buggy
; then
22740 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22745 $as_echo_n "checking assembler for section merging support... " >&6; }
22746 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22747 $as_echo_n "(cached) " >&6
22749 gcc_cv_as_shf_merge
=no
22750 if test $in_tree_gas = yes; then
22751 if test $in_tree_gas_is_elf = yes \
22752 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22753 then gcc_cv_as_shf_merge
=yes
22755 elif test x
$gcc_cv_as != x
; then
22756 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_shf_merge
=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_shf_merge" >&5
22773 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22775 if test $gcc_cv_as_shf_merge = no
; then
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22777 $as_echo_n "checking assembler for section merging support... " >&6; }
22778 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22779 $as_echo_n "(cached) " >&6
22781 gcc_cv_as_shf_merge
=no
22782 if test $in_tree_gas = yes; then
22783 if test $in_tree_gas_is_elf = yes \
22784 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22785 then gcc_cv_as_shf_merge
=yes
22787 elif test x
$gcc_cv_as != x
; then
22788 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22791 (eval $ac_try) 2>&5
22793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22794 test $ac_status = 0; }; }
22796 gcc_cv_as_shf_merge
=yes
22798 echo "configure: failed program was" >&5
22801 rm -f conftest.o conftest.s
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22805 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22809 cat >>confdefs.h
<<_ACEOF
22810 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22815 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22816 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22817 $as_echo_n "(cached) " >&6
22819 gcc_cv_as_comdat_group
=no
22820 if test $in_tree_gas = yes; then
22821 if test $in_tree_gas_is_elf = yes \
22822 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22823 then gcc_cv_as_comdat_group
=yes
22825 elif test x
$gcc_cv_as != x
; then
22826 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22829 (eval $ac_try) 2>&5
22831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22832 test $ac_status = 0; }; }
22834 gcc_cv_as_comdat_group
=yes
22836 echo "configure: failed program was" >&5
22839 rm -f conftest.o conftest.s
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22843 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22845 if test $gcc_cv_as_comdat_group = yes; then
22846 gcc_cv_as_comdat_group_percent
=no
22847 gcc_cv_as_comdat_group_group
=no
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22850 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22851 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22852 $as_echo_n "(cached) " >&6
22854 gcc_cv_as_comdat_group_percent
=no
22855 if test $in_tree_gas = yes; then
22856 if test $in_tree_gas_is_elf = yes \
22857 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22858 then gcc_cv_as_comdat_group_percent
=yes
22860 elif test x
$gcc_cv_as != x
; then
22861 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22864 (eval $ac_try) 2>&5
22866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22867 test $ac_status = 0; }; }
22869 gcc_cv_as_comdat_group_percent
=yes
22871 echo "configure: failed program was" >&5
22874 rm -f conftest.o conftest.s
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22878 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22880 if test $gcc_cv_as_comdat_group_percent = yes; then
22881 gcc_cv_as_comdat_group_group
=no
22883 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22884 gcc_cv_as_comdat_group_group
=no
22886 case "${target}" in
22887 # Sun as uses a completely different syntax.
22889 case "${target}" in
22890 sparc
*-*-solaris2*)
22892 .group foo,".text%foo",#comdat
22893 .section ".text%foo", #alloc,#execinstr,#progbits
22898 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22900 .group foo,.text%foo,#comdat
22901 .section .text%foo, "ax", @progbits
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22908 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22909 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22910 $as_echo_n "(cached) " >&6
22912 gcc_cv_as_comdat_group_group
=no
22913 if test x
$gcc_cv_as != x
; then
22914 $as_echo "$conftest_s" > conftest.s
22915 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22917 (eval $ac_try) 2>&5
22919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22920 test $ac_status = 0; }; }
22922 gcc_cv_as_comdat_group_group
=yes
22924 echo "configure: failed program was" >&5
22927 rm -f conftest.o conftest.s
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22931 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22937 if test x
"$ld_is_gold" = xyes
; then
22939 elif test $in_tree_ld = yes ; then
22941 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 \
22942 && test $in_tree_ld_is_elf = yes; then
22945 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22947 if test 0"$ld_date" -lt 20050308; then
22948 if test -n "$ld_date"; then
22949 # If there was date string, but was earlier than 2005-03-08, fail
22951 elif test "$ld_vers_major" -lt 2; then
22953 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22958 case "${target}" in
22959 *-*-solaris2.1
[1-9]*)
22961 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22962 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22965 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22966 # least ld version 1.2267.
22967 if test "$ld_vers_major" -gt 1; then
22969 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22971 elif test "$ld_vers_minor" -ge 2267; then
22976 # Assume linkers other than GNU ld don't support COMDAT group.
22981 # Allow overriding the automatic COMDAT group tests above.
22982 # Check whether --enable-comdat was given.
22983 if test "${enable_comdat+set}" = set; then :
22984 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22987 if test $comdat_group = no
; then
22988 gcc_cv_as_comdat_group
=no
22989 gcc_cv_as_comdat_group_percent
=no
22990 gcc_cv_as_comdat_group_group
=no
22993 cat >>confdefs.h
<<_ACEOF
22994 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22995 || test $gcc_cv_as_comdat_group_percent = yes \
22996 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23001 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23002 if test "${gcc_cv_as_discriminator+set}" = set; then :
23003 $as_echo_n "(cached) " >&6
23005 gcc_cv_as_discriminator
=no
23006 if test $in_tree_gas = yes; then
23007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23008 then gcc_cv_as_discriminator
=yes
23010 elif test x
$gcc_cv_as != x
; then
23013 .loc 1 1 0 discriminator 1' > conftest.s
23014 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23016 (eval $ac_try) 2>&5
23018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23019 test $ac_status = 0; }; }
23021 gcc_cv_as_discriminator
=yes
23023 echo "configure: failed program was" >&5
23026 rm -f conftest.o conftest.s
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23030 $as_echo "$gcc_cv_as_discriminator" >&6; }
23031 if test $gcc_cv_as_discriminator = yes; then
23033 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23037 # Thread-local storage - the check is heavily parameterized.
23045 .section ".tdata","awT",@progbits
23048 ldq $27,__tls_get_addr($29) !literal!1
23049 lda $16,foo($29) !tlsgd!1
23050 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23051 ldq $27,__tls_get_addr($29) !literal!2
23052 lda $16,foo($29) !tlsldm!2
23053 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23054 ldq $1,foo($29) !gotdtprel
23055 ldah $2,foo($29) !dtprelhi
23056 lda $3,foo($2) !dtprello
23057 lda $4,foo($29) !dtprel
23058 ldq $1,foo($29) !gottprel
23059 ldah $2,foo($29) !tprelhi
23060 lda $3,foo($2) !tprello
23061 lda $4,foo($29) !tprel'
23064 tls_as_opt
=--fatal-warnings
23066 cris-
*-*|crisv32-
*-*)
23068 .section ".tdata","awT",@progbits
23075 tls_as_opt
=--fatal-warnings
23079 .section ".tdata","awT",@progbits
23082 call #gettlsoff(x)'
23091 .section ".tdata","awT",@progbits
23095 addil LT%foo-$tls_gdidx$,gp
23096 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23099 addil LT%foo-$tls_ldidx$,gp
23101 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23102 addil LR%foo-$tls_dtpoff$,%ret0
23103 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23105 addil LT%foo-$tls_ieoff$,gp
23106 ldw RT%foo-$tls_ieoff$(%r1),%t2
23109 addil LR%foo-$tls_leoff$,%t1
23110 ldo RR%foo-$tls_leoff$(%r1),%t2'
23113 tls_as_opt
=--fatal-warnings
23117 .section ".tdata","awT",%progbits
23120 .word foo(gottpoff)
23128 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23130 i
[34567]86-*-solaris2.
*)
23132 tga_func
=___tls_get_addr
23134 x86_64-
*-solaris2.1
[0-9]*)
23136 tga_func
=__tls_get_addr
23142 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23144 .section .tdata,"awt",@progbits'
23148 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23152 .section ".tdata","awT",@progbits'
23155 tls_as_opt
="--fatal-warnings"
23157 conftest_s
="$conftest_s
23161 leal foo@tlsgd(,%ebx,1), %eax
23162 leal foo@tlsldm(%ebx), %eax
23163 leal foo@dtpoff(%eax), %edx
23164 movl foo@gottpoff(%ebx), %eax
23165 subl foo@gottpoff(%ebx), %eax
23166 addl foo@gotntpoff(%ebx), %eax
23167 movl foo@indntpoff, %eax
23168 movl \$foo@tpoff, %eax
23169 subl \$foo@tpoff, %eax
23170 leal foo@ntpoff(%ecx), %eax"
23174 .section ".tdata","awT",@progbits
23178 leaq foo@TLSGD(%rip), %rdi
23179 leaq foo@TLSLD(%rip), %rdi
23180 leaq foo@DTPOFF(%rax), %rdx
23181 movq foo@GOTTPOFF(%rip), %rax
23182 movq $foo@TPOFF, %rax'
23185 tls_as_opt
=--fatal-warnings
23189 .section ".tdata","awT",@progbits
23192 addl r16 = @ltoff(@dtpmod(foo#)), gp
23193 addl r17 = @ltoff(@dtprel(foo#)), gp
23194 addl r18 = @ltoff(@tprel(foo#)), gp
23195 addl r19 = @dtprel(foo#), gp
23196 adds r21 = @dtprel(foo#), r13
23197 movl r23 = @dtprel(foo#)
23198 addl r20 = @tprel(foo#), gp
23199 adds r22 = @tprel(foo#), r13
23200 movl r24 = @tprel(foo#)'
23203 tls_as_opt
=--fatal-warnings
23207 .section .tdata,"awT",@progbits
23211 addiu $4, $28, %tlsgd(x)
23212 addiu $4, $28, %tlsldm(x)
23213 lui $4, %dtprel_hi(x)
23214 addiu $4, $4, %dtprel_lo(x)
23215 lw $4, %gottprel(x)($28)
23216 lui $4, %tprel_hi(x)
23217 addiu $4, $4, %tprel_lo(x)'
23220 tls_as_opt
='-32 --fatal-warnings'
23224 .section .tdata,"awT",@progbits
23229 move.l x@TLSGD(%a5),%a0
23230 move.l x@TLSLDM(%a5),%a0
23231 move.l x@TLSLDO(%a5),%a0
23232 move.l x@TLSIE(%a5),%a0
23233 move.l x@TLSLE(%a5),%a0'
23236 tls_as_opt
='--fatal-warnings'
23240 .section ".tdata","awT",%progbits
23244 add x0, x0, #:tlsgd_lo12:x
23249 tls_as_opt
='--fatal-warnings'
23253 .extern __get_tpointer
23271 .section ".tdata","awT",@progbits
23279 addi 3,31,ld0@got@tlsgd
23281 addi 3,31,x1@got@tlsld
23284 addis 9,3,x2@dtprel@ha
23285 addi 9,9,x2@dtprel@l
23286 lwz 9,x3@got@tprel(31)
23289 addis 9,2,x2@tprel@ha
23290 addi 9,9,x2@tprel@l'
23293 tls_as_opt
="-a32 --fatal-warnings"
23297 .section ".tdata","awT",@progbits
23305 addi 3,2,ld0@got@tlsgd
23311 addi 3,2,x1@got@tlsld
23317 addis 9,3,x2@dtprel@ha
23318 addi 9,9,x2@dtprel@l
23321 ld 9,x3@got@dtprel(2)
23327 tls_as_opt
="-a64 --fatal-warnings"
23331 .section ".tdata","awT",@progbits
23338 .long foo@GOTNTPOFF
23339 .long foo@INDNTPOFF
23340 l %r1,foo@GOTNTPOFF(%r12)
23341 l %r1,0(%r1):tls_load:foo
23342 bas %r14,0(%r1,%r13):tls_gdcall:foo
23343 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23346 tls_as_opt
="-m31 --fatal-warnings"
23350 .section ".tdata","awT",@progbits
23357 .quad foo@GOTNTPOFF
23358 lg %r1,foo@GOTNTPOFF(%r12)
23359 larl %r1,foo@INDNTPOFF
23360 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23361 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23364 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23366 sh-
*-* | sh
[34]-*-*)
23368 .section ".tdata","awT",@progbits
23378 tls_as_opt
=--fatal-warnings
23382 sparc
*-sun-solaris2.
*)
23384 tga_func
=__tls_get_addr
23390 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23392 .section ".tdata",#alloc,#write,#tls'
23397 .section ".tdata","awT",@progbits'
23400 tls_as_opt
="-32 --fatal-warnings"
23402 conftest_s
="$conftest_s
23405 sethi %tgd_hi22(foo), %o0
23406 add %o0, %tgd_lo10(foo), %o1
23407 add %l7, %o1, %o0, %tgd_add(foo)
23408 call __tls_get_addr, %tgd_call(foo)
23409 sethi %tldm_hi22(foo), %l1
23410 add %l1, %tldm_lo10(foo), %l2
23411 add %l7, %l2, %o0, %tldm_add(foo)
23412 call __tls_get_addr, %tldm_call(foo)
23413 sethi %tldo_hix22(foo), %l3
23414 xor %l3, %tldo_lox10(foo), %l4
23415 add %o0, %l4, %l5, %tldo_add(foo)
23416 sethi %tie_hi22(foo), %o3
23417 add %o3, %tie_lo10(foo), %o3
23418 ld [%l7 + %o3], %o2, %tie_ld(foo)
23419 add %g7, %o2, %o4, %tie_add(foo)
23420 sethi %tle_hix22(foo), %l1
23421 xor %l1, %tle_lox10(foo), %o5
23422 ld [%g7 + %o5], %o1"
23426 .section ".tdata","awT",@progbits
23429 addli r0, zero, tls_gd(foo)
23430 auli r0, zero, tls_gd_ha16(foo)
23431 addli r0, r0, tls_gd_lo16(foo)
23433 addli r0, zero, tls_ie(foo)
23434 auli r0, r0, tls_ie_ha16(foo)
23435 addli r0, r0, tls_ie_lo16(foo)'
23438 tls_as_opt
="--fatal-warnings"
23442 .section ".tdata","awT",@progbits
23445 shl16insli r0, zero, hw0_last_tls_gd(foo)
23446 shl16insli r0, zero, hw1_last_tls_gd(foo)
23447 shl16insli r0, r0, hw0_tls_gd(foo)
23449 shl16insli r0, zero, hw1_last_tls_ie(foo)
23450 shl16insli r0, r0, hw0_tls_ie(foo)'
23453 tls_as_opt
="--fatal-warnings"
23457 .section ".tdata","awT",@progbits
23460 movi a8, foo@TLSFUNC
23461 movi a10, foo@TLSARG
23462 callx8.tls a8, foo@TLSCALL'
23468 if test "x$enable_tls" = xno
; then
23469 : # TLS explicitly disabled.
23470 elif test "x$enable_tls" = xyes
; then
23471 set_have_as_tls
=yes # TLS explicitly enabled.
23472 elif test -z "$tls_first_major"; then
23473 : # If we don't have a check, assume no support.
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23476 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23477 if test "${gcc_cv_as_tls+set}" = set; then :
23478 $as_echo_n "(cached) " >&6
23481 if test $in_tree_gas = yes; then
23482 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23483 then gcc_cv_as_tls
=yes
23485 elif test x
$gcc_cv_as != x
; then
23486 $as_echo "$conftest_s" > conftest.s
23487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -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; }; }
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_tls" >&5
23503 $as_echo "$gcc_cv_as_tls" >&6; }
23504 if test $gcc_cv_as_tls = yes; then
23505 set_have_as_tls
=yes
23509 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23510 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23511 # Sun style that Sun ld and GCC don't support any longer.
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23514 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23516 # Check ld and ld.so.1 TLS support.
23517 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23518 # Assume all interesting versions of GNU ld have TLS support.
23519 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23523 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23525 min_tls_ld_vers_minor
=374
23527 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23528 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23529 min_tls_ld_vers_minor
=343
23532 if test "$ld_vers_major" -gt 1 || \
23533 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23540 $as_echo "$ld_tls_support" >&6; }
23543 save_LDFLAGS
="$LDFLAGS"
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23548 $as_echo_n "checking library containing $tga_func... " >&6; }
23549 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23550 # (32-bit x86) only lived in libthread, so check for that. Keep
23551 # set_have_as_tls if found, disable if not.
23552 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23554 $as_echo_n "checking for library containing $tga_func... " >&6; }
23555 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23556 $as_echo_n "(cached) " >&6
23558 ac_func_search_save_LIBS
=$LIBS
23559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23562 /* Override any GCC internal prototype to avoid an error.
23563 Use char because int might match the return type of a GCC
23564 builtin and then its argument prototype would still apply. */
23572 return $tga_func ();
23577 for ac_lib
in '' thread
; do
23578 if test -z "$ac_lib"; then
23579 ac_res
="none required"
23582 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23584 if ac_fn_c_try_link
"$LINENO"; then :
23585 eval "$as_ac_Search=\$ac_res"
23587 rm -f core conftest.err conftest.
$ac_objext \
23589 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23593 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23596 eval "$as_ac_Search=no"
23598 rm conftest.
$ac_ext
23599 LIBS
=$ac_func_search_save_LIBS
23601 eval ac_res
=\$
$as_ac_Search
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23603 $as_echo "$ac_res" >&6; }
23604 eval ac_res
=\$
$as_ac_Search
23605 if test "$ac_res" != no
; then :
23606 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23612 # Clear LIBS if we cannot support TLS.
23613 if test $set_have_as_tls = no
; then
23616 # Always define LIB_TLS_SPEC, even without TLS support.
23618 cat >>confdefs.h
<<_ACEOF
23619 #define LIB_TLS_SPEC "$LIBS"
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23623 $as_echo "$LIBS" >&6; }
23626 LDFLAGS
="$save_LDFLAGS"
23629 if test $set_have_as_tls = yes ; then
23631 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23635 # Target-specific assembler checks.
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23638 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23639 gcc_cv_ld_static_dynamic
=no
23640 gcc_cv_ld_static_option
='-Bstatic'
23641 gcc_cv_ld_dynamic_option
='-Bdynamic'
23642 if test $in_tree_ld = yes ; then
23643 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
23644 gcc_cv_ld_static_dynamic
=yes
23646 elif test x
$gcc_cv_ld != x
; then
23647 # Check if linker supports -Bstatic/-Bdynamic option
23648 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23649 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23650 gcc_cv_ld_static_dynamic
=yes
23653 # HP-UX ld uses -a flags to select between shared and archive.
23655 if test x
"$gnu_ld" = xno
; then
23656 gcc_cv_ld_static_dynamic
=yes
23657 gcc_cv_ld_static_option
="-aarchive_shared"
23658 gcc_cv_ld_dynamic_option
="-adefault"
23661 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23663 gcc_cv_ld_static_dynamic
=yes
23668 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23670 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23673 cat >>confdefs.h
<<_ACEOF
23674 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23678 cat >>confdefs.h
<<_ACEOF
23679 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23684 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23686 if test x
"$demangler_in_ld" = xyes
; then
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23688 $as_echo_n "checking linker --demangle support... " >&6; }
23689 gcc_cv_ld_demangle
=no
23690 if test $in_tree_ld = yes; then
23691 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 \
23692 gcc_cv_ld_demangle
=yes
23694 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23695 # Check if the GNU linker supports --demangle option
23696 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23697 gcc_cv_ld_demangle
=yes
23700 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23702 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23706 $as_echo "$gcc_cv_ld_demangle" >&6; }
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23710 $as_echo_n "checking linker plugin support... " >&6; }
23711 gcc_cv_lto_plugin
=0
23712 if test -f liblto_plugin.la
; then
23713 save_ld_ver
="$ld_ver"
23714 save_ld_vers_major
="$ld_vers_major"
23715 save_ld_vers_minor
="$ld_vers_minor"
23716 save_ld_is_gold
="$ld_is_gold"
23720 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23722 # FIXME: ld_is_gold?
23723 ld_vers_major
="$gcc_cv_gld_major_version"
23724 ld_vers_minor
="$gcc_cv_gld_minor_version"
23726 # Determine plugin linker version.
23727 # FIXME: Partial duplicate from above, generalize.
23728 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23729 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23730 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23732 ld_vers
=`echo $ld_ver | sed -n \
23733 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23735 ld_vers
=`echo $ld_ver | sed -n \
23736 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23738 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23739 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23743 # Determine plugin support.
23744 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23745 # Require GNU ld or gold 2.21+ for plugin support by default.
23746 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23747 gcc_cv_lto_plugin
=2
23748 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23749 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23750 gcc_cv_lto_plugin
=1
23754 ld_ver
="$save_ld_ver"
23755 ld_vers_major
="$save_ld_vers_major"
23756 ld_vers_minor
="$save_ld_vers_minor"
23757 ld_is_gold
="$save_ld_is_gold"
23760 cat >>confdefs.h
<<_ACEOF
23761 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23765 $as_echo "$gcc_cv_lto_plugin" >&6; }
23768 # All TARGET_ABI_OSF targets.
23769 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23771 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23772 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23773 $as_echo_n "(cached) " >&6
23775 gcc_cv_as_alpha_explicit_relocs
=no
23776 if test $in_tree_gas = yes; then
23777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23778 then gcc_cv_as_alpha_explicit_relocs
=yes
23780 elif test x
$gcc_cv_as != x
; then
23781 $as_echo ' .set nomacro
23783 extbl $3, $2, $3 !lituse_bytoff!1
23784 ldq $2, a($29) !literal!1
23785 ldq $4, b($29) !literal!2
23786 ldq_u $3, 0($2) !lituse_base!1
23787 ldq $27, f($29) !literal!5
23788 jsr $26, ($27), f !lituse_jsr!5
23789 ldah $29, 0($26) !gpdisp!3
23790 lda $0, c($29) !gprel
23791 ldah $1, d($29) !gprelhigh
23792 lda $1, d($1) !gprellow
23793 lda $29, 0($29) !gpdisp!3' > conftest.s
23794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23796 (eval $ac_try) 2>&5
23798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23799 test $ac_status = 0; }; }
23801 gcc_cv_as_alpha_explicit_relocs
=yes
23803 echo "configure: failed program was" >&5
23806 rm -f conftest.o conftest.s
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23810 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23811 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23813 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23817 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23818 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23819 $as_echo_n "(cached) " >&6
23821 gcc_cv_as_alpha_jsrdirect_relocs
=no
23822 if test $in_tree_gas = yes; then
23823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23824 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23826 elif test x
$gcc_cv_as != x
; then
23827 $as_echo ' .set nomacro
23829 ldq $27, a($29) !literal!1
23830 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23833 (eval $ac_try) 2>&5
23835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23836 test $ac_status = 0; }; }
23838 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23840 echo "configure: failed program was" >&5
23843 rm -f conftest.o conftest.s
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23847 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23848 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23850 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23857 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23858 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23861 gcc_cv_as_cris_no_mul_bug
=no
23862 if test $in_tree_gas = yes; then
23863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23864 then gcc_cv_as_cris_no_mul_bug
=yes
23866 elif test x
$gcc_cv_as != x
; then
23867 $as_echo '.text' > conftest.s
23868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23870 (eval $ac_try) 2>&5
23872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23873 test $ac_status = 0; }; }
23875 gcc_cv_as_cris_no_mul_bug
=yes
23877 echo "configure: failed program was" >&5
23880 rm -f conftest.o conftest.s
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23884 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23885 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23887 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23894 $as_echo_n "checking assembler for .register... " >&6; }
23895 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23896 $as_echo_n "(cached) " >&6
23898 gcc_cv_as_sparc_register_op
=no
23899 if test x
$gcc_cv_as != x
; then
23900 $as_echo '.register %g2, #scratch' > conftest.s
23901 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23903 (eval $ac_try) 2>&5
23905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23906 test $ac_status = 0; }; }
23908 gcc_cv_as_sparc_register_op
=yes
23910 echo "configure: failed program was" >&5
23913 rm -f conftest.o conftest.s
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23917 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23918 if test $gcc_cv_as_sparc_register_op = yes; then
23920 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23925 $as_echo_n "checking assembler for -relax option... " >&6; }
23926 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23927 $as_echo_n "(cached) " >&6
23929 gcc_cv_as_sparc_relax
=no
23930 if test x
$gcc_cv_as != x
; then
23931 $as_echo '.text' > conftest.s
23932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23934 (eval $ac_try) 2>&5
23936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23937 test $ac_status = 0; }; }
23939 gcc_cv_as_sparc_relax
=yes
23941 echo "configure: failed program was" >&5
23944 rm -f conftest.o conftest.s
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23948 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23949 if test $gcc_cv_as_sparc_relax = yes; then
23951 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23956 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23957 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23960 gcc_cv_as_sparc_gotdata_op
=no
23961 if test x
$gcc_cv_as != x
; then
23967 sethi %gdop_hix22(foo), %g1
23968 xor %g1, %gdop_lox10(foo), %g1
23969 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972 (eval $ac_try) 2>&5
23974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975 test $ac_status = 0; }; }
23977 if test x
$gcc_cv_ld != x \
23978 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23979 if test x
$gcc_cv_objdump != x
; then
23980 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23981 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23982 gcc_cv_as_sparc_gotdata_op
=no
23984 gcc_cv_as_sparc_gotdata_op
=yes
23990 echo "configure: failed program was" >&5
23993 rm -f conftest.o conftest.s
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23997 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23998 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24000 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24005 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24006 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24007 $as_echo_n "(cached) " >&6
24009 gcc_cv_as_sparc_ua_pcrel
=no
24010 if test x
$gcc_cv_as != x
; then
24017 .uaword %r_disp32(foo)' > conftest.s
24018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24020 (eval $ac_try) 2>&5
24022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023 test $ac_status = 0; }; }
24025 if test x
$gcc_cv_ld != x \
24026 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24027 gcc_cv_as_sparc_ua_pcrel
=yes
24031 echo "configure: failed program was" >&5
24034 rm -f conftest.o conftest.s
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24038 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24039 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24041 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24045 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24046 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24049 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24050 if test x
$gcc_cv_as != x
; then
24054 .uaword %r_disp32(foo)
24055 .byte 0x32, 0x33, 0x34
24059 .skip 4' > conftest.s
24060 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24062 (eval $ac_try) 2>&5
24064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24065 test $ac_status = 0; }; }
24067 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24068 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24069 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24070 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24071 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24072 |
grep 'DISP32' > /dev
/null
2>&1; then
24075 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24080 echo "configure: failed program was" >&5
24083 rm -f conftest.o conftest.s
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24087 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24088 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24090 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24094 fi # unaligned pcrel relocs
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24097 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24098 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24101 gcc_cv_as_sparc_offsetable_lo10
=no
24102 if test x
$gcc_cv_as != x
; then
24104 or %g1, %lo(ab) + 12, %g1
24105 or %g1, %lo(ab + 12), %g1' > conftest.s
24106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24108 (eval $ac_try) 2>&5
24110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111 test $ac_status = 0; }; }
24113 if test x
$gcc_cv_objdump != x \
24114 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24115 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24116 gcc_cv_as_sparc_offsetable_lo10
=yes
24119 echo "configure: failed program was" >&5
24122 rm -f conftest.o conftest.s
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24126 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24127 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24129 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24134 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24135 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24136 $as_echo_n "(cached) " >&6
24138 gcc_cv_as_sparc_fmaf
=no
24139 if test x
$gcc_cv_as != x
; then
24141 .register %g2, #scratch
24142 .register %g3, #scratch
24144 fmaddd %f0, %f2, %f4, %f6
24145 addxccc %g1, %g2, %g3
24146 fsrl32 %f2, %f4, %f8
24147 fnaddd %f10, %f12, %f14' > conftest.s
24148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24155 gcc_cv_as_sparc_fmaf
=yes
24157 echo "configure: failed program was" >&5
24160 rm -f conftest.o conftest.s
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24164 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24165 if test $gcc_cv_as_sparc_fmaf = yes; then
24167 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24172 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24173 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24174 $as_echo_n "(cached) " >&6
24176 gcc_cv_as_sparc_sparc4
=no
24177 if test x
$gcc_cv_as != x
; then
24179 .register %g2, #scratch
24180 .register %g3, #scratch
24183 1: cwbneg %g2, %g3, 1f
24186 aes_kexpand0 %f4, %f6, %f8
24187 des_round %f38, %f40, %f42, %f44
24188 camellia_f %f54, %f56, %f58, %f60
24189 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24192 (eval $ac_try) 2>&5
24194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24195 test $ac_status = 0; }; }
24197 gcc_cv_as_sparc_sparc4
=yes
24199 echo "configure: failed program was" >&5
24202 rm -f conftest.o conftest.s
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24206 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24207 if test $gcc_cv_as_sparc_sparc4 = yes; then
24209 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24214 i
[34567]86-*-* | x86_64-
*-*)
24217 # Full C++ conformance when using a shared libstdc++-v3 requires some
24218 # support from the Cygwin DLL, which in more recent versions exports
24219 # wrappers to aid in interposing and redirecting operators new, delete,
24220 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24221 # are configuring for a version of Cygwin that exports the wrappers.
24222 if test x
$host = x
$target; then
24223 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24224 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24225 gcc_ac_cygwin_dll_wrappers
=yes
24227 gcc_ac_cygwin_dll_wrappers
=no
24231 # Can't check presence of libc functions during cross-compile, so
24232 # we just have to assume we're building for an up-to-date target.
24233 gcc_ac_cygwin_dll_wrappers
=yes
24236 cat >>confdefs.h
<<_ACEOF
24237 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24242 cygwin
* | pe | mingw32
* | interix
*)
24243 # Recent binutils allows the three-operand form of ".comm" on PE. This
24244 # definition is used unconditionally to initialise the default state of
24245 # the target option variable that governs usage of the feature.
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24247 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24248 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24249 $as_echo_n "(cached) " >&6
24251 gcc_cv_as_comm_has_align
=no
24252 if test $in_tree_gas = yes; then
24253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24254 then gcc_cv_as_comm_has_align
=yes
24256 elif test x
$gcc_cv_as != x
; then
24257 $as_echo '.comm foo,1,32' > conftest.s
24258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24260 (eval $ac_try) 2>&5
24262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24263 test $ac_status = 0; }; }
24265 gcc_cv_as_comm_has_align
=yes
24267 echo "configure: failed program was" >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24274 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24277 cat >>confdefs.h
<<_ACEOF
24278 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24281 # Used for DWARF 2 in PE
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24283 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24284 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24287 gcc_cv_as_ix86_pe_secrel32
=no
24288 if test $in_tree_gas = yes; then
24289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24290 then gcc_cv_as_ix86_pe_secrel32
=yes
24292 elif test x
$gcc_cv_as != x
; then
24296 .secrel32 foo' > conftest.s
24297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24304 if test x
$gcc_cv_ld != x \
24305 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24306 gcc_cv_as_ix86_pe_secrel32
=yes
24310 echo "configure: failed program was" >&5
24313 rm -f conftest.o conftest.s
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24317 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24318 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24320 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24323 # Test if the assembler supports the extended form of the .section
24324 # directive that specifies section alignment. LTO support uses this,
24325 # but normally only after installation, so we warn but don't fail the
24326 # configure if LTO is enabled but the assembler does not support it.
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24328 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24329 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24332 gcc_cv_as_section_has_align
=no
24333 if test $in_tree_gas = yes; then
24334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24335 then gcc_cv_as_section_has_align
=yes
24337 elif test x
$gcc_cv_as != x
; then
24338 $as_echo '.section lto_test,"dr0"' > conftest.s
24339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24341 (eval $ac_try) 2>&5
24343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24344 test $ac_status = 0; }; }
24346 gcc_cv_as_section_has_align
=yes
24348 echo "configure: failed program was" >&5
24351 rm -f conftest.o conftest.s
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24355 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24357 if test x
$gcc_cv_as_section_has_align != xyes
; then
24358 case ",$enable_languages," in
24360 { $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
24361 $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;}
24365 # Test if the assembler supports the section flag 'e' for specifying
24366 # an excluded section.
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24368 $as_echo_n "checking assembler for .section with e... " >&6; }
24369 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24370 $as_echo_n "(cached) " >&6
24372 gcc_cv_as_section_has_e
=no
24373 if test $in_tree_gas = yes; then
24374 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24375 then gcc_cv_as_section_has_e
=yes
24377 elif test x
$gcc_cv_as != x
; then
24378 $as_echo '.section foo1,"e"
24379 .byte 0,0,0,0' > conftest.s
24380 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24382 (eval $ac_try) 2>&5
24384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24385 test $ac_status = 0; }; }
24387 gcc_cv_as_section_has_e
=yes
24389 echo "configure: failed program was" >&5
24392 rm -f conftest.o conftest.s
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24396 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24399 cat >>confdefs.h
<<_ACEOF
24400 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24407 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24408 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24409 $as_echo_n "(cached) " >&6
24411 gcc_cv_as_ix86_filds
=no
24412 if test x
$gcc_cv_as != x
; then
24413 $as_echo 'filds mem; fists mem' > conftest.s
24414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24421 gcc_cv_as_ix86_filds
=yes
24423 echo "configure: failed program was" >&5
24426 rm -f conftest.o conftest.s
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24430 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24431 if test $gcc_cv_as_ix86_filds = yes; then
24433 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24438 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24439 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24442 gcc_cv_as_ix86_fildq
=no
24443 if test x
$gcc_cv_as != x
; then
24444 $as_echo 'fildq mem; fistpq mem' > conftest.s
24445 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; }
24452 gcc_cv_as_ix86_fildq
=yes
24454 echo "configure: failed program was" >&5
24457 rm -f conftest.o conftest.s
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24461 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24462 if test $gcc_cv_as_ix86_fildq = yes; then
24464 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24469 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24470 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24473 gcc_cv_as_ix86_cmov_sun_syntax
=no
24474 if test x
$gcc_cv_as != x
; then
24475 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24476 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24483 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24485 echo "configure: failed program was" >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24492 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24493 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24495 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24500 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24501 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24504 gcc_cv_as_ix86_ffreep
=no
24505 if test x
$gcc_cv_as != x
; then
24506 $as_echo 'ffreep %st(1)' > conftest.s
24507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24509 (eval $ac_try) 2>&5
24511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24512 test $ac_status = 0; }; }
24514 gcc_cv_as_ix86_ffreep
=yes
24516 echo "configure: failed program was" >&5
24519 rm -f conftest.o conftest.s
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24523 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24524 if test $gcc_cv_as_ix86_ffreep = yes; then
24526 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24531 $as_echo_n "checking assembler for .quad directive... " >&6; }
24532 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24533 $as_echo_n "(cached) " >&6
24535 gcc_cv_as_ix86_quad
=no
24536 if test x
$gcc_cv_as != x
; then
24537 $as_echo '.quad 0' > conftest.s
24538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24540 (eval $ac_try) 2>&5
24542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543 test $ac_status = 0; }; }
24545 gcc_cv_as_ix86_quad
=yes
24547 echo "configure: failed program was" >&5
24550 rm -f conftest.o conftest.s
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24554 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24555 if test $gcc_cv_as_ix86_quad = yes; then
24557 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24562 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24563 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24564 $as_echo_n "(cached) " >&6
24566 gcc_cv_as_ix86_sahf
=no
24567 if test x
$gcc_cv_as != x
; then
24570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24577 gcc_cv_as_ix86_sahf
=yes
24579 echo "configure: failed program was" >&5
24582 rm -f conftest.o conftest.s
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24586 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24587 if test $gcc_cv_as_ix86_sahf = yes; then
24589 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24594 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24595 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24596 $as_echo_n "(cached) " >&6
24598 gcc_cv_as_ix86_hle
=no
24599 if test x
$gcc_cv_as != x
; then
24600 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
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 gcc_cv_as_ix86_hle
=yes
24610 echo "configure: failed program was" >&5
24613 rm -f conftest.o conftest.s
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24617 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24618 if test $gcc_cv_as_ix86_hle = yes; then
24620 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24625 $as_echo_n "checking assembler for swap suffix... " >&6; }
24626 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24627 $as_echo_n "(cached) " >&6
24629 gcc_cv_as_ix86_swap
=no
24630 if test x
$gcc_cv_as != x
; then
24631 $as_echo 'movl.s %esp, %ebp' > conftest.s
24632 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24634 (eval $ac_try) 2>&5
24636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24637 test $ac_status = 0; }; }
24639 gcc_cv_as_ix86_swap
=yes
24641 echo "configure: failed program was" >&5
24644 rm -f conftest.o conftest.s
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24648 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24649 if test $gcc_cv_as_ix86_swap = yes; then
24651 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24656 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24657 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24658 $as_echo_n "(cached) " >&6
24660 gcc_cv_as_ix86_diff_sect_delta
=no
24661 if test x
$gcc_cv_as != x
; then
24662 $as_echo '.section .rodata
24668 .L2: nop' > 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_ix86_diff_sect_delta
=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_ix86_diff_sect_delta" >&5
24685 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24686 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24688 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24692 # These two are used unconditionally by i386.[ch]; it is to be defined
24693 # to 1 if the feature is present, 0 otherwise.
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24695 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24696 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24697 $as_echo_n "(cached) " >&6
24699 gcc_cv_as_ix86_gotoff_in_data
=no
24700 if test $in_tree_gas = yes; then
24701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24702 then gcc_cv_as_ix86_gotoff_in_data
=yes
24704 elif test x
$gcc_cv_as != x
; then
24709 .long .L0@GOTOFF' > conftest.s
24710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24717 gcc_cv_as_ix86_gotoff_in_data
=yes
24719 echo "configure: failed program was" >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24726 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24729 cat >>confdefs.h
<<_ACEOF
24730 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24735 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24736 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24739 gcc_cv_as_ix86_rep_lock_prefix
=no
24740 if test x
$gcc_cv_as != x
; then
24741 $as_echo 'rep movsl
24746 lock addl %edi, (%eax,%esi)
24747 lock orl $0, (%esp)' > conftest.s
24748 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24755 gcc_cv_as_ix86_rep_lock_prefix
=yes
24757 echo "configure: failed program was" >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24764 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24765 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24767 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24772 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24773 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24776 gcc_cv_as_ix86_tlsgdplt
=no
24777 if test x
$gcc_cv_as != x
; then
24778 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24786 if test x
$gcc_cv_ld != x \
24787 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24788 gcc_cv_as_ix86_tlsgdplt
=yes
24792 echo "configure: failed program was" >&5
24795 rm -f conftest.o conftest.s
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24799 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24800 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24802 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24807 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24808 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24811 gcc_cv_as_ix86_tlsldmplt
=no
24812 if test x
$gcc_cv_as != x
; then
24814 call tls_ld@tlsldmplt' > conftest.s
24815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24822 if test x
$gcc_cv_ld != x \
24823 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24824 gcc_cv_as_ix86_tlsldmplt
=yes
24828 echo "configure: failed program was" >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24835 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24836 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24838 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24846 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24847 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24848 $as_echo_n "(cached) " >&6
24850 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24851 if test $in_tree_gas = yes; then
24852 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24853 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24855 elif test x
$gcc_cv_as != x
; then
24857 addl r15 = @ltoffx(x#), gp
24859 ld8.mov r16 = [r15], x#' > conftest.s
24860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24862 (eval $ac_try) 2>&5
24864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24865 test $ac_status = 0; }; }
24867 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24869 echo "configure: failed program was" >&5
24872 rm -f conftest.o conftest.s
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24876 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24877 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24879 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24887 *-*-aix*) conftest_s
=' .machine "pwr5"
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24892 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24893 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24894 $as_echo_n "(cached) " >&6
24896 gcc_cv_as_machine_directive
=no
24897 if test x
$gcc_cv_as != x
; then
24898 $as_echo ' .machine ppc7400' > conftest.s
24899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24901 (eval $ac_try) 2>&5
24903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24904 test $ac_status = 0; }; }
24906 gcc_cv_as_machine_directive
=yes
24908 echo "configure: failed program was" >&5
24911 rm -f conftest.o conftest.s
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24915 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24917 if test x
$gcc_cv_as_machine_directive != xyes
; then
24918 echo "*** This target requires an assembler supporting \".machine\"" >&2
24919 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24920 test x
$build = x
$target && exit 1
24924 *) conftest_s
=' .machine power4
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24930 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24931 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24932 $as_echo_n "(cached) " >&6
24934 gcc_cv_as_powerpc_mfcrf
=no
24935 if test $in_tree_gas = yes; then
24936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24937 then gcc_cv_as_powerpc_mfcrf
=yes
24939 elif test x
$gcc_cv_as != x
; then
24940 $as_echo "$conftest_s" > conftest.s
24941 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24943 (eval $ac_try) 2>&5
24945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24946 test $ac_status = 0; }; }
24948 gcc_cv_as_powerpc_mfcrf
=yes
24950 echo "configure: failed program was" >&5
24953 rm -f conftest.o conftest.s
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24957 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24958 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24960 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24965 *-*-aix*) conftest_s
=' .machine "pwr5"
24968 *) conftest_s
=' .machine power5
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24974 $as_echo_n "checking assembler for popcntb support... " >&6; }
24975 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24978 gcc_cv_as_powerpc_popcntb
=no
24979 if test $in_tree_gas = yes; then
24980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24981 then gcc_cv_as_powerpc_popcntb
=yes
24983 elif test x
$gcc_cv_as != x
; then
24984 $as_echo "$conftest_s" > conftest.s
24985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24987 (eval $ac_try) 2>&5
24989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24990 test $ac_status = 0; }; }
24992 gcc_cv_as_powerpc_popcntb
=yes
24994 echo "configure: failed program was" >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25001 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25002 if test $gcc_cv_as_powerpc_popcntb = yes; then
25004 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25009 *-*-aix*) conftest_s
=' .machine "pwr5x"
25012 *) conftest_s
=' .machine power5
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25018 $as_echo_n "checking assembler for fp round support... " >&6; }
25019 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25020 $as_echo_n "(cached) " >&6
25022 gcc_cv_as_powerpc_fprnd
=no
25023 if test $in_tree_gas = yes; then
25024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25025 then gcc_cv_as_powerpc_fprnd
=yes
25027 elif test x
$gcc_cv_as != x
; then
25028 $as_echo "$conftest_s" > conftest.s
25029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25031 (eval $ac_try) 2>&5
25033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25034 test $ac_status = 0; }; }
25036 gcc_cv_as_powerpc_fprnd
=yes
25038 echo "configure: failed program was" >&5
25041 rm -f conftest.o conftest.s
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25045 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25046 if test $gcc_cv_as_powerpc_fprnd = yes; then
25048 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25053 *-*-aix*) conftest_s
=' .machine "pwr6"
25056 *) conftest_s
=' .machine power6
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25062 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25063 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25066 gcc_cv_as_powerpc_mfpgpr
=no
25067 if test $in_tree_gas = yes; then
25068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25069 then gcc_cv_as_powerpc_mfpgpr
=yes
25071 elif test x
$gcc_cv_as != x
; then
25072 $as_echo "$conftest_s" > conftest.s
25073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25075 (eval $ac_try) 2>&5
25077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25078 test $ac_status = 0; }; }
25080 gcc_cv_as_powerpc_mfpgpr
=yes
25082 echo "configure: failed program was" >&5
25085 rm -f conftest.o conftest.s
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25089 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25090 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25092 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25097 *-*-aix*) conftest_s
=' .csect .text[PR]
25099 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25103 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25104 *) conftest_s
=' .text
25106 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25110 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25111 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25114 gcc_cv_as_powerpc_rel16
=no
25115 if test $in_tree_gas = yes; then
25116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25117 then gcc_cv_as_powerpc_rel16
=yes
25119 elif test x
$gcc_cv_as != x
; then
25120 $as_echo "$conftest_s" > conftest.s
25121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25128 gcc_cv_as_powerpc_rel16
=yes
25130 echo "configure: failed program was" >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25137 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25138 if test $gcc_cv_as_powerpc_rel16 = yes; then
25140 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25145 *-*-aix*) conftest_s
=' .machine "pwr6"
25148 *) conftest_s
=' .machine power6
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25154 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25155 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25156 $as_echo_n "(cached) " >&6
25158 gcc_cv_as_powerpc_cmpb
=no
25159 if test $in_tree_gas = yes; then
25160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25161 then gcc_cv_as_powerpc_cmpb
=yes
25163 elif test x
$gcc_cv_as != x
; then
25164 $as_echo "$conftest_s" > conftest.s
25165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25167 (eval $ac_try) 2>&5
25169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25170 test $ac_status = 0; }; }
25172 gcc_cv_as_powerpc_cmpb
=yes
25174 echo "configure: failed program was" >&5
25177 rm -f conftest.o conftest.s
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25181 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25182 if test $gcc_cv_as_powerpc_cmpb = yes; then
25184 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25189 *-*-aix*) conftest_s
=' .machine "pwr6"
25192 *) conftest_s
=' .machine power6
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25198 $as_echo_n "checking assembler for decimal float support... " >&6; }
25199 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25200 $as_echo_n "(cached) " >&6
25202 gcc_cv_as_powerpc_dfp
=no
25203 if test $in_tree_gas = yes; then
25204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25205 then gcc_cv_as_powerpc_dfp
=yes
25207 elif test x
$gcc_cv_as != x
; then
25208 $as_echo "$conftest_s" > conftest.s
25209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }
25216 gcc_cv_as_powerpc_dfp
=yes
25218 echo "configure: failed program was" >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25225 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25226 if test $gcc_cv_as_powerpc_dfp = yes; then
25228 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25233 *-*-aix*) conftest_s
=' .machine "pwr7"
25236 *) conftest_s
=' .machine power7
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25242 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25243 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25244 $as_echo_n "(cached) " >&6
25246 gcc_cv_as_powerpc_vsx
=no
25247 if test $in_tree_gas = yes; then
25248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25249 then gcc_cv_as_powerpc_vsx
=yes
25251 elif test x
$gcc_cv_as != x
; then
25252 $as_echo "$conftest_s" > conftest.s
25253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }
25260 gcc_cv_as_powerpc_vsx
=yes
25262 echo "configure: failed program was" >&5
25265 rm -f conftest.o conftest.s
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25269 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25270 if test $gcc_cv_as_powerpc_vsx = yes; then
25272 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25277 *-*-aix*) conftest_s
=' .machine "pwr7"
25280 *) conftest_s
=' .machine power7
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25286 $as_echo_n "checking assembler for popcntd support... " >&6; }
25287 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25290 gcc_cv_as_powerpc_popcntd
=no
25291 if test $in_tree_gas = yes; then
25292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25293 then gcc_cv_as_powerpc_popcntd
=yes
25295 elif test x
$gcc_cv_as != x
; then
25296 $as_echo "$conftest_s" > conftest.s
25297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25304 gcc_cv_as_powerpc_popcntd
=yes
25306 echo "configure: failed program was" >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25313 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25314 if test $gcc_cv_as_powerpc_popcntd = yes; then
25316 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25321 *-*-aix*) conftest_s
=' .machine "pwr8"
25322 .csect .text[PR]';;
25323 *) conftest_s
=' .machine power8
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25328 $as_echo_n "checking assembler for power8 support... " >&6; }
25329 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25330 $as_echo_n "(cached) " >&6
25332 gcc_cv_as_powerpc_power8
=no
25333 if test $in_tree_gas = yes; then
25334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25335 then gcc_cv_as_powerpc_power8
=yes
25337 elif test x
$gcc_cv_as != x
; then
25338 $as_echo "$conftest_s" > conftest.s
25339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25341 (eval $ac_try) 2>&5
25343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25344 test $ac_status = 0; }; }
25346 gcc_cv_as_powerpc_power8
=yes
25348 echo "configure: failed program was" >&5
25351 rm -f conftest.o conftest.s
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25355 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25356 if test $gcc_cv_as_powerpc_power8 = yes; then
25358 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25363 *-*-aix*) conftest_s
=' .csect .text[PR]
25365 *) conftest_s
=' .text
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25370 $as_echo_n "checking assembler for lwsync support... " >&6; }
25371 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25372 $as_echo_n "(cached) " >&6
25374 gcc_cv_as_powerpc_lwsync
=no
25375 if test $in_tree_gas = yes; then
25376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25377 then gcc_cv_as_powerpc_lwsync
=yes
25379 elif test x
$gcc_cv_as != x
; then
25380 $as_echo "$conftest_s" > conftest.s
25381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25383 (eval $ac_try) 2>&5
25385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25386 test $ac_status = 0; }; }
25388 gcc_cv_as_powerpc_lwsync
=yes
25390 echo "configure: failed program was" >&5
25393 rm -f conftest.o conftest.s
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25397 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25398 if test $gcc_cv_as_powerpc_lwsync = yes; then
25400 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25405 *-*-aix*) conftest_s
=' .machine "476"
25408 *) conftest_s
=' .machine "476"
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25414 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25415 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25416 $as_echo_n "(cached) " >&6
25418 gcc_cv_as_powerpc_dci
=no
25419 if test $in_tree_gas = yes; then
25420 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25421 then gcc_cv_as_powerpc_dci
=yes
25423 elif test x
$gcc_cv_as != x
; then
25424 $as_echo "$conftest_s" > conftest.s
25425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25427 (eval $ac_try) 2>&5
25429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; }
25432 gcc_cv_as_powerpc_dci
=yes
25434 echo "configure: failed program was" >&5
25437 rm -f conftest.o conftest.s
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25441 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25442 if test $gcc_cv_as_powerpc_dci = yes; then
25444 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25449 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25450 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25451 $as_echo_n "(cached) " >&6
25453 gcc_cv_as_powerpc_gnu_attribute
=no
25454 if test $in_tree_gas = yes; then
25455 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25456 then gcc_cv_as_powerpc_gnu_attribute
=yes
25458 elif test x
$gcc_cv_as != x
; then
25459 $as_echo '.gnu_attribute 4,1' > conftest.s
25460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25462 (eval $ac_try) 2>&5
25464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25465 test $ac_status = 0; }; }
25467 gcc_cv_as_powerpc_gnu_attribute
=yes
25469 echo "configure: failed program was" >&5
25472 rm -f conftest.o conftest.s
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25476 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25477 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25479 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25484 $as_echo_n "checking assembler for tls marker support... " >&6; }
25485 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25486 $as_echo_n "(cached) " >&6
25488 gcc_cv_as_powerpc_tls_markers
=no
25489 if test $in_tree_gas = yes; then
25490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25491 then gcc_cv_as_powerpc_tls_markers
=yes
25493 elif test x
$gcc_cv_as != x
; then
25494 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25495 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25497 (eval $ac_try) 2>&5
25499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25500 test $ac_status = 0; }; }
25502 gcc_cv_as_powerpc_tls_markers
=yes
25504 echo "configure: failed program was" >&5
25507 rm -f conftest.o conftest.s
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25511 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25512 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25514 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25521 $as_echo_n "checking assembler for .ref support... " >&6; }
25522 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25523 $as_echo_n "(cached) " >&6
25525 gcc_cv_as_aix_ref
=no
25526 if test $in_tree_gas = yes; then
25527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25528 then gcc_cv_as_aix_ref
=yes
25530 elif test x
$gcc_cv_as != x
; then
25531 $as_echo ' .csect stuff[rw]
25537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25539 (eval $ac_try) 2>&5
25541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25542 test $ac_status = 0; }; }
25544 gcc_cv_as_aix_ref
=yes
25546 echo "configure: failed program was" >&5
25549 rm -f conftest.o conftest.s
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25553 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25554 if test $gcc_cv_as_aix_ref = yes; then
25556 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25565 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25566 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25567 $as_echo_n "(cached) " >&6
25569 gcc_cv_as_mips_explicit_relocs
=no
25570 if test $in_tree_gas = yes; then
25571 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25572 then gcc_cv_as_mips_explicit_relocs
=yes
25574 elif test x
$gcc_cv_as != x
; then
25575 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25576 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25578 (eval $ac_try) 2>&5
25580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581 test $ac_status = 0; }; }
25583 gcc_cv_as_mips_explicit_relocs
=yes
25585 echo "configure: failed program was" >&5
25588 rm -f conftest.o conftest.s
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25592 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25593 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25594 if test x
$target_cpu_default = x
25595 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25596 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25600 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25601 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25604 gcc_cv_as_mips_no_shared
=no
25605 if test $in_tree_gas = yes; then
25606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25607 then gcc_cv_as_mips_no_shared
=yes
25609 elif test x
$gcc_cv_as != x
; then
25610 $as_echo 'nop' > conftest.s
25611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25618 gcc_cv_as_mips_no_shared
=yes
25620 echo "configure: failed program was" >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25627 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25628 if test $gcc_cv_as_mips_no_shared = yes; then
25630 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25635 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25636 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25637 $as_echo_n "(cached) " >&6
25639 gcc_cv_as_mips_gnu_attribute
=no
25640 if test $in_tree_gas = yes; then
25641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25642 then gcc_cv_as_mips_gnu_attribute
=yes
25644 elif test x
$gcc_cv_as != x
; then
25645 $as_echo '.gnu_attribute 4,1' > conftest.s
25646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25648 (eval $ac_try) 2>&5
25650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25651 test $ac_status = 0; }; }
25653 gcc_cv_as_mips_gnu_attribute
=yes
25655 echo "configure: failed program was" >&5
25658 rm -f conftest.o conftest.s
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25662 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25663 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25665 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25670 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25671 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25672 $as_echo_n "(cached) " >&6
25674 gcc_cv_as_mips_dtprelword
=no
25675 if test $in_tree_gas = yes; then
25676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25677 then gcc_cv_as_mips_dtprelword
=yes
25679 elif test x
$gcc_cv_as != x
; then
25680 $as_echo '.section .tdata,"awT",@progbits
25684 .dtprelword x+0x8000' > conftest.s
25685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25687 (eval $ac_try) 2>&5
25689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25690 test $ac_status = 0; }; }
25692 gcc_cv_as_mips_dtprelword
=yes
25694 echo "configure: failed program was" >&5
25697 rm -f conftest.o conftest.s
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25701 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25702 if test $gcc_cv_as_mips_dtprelword = yes; then
25704 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25709 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25710 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25711 $as_echo_n "(cached) " >&6
25713 gcc_cv_as_mips_dspr1_mult
=no
25714 if test x
$gcc_cv_as != x
; then
25715 $as_echo ' .set mips32r2
25723 multu $ac3,$4,$5' > conftest.s
25724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25726 (eval $ac_try) 2>&5
25728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25729 test $ac_status = 0; }; }
25731 gcc_cv_as_mips_dspr1_mult
=yes
25733 echo "configure: failed program was" >&5
25736 rm -f conftest.o conftest.s
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25740 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25741 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25743 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25748 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25749 gcc_cv_as_ld_jalr_reloc
=no
25750 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25751 if test $in_tree_ld = yes ; then
25752 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 \
25753 && test $in_tree_ld_is_elf = yes; then
25754 gcc_cv_as_ld_jalr_reloc
=yes
25756 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25757 echo ' .ent x' > conftest.s
25758 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25759 echo ' ld $25,%call16(y)($28)' >> conftest.s
25760 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25761 echo '1: jalr $25' >> conftest.s
25762 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25763 echo '1: jalr $25' >> conftest.s
25764 echo ' .end x' >> conftest.s
25765 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25766 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25767 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25768 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25769 gcc_cv_as_ld_jalr_reloc
=yes
25775 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25776 if test x
$target_cpu_default = x
; then
25777 target_cpu_default
=MASK_RELAX_PIC_CALLS
25779 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25783 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25786 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25787 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25790 gcc_cv_ld_mips_personality_relaxation
=no
25791 if test $in_tree_ld = yes ; then
25792 if test "$gcc_cv_gld_major_version" -eq 2 \
25793 -a "$gcc_cv_gld_minor_version" -ge 21 \
25794 -o "$gcc_cv_gld_major_version" -gt 2; then
25795 gcc_cv_ld_mips_personality_relaxation
=yes
25797 elif test x
$gcc_cv_as != x \
25798 -a x
$gcc_cv_ld != x \
25799 -a x
$gcc_cv_readelf != x
; then
25800 cat > conftest.s
<<EOF
25802 .cfi_personality 0x80,indirect_ptr
25809 .section .data,"aw",@progbits
25813 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25814 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25815 if $gcc_cv_readelf -d conftest
2>&1 \
25816 |
grep TEXTREL
> /dev
/null
2>&1; then
25818 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25819 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25822 gcc_cv_ld_mips_personality_relaxation
=yes
25826 rm -f conftest.s conftest.o conftest
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25829 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25830 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25832 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25838 # Mips and HP-UX need the GNU assembler.
25839 # Linux on IA64 might be able to use the Intel assembler.
25842 mips
*-*-* |
*-*-hpux* )
25843 if test x
$gas_flag = xyes \
25844 ||
test x
"$host" != x
"$build" \
25845 ||
test ! -x "$gcc_cv_as" \
25846 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25849 echo "*** This configuration requires the GNU assembler" >&2
25855 # ??? Not all targets support dwarf2 debug_line, even within a version
25856 # of gas. Moreover, we need to emit a valid instruction to trigger any
25857 # info to the output file. So, as supported targets are added to gas 2.11,
25858 # add some instruction here to (also) show we expect this might work.
25859 # ??? Once 2.11 is released, probably need to add first known working
25860 # version to the per-target configury.
25861 case "$cpu_type" in
25862 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25863 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25873 if test x
"$insn" != x
; then
25875 .file 1 \"conftest.s\"
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25879 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25880 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25881 $as_echo_n "(cached) " >&6
25883 gcc_cv_as_dwarf2_debug_line
=no
25884 if test $in_tree_gas = yes; then
25885 if test $in_tree_gas_is_elf = yes \
25886 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25887 then gcc_cv_as_dwarf2_debug_line
=yes
25889 elif test x
$gcc_cv_as != x
; then
25890 $as_echo "$conftest_s" > conftest.s
25891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25893 (eval $ac_try) 2>&5
25895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896 test $ac_status = 0; }; }
25898 if test x
$gcc_cv_objdump != x \
25899 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25900 |
grep debug_line
> /dev
/null
2>&1; then
25901 gcc_cv_as_dwarf2_debug_line
=yes
25904 echo "configure: failed program was" >&5
25907 rm -f conftest.o conftest.s
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25911 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25914 # The .debug_line file table must be in the exact order that
25915 # we specified the files, since these indices are also used
25916 # by DW_AT_decl_file. Approximate this test by testing if
25917 # the assembler bitches if the same index is assigned twice.
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25919 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25920 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25921 $as_echo_n "(cached) " >&6
25923 gcc_cv_as_dwarf2_file_buggy
=no
25924 if test x
$gcc_cv_as != x
; then
25925 $as_echo ' .file 1 "foo.s"
25926 .file 1 "bar.s"' > conftest.s
25927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25929 (eval $ac_try) 2>&5
25931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25932 test $ac_status = 0; }; }
25934 gcc_cv_as_dwarf2_file_buggy
=yes
25936 echo "configure: failed program was" >&5
25939 rm -f conftest.o conftest.s
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25943 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25946 if test $gcc_cv_as_dwarf2_debug_line = yes \
25947 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25949 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25954 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25955 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25956 $as_echo_n "(cached) " >&6
25958 gcc_cv_as_gdwarf2_flag
=no
25959 if test $in_tree_gas = yes; then
25960 if test $in_tree_gas_is_elf = yes \
25961 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25962 then gcc_cv_as_gdwarf2_flag
=yes
25964 elif test x
$gcc_cv_as != x
; then
25965 $as_echo "$insn" > conftest.s
25966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25968 (eval $ac_try) 2>&5
25970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25971 test $ac_status = 0; }; }
25973 gcc_cv_as_gdwarf2_flag
=yes
25975 echo "configure: failed program was" >&5
25978 rm -f conftest.o conftest.s
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25982 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25983 if test $gcc_cv_as_gdwarf2_flag = yes; then
25985 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25990 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25991 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25992 $as_echo_n "(cached) " >&6
25994 gcc_cv_as_gstabs_flag
=no
25995 if test $in_tree_gas = yes; then
25996 if test $in_tree_gas_is_elf = yes \
25997 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25998 then gcc_cv_as_gstabs_flag
=yes
26000 elif test x
$gcc_cv_as != x
; then
26001 $as_echo "$insn" > conftest.s
26002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26004 (eval $ac_try) 2>&5
26006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26007 test $ac_status = 0; }; }
26009 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26010 # and warns about it, but still exits successfully. So check for
26012 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26014 (eval $ac_try) 2>&5
26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26017 test $ac_status = 0; }; }
26019 else gcc_cv_as_gstabs_flag
=yes
26022 echo "configure: failed program was" >&5
26025 rm -f conftest.o conftest.s
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26029 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26030 if test $gcc_cv_as_gstabs_flag = yes; then
26032 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26037 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26038 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26039 $as_echo_n "(cached) " >&6
26041 gcc_cv_as_debug_prefix_map_flag
=no
26042 if test $in_tree_gas = yes; then
26043 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26044 then gcc_cv_as_debug_prefix_map_flag
=yes
26046 elif test x
$gcc_cv_as != x
; then
26047 $as_echo "$insn" > conftest.s
26048 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26050 (eval $ac_try) 2>&5
26052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26053 test $ac_status = 0; }; }
26055 gcc_cv_as_debug_prefix_map_flag
=yes
26057 echo "configure: failed program was" >&5
26060 rm -f conftest.o conftest.s
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26064 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26065 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26067 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26073 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26074 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26075 $as_echo_n "(cached) " >&6
26077 gcc_cv_as_lcomm_with_alignment
=no
26078 if test x
$gcc_cv_as != x
; then
26079 $as_echo '.lcomm bar,4,16' > conftest.s
26080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26082 (eval $ac_try) 2>&5
26084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26085 test $ac_status = 0; }; }
26087 gcc_cv_as_lcomm_with_alignment
=yes
26089 echo "configure: failed program was" >&5
26092 rm -f conftest.o conftest.s
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26096 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26097 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26099 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26103 # Check whether --enable-gnu-unique-object was given.
26104 if test "${enable_gnu_unique_object+set}" = set; then :
26105 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26107 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26108 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26112 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26113 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26114 $as_echo_n "(cached) " >&6
26116 gcc_cv_as_gnu_unique_object
=no
26117 if test $in_tree_gas = yes; then
26118 if test $in_tree_gas_is_elf = yes \
26119 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26120 then gcc_cv_as_gnu_unique_object
=yes
26122 elif test x
$gcc_cv_as != x
; then
26123 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26124 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26126 (eval $ac_try) 2>&5
26128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26129 test $ac_status = 0; }; }
26131 gcc_cv_as_gnu_unique_object
=yes
26133 echo "configure: failed program was" >&5
26136 rm -f conftest.o conftest.s
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26140 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26141 if test $gcc_cv_as_gnu_unique_object = yes; then
26142 # We need to unquote above to to use the definition from config.gcc.
26143 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26144 if test x
$host = x
$build -a x
$host = x
$target &&
26145 ldd
--version 2>/dev
/null
&&
26146 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26147 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26148 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26149 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26150 if test "$glibcnum" -ge 2011 ; then
26151 enable_gnu_unique_object
=yes
26157 if test x
$enable_gnu_unique_object = xyes
; then
26159 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26164 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26165 if test "${gcc_cv_as_line_zero+set}" = set; then :
26166 $as_echo_n "(cached) " >&6
26168 gcc_cv_as_line_zero
=no
26169 if test $in_tree_gas = yes; then
26170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26171 then gcc_cv_as_line_zero
=yes
26173 elif test "x$gcc_cv_as" != x
; then
26174 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26175 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26177 (eval $ac_try) 2>&5
26179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180 test $ac_status = 0; }; } &&
26181 test "x`cat conftest.out`" = x
26183 gcc_cv_as_line_zero
=yes
26185 echo "configure: failed program was" >&5
26187 echo "configure: error output was" >&5
26188 cat conftest.out
>&5
26190 rm -f conftest.o conftest.s conftest.out
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26194 $as_echo "$gcc_cv_as_line_zero" >&6; }
26195 if test "x$gcc_cv_as_line_zero" = xyes
; then
26197 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26202 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26203 gcc_cv_ld_eh_frame_hdr
=no
26204 if test $in_tree_ld = yes ; then
26205 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 \
26206 && test $in_tree_ld_is_elf = yes; then
26207 gcc_cv_ld_eh_frame_hdr
=yes
26209 elif test x
$gcc_cv_ld != x
; then
26210 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26211 # Check if linker supports --eh-frame-hdr option
26212 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26213 gcc_cv_ld_eh_frame_hdr
=yes
26218 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26219 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26220 gcc_cv_ld_eh_frame_hdr
=yes
26227 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26229 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26233 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26236 $as_echo_n "checking linker position independent executable support... " >&6; }
26238 if test $in_tree_ld = yes ; then
26239 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 \
26240 && test $in_tree_ld_is_elf = yes; then
26243 elif test x
$gcc_cv_ld != x
; then
26244 # Check if linker supports -pie option
26245 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26249 if test x
"$gcc_cv_ld_pie" = xyes
; then
26251 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26255 $as_echo "$gcc_cv_ld_pie" >&6; }
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26258 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26259 gcc_cv_ld_eh_gc_sections
=no
26260 if test $in_tree_ld = yes ; then
26261 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 \
26262 && test $in_tree_ld_is_elf = yes; then
26263 gcc_cv_ld_eh_gc_sections
=yes
26265 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26266 cat > conftest.s
<<EOF
26269 .type _start, @function
26272 .size _start, .-_start
26273 .section .text.foo,"ax",@progbits
26274 .type foo, @function
26278 .section .gcc_except_table.foo,"a",@progbits
26281 .section .eh_frame,"a",@progbits
26284 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26285 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26286 |
grep "gc-sections option ignored" > /dev
/null
; then
26287 gcc_cv_ld_eh_gc_sections
=no
26288 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26289 |
grep gcc_except_table
> /dev
/null
; then
26290 gcc_cv_ld_eh_gc_sections
=yes
26291 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26292 if test x
$gcc_cv_as_comdat_group != xyes
; then
26293 gcc_cv_ld_eh_gc_sections
=no
26294 cat > conftest.s
<<EOF
26297 .type _start, @function
26300 .size _start, .-_start
26301 .section .gnu.linkonce.t.foo,"ax",@progbits
26302 .type foo, @function
26306 .section .gcc_except_table.foo,"a",@progbits
26309 .section .eh_frame,"a",@progbits
26312 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26313 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26314 |
grep "gc-sections option ignored" > /dev
/null
; then
26315 gcc_cv_ld_eh_gc_sections
=no
26316 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26317 |
grep gcc_except_table
> /dev
/null
; then
26318 gcc_cv_ld_eh_gc_sections
=yes
26324 rm -f conftest.s conftest.o conftest
26328 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26329 gcc_cv_ld_eh_gc_sections
=no
26332 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26334 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26338 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26341 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26342 gcc_cv_ld_eh_gc_sections_bug
=no
26343 if test $in_tree_ld = yes ; then
26344 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26345 && test $in_tree_ld_is_elf = yes; then
26346 gcc_cv_ld_eh_gc_sections_bug
=yes
26348 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
-a x
$gcc_cv_as_comdat_group = xyes
; then
26349 gcc_cv_ld_eh_gc_sections_bug
=yes
26350 cat > conftest.s
<<EOF
26353 .type _start, @function
26356 .size _start, .-_start
26357 .section .text.startup.foo,"ax",@progbits
26358 .type foo, @function
26362 .section .gcc_except_table.foo,"a",@progbits
26365 .section .eh_frame,"a",@progbits
26368 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26369 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26370 |
grep "gc-sections option ignored" > /dev
/null
; then
26372 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26373 |
grep gcc_except_table
> /dev
/null
; then
26374 gcc_cv_ld_eh_gc_sections_bug
=no
26377 rm -f conftest.s conftest.o conftest
26379 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26381 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26385 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26392 $as_echo_n "checking linker --as-needed support... " >&6; }
26393 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26396 gcc_cv_ld_as_needed
=no
26397 if test $in_tree_ld = yes ; then
26398 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 \
26399 && test $in_tree_ld_is_elf = yes; then
26400 gcc_cv_ld_as_needed
=yes
26402 elif test x
$gcc_cv_ld != x
; then
26403 # Check if linker supports --as-needed and --no-as-needed options
26404 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26405 gcc_cv_ld_as_needed
=yes
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26411 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26412 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26414 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26418 case "$target:$tm_file" in
26419 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26422 emul_name
="-melf64ppc"
26425 emul_name
="-melf64ppc_fbsd"
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26429 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26430 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26431 $as_echo_n "(cached) " >&6
26433 gcc_cv_ld_no_dot_syms
=no
26434 if test x
"$ld_is_gold" = xyes
; then
26435 gcc_cv_ld_no_dot_syms
=yes
26436 elif test $in_tree_ld = yes ; then
26437 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
26438 gcc_cv_ld_no_dot_syms
=yes
26440 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26441 cat > conftest1.s
<<EOF
26445 cat > conftest2.s
<<EOF
26446 .section ".opd","aw"
26449 .type foo,@function
26451 .quad .LEfoo,.TOC.@tocbase,0
26457 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26458 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26459 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26460 gcc_cv_ld_no_dot_syms
=yes
26462 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26467 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26468 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26470 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26475 $as_echo_n "checking linker large toc support... " >&6; }
26476 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26477 $as_echo_n "(cached) " >&6
26479 gcc_cv_ld_large_toc
=no
26480 if test x
"$ld_is_gold" = xyes
; then
26481 gcc_cv_ld_large_toc
=yes
26482 elif test $in_tree_ld = yes ; then
26483 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
26484 gcc_cv_ld_large_toc
=yes
26486 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26487 cat > conftest.s
<<EOF
26488 .section ".tbss","awT",@nobits
26494 addis 9,13,ie0@got@tprel@ha
26495 ld 9,ie0@got@tprel@l(9)
26497 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26498 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26499 gcc_cv_ld_large_toc
=yes
26501 rm -f conftest conftest.o conftest.s
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26506 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26507 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26509 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26518 $as_echo_n "checking linker large toc support... " >&6; }
26519 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26520 $as_echo_n "(cached) " >&6
26522 gcc_cv_ld_large_toc
=no
26523 if test x
$gcc_cv_as != x
; then
26524 cat > conftest.s
<<EOF
26534 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26535 gcc_cv_ld_large_toc
=yes
26537 rm -f conftest conftest.o conftest.s
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26542 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26543 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26545 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26552 $as_echo_n "checking linker --build-id support... " >&6; }
26553 if test "${gcc_cv_ld_buildid+set}" = set; then :
26554 $as_echo_n "(cached) " >&6
26556 gcc_cv_ld_buildid
=no
26557 if test $in_tree_ld = yes ; then
26558 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26559 "$gcc_cv_gld_minor_version" -ge 18 -o \
26560 "$gcc_cv_gld_major_version" -gt 2 \
26561 && test $in_tree_ld_is_elf = yes; then
26562 gcc_cv_ld_buildid
=yes
26564 elif test x
$gcc_cv_ld != x
; then
26565 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26566 gcc_cv_ld_buildid
=yes
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26571 $as_echo "$gcc_cv_ld_buildid" >&6; }
26572 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26574 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26578 # Check whether --enable-linker-build-id was given.
26579 if test "${enable_linker_build_id+set}" = set; then :
26580 enableval
=$enable_linker_build_id;
26582 enable_linker_build_id
=no
26586 if test x
"$enable_linker_build_id" = xyes
; then
26587 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26589 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26593 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26597 # In binutils 2.21, GNU ld gained support for new emulations fully
26598 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26600 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26601 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26602 $as_echo_n "(cached) " >&6
26604 gcc_cv_ld_sol2_emulation
=no
26605 if test $in_tree_ld = yes ; then
26606 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26607 "$gcc_cv_gld_minor_version" -ge 21 -o \
26608 "$gcc_cv_gld_major_version" -gt 2 \
26609 && test $in_tree_ld_is_elf = yes; then
26610 gcc_cv_ld_sol2_emulation
=yes
26612 elif test x
$gcc_cv_ld != x
; then
26613 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26614 grep _sol2
> /dev
/null
; then
26615 gcc_cv_ld_sol2_emulation
=yes
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26620 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26621 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26623 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26628 $as_echo_n "checking linker --sysroot support... " >&6; }
26629 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26630 $as_echo_n "(cached) " >&6
26632 gcc_cv_ld_sysroot
=no
26633 if test $in_tree_ld = yes ; then
26634 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
26635 gcc_cv_ld_sysroot
=yes
26637 elif test x
$gcc_cv_ld != x
; then
26638 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26639 gcc_cv_ld_sysroot
=yes
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26644 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26645 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26647 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26651 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26652 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26653 && test "$prefix" != "NONE"; then
26655 cat >>confdefs.h
<<_ACEOF
26656 #define PREFIX_INCLUDE_DIR "$prefix/include"
26661 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26662 if test "x$with_headers" != x
; then
26663 target_header_dir
=$with_headers
26664 elif test "x$with_sysroot" = x
; then
26665 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26666 elif test "x$with_build_sysroot" != "x"; then
26667 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26668 elif test "x$with_sysroot" = xyes
; then
26669 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26671 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26674 target_header_dir
=${native_system_header_dir}
26677 # Test for stack protector support in target C library.
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26679 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26680 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26681 $as_echo_n "(cached) " >&6
26683 gcc_cv_libc_provides_ssp
=no
26685 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26686 # glibc 2.4 and later provides __stack_chk_fail and
26687 # either __stack_chk_guard, or TLS access to stack guard canary.
26688 if test -f $target_header_dir/features.h \
26689 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26690 $target_header_dir/features.h
> /dev
/null
; then
26691 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26692 $target_header_dir/features.h
> /dev
/null
; then
26693 gcc_cv_libc_provides_ssp
=yes
26694 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26695 $target_header_dir/features.h
> /dev
/null \
26696 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26697 $target_header_dir/features.h
> /dev
/null
; then
26698 gcc_cv_libc_provides_ssp
=yes
26699 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26700 $target_header_dir/features.h
> /dev
/null
&& \
26701 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26702 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26703 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26704 gcc_cv_libc_provides_ssp
=yes
26706 # all versions of Bionic support stack protector
26707 elif test -f $target_header_dir/sys
/cdefs.h \
26708 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26709 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26710 gcc_cv_libc_provides_ssp
=yes
26714 # Avoid complicated tests (see
26715 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26716 # simply assert that glibc does provide this, which is true for all
26717 # realistically usable GNU/Hurd configurations.
26718 gcc_cv_libc_provides_ssp
=yes;;
26719 *-*-darwin* |
*-*-freebsd*)
26720 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26721 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26722 gcc_cv_libc_provides_ssp
=yes
26724 echo "no __stack_chk_fail on this target"
26728 *) gcc_cv_libc_provides_ssp
=no
;;
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26732 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26734 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26736 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26740 # Test for <sys/sdt.h> on the target.
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26743 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26745 if test -f $target_header_dir/sys
/sdt.h
; then
26748 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26752 $as_echo "$have_sys_sdt_h" >&6; }
26754 # Check if TFmode long double should be used by default or not.
26755 # Some glibc targets used DFmode long double, but with glibc 2.4
26756 # and later they can use TFmode.
26758 powerpc
*-*-linux* | \
26759 sparc
*-*-linux* | \
26763 # Check whether --with-long-double-128 was given.
26764 if test "${with_long_double_128+set}" = set; then :
26765 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26767 gcc_cv_target_ldbl128
=no
26768 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26769 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26770 && gcc_cv_target_ldbl128
=yes
26776 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26778 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26783 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26784 gcc_cv_target_dl_iterate_phdr
=unknown
26786 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26787 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26788 # libdl there, both complicating its use and breaking compatibility
26789 # between Solaris 10 updates.
26790 *-*-solaris2.1
[1-9]*)
26791 # <link.h> needs both a dl_iterate_phdr declaration and support for
26792 # compilation with largefile support.
26793 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26794 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26795 gcc_cv_target_dl_iterate_phdr
=yes
26797 gcc_cv_target_dl_iterate_phdr
=no
26802 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26804 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26808 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26810 # Find out what GC implementation we want, or may, use.
26812 # Check whether --with-gc was given.
26813 if test "${with_gc+set}" = set; then :
26814 withval
=$with_gc; case "$withval" in
26821 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26825 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26833 echo "Using $GGC for garbage collection."
26835 # Libraries to use on the host. This will normally be set by the top
26836 # level Makefile. Here we simply capture the value for our Makefile.
26837 if test -z "${HOST_LIBS+set}"; then
26842 # Use the system's zlib library.
26844 zlibinc
="-I\$(srcdir)/../zlib"
26846 # Check whether --with-system-zlib was given.
26847 if test "${with_system_zlib+set}" = set; then :
26848 withval
=$with_system_zlib; zlibdir
=
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26858 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26859 # Check whether --enable-maintainer-mode was given.
26860 if test "${enable_maintainer_mode+set}" = set; then :
26861 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26868 $as_echo "$maintainer_mode" >&6; }
26870 if test "$maintainer_mode" = "yes"; then
26880 # Make empty files to contain the specs and options for each language.
26881 # Then add #include lines to for a compiler that has specs and/or options.
26887 # These (without "all_") are set in each config-lang.in.
26888 # `language' must be a single word so is spelled singularly.
26891 all_outputs
='Makefile'
26892 # List of language makefile fragments.
26893 all_lang_makefrags
=
26894 # Additional files for gengtype
26895 all_gtfiles
="$target_gtfiles"
26897 # These are the languages that are set in --enable-languages,
26898 # and are available in the GCC tree.
26899 all_selected_languages
=
26901 # Add the language fragments.
26902 # Languages are added via two mechanisms. Some information must be
26903 # recorded in makefile variables, these are defined in config-lang.in.
26904 # We accumulate them and plug them into the main Makefile.
26905 # The other mechanism is a set of hooks for each of the main targets
26906 # like `clean', `install', etc.
26908 language_hooks
="Make-hooks"
26910 for lang
in ${srcdir}/*/config-lang.
in
26912 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26914 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26915 if test "x$lang_alias" = x
26917 echo "$lang doesn't set \$language." 1>&2
26920 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26921 subdirs
="$subdirs $subdir"
26923 # $gcc_subdir is where the gcc integration files are to be found
26924 # for a language, both for internal compiler purposes (compiler
26925 # sources implementing front-end to GCC tree converters), and for
26926 # build infrastructure purposes (Make-lang.in, etc.)
26928 # This will be <subdir> (relative to $srcdir) if a line like
26929 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26930 # is found in <langdir>/config-lang.in, and will remain <langdir>
26933 # Except for the language alias (fetched above), the regular
26934 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26935 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26936 # only this and the language alias.
26938 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26939 if [ "$gcc_subdir" = "" ]; then
26940 gcc_subdir
="$subdir"
26943 case ",$enable_languages," in
26945 all_selected_languages
="$all_selected_languages $lang_alias"
26946 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26947 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26958 .
${srcdir}/$gcc_subdir/config-lang.
in
26959 if test "x$language" = x
26961 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26966 case ",$enable_languages," in
26967 *,$lang_alias,*) ;;
26969 for i
in $subdir_requires; do
26970 test -f "${srcdir}/$i/config-lang.in" && continue
26978 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26979 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26980 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26981 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26983 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26984 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26986 all_languages
="$all_languages $language"
26987 all_compilers
="$all_compilers $compilers"
26988 all_outputs
="$all_outputs $outputs"
26989 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26990 case ",$enable_languages," in
26993 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27003 for language
in $all_selected_languages
27005 check_languages
="$check_languages check-$language"
27008 # We link each language in with a set of hooks, reached indirectly via
27009 # lang.${target}. Only do so for selected languages.
27013 target_list
="all.cross start.encap rest.encap tags \
27014 install-common install-man install-info install-pdf install-html dvi \
27015 pdf html uninstall info man srcextra srcman srcinfo \
27016 mostlyclean clean distclean maintainer-clean install-plugin"
27018 for t
in $target_list
27021 for lang
in $all_selected_languages
27025 echo "lang.$t: $x" >> Make-hooks
27029 # Option include files
27032 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27033 option_includes
="option-includes.mk"
27042 echo "dir ." > .gdbinit
27043 echo "dir ${srcdir}" >> .gdbinit
27044 if test x
$gdb_needs_out_file_path = xyes
27046 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27048 if test "x$subdirs" != x
; then
27051 echo "dir ${srcdir}/$s" >> .gdbinit
27054 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27056 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27060 # Find a directory in which to install a shared libgcc.
27062 # Check whether --enable-version-specific-runtime-libs was given.
27063 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27064 enableval
=$enable_version_specific_runtime_libs;
27068 # Substitute configuration variables
27132 if test x
${build} = x
${host} ; then
27133 if test x
${host} = x
${target} ; then
27134 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27136 echo "Links are now set up to build a cross-compiler" 1>&2
27137 echo " from ${host} to ${target}." 1>&2
27140 if test x
${host} = x
${target} ; then
27141 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27142 echo " for ${target}." 1>&2
27144 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27145 echo " from ${host} to ${target}." 1>&2
27157 if test "x${CLOOGLIBS}" != "x" ; then
27159 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27163 # Check for plugin support
27164 # Check whether --enable-plugin was given.
27165 if test "${enable_plugin+set}" = set; then :
27166 enableval
=$enable_plugin; enable_plugin
=$enableval
27168 enable_plugin
=yes; default_plugin
=yes
27176 if test x
$build = x
$host; then
27177 export_sym_check
="nm${exeext} -g"
27178 elif test x
$host = x
$target; then
27179 export_sym_check
="$gcc_cv_nm -g"
27185 if test x
$build = x
$host; then
27186 export_sym_check
="objdump${exeext} -T"
27187 elif test x
$host = x
$target; then
27188 export_sym_check
="$gcc_cv_objdump -T"
27195 if test x
"$enable_plugin" = x
"yes"; then
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27198 $as_echo_n "checking for exported symbols... " >&6; }
27199 if test "x$export_sym_check" != x
; then
27200 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27201 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27202 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27203 : # No need to use a flag
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27205 $as_echo "yes" >&6; }
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27208 $as_echo "yes" >&6; }
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27210 $as_echo_n "checking for -rdynamic... " >&6; }
27211 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27212 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27213 plugin_rdynamic
=yes
27214 pluginlibs
="-rdynamic"
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27220 $as_echo "$plugin_rdynamic" >&6; }
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27224 $as_echo "unable to check" >&6; }
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27230 $as_echo_n "checking for library containing dlopen... " >&6; }
27231 if test "${ac_cv_search_dlopen+set}" = set; then :
27232 $as_echo_n "(cached) " >&6
27234 ac_func_search_save_LIBS
=$LIBS
27235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27236 /* end confdefs.h. */
27238 /* Override any GCC internal prototype to avoid an error.
27239 Use char because int might match the return type of a GCC
27240 builtin and then its argument prototype would still apply. */
27253 for ac_lib
in '' dl
; do
27254 if test -z "$ac_lib"; then
27255 ac_res
="none required"
27258 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27260 if ac_fn_c_try_link
"$LINENO"; then :
27261 ac_cv_search_dlopen
=$ac_res
27263 rm -f core conftest.err conftest.
$ac_objext \
27265 if test "${ac_cv_search_dlopen+set}" = set; then :
27269 if test "${ac_cv_search_dlopen+set}" = set; then :
27272 ac_cv_search_dlopen
=no
27274 rm conftest.
$ac_ext
27275 LIBS
=$ac_func_search_save_LIBS
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27278 $as_echo "$ac_cv_search_dlopen" >&6; }
27279 ac_res
=$ac_cv_search_dlopen
27280 if test "$ac_res" != no
; then :
27281 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27285 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27286 pluginlibs
="$pluginlibs -ldl"
27290 # Check that we can build shared objects with -fPIC -shared
27291 saved_LDFLAGS
="$LDFLAGS"
27292 saved_CFLAGS
="$CFLAGS"
27295 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27296 CFLAGS
="$CFLAGS -fPIC"
27297 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27300 CFLAGS
="$CFLAGS -fPIC"
27301 LDFLAGS
="$LDFLAGS -fPIC -shared"
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27305 $as_echo_n "checking for -fPIC -shared... " >&6; }
27306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27307 /* end confdefs.h. */
27317 if ac_fn_c_try_link
"$LINENO"; then :
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27319 $as_echo "yes" >&6; }; have_pic_shared
=yes
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27322 $as_echo "no" >&6; }; have_pic_shared
=no
27324 rm -f core conftest.err conftest.
$ac_objext \
27325 conftest
$ac_exeext conftest.
$ac_ext
27326 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27330 LDFLAGS
="$saved_LDFLAGS"
27331 CFLAGS
="$saved_CFLAGS"
27333 # If plugin support had been requested but not available, fail.
27334 if test x
"$enable_plugin" = x
"no" ; then
27335 if test x
"$default_plugin" != x
"yes"; then
27337 Building GCC with plugin support requires a host that supports
27338 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27345 if test x
"$enable_plugin" = x
"yes"; then
27347 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27352 # Check whether --enable-libquadmath-support was given.
27353 if test "${enable_libquadmath_support+set}" = set; then :
27354 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27356 ENABLE_LIBQUADMATH_SUPPORT
=yes
27359 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27361 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27366 # Specify what hash style to use by default.
27368 # Check whether --with-linker-hash-style was given.
27369 if test "${with_linker_hash_style+set}" = set; then :
27370 withval
=$with_linker_hash_style; case x
"$withval" in
27372 LINKER_HASH_STYLE
=sysv
27375 LINKER_HASH_STYLE
=gnu
27378 LINKER_HASH_STYLE
=both
27381 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27385 LINKER_HASH_STYLE
=''
27388 if test x
"${LINKER_HASH_STYLE}" != x
; then
27390 cat >>confdefs.h
<<_ACEOF
27391 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27396 # Configure the subdirectories
27397 # AC_CONFIG_SUBDIRS($subdirs)
27399 # Create the Makefile
27400 # and configure language subdirectories
27401 ac_config_files
="$ac_config_files $all_outputs"
27404 ac_config_commands
="$ac_config_commands default"
27406 cat >confcache
<<\_ACEOF
27407 # This file is a shell script that caches the results of configure
27408 # tests run on this system so they can be shared between configure
27409 # scripts and configure runs, see configure's option --config-cache.
27410 # It is not useful on other systems. If it contains results you don't
27411 # want to keep, you may remove or edit it.
27413 # config.status only pays attention to the cache file if you give it
27414 # the --recheck option to rerun configure.
27416 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27417 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27418 # following values.
27422 # The following way of writing the cache mishandles newlines in values,
27423 # but we know of no workaround that is simple, portable, and efficient.
27424 # So, we kill variables containing newlines.
27425 # Ultrix sh set writes to stderr and can't be redirected directly,
27426 # and sets the high bit in the cache file unless we assign to the vars.
27428 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27429 eval ac_val
=\$
$ac_var
27433 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27437 _ | IFS | as_nl
) ;; #(
27438 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27439 *) { eval $ac_var=; unset $ac_var;} ;;
27445 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27446 *${as_nl}ac_space
=\
*)
27447 # `set' does not quote correctly, so add quotes: double-quote
27448 # substitution turns \\\\ into \\, and sed turns \\ into \.
27451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27454 # `set' quotes correctly as required by POSIX, so do not add quotes.
27455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27464 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27466 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27468 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27469 if test -w "$cache_file"; then
27470 test "x$cache_file" != "x/dev/null" &&
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27472 $as_echo "$as_me: updating cache $cache_file" >&6;}
27473 cat confcache
>$cache_file
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27476 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27481 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27482 # Let make expand exec_prefix.
27483 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27485 DEFS
=-DHAVE_CONFIG_H
27489 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27490 # 1. Remove the extension, and $U if already installed.
27491 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27492 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27494 # will be set to the directory where LIBOBJS objects are built.
27495 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27496 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27498 LIBOBJS
=$ac_libobjs
27500 LTLIBOBJS
=$ac_ltlibobjs
27505 : ${CONFIG_STATUS=./config.status}
27507 ac_clean_files_save
=$ac_clean_files
27508 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27512 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27514 # Generated by $as_me.
27515 # Run this file to recreate the current configuration.
27516 # Compiler output produced by configure, useful for debugging
27517 # configure, is in config.log if it exists.
27520 ac_cs_recheck=false
27523 SHELL=\${CONFIG_SHELL-$SHELL}
27526 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27527 ## -------------------- ##
27528 ## M4sh Initialization. ##
27529 ## -------------------- ##
27531 # Be more Bourne compatible
27532 DUALCASE
=1; export DUALCASE
# for MKS sh
27533 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27536 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27537 # is contrary to our usage. Disable this feature.
27538 alias -g '${1+"$@"}'='"$@"'
27539 setopt NO_GLOB_SUBST
27541 case `(set -o) 2>/dev/null` in #(
27553 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27554 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27557 # Prefer a ksh shell builtin over an external printf program on Solaris,
27558 # but without wasting forks for bash or zsh.
27559 if test -z "$BASH_VERSION$ZSH_VERSION" \
27560 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27561 as_echo='print
-r --'
27562 as_echo_n='print
-rn --'
27563 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27564 as_echo='printf %s
\n'
27565 as_echo_n='printf %s
'
27567 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27568 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27569 as_echo_n='/usr
/ucb
/echo -n'
27571 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27572 as_echo_n_body='eval
27576 expr "X$arg" : "X\\(.*\\)$as_nl";
27577 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27579 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27581 export as_echo_n_body
27582 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27584 export as_echo_body
27585 as_echo='sh
-c $as_echo_body as_echo
'
27588 # The user is always right.
27589 if test "${PATH_SEPARATOR+set}" != set; then
27591 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27592 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27599 # We need space, tab and new line, in precisely that order. Quoting is
27600 # there to prevent editors from complaining about space-tab.
27601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27602 # splitting by setting IFS to empty value.)
27605 # Find who we are. Look in the path if we contain no directory separator.
27607 *[\\/]* ) as_myself=$0 ;;
27608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27609 for as_dir in $PATH
27612 test -z "$as_dir" && as_dir=.
27613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27619 # We did not find ourselves, most probably we were run as `sh COMMAND'
27620 # in which case we are not to be found in the path.
27621 if test "x$as_myself" = x
; then
27624 if test ! -f "$as_myself"; then
27625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27629 # Unset variables that we do not need and which cause bugs (e.g. in
27630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27631 # suppresses any "Segmentation fault" message there. '((' could
27632 # trigger a bug in pdksh 5.2.14.
27633 for as_var
in BASH_ENV ENV MAIL MAILPATH
27634 do eval test x\
${$as_var+set} = xset \
27635 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27648 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27651 # as_fn_error ERROR [LINENO LOG_FD]
27652 # ---------------------------------
27653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27655 # script with status $?, using 1 if that was 0.
27658 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27660 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27663 $as_echo "$as_me: error: $1" >&2
27664 as_fn_exit
$as_status
27668 # as_fn_set_status STATUS
27669 # -----------------------
27670 # Set $? to STATUS, without forking.
27671 as_fn_set_status
()
27674 } # as_fn_set_status
27676 # as_fn_exit STATUS
27677 # -----------------
27678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27682 as_fn_set_status
$1
27688 # Portably unset VAR.
27691 { eval $1=; unset $1;}
27693 as_unset
=as_fn_unset
27694 # as_fn_append VAR VALUE
27695 # ----------------------
27696 # Append the text in VALUE to the end of the definition contained in VAR. Take
27697 # advantage of any shell optimizations that allow amortized linear growth over
27698 # repeated appends, instead of the typical quadratic growth present in naive
27700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27701 eval 'as_fn_append ()
27712 # as_fn_arith ARG...
27713 # ------------------
27714 # Perform arithmetic evaluation on the ARGs, and store the result in the
27715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27716 # must be portable across $(()) and expr.
27717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27718 eval 'as_fn_arith ()
27725 as_val
=`expr "$@" || test $? -eq 1`
27730 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27731 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27737 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27738 as_basename
=basename
27743 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27749 as_me
=`$as_basename -- "$0" ||
27750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27751 X"$0" : 'X\(//\)$' \| \
27752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27754 sed '/^.*\/\([^/][^/]*\)\/*$/{
27768 # Avoid depending upon Character Ranges.
27769 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27770 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27771 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27772 as_cr_digits
='0123456789'
27773 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27775 ECHO_C
= ECHO_N
= ECHO_T
=
27776 case `echo -n x` in #(((((
27778 case `echo 'xy\c'` in
27779 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27781 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27788 rm -f conf$$ conf$$.exe conf$$.
file
27789 if test -d conf$$.dir
; then
27790 rm -f conf$$.dir
/conf$$.
file
27793 mkdir conf$$.dir
2>/dev
/null
27795 if (echo >conf$$.
file) 2>/dev
/null
; then
27796 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27798 # ... but there are two gotchas:
27799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27801 # In both cases, we have to default to `cp -p'.
27802 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27804 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27812 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27813 rmdir conf$$.dir
2>/dev
/null
27818 # Create "$as_dir" as a directory, including parents if necessary.
27823 -*) as_dir
=.
/$as_dir;;
27825 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27829 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27830 *) as_qdir
=$as_dir;;
27832 as_dirs
="'$as_qdir' $as_dirs"
27833 as_dir
=`$as_dirname -- "$as_dir" ||
27834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27835 X"$as_dir" : 'X\(//\)[^/]' \| \
27836 X"$as_dir" : 'X\(//\)$' \| \
27837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27838 $as_echo X"$as_dir" |
27839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27843 /^X\(\/\/\)[^/].*/{
27856 test -d "$as_dir" && break
27858 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27859 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27863 if mkdir
-p .
2>/dev
/null
; then
27864 as_mkdir_p
='mkdir -p "$as_dir"'
27866 test -d .
/-p && rmdir .
/-p
27870 if test -x / >/dev
/null
2>&1; then
27871 as_test_x
='test -x'
27873 if ls -dL / >/dev
/null
2>&1; then
27880 if test -d "$1"; then
27886 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27887 ???[sx]*):;;*)false;;esac;fi
27891 as_executable_p
=$as_test_x
27893 # Sed expression to map a string onto a valid CPP name.
27894 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27896 # Sed expression to map a string onto a valid variable name.
27897 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27901 ## ----------------------------------- ##
27902 ## Main body of $CONFIG_STATUS script. ##
27903 ## ----------------------------------- ##
27905 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27908 # Save the log message, to keep $0 and so on meaningful, and to
27909 # report actual input values of CONFIG_FILES etc. instead of their
27910 # values after options handling.
27912 This file was extended by $as_me, which was
27913 generated by GNU Autoconf 2.64. Invocation command line was
27915 CONFIG_FILES = $CONFIG_FILES
27916 CONFIG_HEADERS = $CONFIG_HEADERS
27917 CONFIG_LINKS = $CONFIG_LINKS
27918 CONFIG_COMMANDS = $CONFIG_COMMANDS
27921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27926 case $ac_config_files in *"
27927 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27930 case $ac_config_headers in *"
27931 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27936 # Files that config.status was made for.
27937 config_files="$ac_config_files"
27938 config_headers="$ac_config_headers"
27939 config_commands="$ac_config_commands"
27943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27945 \`$as_me' instantiates files and other configuration actions
27946 from templates according to the current configuration. Unless the files
27947 and actions are specified as TAGs, all are instantiated by default.
27949 Usage: $0 [OPTION]... [TAG]...
27951 -h, --help print this help, then exit
27952 -V, --version print version number and configuration settings, then exit
27953 -q, --quiet, --silent
27954 do not print progress messages
27955 -d, --debug don't remove temporary files
27956 --recheck update $as_me by reconfiguring in the same conditions
27957 --file=FILE[:TEMPLATE]
27958 instantiate the configuration file FILE
27959 --header=FILE[:TEMPLATE]
27960 instantiate the configuration header FILE
27962 Configuration files:
27965 Configuration headers:
27968 Configuration commands:
27971 Report bugs to the package provider."
27974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27977 configured by $0, generated by GNU Autoconf 2.64,
27978 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27980 Copyright (C) 2009 Free Software Foundation, Inc.
27981 This config.status script is free software; the Free Software Foundation
27982 gives unlimited permission to copy, distribute and modify it."
27987 test -n "\$AWK" || AWK=awk
27990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27991 # The default lists apply if the user does not specify any file.
27997 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27998 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28009 # Handling of the options.
28010 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28012 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28013 $as_echo "$ac_cs_version"; exit ;;
28014 --debug |
--debu |
--deb |
--de |
--d |
-d )
28016 --file |
--fil |
--fi |
--f )
28019 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28021 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28022 ac_need_defaults
=false
;;
28023 --header |
--heade |
--head |
--hea )
28026 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28028 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28029 ac_need_defaults
=false
;;
28031 # Conflict between --help and --header
28032 as_fn_error
"ambiguous option: \`$1'
28033 Try \`$0 --help' for more information.";;
28034 --help |
--hel |
-h )
28035 $as_echo "$ac_cs_usage"; exit ;;
28036 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28037 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28040 # This is an error.
28041 -*) as_fn_error
"unrecognized option: \`$1'
28042 Try \`$0 --help' for more information." ;;
28044 *) as_fn_append ac_config_targets
" $1"
28045 ac_need_defaults
=false
;;
28051 ac_configure_extra_args
=
28053 if $ac_cs_silent; then
28055 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28060 if \$ac_cs_recheck; then
28061 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28063 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28064 CONFIG_SHELL='$SHELL'
28065 export CONFIG_SHELL
28070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28075 ## Running $as_me. ##
28081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28091 # Handling of arguments.
28092 for ac_config_target
in $ac_config_targets
28094 case $ac_config_target in
28095 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28096 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28097 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28098 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28099 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28100 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28102 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28107 # If the user did not use the arguments to specify the items to instantiate,
28108 # then the envvar interface is used. Set only those that are not.
28109 # We use the long form for the default assignment because of an extremely
28110 # bizarre bug on SunOS 4.1.3.
28111 if $ac_need_defaults; then
28112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28117 # Have a temporary directory for convenience. Make it in the build tree
28118 # simply because there is no reason against having it here, and in addition,
28119 # creating and moving files from /tmp can sometimes cause problems.
28120 # Hook for its removal unless debugging.
28121 # Note that there is a small window in which the directory will not be cleaned:
28122 # after its creation but before its name has been assigned to `$tmp'.
28126 trap 'exit_status=$?
28127 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28129 trap 'as_fn_exit 1' 1 2 13 15
28131 # Create a (secure) tmp directory for tmp files.
28134 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28135 test -n "$tmp" && test -d "$tmp"
28138 tmp
=.
/conf$$
-$RANDOM
28139 (umask 077 && mkdir
"$tmp")
28140 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28142 # Set up the scripts for CONFIG_FILES section.
28143 # No need to generate them if there are no CONFIG_FILES.
28144 # This happens for instance with `./config.status config.h'.
28145 if test -n "$CONFIG_FILES"; then
28147 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28148 ac_cs_awk_getline
=:
28149 ac_cs_awk_pipe_init
=
28150 ac_cs_awk_read_file
='
28151 while ((getline aline < (F[key])) > 0)
28154 ac_cs_awk_pipe_fini
=
28156 ac_cs_awk_getline
=false
28157 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28158 ac_cs_awk_read_file
='
28160 print "cat " F[key] " &&"
28161 '$ac_cs_awk_pipe_init
28162 # The final `:' finishes the AND list.
28163 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28165 ac_cr
=`echo X | tr X '\015'`
28166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28167 # But we know of no other shell where ac_cr would be empty at this
28168 # point, so we can use a bashism as a fallback.
28169 if test "x$ac_cr" = x
; then
28170 eval ac_cr
=\$
\'\\r
\'
28172 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28176 ac_cs_awk_cr
=$ac_cr
28179 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28182 # Create commands to substitute file output variables.
28184 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28185 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28186 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28189 } >conf$
$files.sh
&&
28190 . .
/conf$
$files.sh ||
28191 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28192 rm -f conf$
$files.sh
28195 echo "cat >conf$$subs.awk <<_ACEOF" &&
28196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28198 } >conf$$subs.sh ||
28199 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28200 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28202 for ac_last_try in false false false false false :; do
28203 . ./conf$$subs.sh ||
28204 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28206 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28207 if test $ac_delim_n = $ac_delim_num; then
28209 elif $ac_last_try; then
28210 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28212 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28215 rm -f conf$$subs.sh
28217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28218 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28222 s/^/S["/; s
/!.
*/"]=/
28232 s/\(.\{148\}\).*/\1/
28234 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28239 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28246 s/\(.\{148\}\).*/\1/
28248 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28252 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28257 ' <conf$$subs.awk | sed '
28262 ' >>$CONFIG_STATUS || ac_write_fail=1
28263 rm -f conf$$subs.awk
28264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28266 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28267 for (key in S) S_is_set[key] = 1
28269 \$ac_cs_awk_pipe_init
28273 nfields = split(line, field, "@
")
28275 len = length(field[1])
28276 for (i = 2; i < nfields; i++) {
28278 keylen = length(key)
28279 if (S_is_set[key]) {
28281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28282 len += length(value) + length(field[++i])
28287 if (nfields == 3 && !substed) {
28289 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28290 \$ac_cs_awk_read_file
28296 \$ac_cs_awk_pipe_fini
28299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28300 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28301 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28304 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28305 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28308 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28309 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28310 # trailing colons and then remove the whole line if VPATH becomes empty
28311 # (actually we leave an empty line to preserve line numbers).
28312 if test "x
$srcdir" = x.; then
28313 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28314 s/:*\$(srcdir):*/:/
28315 s/:*\${srcdir}:*/:/
28317 s/^\([^=]*=[ ]*\):*/\1/
28323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28324 fi # test -n "$CONFIG_FILES"
28326 # Set up the scripts for CONFIG_HEADERS section.
28327 # No need to generate them if there are no CONFIG_HEADERS.
28328 # This happens for instance with `./config.status Makefile'.
28329 if test -n "$CONFIG_HEADERS"; then
28330 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28334 # Transform confdefs.h into an awk script `defines.awk', embedded as
28335 # here-document in config.status, that substitutes the proper values into
28336 # config.h.in to produce config.h.
28338 # Create a delimiter string that does not exist in confdefs.h, to ease
28339 # handling of long lines.
28341 for ac_last_try in false false :; do
28342 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28343 if test -z "$ac_t"; then
28345 elif $ac_last_try; then
28346 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28348 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28352 # For the awk script, D is an array of macro values keyed by name,
28353 # likewise P contains macro parameters if any. Preserve backslash
28354 # newline sequences.
28356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28358 s/.\{148\}/&'"$ac_delim"'/g
28361 s/^[ ]*#[ ]*define[ ][ ]*/ /
28368 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28370 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28375 D["\
1"]=" \
3\\\\\\n
"\\/p
28377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28382 s/.\{148\}/&'"$ac_delim"'/g
28387 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28390 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28392 ' <confdefs.h | sed '
28393 s/'"$ac_delim"'/"\\\
28394 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28397 for (key in D) D_is_set[key] = 1
28400 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28402 split(line, arg, " ")
28403 if (arg[1] == "#") {
28407 defundef
= substr
(arg
[1], 2)
28410 split(mac1
, mac2
, "(") #)
28412 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28413 if (D_is_set
[macro
]) {
28414 # Preserve the white space surrounding the "#".
28415 print prefix
"define", macro P
[macro
] D
[macro
]
28418 # Replace #undef with comments. This is necessary, for example,
28419 # in the case of _POSIX_SOURCE, which is predefined and required
28420 # on some systems where configure will not decide to define it.
28421 if (defundef
== "undef") {
28422 print
"/*", prefix defundef
, macro
, "*/"
28430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28431 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28432 fi # test -n "$CONFIG_HEADERS"
28435 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28440 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28442 case $ac_mode$ac_tag in
28444 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28445 :[FH
]-) ac_tag
=-:-;;
28446 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28463 -) ac_f
="$tmp/stdin";;
28464 *) # Look for the file first in the build tree, then in the source tree
28465 # (if the path is not absolute). The absolute path cannot be DOS-style,
28466 # because $ac_f cannot contain `:'.
28470 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28472 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28474 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28475 as_fn_append ac_file_inputs
" '$ac_f'"
28478 # Let's still pretend it is `configure' which instantiates (i.e., don't
28479 # use $as_me), people would be surprised to read:
28480 # /* config.h. Generated by config.status. */
28481 configure_input
='Generated from '`
28482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28484 if test x
"$ac_file" != x-
; then
28485 configure_input
="$ac_file. $configure_input"
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28487 $as_echo "$as_me: creating $ac_file" >&6;}
28489 # Neutralize special characters interpreted by sed in replacement strings.
28490 case $configure_input in #(
28491 *\
&* |
*\|
* |
*\\* )
28492 ac_sed_conf_input
=`$as_echo "$configure_input" |
28493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28494 *) ac_sed_conf_input
=$configure_input;;
28498 *:-:* |
*:-) cat >"$tmp/stdin" \
28499 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28504 ac_dir
=`$as_dirname -- "$ac_file" ||
28505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28506 X"$ac_file" : 'X\(//\)[^/]' \| \
28507 X"$ac_file" : 'X\(//\)$' \| \
28508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28509 $as_echo X"$ac_file" |
28510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28514 /^X\(\/\/\)[^/].*/{
28527 as_dir
="$ac_dir"; as_fn_mkdir_p
28531 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28533 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28534 # A ".." for each directory in $ac_dir_suffix.
28535 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28536 case $ac_top_builddir_sub in
28537 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28538 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28541 ac_abs_top_builddir
=$ac_pwd
28542 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28543 # for backward compatibility:
28544 ac_top_builddir
=$ac_top_build_prefix
28547 .
) # We are building in place.
28549 ac_top_srcdir
=$ac_top_builddir_sub
28550 ac_abs_top_srcdir
=$ac_pwd ;;
28551 [\\/]* | ?
:[\\/]* ) # Absolute name.
28552 ac_srcdir
=$srcdir$ac_dir_suffix;
28553 ac_top_srcdir
=$srcdir
28554 ac_abs_top_srcdir
=$srcdir ;;
28555 *) # Relative name.
28556 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28557 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28558 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28560 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28572 # If the template does not know about datarootdir, expand it.
28573 # FIXME: This hack should be removed a few years after 2.60.
28574 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28585 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28586 *datarootdir
*) ac_datarootdir_seen
=yes;;
28587 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28589 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28592 ac_datarootdir_hack='
28593 s&@datadir@&$datadir&g
28594 s&@docdir@&$docdir&g
28595 s&@infodir@&$infodir&g
28596 s&@localedir@&$localedir&g
28597 s&@mandir@&$mandir&g
28598 s&\\\${datarootdir}&$datarootdir&g' ;;
28602 # Neutralize VPATH when `$srcdir' = `.'.
28603 # Shell code in configure.ac might set extrasub.
28604 # FIXME: do we really want to maintain this feature?
28605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28606 ac_sed_extra="$ac_vpsub
28609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28611 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28612 s|@configure_input@|
$ac_sed_conf_input|
;t t
28613 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28614 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28615 s
&@srcdir@
&$ac_srcdir&;t t
28616 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28617 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28618 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28619 s
&@builddir@
&$ac_builddir&;t t
28620 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28621 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28622 $ac_datarootdir_hack
28624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28625 if $ac_cs_awk_getline; then
28626 $AWK -f "$tmp/subs.
awk"
28628 $AWK -f "$tmp/subs.
awk" | $SHELL
28630 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28632 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28633 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28636 which seems to be undefined. Please make sure it is defined." >&5
28637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28638 which seems to be undefined. Please make sure it is defined." >&2;}
28642 -) cat "$tmp/out" && rm -f "$tmp/out";;
28643 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28645 || as_fn_error "could not create $ac_file" "$LINENO" 5
28651 if test x"$ac_file" != x-; then
28653 $as_echo "/* $configure_input */" \
28654 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28655 } >"$tmp/config.h" \
28656 || as_fn_error "could not create $ac_file" "$LINENO" 5
28657 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28662 mv "$tmp/config.h" "$ac_file" \
28663 || as_fn_error "could not create $ac_file" "$LINENO" 5
28666 $as_echo "/* $configure_input */" \
28667 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28668 || as_fn_error "could not create -" "$LINENO" 5
28672 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28673 $as_echo "$as_me: executing $ac_file commands" >&6;}
28678 case $ac_file$ac_mode in
28679 "as":F) chmod +x as ;;
28680 "collect-ld":F) chmod +x collect-ld ;;
28681 "nm":F) chmod +x nm ;;
28683 case ${CONFIG_HEADERS} in
28684 *auto-host.h:config.in*)
28687 # Make sure all the subdirs exist.
28688 for d in $subdirs doc build common c-family
28690 test -d $d || mkdir $d
28700 ac_clean_files=$ac_clean_files_save
28702 test $ac_write_fail = 0 ||
28703 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28706 # configure is writing to config.log, and then calls config.status.
28707 # config.status does its own redirection, appending to config.log.
28708 # Unfortunately, on DOS this fails, as config.log is still kept open
28709 # by configure, so config.status won't be able to
write to it
; its
28710 # output is simply discarded. So we exec the FD to /dev/null,
28711 # effectively closing config.log, so it can be properly (re)opened and
28712 # appended to by config.status. When coming back to configure, we
28713 # need to make the FD available again.
28714 if test "$no_create" != yes; then
28716 ac_config_status_args
=
28717 test "$silent" = yes &&
28718 ac_config_status_args
="$ac_config_status_args --quiet"
28720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28723 # would make configure fail if this is the last instruction.
28724 $ac_cs_success || as_fn_exit $?
28726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}