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
680 ORIGINAL_NM_FOR_TARGET
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 SYSROOT_CFLAGS_FOR_TARGET
773 valgrind_path_defines
848 program_transform_name
859 ac_subst_files
='option_includes
862 enable_option_checking
867 enable_generated_files_in_srcdir
877 enable_gather_detailed_mem_stats
889 with_native_system_header_dir
899 enable_sjlj_exceptions
901 enable_leading_mingw64_underscores
904 enable_win32_registry
910 enable_gnu_indirect_function
911 enable_initfini_array
913 enable_fix_cortex_a53_835769
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
1624 --enable-fix-cortex-a53-835769
1625 enable workaround for AArch64 Cortex-A53 erratum
1627 --disable-fix-cortex-a53-835769
1628 disable workaround for AArch64 Cortex-A53 erratum
1631 --enable-gnu-unique-object
1632 enable the use of the @gnu_unique_object ELF
1633 extension on glibc systems
1634 --enable-linker-build-id
1635 compiler will always pass --build-id to linker
1636 --enable-maintainer-mode
1637 enable make rules and dependencies not useful (and
1638 sometimes confusing) to the casual installer
1639 --enable-version-specific-runtime-libs
1640 specify that runtime libraries should be installed
1641 in a compiler-specific directory
1642 --enable-plugin enable plugin support
1643 --disable-libquadmath-support
1644 disable libquadmath support for Fortran
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-build-libsubdir=DIR Directory where to find libraries for build system
1650 --with-local-prefix=DIR specifies directory to put local include
1651 --with-gxx-include-dir=DIR
1652 specifies directory to put g++ header files
1653 --with-cpp-install-dir=DIR
1654 install the user visible C preprocessor in DIR
1655 (relative to PREFIX) as well as PREFIX/bin
1656 --with-gnu-ld arrange to work with GNU ld
1657 --with-ld arrange to use the specified ld (full pathname)
1658 --with-demangler-in-ld try to use demangler in GNU ld
1659 --with-gnu-as arrange to work with GNU as
1660 --with-as arrange to use the specified as (full pathname)
1661 --with-stabs arrange to use stabs instead of host debug format
1662 --with-dwarf2 force the default debug format to be DWARF 2
1663 --with-native-system-header-dir=dir
1664 use dir as the directory to look for standard
1665 system header files in. Defaults to /usr/include.
1666 --with-build-sysroot=sysroot
1667 use sysroot as the system root during the build
1668 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1669 --with-specs=SPECS add SPECS to driver command-line processing
1670 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1671 --with-bugurl=URL Direct users to URL to report a bug
1672 --with-multilib-list select multilibs (SH and x86-64 only)
1673 --with-gnu-ld assume the C compiler uses GNU ld default=no
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1676 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1678 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1679 --with-plugin-ld=[ARG
] specify the plugin linker
1680 --with-long-double-128 use
128-bit long double by default
1681 --with-gc={page
,zone
} this option is not supported anymore. It used to
1682 choose the garbage collection mechanism to use with
1684 --with-system-zlib use installed libz
1685 --with-linker-hash-style={sysv
,gnu
,both
}
1686 specify the linker
hash style
1688 Some influential environment variables
:
1689 CC C compiler
command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1692 nonstandard directory
<lib dir
>
1693 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1694 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1695 you have headers
in a nonstandard directory
<include dir
>
1696 CXX C
++ compiler
command
1697 CXXFLAGS C
++ compiler flags
1699 CXXCPP C
++ preprocessor
1700 GMPLIBS How to link GMP
1701 GMPINC How to
find GMP include files
1702 ISLLIBS How to link ISL
1703 ISLINC How to
find ISL include files
1704 CLOOGLIBS How to link CLOOG
1705 CLOOGINC How to
find CLOOG include files
1707 Use these variables to override the choices made by
`configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1740 .) # We are building in place.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1774 generated by GNU Autoconf 2.64
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1797 *) ac_try_echo
=$ac_try;;
1799 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1803 if test -s conftest.err
; then
1804 grep -v '^ *+' conftest.err
>conftest.er1
1805 cat conftest.er1
>&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.
$ac_objext; then :
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.
$ac_ext >&5
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1823 } # ac_fn_c_try_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile
()
1830 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1831 rm -f conftest.
$ac_objext
1832 if { { ac_try
="$ac_compile"
1834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1872 *) ac_try_echo
=$ac_try;;
1874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878 if test -s conftest.err
; then
1879 grep -v '^ *+' conftest.err
>conftest.er1
1880 cat conftest.er1
>&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } >/dev
/null
&& {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.
$ac_ext >&5
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1905 ac_fn_c_check_header_mongrel
()
1907 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1908 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1926 if ac_fn_c_try_compile
"$LINENO"; then :
1927 ac_header_compiler
=yes
1929 ac_header_compiler
=no
1931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 if ac_fn_c_try_cpp
"$LINENO"; then :
1943 ac_header_preproc
=yes
1945 ac_header_preproc
=no
1947 rm -f conftest.err conftest.
$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1977 eval "$3=\$ac_header_compiler"
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1985 } # ac_fn_c_check_header_mongrel
1987 # ac_fn_c_try_run LINENO
1988 # ----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1990 # that executables *can* be run.
1993 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1994 if { { ac_try
="$ac_link"
1996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>&5
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2005 { { case "(($ac_try" in
2006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2007 *) ac_try_echo
=$ac_try;;
2009 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_try") 2>&5
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; }; }; then :
2017 $as_echo "$as_me: program exited with status $ac_status" >&5
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.
$ac_ext >&5
2021 ac_retval
=$ac_status
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile
()
2035 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2046 if ac_fn_c_try_compile
"$LINENO"; then :
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2058 } # ac_fn_c_check_header_compile
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 ac_fn_c_compute_int
()
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2083 if ac_fn_c_try_compile
"$LINENO"; then :
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 if ac_fn_c_try_compile
"$LINENO"; then :
2100 ac_hi
=$ac_mid; break
2102 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2103 if test $ac_lo -le $ac_mid; then
2107 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) < 0)];
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2142 ac_lo
=$ac_mid; break
2144 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2145 if test $ac_mid -le $ac_hi; then
2149 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2178 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2198 FILE *f = fopen ("conftest.val", "w");
2203 long int i = longval ();
2206 fprintf (f, "%ld", i);
2210 unsigned long int i = ulongval ();
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2223 if ac_fn_c_try_run
"$LINENO"; then :
2224 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2236 } # ac_fn_c_compute_int
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type
()
2244 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile
"$LINENO"; then :
2264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2276 if ac_fn_c_try_compile
"$LINENO"; then :
2281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_find_intX_t LINENO BITS VAR
2293 # -----------------------------------
2294 # Finds a signed integer type with width BITS, setting cache variable VAR
2296 ac_fn_c_find_intX_t
()
2298 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2300 $as_echo_n "checking for int$2_t... " >&6; }
2301 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2302 $as_echo_n "(cached) " >&6
2305 for ac_type
in int
$2_t 'int' 'long int' \
2306 'long long int' 'short int' 'signed char'; do
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2313 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $ac_includes_default
2327 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2328 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2335 if ac_fn_c_try_compile
"$LINENO"; then :
2342 eval "$3=\$ac_type" ;;
2345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2349 if test "x$as_val" = x
""no
; then :
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2361 } # ac_fn_c_find_intX_t
2363 # ac_fn_c_try_link LINENO
2364 # -----------------------
2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 rm -f conftest.
$ac_objext conftest
$ac_exeext
2370 if { { ac_try
="$ac_link"
2372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376 $as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_link") 2>conftest.err
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest$ac_exeext && {
2389 test "$cross_compiling" = yes ||
2390 $as_test_x conftest$ac_exeext
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401 # interfere with the next link command; also delete a directory that is
2402 # left behind by Apple's compiler. We do this before executing the actions.
2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_c_try_link
2409 # ac_fn_c_find_uintX_t LINENO BITS VAR
2410 # ------------------------------------
2411 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2413 ac_fn_c_find_uintX_t ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2417 $as_echo_n "checking for uint$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2422 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2430 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2437 if ac_fn_c_try_compile "$LINENO"; then :
2442 eval "$3=\$ac_type" ;;
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 if test "x$as_val" = x""no; then :
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_find_uintX_t
2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2462 # ----------------------------------------------
2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2464 ac_fn_c_check_header_preproc ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2476 if ac_fn_c_try_cpp "$LINENO"; then :
2481 rm -f conftest.err conftest.$ac_ext
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2488 } # ac_fn_c_check_header_preproc
2490 # ac_fn_cxx_try_cpp LINENO
2491 # ------------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_cxx_try_cpp ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if { { ac_try="$ac_cpp conftest.$ac_ext"
2498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2499 *) ac_try_echo
=$ac_try;;
2501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2505 if test -s conftest.err
; then
2506 grep -v '^ *+' conftest.err
>conftest.er1
2507 cat conftest.er1
>&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } >/dev
/null
&& {
2512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2513 test ! -s conftest.err
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2525 } # ac_fn_cxx_try_cpp
2527 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2528 # ------------------------------------------------
2529 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2530 ac_fn_cxx_check_header_preproc
()
2532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2547 rm -f conftest.err conftest.
$ac_ext
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2554 } # ac_fn_cxx_check_header_preproc
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func
()
2561 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2571 #define $2 innocuous_$2
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $2 (); below.
2575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 <limits.h> exists even on freestanding compilers. */
2579 # include <limits.h>
2581 # include <assert.h>
2586 /* Override any GCC internal prototype to avoid an error.
2587 Use char because int might match the return type of a GCC
2588 builtin and then its argument prototype would still apply. */
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined __stub_$2 || defined __stub___$2
2608 if ac_fn_c_try_link
"$LINENO"; then :
2613 rm -f core conftest.err conftest.
$ac_objext \
2614 conftest
$ac_exeext conftest.
$ac_ext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2621 } # ac_fn_c_check_func
2623 # ac_fn_cxx_try_link LINENO
2624 # -------------------------
2625 # Try to link conftest.$ac_ext, and return whether this succeeded.
2626 ac_fn_cxx_try_link
()
2628 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2629 rm -f conftest.
$ac_objext conftest
$ac_exeext
2630 if { { ac_try
="$ac_link"
2632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_link") 2>conftest.err
2639 if test -s conftest.err; then
2640 grep -v '^ *+' conftest.err >conftest.er1
2641 cat conftest.er1 >&5
2642 mv -f conftest.er1 conftest.err
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; } && {
2646 test -z "$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest$ac_exeext && {
2649 test "$cross_compiling" = yes ||
2650 $as_test_x conftest$ac_exeext
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2661 # interfere with the next link command; also delete a directory that is
2662 # left behind by Apple's compiler. We do this before executing the actions.
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2667 } # ac_fn_cxx_try_link
2668 cat >config.log <<_ACEOF
2669 This file contains any messages produced by compilers while
2670 running configure, to aid debugging if configure makes a mistake.
2672 It was created by $as_me, which was
2673 generated by GNU Autoconf 2.64. Invocation command line was
2685 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2686 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2687 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2688 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2689 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2691 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2692 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2694 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2695 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2696 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2697 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2698 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2699 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2700 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 $as_echo "PATH: $as_dir"
2725 # Keep a trace of the command line.
2726 # Strip out --no-create and --no-recursion so they do not pile up.
2727 # Strip out --silent because we don't want to record it for future runs.
2728 # Also quote any args containing shell meta-characters.
2729 # Make two passes to allow for proper duplicate-argument suppression.
2733 ac_must_keep_next=false
2739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2741 | -silent | --silent | --silen | --sile | --sil)
2744 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2747 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2749 as_fn_append ac_configure_args1 " '$ac_arg'"
2750 if test $ac_must_keep_next = true; then
2751 ac_must_keep_next=false # Got value, back to normal.
2754 *=* | --config-cache | -C | -disable-* | --disable-* \
2755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2757 | -with-* | --with-* | -without-* | --without-* | --x)
2758 case "$ac_configure_args0 " in
2759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2762 -* ) ac_must_keep_next=true ;;
2765 as_fn_append ac_configure_args " '$ac_arg'"
2770 { ac_configure_args0=; unset ac_configure_args0;}
2771 { ac_configure_args1=; unset ac_configure_args1;}
2773 # When interrupted or exit'd, cleanup temporary files, and complete
2774 # config.log. We remove comments because anyway the quotes in there
2775 # would cause problems or look ugly.
2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2778 trap 'exit_status=$?
2779 # Save into config.log some information that might help in debugging.
2784 ## ---------------- ##
2785 ## Cache variables. ##
2786 ## ---------------- ##
2789 # The following way of writing the cache mishandles newlines in values,
2791 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2792 eval ac_val=\$$ac_var
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2807 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2822 ## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##
2827 for ac_var in $ac_subst_vars
2829 eval ac_val=\$$ac_var
2831 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2833 $as_echo "$ac_var='\''$ac_val'\''"
2837 if test -n "$ac_subst_files"; then
2839 ## ------------------- ##
2840 ## File substitutions. ##
2841 ## ------------------- ##
2844 for ac_var in $ac_subst_files
2846 eval ac_val=\$$ac_var
2848 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2850 $as_echo "$ac_var='\''$ac_val'\''"
2855 if test -s confdefs.h; then
2865 test "$ac_signal" != 0 &&
2866 $as_echo "$as_me: caught signal $ac_signal"
2867 $as_echo "$as_me: exit $exit_status"
2869 rm -f core *.core core.conftest.* &&
2870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2873 for ac_signal in 1 2 13 15; do
2874 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2879 rm -f -r conftest* confdefs.h
2881 $as_echo "/* confdefs.h */" > confdefs.h
2883 # Predefined preprocessor variables.
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_NAME "$PACKAGE_NAME"
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_STRING "$PACKAGE_STRING"
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_URL "$PACKAGE_URL"
2910 # Let the site file select an alternate cache file if it wants to.
2911 # Prefer an explicitly selected file to automatically selected ones.
2914 if test -n "$CONFIG_SITE"; then
2915 ac_site_file1=$CONFIG_SITE
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2934 if test -r "$cache_file"; then
2935 # Some versions of bash will fail to source /dev/null (special
2936 # files actually), so we avoid doing that.
2937 if test -f "$cache_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2939 $as_echo "$as_me: loading cache $cache_file" >&6;}
2941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2942 *) . "./$cache_file";;
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2947 $as_echo "$as_me: creating cache $cache_file" >&6;}
2951 # Check that the precious variables saved in the cache have kept the same
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2962 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2966 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x
$ac_old_val`
2973 ac_new_val_w=`echo x
$ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2977 ac_cache_corrupted=:
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2984 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3001 if $ac_cache_corrupted; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3026 gcc_version=`cat $srcdir/BASE-VER
`
3028 # Determine the host, build, and target systems
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3077 ac_save_IFS=$IFS; IFS='-'
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3087 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3110 ac_save_IFS=$IFS; IFS='-'
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3120 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3124 $as_echo_n "checking target system type... " >&6; }
3125 if test "${ac_cv_target+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 if test "x$target_alias" = x; then
3129 ac_cv_target=$ac_cv_host
3131 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3137 $as_echo "$ac_cv_target" >&6; }
3138 case $ac_cv_target in
3140 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3142 target=$ac_cv_target
3143 ac_save_IFS=$IFS; IFS='-'
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3153 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3156 # The aliases save the names the user supplied, while $host etc.
3157 # will get canonicalized.
3158 test -n "$target_alias" &&
3159 test "$program_prefix$program_suffix$program_transform_name" = \
3161 program_prefix=${target_alias}-
3163 # Determine the noncanonical target name, for directory use.
3164 case ${build_alias} in
3165 "") build_noncanonical=${build} ;;
3166 *) build_noncanonical=${build_alias} ;;
3169 case ${host_alias} in
3170 "") host_noncanonical=${build_noncanonical} ;;
3171 *) host_noncanonical=${host_alias} ;;
3174 case ${target_alias} in
3175 "") target_noncanonical=${host_noncanonical} ;;
3176 *) target_noncanonical=${target_alias} ;;
3182 # Determine the target- and build-specific subdirectories
3184 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3185 # have matching libraries, they should use host libraries: Makefile.tpl
3186 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3187 # However, they still use the build modules, because the corresponding
3188 # host modules (e.g. bison) are only built for the host when bootstrap
3190 # - build_subdir is where we find build modules, and never changes.
3191 # - build_libsubdir is where we find build libraries, and can be overridden.
3193 # Prefix 'build-' so this never conflicts with target_subdir.
3194 build_subdir="build-${build_noncanonical}"
3196 # Check whether --with-build-libsubdir was given.
3197 if test "${with_build_libsubdir+set}" = set; then :
3198 withval=$with_build_libsubdir; build_libsubdir="$withval"
3200 build_libsubdir="$build_subdir"
3203 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3204 if ( test $srcdir = . && test -d gcc ) \
3205 || test -d $srcdir/../host-${host_noncanonical}; then
3206 host_subdir="host-${host_noncanonical}"
3211 target_subdir=${target_noncanonical}
3214 # Set program_transform_name
3215 test "$program_prefix" != NONE &&
3216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3217 # Use a double $ so make ignores it.
3218 test "$program_suffix" != NONE &&
3219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3220 # Double any \ or $.
3221 # By default was `s
,x
,x
', remove it if useless.
3222 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3226 # Check for bogus environment variables.
3227 # Test if LIBRARY_PATH contains the notation for the current directory
3228 # since this would lead to problems installing/building glibc.
3229 # LIBRARY_PATH contains the current directory if one of the following
3231 # - one of the terminals (":" and ";") is the first or last sign
3232 # - two terminals occur directly after each other
3233 # - the path contains an element with a dot in it
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3235 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3236 case ${LIBRARY_PATH} in
3237 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3238 library_path_setting="contains current directory"
3241 library_path_setting="ok"
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3245 $as_echo "$library_path_setting" >&6; }
3246 if test "$library_path_setting" != "ok"; then
3248 *** LIBRARY_PATH shouldn't contain the current directory when
3249 *** building gcc. Please change the environment variable
3250 *** and run configure again.
" "$LINENO" 5
3253 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3254 # since this would lead to problems installing/building glibc.
3255 # GCC_EXEC_PREFIX contains the current directory if one of the following
3257 # - one of the terminals (":" and ";") is the first or last sign
3258 # - two terminals occur directly after each other
3259 # - the path contains an element with a dot in it
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3261 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3262 case ${GCC_EXEC_PREFIX} in
3263 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3264 gcc_exec_prefix_setting="contains current directory
"
3267 gcc_exec_prefix_setting="ok
"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3271 $as_echo "$gcc_exec_prefix_setting" >&6; }
3272 if test "$gcc_exec_prefix_setting" != "ok
"; then
3274 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3275 *** building gcc. Please change the environment variable
3276 *** and run configure again." "$LINENO" 5
3283 # Specify the local prefix
3286 # Check whether --with-local-prefix was given.
3287 if test "${with_local_prefix+set}" = set; then :
3288 withval=$with_local_prefix; case "${withval}" in
3289 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3291 *) local_prefix=$with_local_prefix ;;
3296 # Default local prefix if it is empty
3297 if test x$local_prefix = x; then
3298 local_prefix=/usr/local
3301 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3302 # passed in by the toplevel make and thus we'd get different behavior
3303 # depending on where we built the sources.
3304 gcc_gxx_include_dir
=
3305 # Specify the g++ header file directory
3307 # Check whether --with-gxx-include-dir was given.
3308 if test "${with_gxx_include_dir+set}" = set; then :
3309 withval
=$with_gxx_include_dir; case "${withval}" in
3310 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3312 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3317 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3318 if test x
${gcc_gxx_include_dir} = x
; then
3319 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3320 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3322 libstdcxx_incdir
='include/c++/$(version)'
3323 if test x
$host != x
$target; then
3324 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3326 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3330 gcc_gxx_include_dir_add_sysroot
=0
3331 if test "${with_sysroot+set}" = set; then
3332 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3333 if test "${gcc_gxx_without_sysroot}"; then
3334 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3335 gcc_gxx_include_dir_add_sysroot
=1
3340 # Check whether --with-cpp_install_dir was given.
3341 if test "${with_cpp_install_dir+set}" = set; then :
3342 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3343 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3344 elif test x
$withval != xno
; then
3345 cpp_install_dir
=$withval
3350 # We would like to our source tree to be readonly. However when releases or
3351 # pre-releases are generated, the flex/bison generated files as well as the
3352 # various formats of manuals need to be included along with the rest of the
3353 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3357 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3358 # Check whether --enable-generated-files-in-srcdir was given.
3359 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3360 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3362 generated_files_in_srcdir
=no
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3367 $as_echo "$generated_files_in_srcdir" >&6; }
3369 if test "$generated_files_in_srcdir" = "yes"; then
3376 # -------------------
3377 # Find default linker
3378 # -------------------
3382 # Check whether --with-gnu-ld was given.
3383 if test "${with_gnu_ld+set}" = set; then :
3384 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3390 # With pre-defined ld
3392 # Check whether --with-ld was given.
3393 if test "${with_ld+set}" = set; then :
3394 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3397 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3398 if test ! -x "$DEFAULT_LINKER"; then
3399 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3400 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3404 cat >>confdefs.h
<<_ACEOF
3405 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3413 if test x
"$gnu_ld_flag" = x
"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3455 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3462 cat >>confdefs.h
<<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3471 if test x
"$gas_flag" = x
"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3496 # Find the native compiler
3498 ac_cpp
='$CPP $CPPFLAGS'
3499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC
="$CC" # Let the user override the test.
3513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir
=.
3518 for ac_exec_ext
in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_CC"; then
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc
; ac_word
=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir
=.
3558 for ac_exec_ext
in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC
="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_CC" = x
; then
3582 case $cross_compiling:$ac_tool_warned in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned
=yes ;;
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC
="$CC" # Let the user override the test.
3606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir
=.
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc
; ac_word
=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC
="$CC" # Let the user override the test.
3647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3651 test -z "$as_dir" && as_dir
=.
3652 for ac_exec_ext
in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected
=yes
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy
$ac_cv_prog_CC
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3675 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog
in cl.exe
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC
="$CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CC" && break
3735 if test -z "$CC"; then
3737 for ac_prog
in cl.exe
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy
$ac_prog; ac_word
=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir
=.
3754 for ac_exec_ext
in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC
="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CC" && break
3779 if test "x$ac_ct_CC" = x
; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned
=yes ;;
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error
"no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3804 for ac_option
in --version -v -V -qversion; do
3805 { { ac_try
="$ac_compiler $ac_option >&5"
3807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814 if test -s conftest.err; then
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3849 for ac_file in $ac_files
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3858 if { { ac_try="$ac_link_default"
3860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3861 *) ac_try_echo
=$ac_try;;
3863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3874 for ac_file
in $ac_files ''
3876 test -f "$ac_file" ||
continue
3878 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3881 # We found the default executable, but exeext='' is most
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3887 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3899 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.
$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status
77
3913 as_fn_error
"C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3916 ac_exeext
=$ac_cv_exeext
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try
='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3937 if test "$cross_compiling" = maybe; then
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile
, use \
`--host'.
3944 See \`config.log
' for more details." "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3977 for ac_file
in conftest.exe conftest conftest.
*; do
3978 test -f "$ac_file" ||
continue
3980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3981 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3992 rm -f conftest
$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.
$ac_ext
3997 EXEEXT
=$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try
="$ac_compile"
4018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files
: cannot compile
4042 See \
`config.log' for more details." "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4159 if test "$GCC" = yes; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 ac_cv_prog_cc_c89=no
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4192 s = g (p, va_arg (v,int));
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 rm -f conftest.$ac_ext
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 if test "x$CC" != xcc; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4269 set dummy $CC; ac_cc=`$as_echo "$2" |
4270 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4285 # Make sure it works both with $CC and with simple cc.
4286 # We do the test twice because some compilers refuse to overwrite an
4287 # existing .o file with -o, though they will create one.
4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4290 if { { case "(($ac_try" in
4291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4292 *) ac_try_echo
=$ac_try;;
4294 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; } &&
4300 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; };
4311 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4312 if test "x$CC" != xcc; then
4313 # Test first that cc exists at all.
4314 if { ac_try='cc -c conftest.$ac_ext >&5'
4315 { { case "(($ac_try" in
4316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4317 *) ac_try_echo
=$ac_try;;
4319 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }; }; then
4325 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4327 if { { case "(($ac_try" in
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; } &&
4337 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4339 *) ac_try_echo
=$ac_try;;
4341 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; };
4351 # cc exists but doesn't like -o.
4352 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4357 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4359 rm -f core conftest
*
4362 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 $as_echo "yes" >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4373 # expand $ac_aux_dir to an absolute path
4374 am_aux_dir
=`cd $ac_aux_dir && pwd`
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4379 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC
="$am_aux_dir/compile $CC"
4392 ac_cpp
='$CXXCPP $CPPFLAGS'
4393 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4396 if test -z "$CXX"; then
4397 if test -n "$CCC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$CXX"; then
4411 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4433 $as_echo "$CXX" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$CXX" && break
4443 if test -z "$CXX"; then
4445 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy
$ac_prog; ac_word
=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$ac_ct_CXX"; then
4455 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4475 if test -n "$ac_ct_CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4477 $as_echo "$ac_ct_CXX" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$ac_ct_CXX" && break
4487 if test "x$ac_ct_CXX" = x
; then
4490 case $cross_compiling:$ac_tool_warned in
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned
=yes ;;
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4506 for ac_option
in --version -v -V -qversion; do
4507 { { ac_try
="$ac_compiler $ac_option >&5"
4509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4516 if test -s conftest.err; then
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 rm -f conftest.er1 conftest.err
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
4563 ac_save_CXXFLAGS=$CXXFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4570 ac_cxx_werror_flag=yes
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 ac_cv_prog_cxx_g=yes
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4627 if test "$ac_test_CXXFLAGS" = set; then
4628 CXXFLAGS=$ac_save_CXXFLAGS
4629 elif test $ac_cv_prog_cxx_g = yes; then
4630 if test "$GXX" = yes; then
4636 if test "$GXX" = yes; then
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$GNATBIND"; then
4660 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 GNATBIND=$ac_cv_prog_GNATBIND
4680 if test -n "$GNATBIND"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4682 $as_echo "$GNATBIND" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4690 if test -z "$ac_cv_prog_GNATBIND"; then
4691 ac_ct_GNATBIND=$GNATBIND
4692 # Extract the first word of "gnatbind", so it can be a program name with args.
4693 set dummy gnatbind; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$ac_ct_GNATBIND"; then
4700 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4720 if test -n "$ac_ct_GNATBIND"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4722 $as_echo "$ac_ct_GNATBIND" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_ct_GNATBIND" = x; then
4731 case $cross_compiling:$ac_tool_warned in
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4737 GNATBIND=$ac_ct_GNATBIND
4740 GNATBIND="$ac_cv_prog_GNATBIND"
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4751 if test -n "$GNATMAKE"; then
4752 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 GNATMAKE=$ac_cv_prog_GNATMAKE
4772 if test -n "$GNATMAKE"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4774 $as_echo "$GNATMAKE" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4782 if test -z "$ac_cv_prog_GNATMAKE"; then
4783 ac_ct_GNATMAKE=$GNATMAKE
4784 # Extract the first word of "gnatmake", so it can be a program name with args.
4785 set dummy gnatmake; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 if test -n "$ac_ct_GNATMAKE"; then
4792 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4820 if test "x$ac_ct_GNATMAKE" = x; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4829 GNATMAKE=$ac_ct_GNATMAKE
4832 GNATMAKE="$ac_cv_prog_GNATMAKE"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4840 cat >conftest.adb <<EOF
4841 procedure conftest is begin null; end conftest;
4843 acx_cv_cc_gcc_supports_ada=no
4844 # There is a bug in old released versions of GCC which causes the
4845 # driver to exit successfully when the appropriate language module
4846 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4847 # Therefore we must check for the error message as well as an
4848 # unsuccessful exit.
4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4850 # given a .adb file, but produce no object file. So we must check
4851 # if an object file was really produced to guard against this.
4852 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
4854 acx_cv_cc_gcc_supports_ada=yes
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4868 # autoconf is lame and doesn't give us any substitution variable for this.
4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4870 NO_MINUS_C_MINUS_O=yes
4872 OUTPUT_OPTION='-o $@'
4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4878 # optimizations to be activated explicitly by the toplevel.
4880 */prev-gcc/xgcc*) ;;
4881 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4882 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4887 # Determine PICFLAG for target gnatlib.
4893 # PIC is the default on some targets or must not be used.
4895 # PIC is the default on this platform
4896 # Common symbols not allowed in MH_DYLIB files
4897 PICFLAG_FOR_TARGET=-fno-common
4900 # PIC is the default.
4903 # PIC is the default for 64-bit PA HP-UX.
4905 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4907 i[34567]86-*-interix[3-9]*)
4908 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4909 # Instead, we relocate shared libraries at runtime.
4911 i[34567]86-*-nto-qnx*)
4912 # QNX uses GNU C++, but need to define -shared option too, otherwise
4914 PICFLAG_FOR_TARGET='-fPIC -shared'
4916 i[34567]86-pc-msdosdjgpp*)
4917 # DJGPP does not support shared libraries at all.
4920 # On IA64 HP-UX, PIC is the default but the pic flag
4921 # sets the default TLS model and affects inlining.
4922 PICFLAG_FOR_TARGET=-fPIC
4925 # PIC is the default.
4927 rs6000-ibm-aix* | powerpc-ibm-aix*)
4928 # All AIX code is PIC.
4931 # Some targets support both -fPIC and -fpic, but prefer the latter.
4933 i[34567]86-*-* | x86_64-*-*)
4934 PICFLAG_FOR_TARGET=-fpic
4937 PICFLAG_FOR_TARGET=-fpic
4939 # FIXME: Override -fPIC default in libgcc only?
4940 sh-*-linux* | sh[2346lbe]*-*-linux*)
4941 PICFLAG_FOR_TARGET=-fpic
4943 # FIXME: Simplify to sh*-*-netbsd*?
4944 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4945 sh64-*-netbsd* | sh64l*-*-netbsd*)
4946 PICFLAG_FOR_TARGET=-fpic
4948 # Default to -fPIC unless specified otherwise.
4950 PICFLAG_FOR_TARGET=-fPIC
4954 # If the user explicitly uses -fpic/-fPIC, keep that.
4955 case "${CFLAGS_FOR_TARGET}" in
4957 PICFLAG_FOR_TARGET=-fpic
4960 PICFLAG_FOR_TARGET=-fPIC
4966 # -------------------------
4967 # Check C compiler features
4968 # -------------------------
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4978 # On Suns, sometimes $CPP names a directory.
4979 if test -n "$CPP" && test -d "$CPP"; then
4982 if test -z "$CPP"; then
4983 if test "${ac_cv_prog_CPP+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4986 # Double quotes because CPP needs to be expanded
4987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4990 for ac_c_preproc_warn_flag in '' yes
4992 # Use a header file that comes with gcc, so configuring glibc
4993 # with a fresh cross-compiler works.
4994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4995 # <limits.h> exists even on freestanding compilers.
4996 # On the NeXT, cc -E runs the code through the compiler's parser,
4997 # not just through cpp. "Syntax error" is here to catch this case.
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5001 # include <limits.h>
5003 # include <assert.h>
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5010 # Broken: fails on valid input.
5013 rm -f conftest.err conftest.$ac_ext
5015 # OK, works on sane cases. Now check whether nonexistent headers
5016 # can be detected and how.
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <ac_nonexistent.h>
5021 if ac_fn_c_try_cpp "$LINENO"; then :
5022 # Broken: success on invalid input.
5025 # Passes both tests.
5029 rm -f conftest.err conftest.$ac_ext
5032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5033 rm -f conftest.err conftest.
$ac_ext
5034 if $ac_preproc_ok; then :
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5047 $as_echo "$CPP" >&6; }
5049 for ac_c_preproc_warn_flag
in '' yes
5051 # Use a header file that comes with gcc, so configuring glibc
5052 # with a fresh cross-compiler works.
5053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 # <limits.h> exists even on freestanding compilers.
5055 # On the NeXT, cc -E runs the code through the compiler's parser,
5056 # not just through cpp. "Syntax error" is here to catch this case.
5057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5060 # include <limits.h>
5062 # include <assert.h>
5066 if ac_fn_c_try_cpp
"$LINENO"; then :
5069 # Broken: fails on valid input.
5072 rm -f conftest.err conftest.
$ac_ext
5074 # OK, works on sane cases. Now check whether nonexistent headers
5075 # can be detected and how.
5076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5080 if ac_fn_c_try_cpp
"$LINENO"; then :
5081 # Broken: success on invalid input.
5084 # Passes both tests.
5088 rm -f conftest.err conftest.
$ac_ext
5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092 rm -f conftest.err conftest.
$ac_ext
5093 if $ac_preproc_ok; then :
5096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5098 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5099 See \`config.log' for more details." "$LINENO" 5; }
5103 ac_cpp
='$CPP $CPPFLAGS'
5104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5111 if test "${ac_cv_path_GREP+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5114 if test -z "$GREP"; then
5115 ac_path_GREP_found
=false
5116 # Loop through the user's path and test for each of PROGNAME-LIST
5117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5121 test -z "$as_dir" && as_dir
=.
5122 for ac_prog
in grep ggrep
; do
5123 for ac_exec_ext
in '' $ac_executable_extensions; do
5124 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5126 # Check for GNU ac_path_GREP and select it if it is found.
5127 # Check for GNU $ac_path_GREP
5128 case `"$ac_path_GREP" --version 2>&1` in
5130 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5133 $as_echo_n 0123456789 >"conftest.in"
5136 cat "conftest.in" "conftest.in" >"conftest.tmp"
5137 mv "conftest.tmp" "conftest.in"
5138 cp "conftest.in" "conftest.nl"
5139 $as_echo 'GREP' >> "conftest.nl"
5140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5141 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5142 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5144 # Best one so far, save it but keep looking for a better one
5145 ac_cv_path_GREP
="$ac_path_GREP"
5146 ac_path_GREP_max
=$ac_count
5148 # 10*(2^10) chars as input seems more than enough
5149 test $ac_count -gt 10 && break
5151 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5154 $ac_path_GREP_found && break 3
5159 if test -z "$ac_cv_path_GREP"; then
5160 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5163 ac_cv_path_GREP
=$GREP
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5168 $as_echo "$ac_cv_path_GREP" >&6; }
5169 GREP
="$ac_cv_path_GREP"
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5173 $as_echo_n "checking for egrep... " >&6; }
5174 if test "${ac_cv_path_EGREP+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5177 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5178 then ac_cv_path_EGREP
="$GREP -E"
5180 if test -z "$EGREP"; then
5181 ac_path_EGREP_found
=false
5182 # Loop through the user's path and test for each of PROGNAME-LIST
5183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5184 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5187 test -z "$as_dir" && as_dir
=.
5188 for ac_prog
in egrep; do
5189 for ac_exec_ext
in '' $ac_executable_extensions; do
5190 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5192 # Check for GNU ac_path_EGREP and select it if it is found.
5193 # Check for GNU $ac_path_EGREP
5194 case `"$ac_path_EGREP" --version 2>&1` in
5196 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5199 $as_echo_n 0123456789 >"conftest.in"
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
5205 $as_echo 'EGREP' >> "conftest.nl"
5206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5207 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5208 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5210 # Best one so far, save it but keep looking for a better one
5211 ac_cv_path_EGREP
="$ac_path_EGREP"
5212 ac_path_EGREP_max
=$ac_count
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5217 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5220 $ac_path_EGREP_found && break 3
5225 if test -z "$ac_cv_path_EGREP"; then
5226 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5229 ac_cv_path_EGREP
=$EGREP
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5235 $as_echo "$ac_cv_path_EGREP" >&6; }
5236 EGREP
="$ac_cv_path_EGREP"
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5240 $as_echo_n "checking for ANSI C header files... " >&6; }
5241 if test "${ac_cv_header_stdc+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5259 if ac_fn_c_try_compile
"$LINENO"; then :
5260 ac_cv_header_stdc
=yes
5262 ac_cv_header_stdc
=no
5264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5266 if test $ac_cv_header_stdc = yes; then
5267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 $EGREP "memchr" >/dev
/null
2>&1; then :
5277 ac_cv_header_stdc
=no
5283 if test $ac_cv_header_stdc = yes; then
5284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "free" >/dev
/null
2>&1; then :
5294 ac_cv_header_stdc
=no
5300 if test $ac_cv_header_stdc = yes; then
5301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302 if test "$cross_compiling" = yes; then :
5305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5309 #if ((' ' & 0x0FF) == 0x020)
5310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5313 # define ISLOWER(c) \
5314 (('a' <= (c) && (c) <= 'i') \
5315 || ('j' <= (c) && (c) <= 'r') \
5316 || ('s' <= (c) && (c) <= 'z'))
5317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5325 for (i = 0; i < 256; i++)
5326 if (XOR (islower (i), ISLOWER (i))
5327 || toupper (i) != TOUPPER (i))
5332 if ac_fn_c_try_run
"$LINENO"; then :
5335 ac_cv_header_stdc
=no
5337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5338 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5344 $as_echo "$ac_cv_header_stdc" >&6; }
5345 if test $ac_cv_header_stdc = yes; then
5347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5353 inttypes.h stdint.h unistd.h
5355 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5358 eval as_val
=\$
$as_ac_Header
5359 if test "x$as_val" = x
""yes; then :
5360 cat >>confdefs.h
<<_ACEOF
5361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5370 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5371 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5378 if test "$MINIX" = yes; then
5380 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5383 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5386 $as_echo "#define _MINIX 1" >>confdefs.h
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5392 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5393 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5399 # define __EXTENSIONS__ 1
5400 $ac_includes_default
5409 if ac_fn_c_try_compile
"$LINENO"; then :
5410 ac_cv_safe_to_define___extensions__
=yes
5412 ac_cv_safe_to_define___extensions__
=no
5414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5417 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5418 test $ac_cv_safe_to_define___extensions__ = yes &&
5419 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5421 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5423 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5425 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5427 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5431 ac_cpp
='$CPP $CPPFLAGS'
5432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5437 # On Suns, sometimes $CPP names a directory.
5438 if test -n "$CPP" && test -d "$CPP"; then
5441 if test -z "$CPP"; then
5442 if test "${ac_cv_prog_CPP+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5445 # Double quotes because CPP needs to be expanded
5446 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5449 for ac_c_preproc_warn_flag
in '' yes
5451 # Use a header file that comes with gcc, so configuring glibc
5452 # with a fresh cross-compiler works.
5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454 # <limits.h> exists even on freestanding compilers.
5455 # On the NeXT, cc -E runs the code through the compiler's parser,
5456 # not just through cpp. "Syntax error" is here to catch this case.
5457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5460 # include <limits.h>
5462 # include <assert.h>
5466 if ac_fn_c_try_cpp
"$LINENO"; then :
5469 # Broken: fails on valid input.
5472 rm -f conftest.err conftest.
$ac_ext
5474 # OK, works on sane cases. Now check whether nonexistent headers
5475 # can be detected and how.
5476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #include <ac_nonexistent.h>
5480 if ac_fn_c_try_cpp
"$LINENO"; then :
5481 # Broken: success on invalid input.
5484 # Passes both tests.
5488 rm -f conftest.err conftest.
$ac_ext
5491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492 rm -f conftest.err conftest.
$ac_ext
5493 if $ac_preproc_ok; then :
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5506 $as_echo "$CPP" >&6; }
5508 for ac_c_preproc_warn_flag
in '' yes
5510 # Use a header file that comes with gcc, so configuring glibc
5511 # with a fresh cross-compiler works.
5512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5513 # <limits.h> exists even on freestanding compilers.
5514 # On the NeXT, cc -E runs the code through the compiler's parser,
5515 # not just through cpp. "Syntax error" is here to catch this case.
5516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5519 # include <limits.h>
5521 # include <assert.h>
5525 if ac_fn_c_try_cpp
"$LINENO"; then :
5528 # Broken: fails on valid input.
5531 rm -f conftest.err conftest.
$ac_ext
5533 # OK, works on sane cases. Now check whether nonexistent headers
5534 # can be detected and how.
5535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include <ac_nonexistent.h>
5539 if ac_fn_c_try_cpp
"$LINENO"; then :
5540 # Broken: success on invalid input.
5543 # Passes both tests.
5547 rm -f conftest.err conftest.
$ac_ext
5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551 rm -f conftest.err conftest.
$ac_ext
5552 if $ac_preproc_ok; then :
5555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5557 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details." "$LINENO" 5; }
5562 ac_cpp
='$CPP $CPPFLAGS'
5563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5568 $as_echo_n "checking for inline... " >&6; }
5569 if test "${ac_cv_c_inline+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5573 for ac_kw
in inline __inline__ __inline
; do
5574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5578 static $ac_kw foo_t static_foo () {return 0; }
5579 $ac_kw foo_t foo () {return 0; }
5583 if ac_fn_c_try_compile
"$LINENO"; then :
5584 ac_cv_c_inline
=$ac_kw
5586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5587 test "$ac_cv_c_inline" != no
&& break
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5592 $as_echo "$ac_cv_c_inline" >&6; }
5594 case $ac_cv_c_inline in
5597 case $ac_cv_c_inline in
5599 *) ac_val
=$ac_cv_c_inline;;
5601 cat >>confdefs.h
<<_ACEOF
5603 #define inline $ac_val
5610 # Check whether --enable-largefile was given.
5611 if test "${enable_largefile+set}" = set; then :
5612 enableval
=$enable_largefile;
5615 if test "$enable_largefile" != no
; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5618 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5619 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5622 ac_cv_sys_largefile_CC
=no
5623 if test "$GCC" != yes; then
5626 # IRIX 6.2 and later do not support large files by default,
5627 # so use the C compiler's -n32 option if that helps.
5628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <sys/types.h>
5631 /* Check that off_t can represent 2**63 - 1 correctly.
5632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633 since some C++ compilers masquerading as C compilers
5634 incorrectly reject 9223372036854775807. */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637 && LARGE_OFF_T % 2147483647 == 1)
5647 if ac_fn_c_try_compile
"$LINENO"; then :
5650 rm -f core conftest.err conftest.
$ac_objext
5652 if ac_fn_c_try_compile
"$LINENO"; then :
5653 ac_cv_sys_largefile_CC
=' -n32'; break
5655 rm -f core conftest.err conftest.
$ac_objext
5659 rm -f conftest.
$ac_ext
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5663 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5664 if test "$ac_cv_sys_largefile_CC" != no
; then
5665 CC
=$CC$ac_cv_sys_largefile_CC
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5669 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5670 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <sys/types.h>
5677 /* Check that off_t can represent 2**63 - 1 correctly.
5678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5679 since some C++ compilers masquerading as C compilers
5680 incorrectly reject 9223372036854775807. */
5681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5683 && LARGE_OFF_T % 2147483647 == 1)
5693 if ac_fn_c_try_compile
"$LINENO"; then :
5694 ac_cv_sys_file_offset_bits
=no
; break
5696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #define _FILE_OFFSET_BITS 64
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5717 if ac_fn_c_try_compile
"$LINENO"; then :
5718 ac_cv_sys_file_offset_bits
=64; break
5720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5721 ac_cv_sys_file_offset_bits
=unknown
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5726 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5727 case $ac_cv_sys_file_offset_bits in #(
5730 cat >>confdefs.h
<<_ACEOF
5731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5736 if test $ac_cv_sys_file_offset_bits = unknown
; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5738 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5739 if test "${ac_cv_sys_large_files+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5762 if ac_fn_c_try_compile
"$LINENO"; then :
5763 ac_cv_sys_large_files
=no
; break
5765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #define _LARGE_FILES 1
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5786 if ac_fn_c_try_compile
"$LINENO"; then :
5787 ac_cv_sys_large_files
=1; break
5789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5790 ac_cv_sys_large_files
=unknown
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5795 $as_echo "$ac_cv_sys_large_files" >&6; }
5796 case $ac_cv_sys_large_files in #(
5799 cat >>confdefs.h
<<_ACEOF
5800 #define _LARGE_FILES $ac_cv_sys_large_files
5809 # sizeof(char) is 1 by definition.
5810 # The cast to long int works around a bug in the HP C Compiler
5811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5813 # This bug is HP SR number 8606223364.
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5815 $as_echo_n "checking size of void *... " >&6; }
5816 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5819 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5822 if test "$ac_cv_type_void_p" = yes; then
5823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825 { as_fn_set_status
77
5826 as_fn_error
"cannot compute sizeof (void *)
5827 See \`config.log' for more details." "$LINENO" 5; }; }
5829 ac_cv_sizeof_void_p
=0
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5835 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5839 cat >>confdefs.h
<<_ACEOF
5840 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5844 # The cast to long int works around a bug in the HP C Compiler
5845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5847 # This bug is HP SR number 8606223364.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5849 $as_echo_n "checking size of short... " >&6; }
5850 if test "${ac_cv_sizeof_short+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5856 if test "$ac_cv_type_short" = yes; then
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 { as_fn_set_status
77
5860 as_fn_error
"cannot compute sizeof (short)
5861 See \`config.log' for more details." "$LINENO" 5; }; }
5863 ac_cv_sizeof_short
=0
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5869 $as_echo "$ac_cv_sizeof_short" >&6; }
5873 cat >>confdefs.h
<<_ACEOF
5874 #define SIZEOF_SHORT $ac_cv_sizeof_short
5878 # The cast to long int works around a bug in the HP C Compiler
5879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5881 # This bug is HP SR number 8606223364.
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5883 $as_echo_n "checking size of int... " >&6; }
5884 if test "${ac_cv_sizeof_int+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5887 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5890 if test "$ac_cv_type_int" = yes; then
5891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5893 { as_fn_set_status
77
5894 as_fn_error
"cannot compute sizeof (int)
5895 See \`config.log' for more details." "$LINENO" 5; }; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5903 $as_echo "$ac_cv_sizeof_int" >&6; }
5907 cat >>confdefs.h
<<_ACEOF
5908 #define SIZEOF_INT $ac_cv_sizeof_int
5912 # The cast to long int works around a bug in the HP C Compiler
5913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5915 # This bug is HP SR number 8606223364.
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5917 $as_echo_n "checking size of long... " >&6; }
5918 if test "${ac_cv_sizeof_long+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5921 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5924 if test "$ac_cv_type_long" = yes; then
5925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5927 { as_fn_set_status
77
5928 as_fn_error
"cannot compute sizeof (long)
5929 See \`config.log' for more details." "$LINENO" 5; }; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5937 $as_echo "$ac_cv_sizeof_long" >&6; }
5941 cat >>confdefs.h
<<_ACEOF
5942 #define SIZEOF_LONG $ac_cv_sizeof_long
5946 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5947 if test "x$ac_cv_type_long_long" = x
""yes; then :
5949 cat >>confdefs.h
<<_ACEOF
5950 #define HAVE_LONG_LONG 1
5953 # The cast to long int works around a bug in the HP C Compiler
5954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5956 # This bug is HP SR number 8606223364.
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5958 $as_echo_n "checking size of long long... " >&6; }
5959 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5962 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5965 if test "$ac_cv_type_long_long" = yes; then
5966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5968 { as_fn_set_status
77
5969 as_fn_error
"cannot compute sizeof (long long)
5970 See \`config.log' for more details." "$LINENO" 5; }; }
5972 ac_cv_sizeof_long_long
=0
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5978 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5982 cat >>confdefs.h
<<_ACEOF
5983 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5989 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5990 if test "x$ac_cv_type___int64" = x
""yes; then :
5992 cat >>confdefs.h
<<_ACEOF
5993 #define HAVE___INT64 1
5996 # The cast to long int works around a bug in the HP C Compiler
5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5999 # This bug is HP SR number 8606223364.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6001 $as_echo_n "checking size of __int64... " >&6; }
6002 if test "${ac_cv_sizeof___int64+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6005 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6008 if test "$ac_cv_type___int64" = yes; then
6009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6011 { as_fn_set_status
77
6012 as_fn_error
"cannot compute sizeof (__int64)
6013 See \`config.log' for more details." "$LINENO" 5; }; }
6015 ac_cv_sizeof___int64
=0
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6021 $as_echo "$ac_cv_sizeof___int64" >&6; }
6025 cat >>confdefs.h
<<_ACEOF
6026 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6032 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6033 case $ac_cv_c_int8_t in #(
6037 cat >>confdefs.h
<<_ACEOF
6038 #define int8_t $ac_cv_c_int8_t
6043 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6044 case $ac_cv_c_int16_t in #(
6048 cat >>confdefs.h
<<_ACEOF
6049 #define int16_t $ac_cv_c_int16_t
6054 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6055 case $ac_cv_c_int32_t in #(
6059 cat >>confdefs.h
<<_ACEOF
6060 #define int32_t $ac_cv_c_int32_t
6065 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6066 case $ac_cv_c_int64_t in #(
6070 cat >>confdefs.h
<<_ACEOF
6071 #define int64_t $ac_cv_c_int64_t
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6078 $as_echo_n "checking for long long int... " >&6; }
6079 if test "${ac_cv_type_long_long_int+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6085 /* For now, do not test the preprocessor; as of 2007 there are too many
6086 implementations with broken preprocessors. Perhaps this can
6087 be revisited in 2012. In the meantime, code should not expect
6088 #if to work with literals wider than 32 bits. */
6089 /* Test literals. */
6090 long long int ll = 9223372036854775807ll;
6091 long long int nll = -9223372036854775807LL;
6092 unsigned long long int ull = 18446744073709551615ULL;
6093 /* Test constant expressions. */
6094 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6096 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6102 /* Test availability of runtime routines for shift and division. */
6103 long long int llmax = 9223372036854775807ll;
6104 unsigned long long int ullmax = 18446744073709551615ull;
6105 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6106 | (llmax / ll) | (llmax % ll)
6107 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6108 | (ullmax / ull) | (ullmax % ull));
6114 if ac_fn_c_try_link
"$LINENO"; then :
6115 if test "$cross_compiling" = yes; then :
6116 ac_cv_type_long_long_int
=yes
6118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6123 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6124 # define LLONG_MAX (HALF - 1 + HALF)
6129 long long int n = 1;
6133 long long int m = n << i;
6136 if (LLONG_MAX / 2 < m)
6144 if ac_fn_c_try_run
"$LINENO"; then :
6145 ac_cv_type_long_long_int
=yes
6147 ac_cv_type_long_long_int
=no
6149 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6150 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6154 ac_cv_type_long_long_int
=no
6156 rm -f core conftest.err conftest.
$ac_objext \
6157 conftest
$ac_exeext conftest.
$ac_ext
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6160 $as_echo "$ac_cv_type_long_long_int" >&6; }
6161 if test $ac_cv_type_long_long_int = yes; then
6163 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6169 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6170 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6172 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6175 test $ac_cv_type_long_long_int = yes \
6176 && ac_type
='long long int' \
6177 || ac_type
='long int'
6179 cat >>confdefs.h
<<_ACEOF
6180 #define intmax_t $ac_type
6187 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6188 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6190 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6193 for ac_type
in 'int' 'long int' 'long long int'; do
6194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 $ac_includes_default
6200 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6207 if ac_fn_c_try_compile
"$LINENO"; then :
6209 cat >>confdefs.h
<<_ACEOF
6210 #define intptr_t $ac_type
6215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 test -z "$ac_type" && break
6221 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6222 case $ac_cv_c_uint8_t in #(
6226 $as_echo "#define _UINT8_T 1" >>confdefs.h
6229 cat >>confdefs.h
<<_ACEOF
6230 #define uint8_t $ac_cv_c_uint8_t
6235 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6236 case $ac_cv_c_uint16_t in #(
6241 cat >>confdefs.h
<<_ACEOF
6242 #define uint16_t $ac_cv_c_uint16_t
6247 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6248 case $ac_cv_c_uint32_t in #(
6252 $as_echo "#define _UINT32_T 1" >>confdefs.h
6255 cat >>confdefs.h
<<_ACEOF
6256 #define uint32_t $ac_cv_c_uint32_t
6261 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6262 case $ac_cv_c_uint64_t in #(
6266 $as_echo "#define _UINT64_T 1" >>confdefs.h
6269 cat >>confdefs.h
<<_ACEOF
6270 #define uint64_t $ac_cv_c_uint64_t
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6277 $as_echo_n "checking for unsigned long long int... " >&6; }
6278 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 /* For now, do not test the preprocessor; as of 2007 there are too many
6285 implementations with broken preprocessors. Perhaps this can
6286 be revisited in 2012. In the meantime, code should not expect
6287 #if to work with literals wider than 32 bits. */
6288 /* Test literals. */
6289 long long int ll = 9223372036854775807ll;
6290 long long int nll = -9223372036854775807LL;
6291 unsigned long long int ull = 18446744073709551615ULL;
6292 /* Test constant expressions. */
6293 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6295 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6301 /* Test availability of runtime routines for shift and division. */
6302 long long int llmax = 9223372036854775807ll;
6303 unsigned long long int ullmax = 18446744073709551615ull;
6304 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6305 | (llmax / ll) | (llmax % ll)
6306 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6307 | (ullmax / ull) | (ullmax % ull));
6313 if ac_fn_c_try_link
"$LINENO"; then :
6314 ac_cv_type_unsigned_long_long_int
=yes
6316 ac_cv_type_unsigned_long_long_int
=no
6318 rm -f core conftest.err conftest.
$ac_objext \
6319 conftest
$ac_exeext conftest.
$ac_ext
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6322 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6323 if test $ac_cv_type_unsigned_long_long_int = yes; then
6325 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6331 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6332 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6334 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6337 test $ac_cv_type_unsigned_long_long_int = yes \
6338 && ac_type
='unsigned long long int' \
6339 || ac_type
='unsigned long int'
6341 cat >>confdefs.h
<<_ACEOF
6342 #define uintmax_t $ac_type
6349 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6350 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6352 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6355 for ac_type
in 'unsigned int' 'unsigned long int' \
6356 'unsigned long long int'; do
6357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 $ac_includes_default
6363 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6370 if ac_fn_c_try_compile
"$LINENO"; then :
6372 cat >>confdefs.h
<<_ACEOF
6373 #define uintptr_t $ac_type
6378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 test -z "$ac_type" && break
6397 # ---------------------
6398 # Warnings and checking
6399 # ---------------------
6401 # Check $CC warning features (if it's GCC).
6402 # We want to use -pedantic, but we don't want warnings about
6405 # * overlong strings
6406 # * C++11 narrowing conversions in { }
6407 # So, we only use -pedantic if we can disable those warnings.
6410 save_CFLAGS
="$CFLAGS"
6411 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6412 # Do the check with the no- prefix removed since gcc silently
6413 # accepts any -Wno-* option on purpose
6414 case $real_option in
6415 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6416 *) option
=$real_option ;;
6418 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6421 $as_echo_n "checking whether $CC supports $option... " >&6; }
6422 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6423 $as_echo_n "(cached) " >&6
6426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6437 if ac_fn_c_try_compile
"$LINENO"; then :
6438 eval "$as_acx_Woption=yes"
6440 eval "$as_acx_Woption=no"
6442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6445 eval ac_res
=\$
$as_acx_Woption
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6447 $as_echo "$ac_res" >&6; }
6448 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6449 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6452 CFLAGS
="$save_CFLAGS"
6455 save_CFLAGS
="$CFLAGS"
6456 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6457 # Do the check with the no- prefix removed since gcc silently
6458 # accepts any -Wno-* option on purpose
6459 case $real_option in
6460 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6461 *) option
=$real_option ;;
6463 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6466 $as_echo_n "checking whether $CC supports $option... " >&6; }
6467 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6468 $as_echo_n "(cached) " >&6
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6482 if ac_fn_c_try_compile
"$LINENO"; then :
6483 eval "$as_acx_Woption=yes"
6485 eval "$as_acx_Woption=no"
6487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6490 eval ac_res
=\$
$as_acx_Woption
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6492 $as_echo "$ac_res" >&6; }
6493 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6494 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6497 CFLAGS
="$save_CFLAGS"
6500 save_CFLAGS
="$CFLAGS"
6501 for real_option
in -Wmissing-format-attribute; do
6502 # Do the check with the no- prefix removed since gcc silently
6503 # accepts any -Wno-* option on purpose
6504 case $real_option in
6505 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6506 *) option
=$real_option ;;
6508 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6511 $as_echo_n "checking whether $CC supports $option... " >&6; }
6512 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6513 $as_echo_n "(cached) " >&6
6516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6527 if ac_fn_c_try_compile
"$LINENO"; then :
6528 eval "$as_acx_Woption=yes"
6530 eval "$as_acx_Woption=no"
6532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 eval ac_res
=\$
$as_acx_Woption
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6537 $as_echo "$ac_res" >&6; }
6538 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6539 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6542 CFLAGS
="$save_CFLAGS"
6545 save_CFLAGS
="$CFLAGS"
6546 for real_option
in -Wold-style-definition -Wc++-compat; do
6547 # Do the check with the no- prefix removed since gcc silently
6548 # accepts any -Wno-* option on purpose
6549 case $real_option in
6550 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6551 *) option
=$real_option ;;
6553 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6556 $as_echo_n "checking whether $CC supports $option... " >&6; }
6557 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6558 $as_echo_n "(cached) " >&6
6561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6572 if ac_fn_c_try_compile
"$LINENO"; then :
6573 eval "$as_acx_Woption=yes"
6575 eval "$as_acx_Woption=no"
6577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6580 eval ac_res
=\$
$as_acx_Woption
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6582 $as_echo "$ac_res" >&6; }
6583 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6584 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6587 CFLAGS
="$save_CFLAGS"
6589 # Do the check with the no- prefix removed from the warning options
6590 # since gcc silently accepts any -Wno-* option on purpose
6591 if test "$GCC" = yes; then :
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6593 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6594 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6597 save_CFLAGS
="$CFLAGS"
6598 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6610 if ac_fn_c_try_compile
"$LINENO"; then :
6611 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6613 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6616 CFLAGS
="$save_CFLAGS"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6619 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6620 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6621 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6626 # Check whether --enable-werror-always was given.
6627 if test "${enable_werror_always+set}" = set; then :
6628 enableval
=$enable_werror_always;
6630 enable_werror_always
=no
6633 if test $enable_werror_always = yes; then :
6634 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6639 # The above macros do nothing if the compiler is not GCC. However, the
6640 # Makefile has more goo to add other flags, so these variables are used
6641 # to enable warnings only for GCC.
6644 if test "x$GCC" = "xyes"; then
6645 warn_cflags
='$(GCC_WARN_CFLAGS)'
6646 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6651 # Disable exceptions and RTTI if building with g++
6653 save_CFLAGS
="$CFLAGS"
6654 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6655 # Do the check with the no- prefix removed since gcc silently
6656 # accepts any -Wno-* option on purpose
6657 case $real_option in
6658 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6659 *) option
=$real_option ;;
6661 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6664 $as_echo_n "checking whether $CC supports $option... " >&6; }
6665 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6666 $as_echo_n "(cached) " >&6
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6680 if ac_fn_c_try_compile
"$LINENO"; then :
6681 eval "$as_acx_Woption=yes"
6683 eval "$as_acx_Woption=no"
6685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6688 eval ac_res
=\$
$as_acx_Woption
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6690 $as_echo "$ac_res" >&6; }
6691 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6692 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6695 CFLAGS
="$save_CFLAGS"
6698 # Enable expensive internal checks
6700 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6704 # Check whether --enable-checking was given.
6705 if test "${enable_checking+set}" = set; then :
6706 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6709 # Determine the default checks.
6710 if test x
$is_release = x
; then
6711 ac_checking_flags
=yes
6713 ac_checking_flags
=release
6717 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6718 for check
in release
$ac_checking_flags
6721 # these set all the flags to specific states
6722 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6723 ac_fold_checking
= ; ac_gc_checking
=1 ;
6724 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6725 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6726 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6727 ac_types_checking
=1 ;;
6728 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6729 ac_fold_checking
= ; ac_gc_checking
= ;
6730 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6731 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6732 ac_tree_checking
= ; ac_valgrind_checking
= ;
6733 ac_types_checking
= ;;
6734 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6735 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6736 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6737 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6738 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6739 ac_types_checking
=1 ;;
6740 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6741 ac_fold_checking
= ; ac_gc_checking
= ;
6742 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6743 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6744 ac_tree_checking
= ; ac_valgrind_checking
= ;
6745 ac_types_checking
= ;;
6746 # these enable particular checks
6747 assert
) ac_assert_checking
=1 ;;
6748 df
) ac_df_checking
=1 ;;
6749 fold) ac_fold_checking
=1 ;;
6750 gc
) ac_gc_checking
=1 ;;
6751 gcac
) ac_gc_always_collect
=1 ;;
6752 gimple
) ac_gimple_checking
=1 ;;
6753 misc
) ac_checking
=1 ;;
6754 rtl
) ac_rtl_checking
=1 ;;
6755 rtlflag
) ac_rtlflag_checking
=1 ;;
6756 runtime
) ac_runtime_checking
=1 ;;
6757 tree
) ac_tree_checking
=1 ;;
6758 types
) ac_types_checking
=1 ;;
6759 valgrind
) ac_valgrind_checking
=1 ;;
6760 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6766 if test x
$ac_checking != x
; then
6768 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6770 nocommon_flag
=-fno-common
6773 if test x
$ac_df_checking != x
; then
6775 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6778 if test x
$ac_assert_checking != x
; then
6780 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6783 if test x
$ac_gimple_checking != x
; then
6785 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6789 if test x
$ac_runtime_checking != x
; then
6791 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6794 if test x
$ac_tree_checking != x
; then
6796 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6798 TREEBROWSER
=tree-browser.o
6801 if test x
$ac_types_checking != x
; then
6803 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6808 if test x
$ac_rtl_checking != x
; then
6810 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6813 if test x
$ac_rtlflag_checking != x
; then
6815 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6818 if test x
$ac_gc_checking != x
; then
6820 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6823 if test x
$ac_gc_always_collect != x
; then
6825 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6828 if test x
$ac_fold_checking != x
; then
6830 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6833 valgrind_path_defines
=
6836 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6837 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6845 if test x
$ac_valgrind_checking != x
; then
6846 # It is certainly possible that there's valgrind but no valgrind.h.
6847 # GCC relies on making annotations so we must have both.
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6849 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <valgrind/memcheck.h>
6853 #ifndef VALGRIND_DISCARD
6854 #error VALGRIND_DISCARD not defined
6857 if ac_fn_c_try_cpp
"$LINENO"; then :
6858 gcc_cv_header_valgrind_memcheck_h
=yes
6860 gcc_cv_header_valgrind_memcheck_h
=no
6862 rm -f conftest.err conftest.
$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6864 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6866 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 #include <memcheck.h>
6870 #ifndef VALGRIND_DISCARD
6871 #error VALGRIND_DISCARD not defined
6874 if ac_fn_c_try_cpp
"$LINENO"; then :
6875 gcc_cv_header_memcheck_h
=yes
6877 gcc_cv_header_memcheck_h
=no
6879 rm -f conftest.err conftest.
$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6881 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6883 # Prepare PATH_SEPARATOR.
6884 # The user is always right.
6885 if test "${PATH_SEPARATOR+set}" != set; then
6886 echo "#! /bin/sh" >conf$$.sh
6887 echo "exit 0" >>conf$$.sh
6889 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6897 # Find out how to test for executable files. Don't use a zero-byte file,
6898 # as systems may use methods other than mode bits to determine executability.
6899 cat >conf$$.
file <<_ASEOF
6903 chmod +x conf$$.
file
6904 if test -x conf$$.
file >/dev
/null
2>&1; then
6905 ac_executable_p
="test -x"
6907 ac_executable_p
="test -f"
6911 # Extract the first word of "valgrind", so it can be a program name with args.
6912 set dummy valgrind
; ac_word
=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6918 case "$valgrind_path" in
6920 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6923 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6924 for ac_dir
in $PATH; do
6926 test -z "$ac_dir" && ac_dir
=.
6927 for ac_exec_ext
in '' $ac_executable_extensions; do
6928 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6929 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6930 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6940 valgrind_path
="$ac_cv_path_valgrind_path"
6941 if test -n "$valgrind_path"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6943 $as_echo "$valgrind_path" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$valgrind_path" = "x" \
6950 ||
(test $have_valgrind_h = no \
6951 && test $gcc_cv_header_memcheck_h = no \
6952 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6953 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6955 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6956 valgrind_command
="$valgrind_path -q"
6958 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6960 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6962 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6965 if test $gcc_cv_header_memcheck_h = yes; then
6967 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6974 # Enable code coverage collection
6975 # Check whether --enable-coverage was given.
6976 if test "${enable_coverage+set}" = set; then :
6977 enableval
=$enable_coverage; case "${enableval}" in
6979 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6982 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6985 # a.k.a. --disable-coverage
6989 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6998 # Check whether --enable-gather-detailed-mem-stats was given.
6999 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7000 enableval
=$enable_gather_detailed_mem_stats;
7002 enable_gather_detailed_mem_stats
=no
7005 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7007 cat >>confdefs.h
<<_ACEOF
7008 #define GATHER_STATISTICS $gather_stats
7012 # -------------------------------
7013 # Miscenalleous configure options
7014 # -------------------------------
7018 # Check whether --with-stabs was given.
7019 if test "${with_stabs+set}" = set; then :
7020 withval
=$with_stabs; stabs
="$with_stabs"
7026 # Determine whether or not multilibs are enabled.
7027 # Check whether --enable-multilib was given.
7028 if test "${enable_multilib+set}" = set; then :
7029 enableval
=$enable_multilib;
7036 # Determine whether or not multiarch is enabled.
7037 # Check whether --enable-multiarch was given.
7038 if test "${enable_multiarch+set}" = set; then :
7039 enableval
=$enable_multiarch; case "${enableval}" in
7040 yes|no|auto
) enable_multiarch
=$enableval;;
7041 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7044 enable_multiarch
=auto
7047 if test x
${enable_multiarch} = xauto
; then
7048 if test x
${with_native_system_header_dir} != x
; then
7049 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7052 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7053 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7058 $as_echo_n "checking for multiarch configuration... " >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7061 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7063 # needed for setting the multiarch name for soft-float/hard-float ABIs
7067 # Enable __cxa_atexit for C++.
7068 # Check whether --enable-__cxa_atexit was given.
7069 if test "${enable___cxa_atexit+set}" = set; then :
7070 enableval
=$enable___cxa_atexit;
7074 # Enable C extension for decimal float if target supports it.
7076 # Check whether --enable-decimal-float was given.
7077 if test "${enable_decimal_float+set}" = set; then :
7078 enableval
=$enable_decimal_float;
7079 case $enable_decimal_float in
7080 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7081 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7082 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7088 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7090 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7092 enable_decimal_float
=yes
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7096 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7097 enable_decimal_float
=no
7104 # x86's use BID format instead of DPD
7105 case x
$enable_decimal_float in
7108 i?
86*-*-* | x86_64
*-*-*)
7109 enable_decimal_float
=bid
7112 enable_decimal_float
=dpd
7115 default_decimal_float
=$enable_decimal_float
7118 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7119 # dependency on libdecnumber.
7120 default_decimal_float
=dpd
7127 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7129 cat >>confdefs.h
<<_ACEOF
7130 #define ENABLE_DECIMAL_FLOAT $dfp
7134 # Use default_decimal_float for dependency.
7135 enable_decimal_float
=$default_decimal_float
7137 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7139 cat >>confdefs.h
<<_ACEOF
7140 #define ENABLE_DECIMAL_BID_FORMAT $bid
7144 # Enable C extension for fixed-point arithmetic.
7145 # Check whether --enable-fixed-point was given.
7146 if test "${enable_fixed_point+set}" = set; then :
7147 enableval
=$enable_fixed_point;
7152 enable_fixed_point
=yes
7156 enable_fixed_point
=yes
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7160 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7161 enable_fixed_point
=no
7169 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7171 cat >>confdefs.h
<<_ACEOF
7172 #define ENABLE_FIXED_POINT $fixedpoint
7177 # Pass with no value to take the default
7178 # Pass with a value to specify a thread package
7179 # Check whether --enable-threads was given.
7180 if test "${enable_threads+set}" = set; then :
7181 enableval
=$enable_threads;
7187 # Check whether --enable-tls was given.
7188 if test "${enable_tls+set}" = set; then :
7189 enableval
=$enable_tls;
7192 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7193 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7201 # Check whether --enable-objc-gc was given.
7202 if test "${enable_objc_gc+set}" = set; then :
7203 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7214 # Check whether --with-dwarf2 was given.
7215 if test "${with_dwarf2+set}" = set; then :
7216 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7222 # Check whether --enable-shared was given.
7223 if test "${enable_shared+set}" = set; then :
7224 enableval
=$enable_shared;
7225 case $enable_shared in
7229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7230 for pkg
in $enableval; do
7231 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7246 # Check whether --with-native-system-header-dir was given.
7247 if test "${with_native_system_header_dir+set}" = set; then :
7248 withval
=$with_native_system_header_dir;
7249 case ${with_native_system_header_dir} in
7250 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7251 /* |
[A-Za-z
]:[\\/]*) ;;
7252 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7254 configured_native_system_header_dir
="${withval}"
7257 configured_native_system_header_dir
=
7262 # Check whether --with-build-sysroot was given.
7263 if test "${with_build_sysroot+set}" = set; then :
7264 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7265 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7268 SYSROOT_CFLAGS_FOR_TARGET
=
7273 if test "x$prefix" = xNONE
; then
7274 test_prefix
=/usr
/local
7278 if test "x$exec_prefix" = xNONE
; then
7279 test_exec_prefix
=$test_prefix
7281 test_exec_prefix
=$exec_prefix
7285 # Check whether --with-sysroot was given.
7286 if test "${with_sysroot+set}" = set; then :
7287 withval
=$with_sysroot;
7288 case ${with_sysroot} in
7289 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7290 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7293 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7294 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7296 case ${TARGET_SYSTEM_ROOT} in
7297 "${test_prefix}"|
"${test_prefix}/"*|\
7298 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7299 '${prefix}'|
'${prefix}/'*|\
7300 '${exec_prefix}'|
'${exec_prefix}/'*)
7301 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7302 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7309 TARGET_SYSTEM_ROOT_DEFINE
=
7310 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7319 # Check whether --with-specs was given.
7320 if test "${with_specs+set}" = set; then :
7321 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7331 # Check whether --with-pkgversion was given.
7332 if test "${with_pkgversion+set}" = set; then :
7333 withval
=$with_pkgversion; case "$withval" in
7334 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7336 *) PKGVERSION
="($withval) " ;;
7347 # Check whether --with-bugurl was given.
7348 if test "${with_bugurl+set}" = set; then :
7349 withval
=$with_bugurl; case "$withval" in
7350 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7353 *) BUGURL
="$withval"
7357 BUGURL
="http://gcc.gnu.org/bugs.html"
7367 REPORT_BUGS_TO
="<$BUGURL>"
7368 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7375 # Sanity check enable_languages in case someone does not run the toplevel
7376 # configure # script.
7377 # Check whether --enable-languages was given.
7378 if test "${enable_languages+set}" = set; then :
7379 enableval
=$enable_languages; case ,${enable_languages}, in
7381 # go safe -- we cannot be much sure without the toplevel
7383 # analysis of which target libs are present and usable
7387 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7392 enable_languages
=c
,${enable_languages}
7401 # Check whether --with-multilib-list was given.
7402 if test "${with_multilib_list+set}" = set; then :
7403 withval
=$with_multilib_list; :
7405 with_multilib_list
=default
7409 # -------------------------
7410 # Checks for other programs
7411 # -------------------------
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7414 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7416 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7417 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7418 $as_echo_n "(cached) " >&6
7420 cat >conftest.
make <<\_ACEOF
7423 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7426 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7428 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7430 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7434 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 $as_echo "yes" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 SET_MAKE
="MAKE=${MAKE-make}"
7445 # Find some useful tools
7446 for ac_prog
in gawk mawk nawk
awk
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy
$ac_prog; ac_word
=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if test "${ac_cv_prog_AWK+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7455 if test -n "$AWK"; then
7456 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir
=.
7463 for ac_exec_ext
in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_AWK
="$ac_prog"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 if test -n "$AWK"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7478 $as_echo "$AWK" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7485 test -n "$AWK" && break
7488 # We need awk to create options.c and options.h.
7489 # Bail out if it's missing.
7491 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7495 $as_echo_n "checking whether ln -s works... " >&6; }
7496 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7499 rm -f conftestdata_t
7500 echo >conftestdata_f
7501 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7503 gcc_cv_prog_LN_S
="ln -s"
7505 if ln conftestdata_f conftestdata_t
2>/dev
/null
7509 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7511 gcc_cv_prog_LN_S
="cp -p"
7517 rm -f conftestdata_f conftestdata_t
7520 LN_S
="$gcc_cv_prog_LN_S"
7521 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7525 if test "$gcc_cv_prog_LN_S" = "ln"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7527 $as_echo "no, using ln" >&6; }
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7530 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7535 $as_echo_n "checking whether ln works... " >&6; }
7536 if test "${acx_cv_prog_LN+set}" = set; then :
7537 $as_echo_n "(cached) " >&6
7539 rm -f conftestdata_t
7540 echo >conftestdata_f
7541 if ln conftestdata_f conftestdata_t
2>/dev
/null
7547 rm -f conftestdata_f conftestdata_t
7550 if test $acx_cv_prog_LN = no
; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7553 $as_echo "no, using $LN" >&6; }
7555 LN
="$acx_cv_prog_LN"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7557 $as_echo "yes" >&6; }
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7562 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7568 if test -n "$RANLIB"; then
7569 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir
=.
7576 for ac_exec_ext
in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 RANLIB
=$ac_cv_prog_RANLIB
7589 if test -n "$RANLIB"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7591 $as_echo "$RANLIB" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7599 if test -z "$ac_cv_prog_RANLIB"; then
7600 ac_ct_RANLIB
=$RANLIB
7601 # Extract the first word of "ranlib", so it can be a program name with args.
7602 set dummy ranlib
; ac_word
=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7608 if test -n "$ac_ct_RANLIB"; then
7609 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir
=.
7616 for ac_exec_ext
in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7629 if test -n "$ac_ct_RANLIB"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7631 $as_echo "$ac_ct_RANLIB" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7637 if test "x$ac_ct_RANLIB" = x
; then
7640 case $cross_compiling:$ac_tool_warned in
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644 ac_tool_warned
=yes ;;
7646 RANLIB
=$ac_ct_RANLIB
7649 RANLIB
="$ac_cv_prog_RANLIB"
7655 # Find a good install program. We prefer a C program (faster),
7656 # so one script is as good as another. But avoid the broken or
7657 # incompatible versions:
7658 # SysV /etc/install, /usr/sbin/install
7659 # SunOS /usr/etc/install
7660 # IRIX /sbin/install
7662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7664 # ./install, which can be erroneously created by make from ./install.sh.
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7666 $as_echo_n "checking for a BSD compatible install... " >&6; }
7667 if test -z "$INSTALL"; then
7668 if test "${ac_cv_path_install+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7671 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7672 for ac_dir
in $PATH; do
7673 # Account for people who put trailing slashes in PATH elements.
7675 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7677 # OSF1 and SCO ODT 3.0 have their own names for install.
7678 for ac_prog
in ginstall scoinst
install; do
7679 if test -f $ac_dir/$ac_prog; then
7680 if test $ac_prog = install &&
7681 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7682 # AIX install. It has an incompatible calling convention.
7683 # OSF/1 installbsd also uses dspmsg, but is usable.
7686 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7697 if test "${ac_cv_path_install+set}" = set; then
7698 INSTALL
="$ac_cv_path_install"
7700 # As a last resort, use the slow shell script. We don't cache a
7701 # path for INSTALL within a source directory, because that will
7702 # break other packages using the cache if that directory is
7703 # removed, or if the path is relative.
7704 INSTALL
="$ac_install_sh"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7708 $as_echo "$INSTALL" >&6; }
7710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7711 # It thinks the first close brace ends the variable substitution.
7712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7714 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7717 # See if cmp has --ignore-initial.
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7719 $as_echo_n "checking for cmp's capabilities... " >&6; }
7720 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7725 gcc_cv_prog_cmp_skip
=slowcompare
7726 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7727 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7730 gcc_cv_prog_cmp_skip
=gnucompare
7733 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7734 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7735 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7738 gcc_cv_prog_cmp_skip
=fastcompare
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7746 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7747 make_compare_target
=$gcc_cv_prog_cmp_skip
7751 # See if we have the mktemp command.
7752 # Extract the first word of "mktemp", so it can be a program name with args.
7753 set dummy mktemp
; ac_word
=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$have_mktemp_command"; then
7760 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir
=.
7767 for ac_exec_ext
in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_have_mktemp_command
="yes"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7780 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7781 if test -n "$have_mktemp_command"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7783 $as_echo "$have_mktemp_command" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7791 # See if makeinfo has been installed and is modern enough
7792 # that we can use it.
7794 # Extract the first word of "makeinfo", so it can be a program name with args.
7795 set dummy makeinfo
; ac_word
=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$MAKEINFO"; then
7802 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir
=.
7809 for ac_exec_ext
in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_MAKEINFO
="makeinfo"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 MAKEINFO
=$ac_cv_prog_MAKEINFO
7822 if test -n "$MAKEINFO"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7824 $as_echo "$MAKEINFO" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 if test -n "$MAKEINFO"; then
7832 # Found it, now check the version.
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7834 $as_echo_n "checking for modern makeinfo... " >&6; }
7835 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7838 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7839 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7841 case $ac_prog_version in
7842 '') gcc_cv_prog_makeinfo_modern
=no
;;
7843 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7844 *) gcc_cv_prog_makeinfo_modern
=no
;;
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7849 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7851 gcc_cv_prog_makeinfo_modern
=no
7853 if test $gcc_cv_prog_makeinfo_modern = no
; then
7854 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7857 if test $gcc_cv_prog_makeinfo_modern = no
; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7859 *** Makeinfo is missing or too old.
7860 *** Info documentation will not be built." >&5
7861 $as_echo "$as_me: WARNING:
7862 *** Makeinfo is missing or too old.
7863 *** Info documentation will not be built." >&2;}
7870 # Is pod2man recent enough to regenerate manpages?
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7872 $as_echo_n "checking for recent Pod::Man... " >&6; }
7873 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875 $as_echo "yes" >&6; }
7876 GENERATED_MANPAGES
=generated-manpages
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7884 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7889 # Extract the first word of "$ac_prog", so it can be a program name with args.
7890 set dummy
$ac_prog; ac_word
=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if test "${ac_cv_prog_FLEX+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$FLEX"; then
7897 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir
=.
7904 for ac_exec_ext
in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7906 ac_cv_prog_FLEX
="$ac_prog"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 FLEX
=$ac_cv_prog_FLEX
7917 if test -n "$FLEX"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7919 $as_echo "$FLEX" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7926 test -n "$FLEX" && break
7928 test -n "$FLEX" || FLEX
="$MISSING flex"
7932 for ac_prog
in bison
7934 # Extract the first word of "$ac_prog", so it can be a program name with args.
7935 set dummy
$ac_prog; ac_word
=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if test "${ac_cv_prog_BISON+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7941 if test -n "$BISON"; then
7942 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7948 test -z "$as_dir" && as_dir
=.
7949 for ac_exec_ext
in '' $ac_executable_extensions; do
7950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 ac_cv_prog_BISON
="$ac_prog"
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 BISON
=$ac_cv_prog_BISON
7962 if test -n "$BISON"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7964 $as_echo "$BISON" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7971 test -n "$BISON" && break
7973 test -n "$BISON" || BISON
="$MISSING bison"
7976 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7977 # check for build == host before using them.
7980 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7981 && test -d ..
/binutils
; then
7982 NM
='${objdir}/../binutils/nm-new'
7984 # Extract the first word of "nm", so it can be a program name with args.
7985 set dummy nm
; ac_word
=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_NM+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$NM"; then
7992 ac_cv_prog_NM
="$NM" # Let the user override the test.
7994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir
=.
7999 for ac_exec_ext
in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8013 if test -n "$NM"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8015 $as_echo "$NM" >&6; }
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8025 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8026 && test -d ..
/binutils
; then
8027 AR
='${objdir}/../binutils/ar'
8029 # Extract the first word of "ar", so it can be a program name with args.
8030 set dummy
ar; ac_word
=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_AR+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -n "$AR"; then
8037 ac_cv_prog_AR
="$AR" # Let the user override the test.
8039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir
=.
8044 for ac_exec_ext
in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8058 if test -n "$AR"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060 $as_echo "$AR" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8070 # --------------------
8071 # Checks for C headers
8072 # --------------------
8074 # Need to reject headers which give warnings, so that the -Werror bootstrap
8075 # works later. *sigh* This needs to come before all header checks.
8077 ac_c_preproc_warn_flag
=yes
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8080 $as_echo_n "checking for ANSI C header files... " >&6; }
8081 if test "${ac_cv_header_stdc+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8099 if ac_fn_c_try_compile
"$LINENO"; then :
8100 ac_cv_header_stdc
=yes
8102 ac_cv_header_stdc
=no
8104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8106 if test $ac_cv_header_stdc = yes; then
8107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8114 $EGREP "memchr" >/dev
/null
2>&1; then :
8117 ac_cv_header_stdc
=no
8123 if test $ac_cv_header_stdc = yes; then
8124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8131 $EGREP "free" >/dev
/null
2>&1; then :
8134 ac_cv_header_stdc
=no
8140 if test $ac_cv_header_stdc = yes; then
8141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8142 if test "$cross_compiling" = yes; then :
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8149 #if ((' ' & 0x0FF) == 0x020)
8150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8153 # define ISLOWER(c) \
8154 (('a' <= (c) && (c) <= 'i') \
8155 || ('j' <= (c) && (c) <= 'r') \
8156 || ('s' <= (c) && (c) <= 'z'))
8157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8165 for (i = 0; i < 256; i++)
8166 if (XOR (islower (i), ISLOWER (i))
8167 || toupper (i) != TOUPPER (i))
8172 if ac_fn_c_try_run
"$LINENO"; then :
8175 ac_cv_header_stdc
=no
8177 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8178 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8184 $as_echo "$ac_cv_header_stdc" >&6; }
8185 if test $ac_cv_header_stdc = yes; then
8187 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8192 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8193 if test "${ac_cv_header_time+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #include <sys/types.h>
8199 #include <sys/time.h>
8205 if ((struct tm *) 0)
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 ac_cv_header_time
=yes
8214 ac_cv_header_time
=no
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8219 $as_echo "$ac_cv_header_time" >&6; }
8220 if test $ac_cv_header_time = yes; then
8222 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8227 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8228 if test "${gcc_cv_header_string+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8234 #include <strings.h>
8243 if ac_fn_c_try_compile
"$LINENO"; then :
8244 gcc_cv_header_string
=yes
8246 gcc_cv_header_string
=no
8248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8251 $as_echo "$gcc_cv_header_string" >&6; }
8252 if test $gcc_cv_header_string = yes; then
8254 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8259 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8260 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 #include <sys/types.h>
8266 #include <sys/wait.h>
8268 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8279 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8284 if ac_fn_c_try_compile
"$LINENO"; then :
8285 ac_cv_header_sys_wait_h
=yes
8287 ac_cv_header_sys_wait_h
=no
8289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8292 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8293 if test $ac_cv_header_sys_wait_h = yes; then
8295 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8299 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8300 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8301 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8302 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8304 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8305 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8306 eval as_val
=\$
$as_ac_Header
8307 if test "x$as_val" = x
""yes; then :
8308 cat >>confdefs.h
<<_ACEOF
8309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8316 # Check for thread headers.
8317 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8318 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8324 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8325 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8332 # These tests can't be done till we know if we have limits.h.
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8334 $as_echo_n "checking for CHAR_BIT... " >&6; }
8335 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #ifdef HAVE_LIMITS_H
8347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8348 $EGREP "found" >/dev
/null
2>&1; then :
8349 gcc_cv_decl_char_bit
=yes
8351 gcc_cv_decl_char_bit
=no
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8358 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8359 if test $gcc_cv_decl_char_bit = no
; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8361 $as_echo_n "checking number of bits in a byte... " >&6; }
8362 if test "${gcc_cv_c_nbby+set}" = set; then :
8363 $as_echo_n "(cached) " >&6
8367 while test $i -lt 65; do
8368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8375 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8376 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8382 if ac_fn_c_try_compile
"$LINENO"; then :
8383 gcc_cv_c_nbby
=$i; break
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8388 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8392 $as_echo "$gcc_cv_c_nbby" >&6; }
8393 if test $gcc_cv_c_nbby = failed
; then
8394 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8397 cat >>confdefs.h
<<_ACEOF
8398 #define CHAR_BIT $gcc_cv_c_nbby
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8404 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8405 if test "${ac_cv_c_bigendian+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8408 ac_cv_c_bigendian
=unknown
8409 # See if we're dealing with a universal compiler.
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #ifndef __APPLE_CC__
8413 not a universal capable compiler
8418 if ac_fn_c_try_compile
"$LINENO"; then :
8420 # Check for potential -arch flags. It is not universal unless
8421 # there are at least two -arch flags with different values.
8424 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8425 if test -n "$ac_prev"; then
8427 i?
86 | x86_64 | ppc | ppc64
)
8428 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8431 ac_cv_c_bigendian
=universal
8437 elif test "x$ac_word" = "x-arch"; then
8442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8443 if test $ac_cv_c_bigendian = unknown
; then
8444 # See if sys/param.h defines the BYTE_ORDER macro.
8445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 #include <sys/types.h>
8448 #include <sys/param.h>
8453 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8454 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8463 if ac_fn_c_try_compile
"$LINENO"; then :
8464 # It does; now see whether it defined to BIG_ENDIAN or not.
8465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <sys/param.h>
8473 #if BYTE_ORDER != BIG_ENDIAN
8481 if ac_fn_c_try_compile
"$LINENO"; then :
8482 ac_cv_c_bigendian
=yes
8484 ac_cv_c_bigendian
=no
8486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8490 if test $ac_cv_c_bigendian = unknown
; then
8491 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8499 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8507 if ac_fn_c_try_compile
"$LINENO"; then :
8508 # It does; now see whether it defined to _BIG_ENDIAN or not.
8509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8524 if ac_fn_c_try_compile
"$LINENO"; then :
8525 ac_cv_c_bigendian
=yes
8527 ac_cv_c_bigendian
=no
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8533 if test $ac_cv_c_bigendian = unknown
; then
8534 # Compile a test program.
8535 if test "$cross_compiling" = yes; then :
8536 # Try to guess by grepping values from an object file.
8537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 short int ascii_mm[] =
8540 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8541 short int ascii_ii[] =
8542 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8543 int use_ascii (int i) {
8544 return ascii_mm[i] + ascii_ii[i];
8546 short int ebcdic_ii[] =
8547 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8548 short int ebcdic_mm[] =
8549 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8550 int use_ebcdic (int i) {
8551 return ebcdic_mm[i] + ebcdic_ii[i];
8558 return use_ascii (foo) == use_ebcdic (foo);
8563 if ac_fn_c_try_compile
"$LINENO"; then :
8564 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8565 ac_cv_c_bigendian
=yes
8567 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8568 if test "$ac_cv_c_bigendian" = unknown
; then
8569 ac_cv_c_bigendian
=no
8571 # finding both strings is unlikely to happen, but who knows?
8572 ac_cv_c_bigendian
=unknown
8576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 $ac_includes_default
8585 /* Are we little or big endian? From Harbison&Steele. */
8589 char c[sizeof (long int)];
8592 return u.c[sizeof (long int) - 1] == 1;
8598 if ac_fn_c_try_run
"$LINENO"; then :
8599 ac_cv_c_bigendian
=no
8601 ac_cv_c_bigendian
=yes
8603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8610 $as_echo "$ac_cv_c_bigendian" >&6; }
8611 case $ac_cv_c_bigendian in #(
8613 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8619 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8623 as_fn_error
"unknown endianness
8624 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8628 # ----------------------
8629 # Checks for C++ headers
8630 # ----------------------
8633 ac_cpp
='$CXXCPP $CPPFLAGS'
8634 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8638 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8639 if test -z "$CXXCPP"; then
8640 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 # Double quotes because CXXCPP needs to be expanded
8644 for CXXCPP
in "$CXX -E" "/lib/cpp"
8647 for ac_cxx_preproc_warn_flag
in '' yes
8649 # Use a header file that comes with gcc, so configuring glibc
8650 # with a fresh cross-compiler works.
8651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652 # <limits.h> exists even on freestanding compilers.
8653 # On the NeXT, cc -E runs the code through the compiler's parser,
8654 # not just through cpp. "Syntax error" is here to catch this case.
8655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8658 # include <limits.h>
8660 # include <assert.h>
8664 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8667 # Broken: fails on valid input.
8670 rm -f conftest.err conftest.
$ac_ext
8672 # OK, works on sane cases. Now check whether nonexistent headers
8673 # can be detected and how.
8674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #include <ac_nonexistent.h>
8678 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8679 # Broken: success on invalid input.
8682 # Passes both tests.
8686 rm -f conftest.err conftest.
$ac_ext
8689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8690 rm -f conftest.err conftest.
$ac_ext
8691 if $ac_preproc_ok; then :
8696 ac_cv_prog_CXXCPP
=$CXXCPP
8699 CXXCPP
=$ac_cv_prog_CXXCPP
8701 ac_cv_prog_CXXCPP
=$CXXCPP
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8704 $as_echo "$CXXCPP" >&6; }
8706 for ac_cxx_preproc_warn_flag
in '' yes
8708 # Use a header file that comes with gcc, so configuring glibc
8709 # with a fresh cross-compiler works.
8710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711 # <limits.h> exists even on freestanding compilers.
8712 # On the NeXT, cc -E runs the code through the compiler's parser,
8713 # not just through cpp. "Syntax error" is here to catch this case.
8714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8717 # include <limits.h>
8719 # include <assert.h>
8723 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8726 # Broken: fails on valid input.
8729 rm -f conftest.err conftest.
$ac_ext
8731 # OK, works on sane cases. Now check whether nonexistent headers
8732 # can be detected and how.
8733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <ac_nonexistent.h>
8737 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8738 # Broken: success on invalid input.
8741 # Passes both tests.
8745 rm -f conftest.err conftest.
$ac_ext
8748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8749 rm -f conftest.err conftest.
$ac_ext
8750 if $ac_preproc_ok; then :
8753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8756 See \`config.log' for more details." >&5
8757 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8758 See \`config.log' for more details." >&2;}; }
8762 ac_cpp
='$CPP $CPPFLAGS'
8763 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8764 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8765 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8769 ac_cpp
='$CXXCPP $CPPFLAGS'
8770 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8777 for ac_header
in unordered_map
8779 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8780 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8781 cat >>confdefs.h
<<_ACEOF
8782 #define HAVE_UNORDERED_MAP 1
8788 for ac_header
in tr1/unordered_map
8790 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8791 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8792 cat >>confdefs.h
<<_ACEOF
8793 #define HAVE_TR1_UNORDERED_MAP 1
8799 for ac_header
in ext
/hash_map
8801 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8802 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8803 cat >>confdefs.h
<<_ACEOF
8804 #define HAVE_EXT_HASH_MAP 1
8812 ac_cpp
='$CPP $CPPFLAGS'
8813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8823 # These libraries may be used by collect2.
8824 # We may need a special search path to get them linked.
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8826 $as_echo_n "checking for collect2 libraries... " >&6; }
8827 if test "${gcc_cv_collect2_libs+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8831 for libs
in '' -lld -lmld \
8832 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8833 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8839 /* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8854 if ac_fn_c_try_link
"$LINENO"; then :
8855 gcc_cv_collect2_libs
="$libs"; break
8857 rm -f core conftest.err conftest.
$ac_objext \
8858 conftest
$ac_exeext conftest.
$ac_ext
8861 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8864 $as_echo "$gcc_cv_collect2_libs" >&6; }
8865 case $gcc_cv_collect2_libs in
8867 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8871 # When building Ada code on Alpha, we need exc_resume which is usually in
8872 # -lexc. So test for it.
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8876 $as_echo_n "checking for library containing exc_resume... " >&6; }
8877 if test "${ac_cv_search_exc_resume+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8880 ac_func_search_save_LIBS
=$LIBS
8881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8884 /* Override any GCC internal prototype to avoid an error.
8885 Use char because int might match the return type of a GCC
8886 builtin and then its argument prototype would still apply. */
8894 return exc_resume ();
8899 for ac_lib
in '' exc
; do
8900 if test -z "$ac_lib"; then
8901 ac_res
="none required"
8904 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8906 if ac_fn_c_try_link
"$LINENO"; then :
8907 ac_cv_search_exc_resume
=$ac_res
8909 rm -f core conftest.err conftest.
$ac_objext \
8911 if test "${ac_cv_search_exc_resume+set}" = set; then :
8915 if test "${ac_cv_search_exc_resume+set}" = set; then :
8918 ac_cv_search_exc_resume
=no
8921 LIBS
=$ac_func_search_save_LIBS
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8924 $as_echo "$ac_cv_search_exc_resume" >&6; }
8925 ac_res
=$ac_cv_search_exc_resume
8926 if test "$ac_res" != no
; then :
8927 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8935 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8939 $as_echo_n "checking for library containing kstat_open... " >&6; }
8940 if test "${ac_cv_search_kstat_open+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8943 ac_func_search_save_LIBS
=$LIBS
8944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8947 /* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply. */
8957 return kstat_open ();
8962 for ac_lib
in '' kstat
; do
8963 if test -z "$ac_lib"; then
8964 ac_res
="none required"
8967 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8969 if ac_fn_c_try_link
"$LINENO"; then :
8970 ac_cv_search_kstat_open
=$ac_res
8972 rm -f core conftest.err conftest.
$ac_objext \
8974 if test "${ac_cv_search_kstat_open+set}" = set; then :
8978 if test "${ac_cv_search_kstat_open+set}" = set; then :
8981 ac_cv_search_kstat_open
=no
8984 LIBS
=$ac_func_search_save_LIBS
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8987 $as_echo "$ac_cv_search_kstat_open" >&6; }
8988 ac_res
=$ac_cv_search_kstat_open
8989 if test "$ac_res" != no
; then :
8990 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8994 EXTRA_GCC_LIBS
="$LIBS"
8998 # Some systems put ldexp and frexp in libm instead of libc; assume
8999 # they're both in the same place. jcf-dump needs them.
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9003 $as_echo_n "checking for library containing ldexp... " >&6; }
9004 if test "${ac_cv_search_ldexp+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
9007 ac_func_search_save_LIBS
=$LIBS
9008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9011 /* Override any GCC internal prototype to avoid an error.
9012 Use char because int might match the return type of a GCC
9013 builtin and then its argument prototype would still apply. */
9026 for ac_lib
in '' m
; do
9027 if test -z "$ac_lib"; then
9028 ac_res
="none required"
9031 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9033 if ac_fn_c_try_link
"$LINENO"; then :
9034 ac_cv_search_ldexp
=$ac_res
9036 rm -f core conftest.err conftest.
$ac_objext \
9038 if test "${ac_cv_search_ldexp+set}" = set; then :
9042 if test "${ac_cv_search_ldexp+set}" = set; then :
9045 ac_cv_search_ldexp
=no
9048 LIBS
=$ac_func_search_save_LIBS
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9051 $as_echo "$ac_cv_search_ldexp" >&6; }
9052 ac_res
=$ac_cv_search_ldexp
9053 if test "$ac_res" != no
; then :
9054 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9062 # Use <inttypes.h> only if it exists,
9063 # doesn't clash with <sys/types.h>, and declares intmax_t.
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9065 $as_echo_n "checking for inttypes.h... " >&6; }
9066 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #include <sys/types.h>
9072 #include <inttypes.h>
9081 if ac_fn_c_try_compile
"$LINENO"; then :
9082 gcc_cv_header_inttypes_h
=yes
9084 gcc_cv_header_inttypes_h
=no
9086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9090 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9091 if test $gcc_cv_header_inttypes_h = yes; then
9093 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9099 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9100 sysconf strsignal getrusage nl_langinfo \
9101 gettimeofday mbstowcs wcswidth mmap setlocale \
9102 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
9104 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9105 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9106 eval as_val
=\$
$as_ac_var
9107 if test "x$as_val" = x
""yes; then :
9108 cat >>confdefs.h
<<_ACEOF
9109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9116 if test x
$ac_cv_func_mbstowcs = xyes
; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9118 $as_echo_n "checking whether mbstowcs works... " >&6; }
9119 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9122 if test "$cross_compiling" = yes; then :
9123 gcc_cv_func_mbstowcs_works
=yes
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9134 if ac_fn_c_try_run
"$LINENO"; then :
9135 gcc_cv_func_mbstowcs_works
=yes
9137 gcc_cv_func_mbstowcs_works
=no
9139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9145 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9146 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9148 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9153 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9154 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9158 cat >>confdefs.h
<<_ACEOF
9164 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9165 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9169 cat >>confdefs.h
<<_ACEOF
9170 #define caddr_t char *
9177 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9178 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9179 gcc_header_sys_mman_h
=yes
9181 gcc_header_sys_mman_h
=no
9184 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9185 if test "x$ac_cv_func_mmap" = x
""yes; then :
9191 if test "$gcc_header_sys_mman_h" != yes \
9192 ||
test "$gcc_func_mmap" != yes; then
9193 gcc_cv_func_mmap_file
=no
9194 gcc_cv_func_mmap_dev_zero
=no
9195 gcc_cv_func_mmap_anon
=no
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9198 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9199 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9202 # Add a system to this blacklist if
9203 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9204 # memory area containing the same data that you'd get if you applied
9205 # read() to the same fd. The only system known to have a problem here
9206 # is VMS, where text files have record structure.
9209 gcc_cv_func_mmap_file
=no
;;
9211 gcc_cv_func_mmap_file
=yes;;
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9215 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9217 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9218 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9221 # Add a system to this blacklist if it has mmap() but /dev/zero
9222 # does not exist, or if mmapping /dev/zero does not give anonymous
9223 # zeroed pages with both the following properties:
9224 # 1. If you map N consecutive pages in with one call, and then
9225 # unmap any subset of those pages, the pages that were not
9226 # explicitly unmapped remain accessible.
9227 # 2. If you map two adjacent blocks of memory and then unmap them
9228 # both at once, they must both go away.
9229 # Systems known to be in this category are Windows (all variants),
9232 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9233 gcc_cv_func_mmap_dev_zero
=no
;;
9235 gcc_cv_func_mmap_dev_zero
=yes;;
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9239 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9241 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9243 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9244 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <sys/types.h>
9250 #include <sys/mman.h>
9253 #ifndef MAP_ANONYMOUS
9254 #define MAP_ANONYMOUS MAP_ANON
9260 int n = MAP_ANONYMOUS;
9265 if ac_fn_c_try_compile
"$LINENO"; then :
9266 gcc_cv_decl_map_anon
=yes
9268 gcc_cv_decl_map_anon
=no
9270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9273 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9275 if test $gcc_cv_decl_map_anon = no
; then
9276 gcc_cv_func_mmap_anon
=no
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9279 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9280 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9283 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9284 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9285 # doesn't give anonymous zeroed pages with the same properties listed
9286 # above for use of /dev/zero.
9287 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9289 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9290 gcc_cv_func_mmap_anon
=no
;;
9292 gcc_cv_func_mmap_anon
=yes;;
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9296 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9300 if test $gcc_cv_func_mmap_file = yes; then
9302 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9305 if test $gcc_cv_func_mmap_dev_zero = yes; then
9307 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9310 if test $gcc_cv_func_mmap_anon = yes; then
9312 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9319 # Under VMS, vfork works very differently than on Unix. The standard test
9320 # won't work, and it isn't easily adaptable. It makes more sense to
9322 ac_cv_func_vfork_works
=yes
9325 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9326 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9330 cat >>confdefs.h
<<_ACEOF
9336 for ac_header
in vfork.h
9338 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9339 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9340 cat >>confdefs.h
<<_ACEOF
9341 #define HAVE_VFORK_H 1
9347 for ac_func
in fork vfork
9349 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9350 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9351 eval as_val
=\$
$as_ac_var
9352 if test "x$as_val" = x
""yes; then :
9353 cat >>confdefs.h
<<_ACEOF
9354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9360 if test "x$ac_cv_func_fork" = xyes
; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9362 $as_echo_n "checking for working fork... " >&6; }
9363 if test "${ac_cv_func_fork_works+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9366 if test "$cross_compiling" = yes; then :
9367 ac_cv_func_fork_works
=cross
9369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 $ac_includes_default
9376 /* By Ruediger Kuhlmann. */
9383 if ac_fn_c_try_run
"$LINENO"; then :
9384 ac_cv_func_fork_works
=yes
9386 ac_cv_func_fork_works
=no
9388 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9389 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9394 $as_echo "$ac_cv_func_fork_works" >&6; }
9397 ac_cv_func_fork_works
=$ac_cv_func_fork
9399 if test "x$ac_cv_func_fork_works" = xcross
; then
9401 *-*-amigaos* |
*-*-msdosdjgpp*)
9402 # Override, as these systems have only a dummy fork() stub
9403 ac_cv_func_fork_works
=no
9406 ac_cv_func_fork_works
=yes
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9410 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9412 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9413 if test "x$ac_cv_func_vfork" = xyes
; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9415 $as_echo_n "checking for working vfork... " >&6; }
9416 if test "${ac_cv_func_vfork_works+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9419 if test "$cross_compiling" = yes; then :
9420 ac_cv_func_vfork_works
=cross
9422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424 /* Thanks to Paul Eggert for this test. */
9425 $ac_includes_default
9426 #include <sys/wait.h>
9430 /* On some sparc systems, changes by the child to local and incoming
9431 argument registers are propagated back to the parent. The compiler
9432 is told about this with #include <vfork.h>, but some compilers
9433 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9434 static variable whose address is put into a register that is
9435 clobbered by the vfork. */
9438 sparc_address_test (int arg)
9440 sparc_address_test (arg) int arg;
9461 pid_t parent = getpid ();
9464 sparc_address_test (0);
9469 /* Here is another test for sparc vfork register problems. This
9470 test uses lots of local variables, at least as many local
9471 variables as main has allocated so far including compiler
9472 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9473 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9474 reuse the register of parent for one of the local variables,
9475 since it will think that parent can't possibly be used any more
9476 in this routine. Assigning to the local variable will thus
9477 munge parent in the parent process. */
9479 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9480 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9481 /* Convince the compiler that p..p7 are live; otherwise, it might
9482 use the same hardware register for all 8 local variables. */
9483 if (p != p1 || p != p2 || p != p3 || p != p4
9484 || p != p5 || p != p6 || p != p7)
9487 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9488 from child file descriptors. If the child closes a descriptor
9489 before it execs or exits, this munges the parent's descriptor
9490 as well. Test for this by closing stdout in the child. */
9491 _exit(close(fileno(stdout)) != 0);
9496 while (wait(&status) != child)
9499 /* Was there some problem with vforking? */
9502 /* Did the child fail? (This shouldn't happen.) */
9505 /* Did the vfork/compiler bug occur? */
9506 || parent != getpid()
9508 /* Did the file descriptor bug occur? */
9509 || fstat(fileno(stdout), &st) != 0
9514 if ac_fn_c_try_run
"$LINENO"; then :
9515 ac_cv_func_vfork_works
=yes
9517 ac_cv_func_vfork_works
=no
9519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9525 $as_echo "$ac_cv_func_vfork_works" >&6; }
9528 if test "x$ac_cv_func_fork_works" = xcross
; then
9529 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9531 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9534 if test "x$ac_cv_func_vfork_works" = xyes
; then
9536 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9540 $as_echo "#define vfork fork" >>confdefs.h
9543 if test "x$ac_cv_func_fork_works" = xyes
; then
9545 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9550 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9551 # iconv() prototype.
9553 ac_cpp
='$CXXCPP $CPPFLAGS'
9554 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9559 if test "X$prefix" = "XNONE"; then
9560 acl_final_prefix
="$ac_default_prefix"
9562 acl_final_prefix
="$prefix"
9564 if test "X$exec_prefix" = "XNONE"; then
9565 acl_final_exec_prefix
='${prefix}'
9567 acl_final_exec_prefix
="$exec_prefix"
9569 acl_save_prefix
="$prefix"
9570 prefix
="$acl_final_prefix"
9571 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9572 prefix
="$acl_save_prefix"
9575 # Check whether --with-gnu-ld was given.
9576 if test "${with_gnu_ld+set}" = set; then :
9577 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9582 # Prepare PATH_SEPARATOR.
9583 # The user is always right.
9584 if test "${PATH_SEPARATOR+set}" != set; then
9585 echo "#! /bin/sh" >conf$$.sh
9586 echo "exit 0" >>conf$$.sh
9588 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9596 if test "$GCC" = yes; then
9597 # Check if gcc -print-prog-name=ld gives a path.
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9599 $as_echo_n "checking for ld used by GCC... " >&6; }
9602 # gcc leaves a trailing carriage return which upsets mingw
9603 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9605 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9608 # Accept absolute paths.
9609 [\\/]* |
[A-Za-z
]:[\\/]*)
9610 re_direlt
='/[^/][^/]*/\.\./'
9611 # Canonicalize the path of ld
9612 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9613 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9614 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9616 test -z "$LD" && LD
="$ac_prog"
9619 # If it fails, then pretend we aren't using GCC.
9623 # If it is relative, then search for the first ld in PATH.
9627 elif test "$with_gnu_ld" = yes; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9629 $as_echo_n "checking for GNU ld... " >&6; }
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9632 $as_echo_n "checking for non-GNU ld... " >&6; }
9634 if test "${acl_cv_path_LD+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9637 if test -z "$LD"; then
9638 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9639 for ac_dir
in $PATH; do
9640 test -z "$ac_dir" && ac_dir
=.
9641 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9642 acl_cv_path_LD
="$ac_dir/$ac_prog"
9643 # Check to see if the program is GNU ld. I'd rather use --version,
9644 # but apparently some GNU ld's only accept -v.
9645 # Break only if it was the GNU/non-GNU ld that we prefer.
9646 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9647 test "$with_gnu_ld" != no
&& break
9649 test "$with_gnu_ld" != yes && break
9655 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9659 LD
="$acl_cv_path_LD"
9660 if test -n "$LD"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9662 $as_echo "$LD" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9667 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9669 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9670 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9673 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9674 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9675 acl_cv_prog_gnu_ld
=yes
9677 acl_cv_prog_gnu_ld
=no
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9681 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9682 with_gnu_ld
=$acl_cv_prog_gnu_ld
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9687 $as_echo_n "checking for shared library run path origin... " >&6; }
9688 if test "${acl_cv_rpath+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9692 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9693 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9700 $as_echo "$acl_cv_rpath" >&6; }
9702 libext
="$acl_cv_libext"
9703 shlibext
="$acl_cv_shlibext"
9704 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9705 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9706 hardcode_direct
="$acl_cv_hardcode_direct"
9707 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9708 # Check whether --enable-rpath was given.
9709 if test "${enable_rpath+set}" = set; then :
9710 enableval
=$enable_rpath; :
9724 acl_save_prefix
="$prefix"
9725 prefix
="$acl_final_prefix"
9726 acl_save_exec_prefix
="$exec_prefix"
9727 exec_prefix
="$acl_final_exec_prefix"
9729 eval additional_includedir
=\"$includedir\"
9730 eval additional_libdir
=\"$libdir\"
9732 exec_prefix
="$acl_save_exec_prefix"
9733 prefix
="$acl_save_prefix"
9736 # Check whether --with-libiconv-prefix was given.
9737 if test "${with_libiconv_prefix+set}" = set; then :
9738 withval
=$with_libiconv_prefix;
9739 if test "X$withval" = "Xno"; then
9742 if test "X$withval" = "X"; then
9744 acl_save_prefix
="$prefix"
9745 prefix
="$acl_final_prefix"
9746 acl_save_exec_prefix
="$exec_prefix"
9747 exec_prefix
="$acl_final_exec_prefix"
9749 eval additional_includedir
=\"$includedir\"
9750 eval additional_libdir
=\"$libdir\"
9752 exec_prefix
="$acl_save_exec_prefix"
9753 prefix
="$acl_save_prefix"
9756 additional_includedir
="$withval/include"
9757 additional_libdir
="$withval/lib"
9768 names_already_handled
=
9769 names_next_round
='iconv '
9770 while test -n "$names_next_round"; do
9771 names_this_round
="$names_next_round"
9773 for name
in $names_this_round; do
9775 for n
in $names_already_handled; do
9776 if test "$n" = "$name"; then
9781 if test -z "$already_handled"; then
9782 names_already_handled
="$names_already_handled $name"
9783 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9784 eval value
=\"\
$HAVE_LIB$uppername\"
9785 if test -n "$value"; then
9786 if test "$value" = yes; then
9787 eval value
=\"\
$LIB$uppername\"
9788 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9789 eval value
=\"\
$LTLIB$uppername\"
9790 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9799 if test $use_additional = yes; then
9800 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9801 found_dir
="$additional_libdir"
9802 found_so
="$additional_libdir/lib$name.$shlibext"
9803 if test -f "$additional_libdir/lib$name.la"; then
9804 found_la
="$additional_libdir/lib$name.la"
9807 if test -f "$additional_libdir/lib$name.$libext"; then
9808 found_dir
="$additional_libdir"
9809 found_a
="$additional_libdir/lib$name.$libext"
9810 if test -f "$additional_libdir/lib$name.la"; then
9811 found_la
="$additional_libdir/lib$name.la"
9816 if test "X$found_dir" = "X"; then
9817 for x
in $LDFLAGS $LTLIBICONV; do
9819 acl_save_prefix
="$prefix"
9820 prefix
="$acl_final_prefix"
9821 acl_save_exec_prefix
="$exec_prefix"
9822 exec_prefix
="$acl_final_exec_prefix"
9824 exec_prefix
="$acl_save_exec_prefix"
9825 prefix
="$acl_save_prefix"
9829 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9830 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9832 found_so
="$dir/lib$name.$shlibext"
9833 if test -f "$dir/lib$name.la"; then
9834 found_la
="$dir/lib$name.la"
9837 if test -f "$dir/lib$name.$libext"; then
9839 found_a
="$dir/lib$name.$libext"
9840 if test -f "$dir/lib$name.la"; then
9841 found_la
="$dir/lib$name.la"
9847 if test "X$found_dir" != "X"; then
9852 if test "X$found_dir" != "X"; then
9853 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9854 if test "X$found_so" != "X"; then
9855 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9856 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9859 for x
in $ltrpathdirs; do
9860 if test "X$x" = "X$found_dir"; then
9865 if test -z "$haveit"; then
9866 ltrpathdirs
="$ltrpathdirs $found_dir"
9868 if test "$hardcode_direct" = yes; then
9869 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9871 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9872 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9874 for x
in $rpathdirs; do
9875 if test "X$x" = "X$found_dir"; then
9880 if test -z "$haveit"; then
9881 rpathdirs
="$rpathdirs $found_dir"
9885 for x
in $LDFLAGS $LIBICONV; do
9887 acl_save_prefix
="$prefix"
9888 prefix
="$acl_final_prefix"
9889 acl_save_exec_prefix
="$exec_prefix"
9890 exec_prefix
="$acl_final_exec_prefix"
9892 exec_prefix
="$acl_save_exec_prefix"
9893 prefix
="$acl_save_prefix"
9895 if test "X$x" = "X-L$found_dir"; then
9900 if test -z "$haveit"; then
9901 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9903 if test "$hardcode_minus_L" != no
; then
9904 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9906 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9912 if test "X$found_a" != "X"; then
9913 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9915 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9918 additional_includedir
=
9919 case "$found_dir" in
9921 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9922 additional_includedir
="$basedir/include"
9925 if test "X$additional_includedir" != "X"; then
9926 if test "X$additional_includedir" != "X/usr/include"; then
9928 if test "X$additional_includedir" = "X/usr/local/include"; then
9929 if test -n "$GCC"; then
9931 linux
*) haveit
=yes;;
9935 if test -z "$haveit"; then
9936 for x
in $CPPFLAGS $INCICONV; do
9938 acl_save_prefix
="$prefix"
9939 prefix
="$acl_final_prefix"
9940 acl_save_exec_prefix
="$exec_prefix"
9941 exec_prefix
="$acl_final_exec_prefix"
9943 exec_prefix
="$acl_save_exec_prefix"
9944 prefix
="$acl_save_prefix"
9946 if test "X$x" = "X-I$additional_includedir"; then
9951 if test -z "$haveit"; then
9952 if test -d "$additional_includedir"; then
9953 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9959 if test -n "$found_la"; then
9960 save_libdir
="$libdir"
9962 */* |
*\\*) .
"$found_la" ;;
9963 *) .
"./$found_la" ;;
9965 libdir
="$save_libdir"
9966 for dep
in $dependency_libs; do
9969 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9970 if test "X$additional_libdir" != "X/usr/lib"; then
9972 if test "X$additional_libdir" = "X/usr/local/lib"; then
9973 if test -n "$GCC"; then
9975 linux
*) haveit
=yes;;
9979 if test -z "$haveit"; then
9981 for x
in $LDFLAGS $LIBICONV; do
9983 acl_save_prefix
="$prefix"
9984 prefix
="$acl_final_prefix"
9985 acl_save_exec_prefix
="$exec_prefix"
9986 exec_prefix
="$acl_final_exec_prefix"
9988 exec_prefix
="$acl_save_exec_prefix"
9989 prefix
="$acl_save_prefix"
9991 if test "X$x" = "X-L$additional_libdir"; then
9996 if test -z "$haveit"; then
9997 if test -d "$additional_libdir"; then
9998 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10002 for x
in $LDFLAGS $LTLIBICONV; do
10004 acl_save_prefix
="$prefix"
10005 prefix
="$acl_final_prefix"
10006 acl_save_exec_prefix
="$exec_prefix"
10007 exec_prefix
="$acl_final_exec_prefix"
10009 exec_prefix
="$acl_save_exec_prefix"
10010 prefix
="$acl_save_prefix"
10012 if test "X$x" = "X-L$additional_libdir"; then
10017 if test -z "$haveit"; then
10018 if test -d "$additional_libdir"; then
10019 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10026 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10027 if test "$enable_rpath" != no
; then
10029 for x
in $rpathdirs; do
10030 if test "X$x" = "X$dir"; then
10035 if test -z "$haveit"; then
10036 rpathdirs
="$rpathdirs $dir"
10039 for x
in $ltrpathdirs; do
10040 if test "X$x" = "X$dir"; then
10045 if test -z "$haveit"; then
10046 ltrpathdirs
="$ltrpathdirs $dir"
10051 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10054 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10057 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10058 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10064 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10065 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10071 if test "X$rpathdirs" != "X"; then
10072 if test -n "$hardcode_libdir_separator"; then
10074 for found_dir
in $rpathdirs; do
10075 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10077 acl_save_libdir
="$libdir"
10079 eval flag
=\"$hardcode_libdir_flag_spec\"
10080 libdir
="$acl_save_libdir"
10081 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10083 for found_dir
in $rpathdirs; do
10084 acl_save_libdir
="$libdir"
10085 libdir
="$found_dir"
10086 eval flag
=\"$hardcode_libdir_flag_spec\"
10087 libdir
="$acl_save_libdir"
10088 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10092 if test "X$ltrpathdirs" != "X"; then
10093 for found_dir
in $ltrpathdirs; do
10094 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10104 am_save_CPPFLAGS
="$CPPFLAGS"
10106 for element
in $INCICONV; do
10108 for x
in $CPPFLAGS; do
10110 acl_save_prefix
="$prefix"
10111 prefix
="$acl_final_prefix"
10112 acl_save_exec_prefix
="$exec_prefix"
10113 exec_prefix
="$acl_final_exec_prefix"
10115 exec_prefix
="$acl_save_exec_prefix"
10116 prefix
="$acl_save_prefix"
10118 if test "X$x" = "X$element"; then
10123 if test -z "$haveit"; then
10124 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10130 $as_echo_n "checking for iconv... " >&6; }
10131 if test "${am_cv_func_iconv+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10135 am_cv_func_iconv
="no, consider installing GNU libiconv"
10137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 #include <stdlib.h>
10144 iconv_t cd = iconv_open("","");
10145 iconv(cd,NULL,NULL,NULL,NULL);
10151 if ac_fn_cxx_try_link
"$LINENO"; then :
10152 am_cv_func_iconv
=yes
10154 rm -f core conftest.err conftest.
$ac_objext \
10155 conftest
$ac_exeext conftest.
$ac_ext
10156 if test "$am_cv_func_iconv" != yes; then
10157 am_save_LIBS
="$LIBS"
10158 LIBS
="$LIBS $LIBICONV"
10159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161 #include <stdlib.h>
10166 iconv_t cd = iconv_open("","");
10167 iconv(cd,NULL,NULL,NULL,NULL);
10173 if ac_fn_cxx_try_link
"$LINENO"; then :
10174 am_cv_lib_iconv
=yes
10175 am_cv_func_iconv
=yes
10177 rm -f core conftest.err conftest.
$ac_objext \
10178 conftest
$ac_exeext conftest.
$ac_ext
10179 LIBS
="$am_save_LIBS"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10184 $as_echo "$am_cv_func_iconv" >&6; }
10185 if test "$am_cv_func_iconv" = yes; then
10187 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10190 if test "$am_cv_lib_iconv" = yes; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10192 $as_echo_n "checking how to link with libiconv... " >&6; }
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10194 $as_echo "$LIBICONV" >&6; }
10196 CPPFLAGS
="$am_save_CPPFLAGS"
10203 if test "$am_cv_func_iconv" = yes; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10205 $as_echo_n "checking for iconv declaration... " >&6; }
10206 if test "${am_cv_proto_iconv+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10213 #include <stdlib.h>
10219 #if defined(__STDC__) || defined(__cplusplus)
10220 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10233 if ac_fn_cxx_try_compile
"$LINENO"; then :
10234 am_cv_proto_iconv_arg1
=""
10236 am_cv_proto_iconv_arg1
="const"
10238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10239 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);"
10242 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10244 }$am_cv_proto_iconv" >&5
10246 }$am_cv_proto_iconv" >&6; }
10248 cat >>confdefs.h
<<_ACEOF
10249 #define ICONV_CONST $am_cv_proto_iconv_arg1
10255 ac_cpp
='$CPP $CPPFLAGS'
10256 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10261 # Until we have in-tree GNU iconv:
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10267 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10268 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
10271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273 #include <locale.h>
10282 if ac_fn_c_try_link
"$LINENO"; then :
10283 am_cv_val_LC_MESSAGES
=yes
10285 am_cv_val_LC_MESSAGES
=no
10287 rm -f core conftest.err conftest.
$ac_objext \
10288 conftest
$ac_exeext conftest.
$ac_ext
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10291 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10292 if test $am_cv_val_LC_MESSAGES = yes; then
10294 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10301 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10302 if test "${am_cv_langinfo_codeset+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 #include <langinfo.h>
10311 char* cs = nl_langinfo(CODESET);
10316 if ac_fn_c_try_link
"$LINENO"; then :
10317 am_cv_langinfo_codeset
=yes
10319 am_cv_langinfo_codeset
=no
10321 rm -f core conftest.err conftest.
$ac_objext \
10322 conftest
$ac_exeext conftest.
$ac_ext
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10326 $as_echo "$am_cv_langinfo_codeset" >&6; }
10327 if test $am_cv_langinfo_codeset = yes; then
10329 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10334 # We will need to find libiberty.h and ansidecl.h
10335 saved_CFLAGS
="$CFLAGS"
10336 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10337 saved_CXXFLAGS
="$CXXFLAGS"
10338 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10339 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10340 strsignal strstr stpcpy strverscmp \
10341 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10342 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
10344 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10346 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10347 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10348 $as_echo_n "(cached) " >&6
10350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10353 #define $ac_tr_decl 1
10355 #include "ansidecl.h"
10356 #include "system.h"
10362 char *(*pfn) = (char *(*)) $ac_func ;
10368 if ac_fn_c_try_compile
"$LINENO"; then :
10369 eval "gcc_cv_have_decl_$ac_func=yes"
10371 eval "gcc_cv_have_decl_$ac_func=no"
10373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10376 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10378 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10379 #define $ac_tr_decl 1
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10385 #define $ac_tr_decl 0
10393 for ac_func
in getrlimit setrlimit getrusage
10395 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10397 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10398 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10399 $as_echo_n "(cached) " >&6
10401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 #define $ac_tr_decl 1
10406 #include "ansidecl.h"
10407 #include "system.h"
10408 #ifdef HAVE_SYS_RESOURCE_H
10409 #include <sys/resource.h>
10417 char *(*pfn) = (char *(*)) $ac_func ;
10423 if ac_fn_c_try_compile
"$LINENO"; then :
10424 eval "gcc_cv_have_decl_$ac_func=yes"
10426 eval "gcc_cv_have_decl_$ac_func=no"
10428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10431 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10433 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10434 #define $ac_tr_decl 1
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10440 #define $ac_tr_decl 0
10448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10451 #include "ansidecl.h"
10452 #include "system.h"
10453 #ifdef HAVE_SYS_RESOURCE_H
10454 #include <sys/resource.h>
10465 if ac_fn_c_try_compile
"$LINENO"; then :
10469 $as_echo "#define rlim_t long" >>confdefs.h
10472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10475 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10476 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10477 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10478 for ac_func
in ldgetname
10480 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10482 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10483 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10484 $as_echo_n "(cached) " >&6
10486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 #define $ac_tr_decl 1
10491 #include "ansidecl.h"
10492 #include "system.h"
10493 #ifdef HAVE_LDFCN_H
10504 char *(*pfn) = (char *(*)) $ac_func ;
10510 if ac_fn_c_try_compile
"$LINENO"; then :
10511 eval "gcc_cv_have_decl_$ac_func=yes"
10513 eval "gcc_cv_have_decl_$ac_func=no"
10515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10518 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10520 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10521 #define $ac_tr_decl 1
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10527 #define $ac_tr_decl 0
10535 for ac_func
in times
10537 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10539 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10540 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10541 $as_echo_n "(cached) " >&6
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10546 #define $ac_tr_decl 1
10548 #include "ansidecl.h"
10549 #include "system.h"
10550 #ifdef HAVE_SYS_TIMES_H
10551 #include <sys/times.h>
10559 char *(*pfn) = (char *(*)) $ac_func ;
10565 if ac_fn_c_try_compile
"$LINENO"; then :
10566 eval "gcc_cv_have_decl_$ac_func=yes"
10568 eval "gcc_cv_have_decl_$ac_func=no"
10570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10576 #define $ac_tr_decl 1
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10582 #define $ac_tr_decl 0
10590 for ac_func
in sigaltstack
10592 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10594 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10595 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10596 $as_echo_n "(cached) " >&6
10598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10601 #define $ac_tr_decl 1
10603 #include "ansidecl.h"
10604 #include "system.h"
10605 #include <signal.h>
10612 char *(*pfn) = (char *(*)) $ac_func ;
10618 if ac_fn_c_try_compile
"$LINENO"; then :
10619 eval "gcc_cv_have_decl_$ac_func=yes"
10621 eval "gcc_cv_have_decl_$ac_func=no"
10623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10626 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10628 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10629 #define $ac_tr_decl 1
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10635 #define $ac_tr_decl 0
10643 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10646 ac_cpp
='$CXXCPP $CPPFLAGS'
10647 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10648 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10651 for ac_func
in madvise
10653 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10655 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10656 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10657 $as_echo_n "(cached) " >&6
10659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 #define $ac_tr_decl 1
10664 #include "ansidecl.h"
10665 #include "system.h"
10672 char *(*pfn) = (char *(*)) $ac_func ;
10678 if ac_fn_cxx_try_compile
"$LINENO"; then :
10679 eval "gcc_cv_have_decl_$ac_func=yes"
10681 eval "gcc_cv_have_decl_$ac_func=no"
10683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10686 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10688 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10689 #define $ac_tr_decl 1
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10695 #define $ac_tr_decl 0
10703 ac_cpp
='$CPP $CPPFLAGS'
10704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10709 # More time-related stuff.
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10711 $as_echo_n "checking for struct tms... " >&6; }
10712 if test "${ac_cv_struct_tms+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 #include "ansidecl.h"
10720 #include "system.h"
10721 #ifdef HAVE_SYS_TIMES_H
10722 #include <sys/times.h>
10733 if ac_fn_c_try_compile
"$LINENO"; then :
10734 ac_cv_struct_tms
=yes
10736 ac_cv_struct_tms
=no
10738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10741 $as_echo "$ac_cv_struct_tms" >&6; }
10742 if test $ac_cv_struct_tms = yes; then
10744 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10748 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10749 # revisit after autoconf 2.50.
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10751 $as_echo_n "checking for clock_t... " >&6; }
10752 if test "${gcc_cv_type_clock_t+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 #include "ansidecl.h"
10760 #include "system.h"
10770 if ac_fn_c_try_compile
"$LINENO"; then :
10771 gcc_cv_type_clock_t
=yes
10773 gcc_cv_type_clock_t
=no
10775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10778 $as_echo "$gcc_cv_type_clock_t" >&6; }
10779 if test $gcc_cv_type_clock_t = yes; then
10781 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10785 # Check if F_SETLKW is supported by fcntl.
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10787 $as_echo_n "checking for F_SETLKW... " >&6; }
10788 if test "${ac_cv_f_setlkw+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10805 return fcntl (1, F_SETLKW, &fl);
10810 if ac_fn_c_try_compile
"$LINENO"; then :
10815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10818 $as_echo "$ac_cv_f_setlkw" >&6; }
10819 if test $ac_cv_f_setlkw = yes; then
10821 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10825 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10826 CFLAGS
="$saved_CFLAGS"
10827 CXXFLAGS
="$saved_CXXFLAGS"
10829 # mkdir takes a single argument on some systems.
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10831 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10832 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10838 #include <sys/types.h>
10839 #ifdef HAVE_SYS_STAT_H
10840 # include <sys/stat.h>
10842 #ifdef HAVE_UNISTD_H
10843 # include <unistd.h>
10845 #ifdef HAVE_DIRECT_H
10846 # include <direct.h>
10856 if ac_fn_c_try_compile
"$LINENO"; then :
10857 gcc_cv_mkdir_takes_one_arg
=no
10859 gcc_cv_mkdir_takes_one_arg
=yes
10861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10864 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10865 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10867 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10878 # With Setjmp/Longjmp based exception handling.
10879 # Check whether --enable-sjlj-exceptions was given.
10880 if test "${enable_sjlj_exceptions+set}" = set; then :
10881 enableval
=$enable_sjlj_exceptions; case $target in
10883 if test $enableval != yes; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10885 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10890 force_sjlj_exceptions
=yes
10894 force_sjlj_exceptions
=yes
10898 force_sjlj_exceptions
=no
10903 if test $force_sjlj_exceptions = yes; then
10904 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10906 cat >>confdefs.h
<<_ACEOF
10907 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10912 # --------------------------------------------------------
10913 # Build, host, and target specific configuration fragments
10914 # --------------------------------------------------------
10916 # Collect build-machine-specific information.
10917 .
${srcdir}/config.build
10919 # Collect host-machine-specific information.
10920 .
${srcdir}/config.
host
10924 # Collect target-machine-specific information.
10925 .
${srcdir}/config.gcc
10927 extra_objs
="${host_extra_objs} ${extra_objs}"
10928 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10930 # Default the target-machine variables that were not explicitly set.
10931 if test x
"$tm_file" = x
10932 then tm_file
=$cpu_type/$cpu_type.h
; fi
10934 if test x
"$extra_headers" = x
10935 then extra_headers
=; fi
10937 if test x
$md_file = x
10938 then md_file
=$cpu_type/$cpu_type.md
; fi
10940 if test x
$out_file = x
10941 then out_file
=$cpu_type/$cpu_type.c
; fi
10943 if test x
"$tmake_file" = x
10944 then tmake_file
=$cpu_type/t-
$cpu_type
10947 # Support --enable-initfini-array.
10948 if test x
$enable_initfini_array != xno
; then
10949 tm_file
="${tm_file} initfini-array.h"
10952 if test x
"$dwarf2" = xyes
10953 then tm_file
="$tm_file tm-dwarf2.h"
10956 # Say what files are being used for the output code and MD file.
10957 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10958 echo "Using \`$srcdir/config/$md_file' as machine description file."
10960 # If any of the xm_file variables contain nonexistent files, warn
10961 # about them and drop them.
10964 for x
in $build_xm_file; do
10965 if test -f $srcdir/config
/$x
10967 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10968 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10971 build_xm_file
="$bx"
10974 for x
in $host_xm_file; do
10975 if test -f $srcdir/config
/$x
10977 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10978 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10984 for x
in $xm_file; do
10985 if test -f $srcdir/config
/$x
10987 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10988 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10994 for f
in $tm_file; do
10997 if test $count = ax
; then
10998 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11000 echo "Using the following target machine macro files:"
11001 for f
in $tm_file; do
11002 echo " $srcdir/config/$f"
11006 if test x
$need_64bit_hwint = xyes
; then
11008 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11012 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11014 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11018 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11020 cat >>confdefs.h
<<_ACEOF
11021 #define HAVE_GNU_LD $gnu_ld_bool
11025 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11027 cat >>confdefs.h
<<_ACEOF
11028 #define HAVE_GNU_AS $gnu_as_bool
11033 for f
in $host_xm_file; do
11036 if test $count = a
; then
11038 elif test $count = ax
; then
11039 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11041 echo "Using the following host machine macro files:"
11042 for f
in $host_xm_file; do
11043 echo " $srcdir/config/$f"
11046 echo "Using ${out_host_hook_obj} for host machine hooks."
11048 if test "$host_xm_file" != "$build_xm_file"; then
11050 for f
in $build_xm_file; do
11053 if test $count = a
; then
11055 elif test $count = ax
; then
11056 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11058 echo "Using the following build machine macro files:"
11059 for f
in $build_xm_file; do
11060 echo " $srcdir/config/$f"
11065 if test -n "$configured_native_system_header_dir"; then
11066 native_system_header_dir
=$configured_native_system_header_dir
11068 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11072 powerpc
*-*-darwin*)
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11074 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11075 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 #include <sys/cdefs.h>
11082 #include <sys/signal.h>
11083 #include <ucontext.h>
11084 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11087 if ac_fn_c_try_compile
"$LINENO"; then :
11088 gcc_cv_mcontext_underscores
=no
11090 gcc_cv_mcontext_underscores
=yes
11092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11095 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11096 if test $gcc_cv_mcontext_underscores = yes; then
11098 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11108 # Check if a valid thread package
11109 case ${enable_threads} in
11112 target_thread_file
='single'
11116 target_thread_file
='single'
11118 aix | dce | lynx | mipssde | posix | rtems | \
11119 single | tpf | vxworks | win32
)
11120 target_thread_file
=${enable_threads}
11123 echo "${enable_threads} is an unknown thread package" 1>&2
11128 if test x
${thread_file} = x
; then
11129 # No thread file set by target-specific clauses in config.gcc,
11130 # so use file chosen by default logic above
11131 thread_file
=${target_thread_file}
11139 if test x
$enable___cxa_atexit = xyes || \
11140 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11141 if test x
$host = x
$target; then
11143 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11144 # keyed to flag_use_cxa_atexit
11152 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11153 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11156 echo "__cxa_atexit can't be enabled on this target"
11162 # We can't check for __cxa_atexit when building a cross, so assume
11166 if test x
$use_cxa_atexit = xyes
; then
11168 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11173 # Look for a file containing extra machine modes.
11174 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11175 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11178 cat >>confdefs.h
<<_ACEOF
11179 #define EXTRA_MODES_FILE "config/$extra_modes"
11184 # Convert extra_options into a form suitable for Makefile use.
11187 for f
in $extra_options; do
11188 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11189 all_opt_files
="$all_opt_files $srcdir/config/$f"
11193 # auto-host.h is the file containing items generated by autoconf and is
11194 # the first file included by config.h.
11195 # If host=build, it is correct to have bconfig include auto-host.h
11196 # as well. If host!=build, we are in error and need to do more
11197 # work to find out the build config parameters.
11198 if test x
$host = x
$build
11200 build_auto
=auto-host.h
11202 # We create a subdir, then run autoconf in the subdir.
11203 # To prevent recursion we set host and build for the new
11204 # invocation of configure to the build for this invocation
11211 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11212 *) realsrcdir
=..
/${srcdir};;
11214 # Clearing GMPINC is necessary to prevent host headers being
11215 # used by the build compiler. Defining GENERATOR_FILE stops
11216 # system.h from including gmp.h.
11217 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11218 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11219 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11220 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11221 ${realsrcdir}/configure \
11222 --enable-languages=${enable_languages-all} \
11223 --target=$target_alias --host=$build_alias --build=$build_alias
11225 # We just finished tests for the build machine, so rename
11226 # the file auto-build.h in the gcc directory.
11227 mv auto-host.h ..
/auto-build.h
11230 build_auto
=auto-build.h
11234 tm_file
="${tm_file} defaults.h"
11235 tm_p_file
="${tm_p_file} tm-preds.h"
11236 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11237 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11238 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11239 # put this back in temporarily.
11240 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11246 # Compile in configure arguments.
11247 if test -f configargs.h
; then
11248 # Being re-configured.
11249 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11250 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11252 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11255 # Double all backslashes and backslash all quotes to turn
11256 # gcc_config_arguments into a C string.
11257 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11258 $gcc_config_arguments
11260 gcc_config_arguments_str
=`cat conftest.out`
11263 cat > configargs.h
<<EOF
11264 /* Generated automatically. */
11265 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11266 static const char thread_model[] = "$thread_file";
11268 static const struct {
11269 const char *name, *value;
11270 } configure_default_options[] = $configure_default_options;
11273 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11274 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11275 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11276 if test -f $srcdir/REVISION
; then
11277 gcc_REVISION
=`cat $srcdir/REVISION`
11281 cat > plugin-version.h
<<EOF
11282 #include "configargs.h"
11284 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11285 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11286 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11287 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11289 static char basever[] = "$gcc_BASEVER";
11290 static char datestamp[] = "$gcc_DATESTAMP";
11291 static char devphase[] = "$gcc_DEVPHASE";
11292 static char revision[] = "$gcc_REVISION";
11294 /* FIXME plugins: We should make the version information more precise.
11295 One way to do is to add a checksum. */
11297 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11298 devphase, revision,
11299 configuration_arguments};
11302 # Internationalization
11303 # If we haven't got the data from the intl directory,
11304 # assume NLS is disabled.
11313 if test -f ..
/intl
/config.intl
; then
11314 . ..
/intl
/config.intl
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11317 $as_echo_n "checking whether NLS is requested... " >&6; }
11318 if test x
"$USE_NLS" != xyes
; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11323 $as_echo "yes" >&6; }
11325 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11329 $as_echo_n "checking for catalogs to be installed... " >&6; }
11330 # Look for .po and .gmo files in the source directory.
11333 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11334 # If there aren't any .gmo files the shell will give us the
11335 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11337 case "$cat" in *\
**)
11340 # The quadruple backslash is collapsed to a double backslash
11341 # by the backticks, then collapsed again by the double quotes,
11342 # leaving us with one backslash in the sed expression (right
11343 # before the dot that mustn't act as a wildcard).
11344 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11345 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11346 # The user is allowed to set LINGUAS to a list of languages to
11347 # install catalogs for. If it's empty that means "all of them."
11348 if test "x$LINGUAS" = x
; then
11349 CATALOGS
="$CATALOGS $cat"
11350 XLINGUAS
="$XLINGUAS $lang"
11352 case "$LINGUAS" in *$lang*)
11353 CATALOGS
="$CATALOGS $cat"
11354 XLINGUAS
="$XLINGUAS $lang"
11359 LINGUAS
="$XLINGUAS"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11361 $as_echo "$LINGUAS" >&6; }
11374 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11375 # -liconv on the link line twice.
11376 case "$LIBINTL" in *$LIBICONV*)
11380 # Check whether --enable-secureplt was given.
11381 if test "${enable_secureplt+set}" = set; then :
11382 enableval
=$enable_secureplt;
11386 # Check whether --enable-leading-mingw64-underscores was given.
11387 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11388 enableval
=$enable_leading_mingw64_underscores;
11391 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11393 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11397 # Check whether --enable-cld was given.
11398 if test "${enable_cld+set}" = set; then :
11399 enableval
=$enable_cld;
11405 # Check whether --enable-frame-pointer was given.
11406 if test "${enable_frame_pointer+set}" = set; then :
11407 enableval
=$enable_frame_pointer;
11411 linux
* | darwin
[8912]*)
11412 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11414 enable_frame_pointer
=no
11417 enable_frame_pointer
=yes
11424 # Windows32 Registry support for specifying GCC installation paths.
11425 # Check whether --enable-win32-registry was given.
11426 if test "${enable_win32_registry+set}" = set; then :
11427 enableval
=$enable_win32_registry;
11432 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11433 if test "x$enable_win32_registry" != xno
; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11435 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11436 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11439 ac_func_search_save_LIBS
=$LIBS
11440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11443 /* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
11449 char RegOpenKeyExA ();
11453 return RegOpenKeyExA ();
11458 for ac_lib
in '' advapi32
; do
11459 if test -z "$ac_lib"; then
11460 ac_res
="none required"
11463 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11465 if ac_fn_c_try_link
"$LINENO"; then :
11466 ac_cv_search_RegOpenKeyExA
=$ac_res
11468 rm -f core conftest.err conftest.
$ac_objext \
11470 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11474 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11477 ac_cv_search_RegOpenKeyExA
=no
11479 rm conftest.
$ac_ext
11480 LIBS
=$ac_func_search_save_LIBS
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11483 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11484 ac_res
=$ac_cv_search_RegOpenKeyExA
11485 if test "$ac_res" != no
; then :
11486 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11489 enable_win32_registry
=no
11494 if test "x$enable_win32_registry" != xno
; then
11496 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11499 if test "x$enable_win32_registry" != xyes \
11500 && test "x$enable_win32_registry" != x
; then
11502 cat >>confdefs.h
<<_ACEOF
11503 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11511 # Get an absolute path to the GCC top-level source directory
11512 holddir
=`${PWDCMD-pwd}`
11514 topdir
=`${PWDCMD-pwd}`
11517 # Conditionalize the makefile for this host machine.
11519 for f
in ${host_xmake_file}
11521 if test -f ${srcdir}/config
/$f
11523 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11527 # Conditionalize the makefile for this target machine.
11529 for f
in ${tmake_file}
11531 if test -f ${srcdir}/config
/$f
11533 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11536 tmake_file
="${tmake_file_}"
11538 out_object_file
=`basename $out_file .c`.o
11539 common_out_object_file
=`basename $common_out_file .c`.o
11541 tm_file_list
="options.h"
11542 tm_include_list
="options.h insn-constants.h"
11543 for f
in $tm_file; do
11546 f
=`echo $f | sed 's/^..//'`
11547 tm_file_list
="${tm_file_list} $f"
11548 tm_include_list
="${tm_include_list} $f"
11551 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11552 tm_include_list
="${tm_include_list} $f"
11555 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11556 tm_include_list
="${tm_include_list} config/$f"
11563 for f
in $tm_p_file; do
11566 tm_p_file_list
="${tm_p_file_list} $f"
11567 tm_p_include_list
="${tm_p_include_list} $f"
11570 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11571 tm_p_include_list
="${tm_p_include_list} config/$f"
11577 for f
in $xm_file; do
11580 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11581 xm_include_list
="${xm_include_list} $f"
11584 xm_file_list
="${xm_file_list} $f"
11585 xm_include_list
="${xm_include_list} $f"
11588 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11589 xm_include_list
="${xm_include_list} config/$f"
11595 host_xm_include_list
=
11596 for f
in $host_xm_file; do
11599 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11600 host_xm_include_list
="${host_xm_include_list} $f"
11603 host_xm_file_list
="${host_xm_file_list} $f"
11604 host_xm_include_list
="${host_xm_include_list} $f"
11607 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11608 host_xm_include_list
="${host_xm_include_list} config/$f"
11613 build_xm_file_list
=
11614 for f
in $build_xm_file; do
11617 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11618 build_xm_include_list
="${build_xm_include_list} $f"
11620 auto-build.h | auto-host.h
)
11621 build_xm_file_list
="${build_xm_file_list} $f"
11622 build_xm_include_list
="${build_xm_include_list} $f"
11625 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11626 build_xm_include_list
="${build_xm_include_list} config/$f"
11631 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11632 # cross-compiler which does not use the native headers and libraries.
11633 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11636 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11638 if test "x$with_build_sysroot" != x
; then
11639 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11641 # This value is used, even on a native system, because
11642 # CROSS_SYSTEM_HEADER_DIR is just
11643 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11644 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11647 if test x
$host != x
$target
11649 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11651 SYSTEM_HEADER_DIR
=$build_system_header_dir
11652 case "$host","$target" in
11653 # Darwin crosses can use the host system's libraries and headers,
11654 # because of the fat library support. Of course, it must be the
11655 # same version of Darwin on both sides. Allow the user to
11656 # just say --target=foo-darwin without a version number to mean
11657 # "the version on this system".
11658 *-*-darwin*,*-*-darwin*)
11659 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11660 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11661 if test $hostos = $targetos -o $targetos = darwin
; then
11663 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11668 i?
86-*-*,x86_64-
*-* \
11669 | powerpc
*-*-*,powerpc64
*-*-*)
11670 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11675 if test "x$with_headers" = x
; then
11682 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11683 SYSTEM_HEADER_DIR
=$build_system_header_dir
11686 # If this is a cross-compiler that does not
11687 # have its own set of headers then define
11690 # If this is using newlib, without having the headers available now,
11691 # then define inhibit_libc in LIBGCC2_CFLAGS.
11692 # This prevents libgcc2 from containing any code which requires libc
11694 : ${inhibit_libc=false}
11695 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11696 test x
$with_newlib = xyes
; } &&
11697 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11702 # When building gcc with a cross-compiler, we need to adjust things so
11703 # that the generator programs are still built with the native compiler.
11704 # Also, we cannot run fixincludes.
11706 # These are the normal (build=host) settings:
11707 CC_FOR_BUILD
='$(CC)'
11708 CXX_FOR_BUILD
='$(CXX)'
11709 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11710 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11711 BUILD_LDFLAGS
='$(LDFLAGS)'
11712 STMP_FIXINC
=stmp-fixinc
11714 # And these apply if build != host, or we are generating coverage data
11715 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11717 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11718 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11719 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11722 # Expand extra_headers to include complete path.
11723 # This substitutes for lots of t-* files.
11724 extra_headers_list
=
11725 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11726 for file in ${extra_headers} ; do
11727 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11730 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11731 if test x
"$use_gcc_tgmath" = xyes
11732 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11735 # Define collect2 in Makefile.
11736 case $host_can_use_collect2 in
11738 *) collect2
='collect2$(exeext)' ;;
11742 # Add a definition of USE_COLLECT2 if system wants one.
11743 case $use_collect2 in
11744 no
) use_collect2
= ;;
11747 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11748 xm_defines
="${xm_defines} USE_COLLECT2"
11749 case $host_can_use_collect2 in
11751 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11758 cat >>confdefs.h
<<_ACEOF
11759 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11763 # ---------------------------
11764 # Assembler & linker features
11765 # ---------------------------
11767 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11768 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11769 # However when ld-new is first executed from the build tree, libtool will
11770 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11771 # to the build tree. While doing this we need to use the previous-stage
11772 # linker, or we have an infinite loop. The presence of a shell script as
11773 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11774 # the gcc/collect-ld script. So we need to know how libtool works, or
11775 # exec-tool will fail.
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11786 macro_version
='2.2.7a'
11787 macro_revision
='1.3134'
11801 ltmain
="$ac_aux_dir/ltmain.sh"
11803 # Backslashify metacharacters that are still active within
11804 # double-quoted strings.
11805 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11807 # Same as above, but do not quote variable references.
11808 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11810 # Sed substitution to delay expansion of an escaped shell variable in a
11811 # double_quote_subst'ed string.
11812 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11814 # Sed substitution to delay expansion of an escaped single quote.
11815 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11817 # Sed substitution to avoid accidental globbing in evaled expressions
11818 no_glob_subst
='s/\*/\\\*/g'
11820 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11821 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11825 $as_echo_n "checking how to print strings... " >&6; }
11826 # Test print first, because it will be a builtin if present.
11827 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11828 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11830 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11833 # Use this function as a fallback that always works.
11834 func_fallback_echo ()
11836 eval 'cat <<_LTECHO_EOF
11840 ECHO='func_fallback_echo
'
11843 # func_echo_all arg...
11844 # Invoke $ECHO with all args, space-separated.
11851 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11852 $as_echo "printf" >&6; } ;;
11853 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11854 $as_echo "print -r" >&6; } ;;
11855 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11856 $as_echo "cat" >&6; } ;;
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11873 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11874 if test "${ac_cv_path_SED+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11877 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11878 for ac_i in 1 2 3 4 5 6 7; do
11879 ac_script="$ac_script$as_nl$ac_script"
11881 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11882 { ac_script=; unset ac_script;}
11883 if test -z "$SED"; then
11884 ac_path_SED_found=false
11885 # Loop through the user's path and
test for each of PROGNAME-LIST
11886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11887 for as_dir
in $PATH
11890 test -z "$as_dir" && as_dir
=.
11891 for ac_prog
in sed gsed
; do
11892 for ac_exec_ext
in '' $ac_executable_extensions; do
11893 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11894 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11895 # Check for GNU ac_path_SED and select it if it is found.
11896 # Check for GNU $ac_path_SED
11897 case `"$ac_path_SED" --version 2>&1` in
11899 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11902 $as_echo_n 0123456789 >"conftest.in"
11905 cat "conftest.in" "conftest.in" >"conftest.tmp"
11906 mv "conftest.tmp" "conftest.in"
11907 cp "conftest.in" "conftest.nl"
11908 $as_echo '' >> "conftest.nl"
11909 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11910 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11911 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11912 if test $ac_count -gt ${ac_path_SED_max-0}; then
11913 # Best one so far, save it but keep looking for a better one
11914 ac_cv_path_SED
="$ac_path_SED"
11915 ac_path_SED_max
=$ac_count
11917 # 10*(2^10) chars as input seems more than enough
11918 test $ac_count -gt 10 && break
11920 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11923 $ac_path_SED_found && break 3
11928 if test -z "$ac_cv_path_SED"; then
11929 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11932 ac_cv_path_SED
=$SED
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11937 $as_echo "$ac_cv_path_SED" >&6; }
11938 SED
="$ac_cv_path_SED"
11941 test -z "$SED" && SED
=sed
11942 Xsed
="$SED -e 1s/^X//"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11955 $as_echo_n "checking for fgrep... " >&6; }
11956 if test "${ac_cv_path_FGREP+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11959 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11960 then ac_cv_path_FGREP
="$GREP -F"
11962 if test -z "$FGREP"; then
11963 ac_path_FGREP_found
=false
11964 # Loop through the user's path and test for each of PROGNAME-LIST
11965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11966 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11969 test -z "$as_dir" && as_dir
=.
11970 for ac_prog
in fgrep
; do
11971 for ac_exec_ext
in '' $ac_executable_extensions; do
11972 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11973 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11974 # Check for GNU ac_path_FGREP and select it if it is found.
11975 # Check for GNU $ac_path_FGREP
11976 case `"$ac_path_FGREP" --version 2>&1` in
11978 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11981 $as_echo_n 0123456789 >"conftest.in"
11984 cat "conftest.in" "conftest.in" >"conftest.tmp"
11985 mv "conftest.tmp" "conftest.in"
11986 cp "conftest.in" "conftest.nl"
11987 $as_echo 'FGREP' >> "conftest.nl"
11988 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11989 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11990 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11992 # Best one so far, save it but keep looking for a better one
11993 ac_cv_path_FGREP
="$ac_path_FGREP"
11994 ac_path_FGREP_max
=$ac_count
11996 # 10*(2^10) chars as input seems more than enough
11997 test $ac_count -gt 10 && break
11999 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12002 $ac_path_FGREP_found && break 3
12007 if test -z "$ac_cv_path_FGREP"; then
12008 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12011 ac_cv_path_FGREP
=$FGREP
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12017 $as_echo "$ac_cv_path_FGREP" >&6; }
12018 FGREP
="$ac_cv_path_FGREP"
12021 test -z "$GREP" && GREP
=grep
12041 # Check whether --with-gnu-ld was given.
12042 if test "${with_gnu_ld+set}" = set; then :
12043 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12049 if test "$GCC" = yes; then
12050 # Check if gcc -print-prog-name=ld gives a path.
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12052 $as_echo_n "checking for ld used by $CC... " >&6; }
12055 # gcc leaves a trailing carriage return which upsets mingw
12056 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12058 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12061 # Accept absolute paths.
12063 re_direlt
='/[^/][^/]*/\.\./'
12064 # Canonicalize the pathname of ld
12065 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12066 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12067 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12069 test -z "$LD" && LD
="$ac_prog"
12072 # If it fails, then pretend we aren't using GCC.
12076 # If it is relative, then search for the first ld in PATH.
12077 with_gnu_ld
=unknown
12080 elif test "$with_gnu_ld" = yes; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12082 $as_echo_n "checking for GNU ld... " >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12085 $as_echo_n "checking for non-GNU ld... " >&6; }
12087 if test "${lt_cv_path_LD+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12090 if test -z "$LD"; then
12091 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12092 for ac_dir
in $PATH; do
12094 test -z "$ac_dir" && ac_dir
=.
12095 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12096 lt_cv_path_LD
="$ac_dir/$ac_prog"
12097 # Check to see if the program is GNU ld. I'd rather use --version,
12098 # but apparently some variants of GNU ld only accept -v.
12099 # Break only if it was the GNU/non-GNU ld that we prefer.
12100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12101 *GNU
* |
*'with BFD'*)
12102 test "$with_gnu_ld" != no
&& break
12105 test "$with_gnu_ld" != yes && break
12112 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12116 LD
="$lt_cv_path_LD"
12117 if test -n "$LD"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12119 $as_echo "$LD" >&6; }
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12124 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12127 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12131 case `$LD -v 2>&1 </dev/null` in
12132 *GNU
* |
*'with BFD'*)
12133 lt_cv_prog_gnu_ld
=yes
12136 lt_cv_prog_gnu_ld
=no
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12142 with_gnu_ld
=$lt_cv_prog_gnu_ld
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12153 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12154 if test "${lt_cv_path_NM+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12157 if test -n "$NM"; then
12158 # Let the user override the test.
12159 lt_cv_path_NM
="$NM"
12161 lt_nm_to_check
="${ac_tool_prefix}nm"
12162 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12163 lt_nm_to_check
="$lt_nm_to_check nm"
12165 for lt_tmp_nm
in $lt_nm_to_check; do
12166 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12167 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12169 test -z "$ac_dir" && ac_dir
=.
12170 tmp_nm
="$ac_dir/$lt_tmp_nm"
12171 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12172 # Check to see if the nm accepts a BSD-compat flag.
12173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12174 # nm: unknown option "B" ignored
12175 # Tru64's nm complains that /dev/null is an invalid object file
12176 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12177 */dev
/null
* |
*'Invalid file or object type'*)
12178 lt_cv_path_NM
="$tmp_nm -B"
12182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12184 lt_cv_path_NM
="$tmp_nm -p"
12188 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12189 continue # so that we can try to find one that supports BSD flags
12198 : ${lt_cv_path_NM=no}
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12202 $as_echo "$lt_cv_path_NM" >&6; }
12203 if test "$lt_cv_path_NM" != "no"; then
12204 NM
="$lt_cv_path_NM"
12206 # Didn't find any BSD compatible name lister, look for dumpbin.
12207 if test -n "$DUMPBIN"; then :
12208 # Let the user override the test.
12210 if test -n "$ac_tool_prefix"; then
12211 for ac_prog
in dumpbin
"link -dump"
12213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12214 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12218 $as_echo_n "(cached) " >&6
12220 if test -n "$DUMPBIN"; then
12221 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12224 for as_dir
in $PATH
12227 test -z "$as_dir" && as_dir
=.
12228 for ac_exec_ext
in '' $ac_executable_extensions; do
12229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12230 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 DUMPBIN
=$ac_cv_prog_DUMPBIN
12241 if test -n "$DUMPBIN"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12243 $as_echo "$DUMPBIN" >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12250 test -n "$DUMPBIN" && break
12253 if test -z "$DUMPBIN"; then
12254 ac_ct_DUMPBIN
=$DUMPBIN
12255 for ac_prog
in dumpbin
"link -dump"
12257 # Extract the first word of "$ac_prog", so it can be a program name with args.
12258 set dummy
$ac_prog; ac_word
=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12262 $as_echo_n "(cached) " >&6
12264 if test -n "$ac_ct_DUMPBIN"; then
12265 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12268 for as_dir
in $PATH
12271 test -z "$as_dir" && as_dir
=.
12272 for ac_exec_ext
in '' $ac_executable_extensions; do
12273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12274 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12285 if test -n "$ac_ct_DUMPBIN"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12287 $as_echo "$ac_ct_DUMPBIN" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12294 test -n "$ac_ct_DUMPBIN" && break
12297 if test "x$ac_ct_DUMPBIN" = x
; then
12300 case $cross_compiling:$ac_tool_warned in
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12304 ac_tool_warned
=yes ;;
12306 DUMPBIN
=$ac_ct_DUMPBIN
12310 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12312 DUMPBIN
="$DUMPBIN -symbols"
12320 if test "$DUMPBIN" != ":"; then
12324 test -z "$NM" && NM
=nm
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12333 if test "${lt_cv_nm_interface+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12336 lt_cv_nm_interface
="BSD nm"
12337 echo "int some_variable = 0;" > conftest.
$ac_ext
12338 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12339 (eval "$ac_compile" 2>conftest.err
)
12340 cat conftest.err
>&5
12341 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12343 cat conftest.err
>&5
12344 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12345 cat conftest.out
>&5
12346 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12347 lt_cv_nm_interface
="MS dumpbin"
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12352 $as_echo "$lt_cv_nm_interface" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12355 $as_echo_n "checking whether ln -s works... " >&6; }
12357 if test "$LN_S" = "ln -s"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359 $as_echo "yes" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12362 $as_echo "no, using $LN_S" >&6; }
12365 # find the maximum length of command line arguments
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12368 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12376 # On DJGPP, this test can blow up pretty badly due to problems in libc
12377 # (any single argument exceeding 2000 bytes causes a buffer overrun
12378 # during glob expansion). Even if it were fixed, the result of this
12379 # check would be larger than it should be.
12380 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12384 # Under GNU Hurd, this test is not required because there is
12385 # no limit to the length of command line arguments.
12386 # Libtool will interpret -1 as no limit whatsoever
12387 lt_cv_sys_max_cmd_len
=-1;
12390 cygwin
* | mingw
* | cegcc
*)
12391 # On Win9x/ME, this test blows up -- it succeeds, but takes
12392 # about 5 minutes as the teststring grows exponentially.
12393 # Worse, since 9x/ME are not pre-emptively multitasking,
12394 # you end up with a "frozen" computer, even though with patience
12395 # the test eventually succeeds (with a max line length of 256k).
12396 # Instead, let's just punt: use the minimum linelength reported by
12397 # all of the supported platforms: 8192 (on NT/2K/XP).
12398 lt_cv_sys_max_cmd_len
=8192;
12402 # On MiNT this can take a long time and run out of memory.
12403 lt_cv_sys_max_cmd_len
=8192;
12407 # On AmigaOS with pdksh, this test takes hours, literally.
12408 # So we just punt and use a minimum line length of 8192.
12409 lt_cv_sys_max_cmd_len
=8192;
12412 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12413 # This has been around since 386BSD, at least. Likely further.
12414 if test -x /sbin
/sysctl
; then
12415 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12416 elif test -x /usr
/sbin
/sysctl
; then
12417 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12419 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12421 # And add a safety zone
12422 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12423 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12428 lt_cv_sys_max_cmd_len
=196608
12432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12434 # nice to cause kernel panics so lets avoid the loop below.
12435 # First set a reasonable default.
12436 lt_cv_sys_max_cmd_len
=16384
12438 if test -x /sbin
/sysconfig
; then
12439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12440 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12445 lt_cv_sys_max_cmd_len
=102400
12447 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12448 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12449 if test -n "$kargmax"; then
12450 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12452 lt_cv_sys_max_cmd_len
=32768
12456 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12457 if test -n "$lt_cv_sys_max_cmd_len"; then
12458 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12459 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12461 # Make teststring a little bigger before we do anything with it.
12462 # a 1K string should be a reasonable start.
12463 for i
in 1 2 3 4 5 6 7 8 ; do
12464 teststring
=$teststring$teststring
12466 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12467 # If test is not a shell built-in, we'll probably end up computing a
12468 # maximum length that is only half of the actual maximum length, but
12470 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12471 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12472 test $i != 17 # 1/2 MB should be enough
12475 teststring
=$teststring$teststring
12477 # Only check the string length outside the loop.
12478 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12480 # Add a significant safety factor because C++ compilers can tack on
12481 # massive amounts of additional arguments before passing them to the
12482 # linker. It appears as though 1/2 is a usable value.
12483 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12490 if test -n $lt_cv_sys_max_cmd_len ; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12495 $as_echo "none" >&6; }
12497 max_cmd_len
=$lt_cv_sys_max_cmd_len
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12510 # Try some XSI features
12512 ( _lt_dummy
="a/b/c"
12513 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12515 && eval 'test $(( 1 + 1 )) -eq 2 \
12516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12519 $as_echo "$xsi_shell" >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12523 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12525 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12527 && lt_shell_append=yes
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12529 $as_echo "$lt_shell_append" >&6; }
12532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12542 # test EBCDIC or ASCII
12543 case `echo X|tr X '\101'` in
12544 A) # ASCII based system
12545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12546 lt_SP2NL='tr \040 \012'
12547 lt_NL2SP='tr \015\012 \040\040'
12549 *) # EBCDIC based system
12550 lt_SP2NL='tr \100 \n'
12551 lt_NL2SP='tr \r\n \100\100'
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12564 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12565 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12566 $as_echo_n "(cached
) " >&6
12568 lt_cv_ld_reload_flag='-r'
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12572 reload_flag=$lt_cv_ld_reload_flag
12573 case $reload_flag in
12575 *) reload_flag=" $reload_flag" ;;
12577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12580 if test "$GCC" = yes; then
12581 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12596 if test -n "$ac_tool_prefix"; then
12597 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12598 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12600 $as_echo_n "checking
for $ac_word...
" >&6; }
12601 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12602 $as_echo_n "(cached
) " >&6
12604 if test -n "$OBJDUMP"; then
12605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12624 OBJDUMP=$ac_cv_prog_OBJDUMP
12625 if test -n "$OBJDUMP"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12627 $as_echo "$OBJDUMP" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12630 $as_echo "no
" >&6; }
12635 if test -z "$ac_cv_prog_OBJDUMP"; then
12636 ac_ct_OBJDUMP=$OBJDUMP
12637 # Extract the first word of "objdump
", so it can be a program name with args.
12638 set dummy objdump; ac_word=$2
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12640 $as_echo_n "checking
for $ac_word...
" >&6; }
12641 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12642 $as_echo_n "(cached
) " >&6
12644 if test -n "$ac_ct_OBJDUMP"; then
12645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12651 test -z "$as_dir" && as_dir=.
12652 for ac_exec_ext in '' $ac_executable_extensions; do
12653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12654 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12655 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12664 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12665 if test -n "$ac_ct_OBJDUMP"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12667 $as_echo "$ac_ct_OBJDUMP" >&6; }
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12670 $as_echo "no
" >&6; }
12673 if test "x
$ac_ct_OBJDUMP" = x; then
12676 case $cross_compiling:$ac_tool_warned in
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12679 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12680 ac_tool_warned=yes ;;
12682 OBJDUMP=$ac_ct_OBJDUMP
12685 OBJDUMP="$ac_cv_prog_OBJDUMP"
12688 test -z "$OBJDUMP" && OBJDUMP=objdump
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12699 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12700 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12701 $as_echo_n "(cached
) " >&6
12703 lt_cv_file_magic_cmd='$MAGIC_CMD'
12704 lt_cv_file_magic_test_file=
12705 lt_cv_deplibs_check_method='unknown'
12706 # Need to set the preceding variable on all platforms that support
12707 # interlibrary dependencies.
12708 # 'none' -- dependencies not supported.
12709 # `unknown' -- same as none, but documents that we really don't know.
12710 # 'pass_all' -- all dependencies passed with no checks.
12711 # 'test_compile' -- check by making test program.
12712 # 'file_magic [[regex]]' -- check by looking for files in library path
12713 # which responds to the $file_magic_cmd with a given extended regex.
12714 # If you have `file' or equivalent on your system and you're not sure
12715 # whether `pass_all' will *always* work, you probably want this one.
12719 lt_cv_deplibs_check_method=pass_all
12723 lt_cv_deplibs_check_method=pass_all
12727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12728 lt_cv_file_magic_cmd='/usr/bin/file -L'
12729 lt_cv_file_magic_test_file=/shlib/libc.so
12733 # func_win32_libid is a shell function defined in ltmain.sh
12734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12735 lt_cv_file_magic_cmd='func_win32_libid'
12739 # Base MSYS/MinGW do not provide the 'file' command needed by
12740 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12741 # unless we find 'file', for example because we are cross-compiling.
12742 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12743 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12745 lt_cv_file_magic_cmd='func_win32_libid'
12747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12748 lt_cv_file_magic_cmd='$OBJDUMP -f'
12753 # use the weaker test based on 'objdump'. See mingw*.
12754 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12755 lt_cv_file_magic_cmd='$OBJDUMP -f'
12758 darwin* | rhapsody*)
12759 lt_cv_deplibs_check_method=pass_all
12762 freebsd* | dragonfly*)
12763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12766 # Not sure whether the presence of OpenBSD here was a mistake.
12767 # Let's accept both of them until this is cleared up.
12768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12769 lt_cv_file_magic_cmd=/usr/bin/file
12770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12774 lt_cv_deplibs_check_method=pass_all
12779 lt_cv_deplibs_check_method=pass_all
12783 lt_cv_deplibs_check_method=pass_all
12786 hpux10.20* | hpux11*)
12787 lt_cv_file_magic_cmd=/usr/bin/file
12790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12791 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12794 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]'
12795 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12799 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12805 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12809 irix5* | irix6* | nonstopux*)
12811 *-32|*"-32 ") libmagic=32-bit;;
12812 *-n32|*"-n32 ") libmagic=N32;;
12813 *-64|*"-64 ") libmagic=64-bit;;
12814 *) libmagic=never-match;;
12816 lt_cv_deplibs_check_method=pass_all
12819 # This must be Linux ELF.
12820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12821 lt_cv_deplibs_check_method=pass_all
12825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12834 lt_cv_file_magic_cmd=/usr/bin/file
12835 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12839 lt_cv_deplibs_check_method=pass_all
12843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12850 osf3* | osf4* | osf5*)
12851 lt_cv_deplibs_check_method=pass_all
12855 lt_cv_deplibs_check_method=pass_all
12859 lt_cv_deplibs_check_method=pass_all
12862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12863 lt_cv_deplibs_check_method=pass_all
12867 case $host_vendor in
12869 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]'
12870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12873 lt_cv_deplibs_check_method=pass_all
12876 lt_cv_file_magic_cmd='/bin/file'
12877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12880 lt_cv_file_magic_cmd='/bin/file'
12881 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12882 lt_cv_file_magic_test_file=/lib/libc.so
12885 lt_cv_deplibs_check_method=pass_all
12888 lt_cv_deplibs_check_method=pass_all
12894 lt_cv_deplibs_check_method=pass_all
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12900 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12901 file_magic_cmd=$lt_cv_file_magic_cmd
12902 deplibs_check_method=$lt_cv_deplibs_check_method
12903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12916 if test -n "$ac_tool_prefix"; then
12917 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12918 set dummy ${ac_tool_prefix}ar; ac_word=$2
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12920 $as_echo_n "checking
for $ac_word...
" >&6; }
12921 if test "${ac_cv_prog_AR+set}" = set; then :
12922 $as_echo_n "(cached
) " >&6
12924 if test -n "$AR"; then
12925 ac_cv_prog_AR="$AR" # Let the user override the test.
12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $PATH
12931 test -z "$as_dir" && as_dir=.
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12934 ac_cv_prog_AR="${ac_tool_prefix}ar"
12935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12945 if test -n "$AR"; then
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12947 $as_echo "$AR" >&6; }
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12950 $as_echo "no
" >&6; }
12955 if test -z "$ac_cv_prog_AR"; then
12957 # Extract the first word of "ar", so it can be a program name with args.
12958 set dummy ar; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12960 $as_echo_n "checking
for $ac_word...
" >&6; }
12961 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12962 $as_echo_n "(cached
) " >&6
12964 if test -n "$ac_ct_AR"; then
12965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12971 test -z "$as_dir" && as_dir=.
12972 for ac_exec_ext in '' $ac_executable_extensions; do
12973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974 ac_cv_prog_ac_ct_AR="ar"
12975 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12984 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12985 if test -n "$ac_ct_AR"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12987 $as_echo "$ac_ct_AR" >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12990 $as_echo "no
" >&6; }
12993 if test "x
$ac_ct_AR" = x; then
12996 case $cross_compiling:$ac_tool_warned in
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12999 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13000 ac_tool_warned=yes ;;
13005 AR="$ac_cv_prog_AR"
13008 test -z "$AR" && AR=ar
13009 test -z "$AR_FLAGS" && AR_FLAGS=cru
13021 if test -n "$ac_tool_prefix"; then
13022 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13023 set dummy ${ac_tool_prefix}strip; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13025 $as_echo_n "checking
for $ac_word...
" >&6; }
13026 if test "${ac_cv_prog_STRIP+set}" = set; then :
13027 $as_echo_n "(cached
) " >&6
13029 if test -n "$STRIP"; then
13030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13049 STRIP=$ac_cv_prog_STRIP
13050 if test -n "$STRIP"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13052 $as_echo "$STRIP" >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13055 $as_echo "no
" >&6; }
13060 if test -z "$ac_cv_prog_STRIP"; then
13062 # Extract the first word of "strip
", so it can be a program name with args.
13063 set dummy strip; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13065 $as_echo_n "checking
for $ac_word...
" >&6; }
13066 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13067 $as_echo_n "(cached
) " >&6
13069 if test -n "$ac_ct_STRIP"; then
13070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13076 test -z "$as_dir" && as_dir=.
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13079 ac_cv_prog_ac_ct_STRIP="strip
"
13080 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13090 if test -n "$ac_ct_STRIP"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13092 $as_echo "$ac_ct_STRIP" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13095 $as_echo "no
" >&6; }
13098 if test "x
$ac_ct_STRIP" = x; then
13101 case $cross_compiling:$ac_tool_warned in
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13104 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13105 ac_tool_warned=yes ;;
13110 STRIP="$ac_cv_prog_STRIP"
13113 test -z "$STRIP" && STRIP=:
13120 if test -n "$ac_tool_prefix"; then
13121 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13124 $as_echo_n "checking
for $ac_word...
" >&6; }
13125 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13126 $as_echo_n "(cached
) " >&6
13128 if test -n "$RANLIB"; then
13129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13148 RANLIB=$ac_cv_prog_RANLIB
13149 if test -n "$RANLIB"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13151 $as_echo "$RANLIB" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13154 $as_echo "no
" >&6; }
13159 if test -z "$ac_cv_prog_RANLIB"; then
13160 ac_ct_RANLIB=$RANLIB
13161 # Extract the first word of "ranlib
", so it can be a program name with args.
13162 set dummy ranlib; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13164 $as_echo_n "checking
for $ac_word...
" >&6; }
13165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13166 $as_echo_n "(cached
) " >&6
13168 if test -n "$ac_ct_RANLIB"; then
13169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13189 if test -n "$ac_ct_RANLIB"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13191 $as_echo "$ac_ct_RANLIB" >&6; }
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13194 $as_echo "no
" >&6; }
13197 if test "x
$ac_ct_RANLIB" = x; then
13200 case $cross_compiling:$ac_tool_warned in
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13203 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13204 ac_tool_warned=yes ;;
13206 RANLIB=$ac_ct_RANLIB
13209 RANLIB="$ac_cv_prog_RANLIB"
13212 test -z "$RANLIB" && RANLIB=:
13219 # Determine commands to create old-style static archives.
13220 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13221 old_postinstall_cmds='chmod 644 $oldlib'
13222 old_postuninstall_cmds=
13224 if test -n "$RANLIB"; then
13227 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13230 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13233 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13238 lock_old_archive_extraction=yes ;;
13240 lock_old_archive_extraction=no ;;
13281 # If no C compiler was specified, use CC.
13284 # If no C compiler flags were specified, use CFLAGS.
13285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13287 # Allow CC to be a program name with arguments.
13291 # Check for command to grab the raw symbol name followed by C symbol from nm.
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13293 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13294 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13295 $as_echo_n "(cached
) " >&6
13298 # These are sane defaults that work on at least a few old systems.
13299 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13301 # Character class describing NM global symbol codes.
13302 symcode='[BCDEGRST]'
13304 # Regexp to match symbols that can be accessed directly from C.
13305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13307 # Define system-specific variables.
13312 cygwin* | mingw* | pw32* | cegcc*)
13313 symcode='[ABCDGISTW]'
13316 if test "$host_cpu" = ia64; then
13317 symcode='[ABCDEGRST]'
13320 irix* | nonstopux*)
13321 symcode='[BCDEGRST]'
13324 symcode='[BCDEGQRST]'
13335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13343 # If we're using GNU nm, then use its standard symbol codes.
13344 case `$NM -V 2>&1` in
13345 *GNU* | *'with BFD'*)
13346 symcode='[ABCDGIRSTW]' ;;
13349 # Transform an extracted symbol line into a proper C declaration.
13350 # Some systems (esp. on ia64) link data and code symbols differently,
13351 # so use this general approach.
13352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13354 # Transform an extracted symbol line into symbol name and symbol address
13355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13356 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'"
13358 # Handle CRLF in mingw tool chain
13362 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13366 # Try without a prefix underscore, then with it.
13367 for ac_symprfx in "" "_
"; do
13369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13370 symxfrm="\\1 $ac_symprfx\\2 \\2"
13372 # Write the raw and C identifiers.
13373 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13374 # Fake it for dumpbin and say T for any non-static function
13375 # and D for any global variable.
13376 # Also find C++ and __fastcall symbols from MSVC++,
13377 # which start with @ or ?.
13378 lt_cv_sys_global_symbol_pipe="$AWK '"\
13379 " {last_section=section; section=\$ 3};"\
13380 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13381 " \$ 0!~/External *\|/{next};"\
13382 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13383 " {if(hide[section]) next};"\
13384 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13385 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13386 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13387 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13388 " ' prfx
=^
$ac_symprfx"
13390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13393 # Check to see that the pipe works correctly.
13397 cat > conftest.$ac_ext <<_LT_EOF
13402 void nm_test_func(void);
13403 void nm_test_func(void){}
13407 int main(){nm_test_var='a';nm_test_func();return(0);}
13410 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13411 (eval $ac_compile) 2>&5
13413 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13414 test $ac_status = 0; }; then
13415 # Now try to grab the symbols.
13417 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13418 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13420 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13421 test $ac_status = 0; } && test -s "$nlist"; then
13422 # Try sorting and uniquifying the output.
13423 if sort "$nlist" | uniq > "$nlist"T; then
13424 mv -f "$nlist"T "$nlist"
13429 # Make sure that we snagged all the symbols we need.
13430 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13431 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13432 cat <<_LT_EOF > conftest.$ac_ext
13438 # Now generate the symbol file.
13439 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13441 cat <<_LT_EOF >> conftest.$ac_ext
13443 /* The mapping between symbol names and symbols. */
13448 lt__PROGRAM__LTX_preloaded_symbols[] =
13450 { "@PROGRAM@
", (void *) 0 },
13452 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13453 cat <<\_LT_EOF >> conftest.$ac_ext
13457 /* This works around a problem in FreeBSD linker */
13458 #ifdef FREEBSD_WORKAROUND
13459 static const void *lt_preloaded_setup() {
13460 return lt__PROGRAM__LTX_preloaded_symbols;
13468 # Now try linking the two files.
13469 mv conftest.$ac_objext conftstm.$ac_objext
13470 lt_save_LIBS="$LIBS"
13471 lt_save_CFLAGS="$CFLAGS"
13472 LIBS="conftstm.
$ac_objext"
13473 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13474 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13475 (eval $ac_link) 2>&5
13477 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13478 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13481 LIBS="$lt_save_LIBS"
13482 CFLAGS="$lt_save_CFLAGS"
13484 echo "cannot
find nm_test_func
in $nlist" >&5
13487 echo "cannot
find nm_test_var
in $nlist" >&5
13490 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13493 echo "$progname: failed program was
:" >&5
13494 cat conftest.$ac_ext >&5
13496 rm -rf conftest* conftst*
13498 # Do not use the global_symbol_pipe unless it works.
13499 if test "$pipe_works" = yes; then
13502 lt_cv_sys_global_symbol_pipe=
13508 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13509 lt_cv_sys_global_symbol_to_cdecl=
13511 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13513 $as_echo "failed
" >&6; }
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13516 $as_echo "ok
" >&6; }
13540 # Check whether --enable-libtool-lock was given.
13541 if test "${enable_libtool_lock+set}" = set; then :
13542 enableval=$enable_libtool_lock;
13545 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13547 # Some flags need to be propagated to the compiler or linker for good
13551 # Find out which ABI we are using.
13552 echo 'int i;' > conftest.$ac_ext
13553 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13554 (eval $ac_compile) 2>&5
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13557 test $ac_status = 0; }; then
13558 case `/usr/bin/file conftest.$ac_objext` in
13560 HPUX_IA64_MODE="32"
13563 HPUX_IA64_MODE="64"
13570 # Find out which ABI we are using.
13571 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13572 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13573 (eval $ac_compile) 2>&5
13575 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13576 test $ac_status = 0; }; then
13577 if test "$lt_cv_prog_gnu_ld" = yes; then
13578 case `/usr/bin/file conftest.$ac_objext` in
13580 LD="${LD-ld} -melf32bsmip"
13583 LD="${LD-ld} -melf32bmipn32"
13586 LD="${LD-ld} -melf64bmip"
13590 case `/usr/bin/file conftest.$ac_objext` in
13606 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13607 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13608 # Find out which ABI we are using.
13609 echo 'int i;' > conftest.$ac_ext
13610 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13611 (eval $ac_compile) 2>&5
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13614 test $ac_status = 0; }; then
13615 case `/usr/bin/file conftest.o` in
13618 x86_64-*kfreebsd*-gnu)
13619 LD="${LD-ld} -m elf_i386_fbsd
"
13622 case `/usr/bin/file conftest.o` in
13624 LD="${LD-ld} -m elf32_x86_64
"
13627 LD="${LD-ld} -m elf_i386
"
13631 powerpc64le-*linux*)
13632 LD="${LD-ld} -m elf32lppclinux
"
13635 LD="${LD-ld} -m elf32ppclinux
"
13638 LD="${LD-ld} -m elf_s390
"
13641 LD="${LD-ld} -m elf32_sparc
"
13647 x86_64-*kfreebsd*-gnu)
13648 LD="${LD-ld} -m elf_x86_64_fbsd
"
13651 LD="${LD-ld} -m elf_x86_64
"
13654 LD="${LD-ld} -m elf64lppc
"
13657 LD="${LD-ld} -m elf64ppc
"
13659 s390*-*linux*|s390*-*tpf*)
13660 LD="${LD-ld} -m elf64_s390
"
13663 LD="${LD-ld} -m elf64_sparc
"
13673 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13674 SAVE_CFLAGS="$CFLAGS"
13675 CFLAGS="$CFLAGS -belf"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13677 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13678 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13679 $as_echo_n "(cached
) " >&6
13682 ac_cpp='$CPP $CPPFLAGS'
13683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13698 if ac_fn_c_try_link "$LINENO"; then :
13699 lt_cv_cc_needs_belf=yes
13701 lt_cv_cc_needs_belf=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13706 ac_cpp='$CPP $CPPFLAGS'
13707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13713 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13714 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13716 CFLAGS="$SAVE_CFLAGS"
13720 # Find out which ABI we are using.
13721 echo 'int i;' > conftest.$ac_ext
13722 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13723 (eval $ac_compile) 2>&5
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13726 test $ac_status = 0; }; then
13727 case `/usr/bin/file conftest.o` in
13729 case $lt_cv_prog_gnu_ld in
13730 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13732 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13744 need_locks="$enable_libtool_lock"
13748 rhapsody* | darwin*)
13749 if test -n "$ac_tool_prefix"; then
13750 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13751 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13753 $as_echo_n "checking
for $ac_word...
" >&6; }
13754 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13755 $as_echo_n "(cached
) " >&6
13757 if test -n "$DSYMUTIL"; then
13758 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13767 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13777 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13778 if test -n "$DSYMUTIL"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13780 $as_echo "$DSYMUTIL" >&6; }
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13783 $as_echo "no
" >&6; }
13788 if test -z "$ac_cv_prog_DSYMUTIL"; then
13789 ac_ct_DSYMUTIL=$DSYMUTIL
13790 # Extract the first word of "dsymutil
", so it can be a program name with args.
13791 set dummy dsymutil; ac_word=$2
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13793 $as_echo_n "checking
for $ac_word...
" >&6; }
13794 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13795 $as_echo_n "(cached
) " >&6
13797 if test -n "$ac_ct_DSYMUTIL"; then
13798 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
13806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13807 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13808 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13817 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13818 if test -n "$ac_ct_DSYMUTIL"; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13820 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13823 $as_echo "no
" >&6; }
13826 if test "x
$ac_ct_DSYMUTIL" = x; then
13829 case $cross_compiling:$ac_tool_warned in
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13832 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13833 ac_tool_warned=yes ;;
13835 DSYMUTIL=$ac_ct_DSYMUTIL
13838 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13841 if test -n "$ac_tool_prefix"; then
13842 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13843 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13845 $as_echo_n "checking
for $ac_word...
" >&6; }
13846 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13847 $as_echo_n "(cached
) " >&6
13849 if test -n "$NMEDIT"; then
13850 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13859 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13869 NMEDIT=$ac_cv_prog_NMEDIT
13870 if test -n "$NMEDIT"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13872 $as_echo "$NMEDIT" >&6; }
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13875 $as_echo "no
" >&6; }
13880 if test -z "$ac_cv_prog_NMEDIT"; then
13881 ac_ct_NMEDIT=$NMEDIT
13882 # Extract the first word of "nmedit
", so it can be a program name with args.
13883 set dummy nmedit; ac_word=$2
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13885 $as_echo_n "checking
for $ac_word...
" >&6; }
13886 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13887 $as_echo_n "(cached
) " >&6
13889 if test -n "$ac_ct_NMEDIT"; then
13890 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 for as_dir in $PATH
13896 test -z "$as_dir" && as_dir=.
13897 for ac_exec_ext in '' $ac_executable_extensions; do
13898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13899 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13900 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13909 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13910 if test -n "$ac_ct_NMEDIT"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13912 $as_echo "$ac_ct_NMEDIT" >&6; }
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13915 $as_echo "no
" >&6; }
13918 if test "x
$ac_ct_NMEDIT" = x; then
13921 case $cross_compiling:$ac_tool_warned in
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13924 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13925 ac_tool_warned=yes ;;
13927 NMEDIT=$ac_ct_NMEDIT
13930 NMEDIT="$ac_cv_prog_NMEDIT"
13933 if test -n "$ac_tool_prefix"; then
13934 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13935 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13937 $as_echo_n "checking
for $ac_word...
" >&6; }
13938 if test "${ac_cv_prog_LIPO+set}" = set; then :
13939 $as_echo_n "(cached
) " >&6
13941 if test -n "$LIPO"; then
13942 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13952 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13961 LIPO=$ac_cv_prog_LIPO
13962 if test -n "$LIPO"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13964 $as_echo "$LIPO" >&6; }
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13967 $as_echo "no
" >&6; }
13972 if test -z "$ac_cv_prog_LIPO"; then
13974 # Extract the first word of "lipo
", so it can be a program name with args.
13975 set dummy lipo; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13977 $as_echo_n "checking
for $ac_word...
" >&6; }
13978 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13979 $as_echo_n "(cached
) " >&6
13981 if test -n "$ac_ct_LIPO"; then
13982 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13991 ac_cv_prog_ac_ct_LIPO="lipo
"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14001 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14002 if test -n "$ac_ct_LIPO"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14004 $as_echo "$ac_ct_LIPO" >&6; }
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14007 $as_echo "no
" >&6; }
14010 if test "x
$ac_ct_LIPO" = x; then
14013 case $cross_compiling:$ac_tool_warned in
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14016 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14017 ac_tool_warned=yes ;;
14022 LIPO="$ac_cv_prog_LIPO"
14025 if test -n "$ac_tool_prefix"; then
14026 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14027 set dummy ${ac_tool_prefix}otool; ac_word=$2
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14029 $as_echo_n "checking
for $ac_word...
" >&6; }
14030 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14031 $as_echo_n "(cached
) " >&6
14033 if test -n "$OTOOL"; then
14034 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 for as_dir in $PATH
14040 test -z "$as_dir" && as_dir=.
14041 for ac_exec_ext in '' $ac_executable_extensions; do
14042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14043 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14053 OTOOL=$ac_cv_prog_OTOOL
14054 if test -n "$OTOOL"; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14056 $as_echo "$OTOOL" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14059 $as_echo "no
" >&6; }
14064 if test -z "$ac_cv_prog_OTOOL"; then
14066 # Extract the first word of "otool
", so it can be a program name with args.
14067 set dummy otool; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14069 $as_echo_n "checking
for $ac_word...
" >&6; }
14070 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14071 $as_echo_n "(cached
) " >&6
14073 if test -n "$ac_ct_OTOOL"; then
14074 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14080 test -z "$as_dir" && as_dir=.
14081 for ac_exec_ext in '' $ac_executable_extensions; do
14082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14083 ac_cv_prog_ac_ct_OTOOL="otool
"
14084 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14093 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14094 if test -n "$ac_ct_OTOOL"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14096 $as_echo "$ac_ct_OTOOL" >&6; }
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14099 $as_echo "no
" >&6; }
14102 if test "x
$ac_ct_OTOOL" = x; then
14105 case $cross_compiling:$ac_tool_warned in
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14108 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14109 ac_tool_warned=yes ;;
14114 OTOOL="$ac_cv_prog_OTOOL"
14117 if test -n "$ac_tool_prefix"; then
14118 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14119 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14121 $as_echo_n "checking
for $ac_word...
" >&6; }
14122 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14123 $as_echo_n "(cached
) " >&6
14125 if test -n "$OTOOL64"; then
14126 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14132 test -z "$as_dir" && as_dir=.
14133 for ac_exec_ext in '' $ac_executable_extensions; do
14134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14135 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14136 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14145 OTOOL64=$ac_cv_prog_OTOOL64
14146 if test -n "$OTOOL64"; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14148 $as_echo "$OTOOL64" >&6; }
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14151 $as_echo "no
" >&6; }
14156 if test -z "$ac_cv_prog_OTOOL64"; then
14157 ac_ct_OTOOL64=$OTOOL64
14158 # Extract the first word of "otool64
", so it can be a program name with args.
14159 set dummy otool64; ac_word=$2
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14161 $as_echo_n "checking
for $ac_word...
" >&6; }
14162 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14163 $as_echo_n "(cached
) " >&6
14165 if test -n "$ac_ct_OTOOL64"; then
14166 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14172 test -z "$as_dir" && as_dir=.
14173 for ac_exec_ext in '' $ac_executable_extensions; do
14174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14175 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14185 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14186 if test -n "$ac_ct_OTOOL64"; then
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14188 $as_echo "$ac_ct_OTOOL64" >&6; }
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14191 $as_echo "no
" >&6; }
14194 if test "x
$ac_ct_OTOOL64" = x; then
14197 case $cross_compiling:$ac_tool_warned in
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14200 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14201 ac_tool_warned=yes ;;
14203 OTOOL64=$ac_ct_OTOOL64
14206 OTOOL64="$ac_cv_prog_OTOOL64"
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14236 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14237 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14238 $as_echo_n "(cached
) " >&6
14240 lt_cv_apple_cc_single_mod=no
14241 if test -z "${LT_MULTI_MODULE}"; then
14242 # By default we will add the -single_module flag. You can override
14243 # by either setting the environment variable LT_MULTI_MODULE
14244 # non-empty at configure time, or by adding -multi_module to the
14246 rm -rf libconftest.dylib*
14247 echo "int foo
(void
){return 1;}" > conftest.c
14248 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14249 -dynamiclib -Wl,-single_module conftest.c
" >&5
14250 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14251 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14253 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14254 lt_cv_apple_cc_single_mod=yes
14256 cat conftest.err >&5
14258 rm -rf libconftest.dylib*
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14263 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14265 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14266 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14267 $as_echo_n "(cached
) " >&6
14269 lt_cv_ld_exported_symbols_list=no
14270 save_LDFLAGS=$LDFLAGS
14271 echo "_main
" > conftest.sym
14272 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14284 if ac_fn_c_try_link "$LINENO"; then :
14285 lt_cv_ld_exported_symbols_list=yes
14287 lt_cv_ld_exported_symbols_list=no
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14291 LDFLAGS="$save_LDFLAGS"
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14295 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14297 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14298 if test "${lt_cv_ld_force_load+set}" = set; then :
14299 $as_echo_n "(cached
) " >&6
14301 lt_cv_ld_force_load=no
14302 cat > conftest.c << _LT_EOF
14303 int forced_loaded() { return 2;}
14305 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14306 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14307 echo "$AR cru libconftest.a conftest.o
" >&5
14308 $AR cru libconftest.a conftest.o 2>&5
14309 cat > conftest.c << _LT_EOF
14310 int main() { return 0;}
14312 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14313 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14315 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14316 lt_cv_ld_force_load=yes
14318 cat conftest.err >&5
14320 rm -f conftest.err libconftest.a conftest conftest.c
14321 rm -rf conftest.dSYM
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14325 $as_echo "$lt_cv_ld_force_load" >&6; }
14327 rhapsody* | darwin1.[012])
14328 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14331 darwin*) # darwin 5.x on
14332 # if running on 10.5 or later, the deployment target defaults
14333 # to the OS version, if on x86, and 10.4, the deployment
14334 # target defaults to 10.4. Don't you love it?
14335 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14336 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14341 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14345 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14346 _lt_dar_single_mod='$single_module'
14348 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14349 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14351 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14353 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14354 _lt_dsymutil='~$DSYMUTIL $lib || :'
14361 for ac_header in dlfcn.h
14363 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14364 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_DLFCN_H 1
14383 enable_win32_dll=no
14386 # Check whether --enable-shared was given.
14387 if test "${enable_shared+set}" = set; then :
14388 enableval=$enable_shared; p=${PACKAGE-default}
14390 yes) enable_shared=yes ;;
14391 no) enable_shared=no ;;
14394 # Look at the argument we got. We use all the common list separators.
14395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14396 for pkg in $enableval; do
14398 if test "X
$pkg" = "X
$p"; then
14417 # Check whether --enable-static was given.
14418 if test "${enable_static+set}" = set; then :
14419 enableval=$enable_static; p=${PACKAGE-default}
14421 yes) enable_static=yes ;;
14422 no) enable_static=no ;;
14425 # Look at the argument we got. We use all the common list separators.
14426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14427 for pkg in $enableval; do
14429 if test "X
$pkg" = "X
$p"; then
14449 # Check whether --with-pic was given.
14450 if test "${with_pic+set}" = set; then :
14451 withval=$with_pic; pic_mode="$withval"
14457 test -z "$pic_mode" && pic_mode=default
14465 # Check whether --enable-fast-install was given.
14466 if test "${enable_fast_install+set}" = set; then :
14467 enableval=$enable_fast_install; p=${PACKAGE-default}
14469 yes) enable_fast_install=yes ;;
14470 no) enable_fast_install=no ;;
14472 enable_fast_install=no
14473 # Look at the argument we got. We use all the common list separators.
14474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14475 for pkg in $enableval; do
14477 if test "X
$pkg" = "X
$p"; then
14478 enable_fast_install=yes
14485 enable_fast_install=yes
14498 # This can be used to rebuild libtool when needed
14499 LIBTOOL_DEPS="$ltmain"
14501 # Always use our own libtool.
14502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14529 test -z "$LN_S" && LN_S="ln -s"
14544 if test -n "${ZSH_VERSION+set}" ; then
14545 setopt NO_GLOB_SUBST
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14549 $as_echo_n "checking
for objdir...
" >&6; }
14550 if test "${lt_cv_objdir+set}" = set; then :
14551 $as_echo_n "(cached
) " >&6
14553 rm -f .libs 2>/dev/null
14554 mkdir .libs 2>/dev/null
14555 if test -d .libs; then
14558 # MS-DOS does not allow filenames that begin with a dot.
14561 rmdir .libs 2>/dev/null
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14564 $as_echo "$lt_cv_objdir" >&6; }
14565 objdir=$lt_cv_objdir
14571 cat >>confdefs.h <<_ACEOF
14572 #define LT_OBJDIR "$lt_cv_objdir/"
14580 # AIX sometimes has problems with the GCC collect2 program. For some
14581 # reason, if we set the COLLECT_NAMES environment variable, the problems
14582 # vanish in a puff of smoke.
14583 if test "X
${COLLECT_NAMES+set}" != Xset; then
14585 export COLLECT_NAMES
14590 # Global variables:
14592 can_build_shared=yes
14594 # All known linkers require a `.a' archive for static linking (except MSVC,
14595 # which needs '.lib').
14598 with_gnu_ld="$lt_cv_prog_gnu_ld"
14601 old_CFLAGS="$CFLAGS"
14603 # Set sane defaults for various variables
14604 test -z "$CC" && CC=cc
14605 test -z "$LTCC" && LTCC=$CC
14606 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14607 test -z "$LD" && LD=ld
14608 test -z "$ac_objext" && ac_objext=o
14610 for cc_temp in $compiler""; do
14612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14618 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14621 # Only perform the check for file, if the check method requires it
14622 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14623 case $deplibs_check_method in
14625 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14627 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14628 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14629 $as_echo_n "(cached
) " >&6
14633 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14636 lt_save_MAGIC_CMD="$MAGIC_CMD"
14637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14638 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14639 for ac_dir in $ac_dummy; do
14641 test -z "$ac_dir" && ac_dir=.
14642 if test -f $ac_dir/${ac_tool_prefix}file; then
14643 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14644 if test -n "$file_magic_test_file"; then
14645 case $deplibs_check_method in
14647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14648 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14650 $EGREP "$file_magic_regex" > /dev/null; then
14655 *** Warning: the command libtool uses to detect shared libraries,
14656 *** $file_magic_cmd, produces output that libtool cannot recognize.
14657 *** The result is that libtool may fail to recognize shared libraries
14658 *** as such. This will affect the creation of libtool libraries that
14659 *** depend on shared libraries, but programs linked with such libtool
14660 *** libraries will work regardless of this problem. Nevertheless, you
14661 *** may want to report the problem to your system manager and/or to
14662 *** bug-libtool@gnu.org
14672 MAGIC_CMD="$lt_save_MAGIC_CMD"
14677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14678 if test -n "$MAGIC_CMD"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14680 $as_echo "$MAGIC_CMD" >&6; }
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14683 $as_echo "no
" >&6; }
14690 if test -z "$lt_cv_path_MAGIC_CMD"; then
14691 if test -n "$ac_tool_prefix"; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14693 $as_echo_n "checking
for file...
" >&6; }
14694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14695 $as_echo_n "(cached
) " >&6
14699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14702 lt_save_MAGIC_CMD="$MAGIC_CMD"
14703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14704 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14705 for ac_dir in $ac_dummy; do
14707 test -z "$ac_dir" && ac_dir=.
14708 if test -f $ac_dir/file; then
14709 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14710 if test -n "$file_magic_test_file"; then
14711 case $deplibs_check_method in
14713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14716 $EGREP "$file_magic_regex" > /dev/null; then
14721 *** Warning: the command libtool uses to detect shared libraries,
14722 *** $file_magic_cmd, produces output that libtool cannot recognize.
14723 *** The result is that libtool may fail to recognize shared libraries
14724 *** as such. This will affect the creation of libtool libraries that
14725 *** depend on shared libraries, but programs linked with such libtool
14726 *** libraries will work regardless of this problem. Nevertheless, you
14727 *** may want to report the problem to your system manager and/or to
14728 *** bug-libtool@gnu.org
14738 MAGIC_CMD="$lt_save_MAGIC_CMD"
14743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14744 if test -n "$MAGIC_CMD"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14746 $as_echo "$MAGIC_CMD" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14749 $as_echo "no
" >&6; }
14762 # Use C for the default configuration in the libtool script
14766 ac_cpp='$CPP $CPPFLAGS'
14767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14772 # Source file extension for C test sources.
14775 # Object file extension for compiled C test sources.
14779 # Code to be used in simple compile tests
14780 lt_simple_compile_test_code="int some_variable
= 0;"
14782 # Code to be used in simple link tests
14783 lt_simple_link_test_code='int main(){return(0);}'
14791 # If no C compiler was specified, use CC.
14794 # If no C compiler flags were specified, use CFLAGS.
14795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14797 # Allow CC to be a program name with arguments.
14800 # Save the default compiler, since it gets overwritten when the other
14801 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14802 compiler_DEFAULT=$CC
14804 # save warnings/boilerplate of simple test code
14805 ac_outfile=conftest.$ac_objext
14806 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14808 _lt_compiler_boilerplate=`cat conftest.err`
14811 ac_outfile=conftest.$ac_objext
14812 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14814 _lt_linker_boilerplate=`cat conftest.err`
14819 ## There is no encapsulation within the following macros, do not change
14820 ## the running order or otherwise move them around unless you know exactly
14821 ## what you are doing...
14822 if test -n "$compiler"; then
14824 lt_prog_compiler_no_builtin_flag=
14826 if test "$GCC" = yes; then
14827 case $cc_basename in
14829 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14831 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14835 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14836 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14837 $as_echo_n "(cached
) " >&6
14839 lt_cv_prog_compiler_rtti_exceptions=no
14840 ac_outfile=conftest.$ac_objext
14841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14842 lt_compiler_flag="-fno-rtti -fno-exceptions"
14843 # Insert the option either (1) after the last *FLAGS variable, or
14844 # (2) before a word containing "conftest.
", or (3) at the end.
14845 # Note that $ac_compile itself does not contain backslashes and begins
14846 # with a dollar sign (not a hyphen), so the echo should work correctly.
14847 # The option is referenced via a variable to avoid confusing sed.
14848 lt_compile=`echo "$ac_compile" | $SED \
14849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14851 -e 's:$: $lt_compiler_flag:'`
14852 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14853 (eval "$lt_compile" 2>conftest.err)
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14857 if (exit $ac_status) && test -s "$ac_outfile"; then
14858 # The compiler can only warn and ignore the option if not recognized
14859 # So say no if there are warnings other than the usual output.
14860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14863 lt_cv_prog_compiler_rtti_exceptions=yes
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14870 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14873 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14885 lt_prog_compiler_wl=
14886 lt_prog_compiler_pic=
14887 lt_prog_compiler_static=
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14890 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14892 if test "$GCC" = yes; then
14893 lt_prog_compiler_wl='-Wl,'
14894 lt_prog_compiler_static='-static'
14898 # All AIX code is PIC.
14899 if test "$host_cpu" = ia64; then
14900 # AIX 5 now supports IA64 processor
14901 lt_prog_compiler_static='-Bstatic'
14903 lt_prog_compiler_pic='-fPIC'
14909 # see comment about AmigaOS4 .so support
14910 lt_prog_compiler_pic='-fPIC'
14913 # FIXME: we need at least 68020 code to build shared libraries, but
14914 # adding the `-m68020' flag to GCC prevents building anything better,
14916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14922 # PIC is the default for these OSes.
14925 mingw* | cygwin* | pw32* | os2* | cegcc*)
14926 # This hack is so that the source file can tell whether it is being
14927 # built for inclusion in a dll (and should export symbols for example).
14928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14929 # (--disable-auto-import) libraries
14930 lt_prog_compiler_pic='-DDLL_EXPORT'
14933 darwin* | rhapsody*)
14934 # PIC is the default on this platform
14935 # Common symbols not allowed in MH_DYLIB files
14936 lt_prog_compiler_pic='-fno-common'
14940 # PIC is the default for Haiku.
14941 # The "-static" flag exists, but is broken.
14942 lt_prog_compiler_static=
14946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14948 # sets the default TLS model and affects inlining.
14954 lt_prog_compiler_pic='-fPIC'
14960 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14961 # Instead, we relocate shared libraries at runtime.
14965 # Just because we use GCC doesn't mean we suddenly get shared libraries
14966 # on systems that don't support them.
14967 lt_prog_compiler_can_build_shared=no
14972 # QNX uses GNU C++, but need to define -shared option too, otherwise
14973 # it will coredump.
14974 lt_prog_compiler_pic='-fPIC -shared'
14978 if test -d /usr/nec; then
14979 lt_prog_compiler_pic=-Kconform_pic
14984 lt_prog_compiler_pic='-fPIC'
14988 case $cc_basename in
14989 nvcc*) # Cuda Compiler Driver 2.2
14990 lt_prog_compiler_wl='-Xlinker '
14991 lt_prog_compiler_pic='-Xcompiler -fPIC'
14995 # PORTME Check for flag to pass linker flags through the system compiler.
14998 lt_prog_compiler_wl='-Wl,'
14999 if test "$host_cpu" = ia64; then
15000 # AIX 5 now supports IA64 processor
15001 lt_prog_compiler_static='-Bstatic'
15003 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15007 mingw* | cygwin* | pw32* | os2* | cegcc*)
15008 # This hack is so that the source file can tell whether it is being
15009 # built for inclusion in a dll (and should export symbols for example).
15010 lt_prog_compiler_pic='-DDLL_EXPORT'
15013 hpux9* | hpux10* | hpux11*)
15014 lt_prog_compiler_wl='-Wl,'
15015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15016 # not for PA HP-UX.
15022 lt_prog_compiler_pic='+Z'
15025 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15026 lt_prog_compiler_static='${wl}-a ${wl}archive'
15029 irix5* | irix6* | nonstopux*)
15030 lt_prog_compiler_wl='-Wl,'
15031 # PIC (with -KPIC) is the default.
15032 lt_prog_compiler_static='-non_shared'
15035 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15036 case $cc_basename in
15037 # old Intel for x86_64 which still supported -KPIC.
15039 lt_prog_compiler_wl='-Wl,'
15040 lt_prog_compiler_pic='-KPIC'
15041 lt_prog_compiler_static='-static'
15043 # icc used to be incompatible with GCC.
15044 # ICC 10 doesn't accept -KPIC any more.
15046 lt_prog_compiler_wl='-Wl,'
15047 lt_prog_compiler_pic='-fPIC'
15048 lt_prog_compiler_static='-static'
15050 # Lahey Fortran 8.1.
15052 lt_prog_compiler_wl='-Wl,'
15053 lt_prog_compiler_pic='--shared'
15054 lt_prog_compiler_static='--static'
15056 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15057 # Portland Group compilers (*not* the Pentium gcc compiler,
15058 # which looks to be a dead project)
15059 lt_prog_compiler_wl='-Wl,'
15060 lt_prog_compiler_pic='-fpic'
15061 lt_prog_compiler_static='-Bstatic'
15064 lt_prog_compiler_wl='-Wl,'
15065 # All Alpha code is PIC.
15066 lt_prog_compiler_static='-non_shared'
15068 xl* | bgxl* | bgf* | mpixl*)
15069 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15070 lt_prog_compiler_wl='-Wl,'
15071 lt_prog_compiler_pic='-qpic'
15072 lt_prog_compiler_static='-qstaticlink'
15075 case `$CC -V 2>&1 | sed 5q` in
15076 *Sun\ F* | *Sun*Fortran*)
15077 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15078 lt_prog_compiler_pic='-KPIC'
15079 lt_prog_compiler_static='-Bstatic'
15080 lt_prog_compiler_wl=''
15084 lt_prog_compiler_pic='-KPIC'
15085 lt_prog_compiler_static='-Bstatic'
15086 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_pic='-KPIC'
15095 lt_prog_compiler_static='-Bstatic'
15099 # QNX uses GNU C++, but need to define -shared option too, otherwise
15100 # it will coredump.
15101 lt_prog_compiler_pic='-fPIC -shared'
15104 osf3* | osf4* | osf5*)
15105 lt_prog_compiler_wl='-Wl,'
15106 # All OSF/1 code is PIC.
15107 lt_prog_compiler_static='-non_shared'
15111 lt_prog_compiler_static='-non_shared'
15115 lt_prog_compiler_pic='-KPIC'
15116 lt_prog_compiler_static='-Bstatic'
15117 case $cc_basename in
15118 f77* | f90* | f95*)
15119 lt_prog_compiler_wl='-Qoption ld ';;
15121 lt_prog_compiler_wl='-Wl,';;
15126 lt_prog_compiler_wl='-Qoption ld '
15127 lt_prog_compiler_pic='-PIC'
15128 lt_prog_compiler_static='-Bstatic'
15131 sysv4 | sysv4.2uw2* | sysv4.3*)
15132 lt_prog_compiler_wl='-Wl,'
15133 lt_prog_compiler_pic='-KPIC'
15134 lt_prog_compiler_static='-Bstatic'
15138 if test -d /usr/nec ;then
15139 lt_prog_compiler_pic='-Kconform_pic'
15140 lt_prog_compiler_static='-Bstatic'
15144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15145 lt_prog_compiler_wl='-Wl,'
15146 lt_prog_compiler_pic='-KPIC'
15147 lt_prog_compiler_static='-Bstatic'
15151 lt_prog_compiler_wl='-Wl,'
15152 lt_prog_compiler_can_build_shared=no
15156 lt_prog_compiler_pic='-pic'
15157 lt_prog_compiler_static='-Bstatic'
15161 lt_prog_compiler_can_build_shared=no
15167 # For platforms which do not support PIC, -DPIC is meaningless:
15169 lt_prog_compiler_pic=
15172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15176 $as_echo "$lt_prog_compiler_pic" >&6; }
15184 # Check to make sure the PIC flag actually works.
15186 if test -n "$lt_prog_compiler_pic"; then
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15188 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15189 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15190 $as_echo_n "(cached
) " >&6
15192 lt_cv_prog_compiler_pic_works=no
15193 ac_outfile=conftest.$ac_objext
15194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15195 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15196 # Insert the option either (1) after the last *FLAGS variable, or
15197 # (2) before a word containing "conftest.
", or (3) at the end.
15198 # Note that $ac_compile itself does not contain backslashes and begins
15199 # with a dollar sign (not a hyphen), so the echo should work correctly.
15200 # The option is referenced via a variable to avoid confusing sed.
15201 lt_compile=`echo "$ac_compile" | $SED \
15202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15204 -e 's:$: $lt_compiler_flag:'`
15205 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15206 (eval "$lt_compile" 2>conftest.err)
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15210 if (exit $ac_status) && test -s "$ac_outfile"; then
15211 # The compiler can only warn and ignore the option if not recognized
15212 # So say no if there are warnings other than the usual output.
15213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15216 lt_cv_prog_compiler_pic_works=yes
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15223 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15225 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15226 case $lt_prog_compiler_pic in
15228 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15231 lt_prog_compiler_pic=
15232 lt_prog_compiler_can_build_shared=no
15243 # Check to make sure the static flag actually works.
15245 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15247 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15248 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15249 $as_echo_n "(cached
) " >&6
15251 lt_cv_prog_compiler_static_works=no
15252 save_LDFLAGS="$LDFLAGS"
15253 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15254 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15255 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15256 # The linker can only warn and ignore the option if not recognized
15257 # So say no if there are warnings
15258 if test -s conftest.err; then
15259 # Append any errors to the config.log.
15260 cat conftest.err 1>&5
15261 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15263 if diff conftest.exp conftest.er2 >/dev/null; then
15264 lt_cv_prog_compiler_static_works=yes
15267 lt_cv_prog_compiler_static_works=yes
15271 LDFLAGS="$save_LDFLAGS"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15275 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15277 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15280 lt_prog_compiler_static=
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15290 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15291 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15292 $as_echo_n "(cached
) " >&6
15294 lt_cv_prog_compiler_c_o=no
15295 $RM -r conftest 2>/dev/null
15299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15301 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15302 # Insert the option either (1) after the last *FLAGS variable, or
15303 # (2) before a word containing "conftest.
", or (3) at the end.
15304 # Note that $ac_compile itself does not contain backslashes and begins
15305 # with a dollar sign (not a hyphen), so the echo should work correctly.
15306 lt_compile=`echo "$ac_compile" | $SED \
15307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15309 -e 's:$: $lt_compiler_flag:'`
15310 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15311 (eval "$lt_compile" 2>out/conftest.err)
15313 cat out/conftest.err >&5
15314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15317 # The compiler can only warn and ignore the option if not recognized
15318 # So say no if there are warnings
15319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15322 lt_cv_prog_compiler_c_o=yes
15327 # SGI C++ compiler will create directory out/ii_files/ for
15328 # template instantiation
15329 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15330 $RM out/* && rmdir out
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15337 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15345 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15346 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15347 $as_echo_n "(cached
) " >&6
15349 lt_cv_prog_compiler_c_o=no
15350 $RM -r conftest 2>/dev/null
15354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15356 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15357 # Insert the option either (1) after the last *FLAGS variable, or
15358 # (2) before a word containing "conftest.
", or (3) at the end.
15359 # Note that $ac_compile itself does not contain backslashes and begins
15360 # with a dollar sign (not a hyphen), so the echo should work correctly.
15361 lt_compile=`echo "$ac_compile" | $SED \
15362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15364 -e 's:$: $lt_compiler_flag:'`
15365 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15366 (eval "$lt_compile" 2>out/conftest.err)
15368 cat out/conftest.err >&5
15369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15372 # The compiler can only warn and ignore the option if not recognized
15373 # So say no if there are warnings
15374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15377 lt_cv_prog_compiler_c_o=yes
15382 # SGI C++ compiler will create directory out/ii_files/ for
15383 # template instantiation
15384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15385 $RM out/* && rmdir out
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15392 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15397 hard_links="nottested
"
15398 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15399 # do not overwrite the value of need_locks provided by the user
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15401 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15406 ln conftest.a conftest.b 2>&5 || hard_links=no
15407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15409 $as_echo "$hard_links" >&6; }
15410 if test "$hard_links" = no; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15412 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15425 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15428 allow_undefined_flag=
15429 always_export_symbols=no
15431 archive_expsym_cmds=
15432 compiler_needs_object=no
15433 enable_shared_with_static_runtimes=no
15434 export_dynamic_flag_spec=
15435 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15436 hardcode_automatic=no
15438 hardcode_direct_absolute=no
15439 hardcode_libdir_flag_spec=
15440 hardcode_libdir_flag_spec_ld=
15441 hardcode_libdir_separator=
15442 hardcode_minus_L=no
15443 hardcode_shlibpath_var=unsupported
15445 link_all_deplibs=unknown
15447 module_expsym_cmds=
15448 old_archive_from_new_cmds=
15449 old_archive_from_expsyms_cmds=
15450 thread_safe_flag_spec=
15451 whole_archive_flag_spec=
15452 # include_expsyms should be a list of space-separated symbols to be *always*
15453 # included in the symbol list
15455 # exclude_expsyms can be an extended regexp of symbols to exclude
15456 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15458 # as well as any symbol that contains `d'.
15459 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15461 # platforms (ab)use it in PIC code, but their linkers get confused if
15462 # the symbol is explicitly referenced. Since portable code cannot
15463 # rely on this symbol name, it's probably fine to never include it in
15464 # preloaded symbol tables.
15465 # Exclude shared library initialization/finalization symbols.
15466 extract_expsyms_cmds=
15469 cygwin* | mingw* | pw32* | cegcc*)
15470 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15471 # When not using gcc, we currently assume that we are using
15472 # Microsoft Visual C++.
15473 if test "$GCC" != yes; then
15478 # we just hope/assume this is gcc and not c89 (= MSVC++)
15488 # On some targets, GNU ld is compatible enough with the native linker
15489 # that we're better off using the native interface for both.
15490 lt_use_gnu_ld_interface=no
15491 if test "$with_gnu_ld" = yes; then
15494 # The AIX port of GNU ld has always aspired to compatibility
15495 # with the native linker. However, as the warning in the GNU ld
15496 # block says, versions before 2.19.5* couldn't really create working
15497 # shared libraries, regardless of the interface used.
15498 case `$LD -v 2>&1` in
15499 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15500 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15501 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15503 lt_use_gnu_ld_interface=yes
15508 lt_use_gnu_ld_interface=yes
15513 if test "$lt_use_gnu_ld_interface" = yes; then
15514 # If archive_cmds runs LD, not CC, wlarc should be empty
15517 # Set some defaults for GNU ld with shared library support. These
15518 # are reset later if shared libraries are not supported. Putting them
15519 # here allows them to be overridden if necessary.
15520 runpath_var=LD_RUN_PATH
15521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15522 export_dynamic_flag_spec='${wl}--export-dynamic'
15523 # ancient GNU ld didn't support --whole-archive et. al.
15524 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15525 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15527 whole_archive_flag_spec=
15529 supports_anon_versioning=no
15530 case `$LD -v 2>&1` in
15531 *GNU\ gold*) supports_anon_versioning=yes ;;
15532 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15533 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15534 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15535 *\ 2.11.*) ;; # other 2.11 versions
15536 *) supports_anon_versioning=yes ;;
15539 # See if GNU ld supports shared libraries.
15542 # On AIX/PPC, the GNU linker is very broken
15543 if test "$host_cpu" != ia64; then
15547 *** Warning: the GNU linker, at least up to release 2.19, is reported
15548 *** to be unable to reliably create shared libraries on AIX.
15549 *** Therefore, libtool is disabling shared libraries support. If you
15550 *** really care for shared libraries, you may want to install binutils
15551 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15552 *** You will then need to restart the configuration process.
15561 # see comment about AmigaOS4 .so support
15562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563 archive_expsym_cmds=''
15566 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)'
15567 hardcode_libdir_flag_spec
='-L$libdir'
15568 hardcode_minus_L
=yes
15574 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15575 allow_undefined_flag
=unsupported
15576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15577 # support --undefined. This deserves some investigation. FIXME
15578 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15584 cygwin
* | mingw
* | pw32
* | cegcc
*)
15585 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15586 # as there is no search path for DLLs.
15587 hardcode_libdir_flag_spec
='-L$libdir'
15588 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15589 allow_undefined_flag
=unsupported
15590 always_export_symbols
=no
15591 enable_shared_with_static_runtimes
=yes
15592 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15594 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15595 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15596 # If the export-symbols file already is a .def file (1st line
15597 # is EXPORTS), use it as is; otherwise, prepend...
15598 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15599 cp $export_symbols $output_objdir/$soname.def;
15601 echo EXPORTS > $output_objdir/$soname.def;
15602 cat $export_symbols >> $output_objdir/$soname.def;
15604 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15611 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15612 link_all_deplibs
=yes
15617 hardcode_shlibpath_var
=no
15618 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15619 export_dynamic_flag_spec
='${wl}-E'
15620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15621 # Instead, shared libraries are loaded at an image base (0x10000000 by
15622 # default) and relocated if they conflict, which is a slow very memory
15623 # consuming and fragmenting process. To avoid this, we pick a random,
15624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15626 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15627 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'
15630 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15632 if test "$host_os" = linux-dietlibc
; then
15633 case $cc_basename in
15634 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15637 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15638 && test "$tmp_diet" = no
15641 tmp_sharedflag
='-shared'
15642 case $cc_basename,$host_cpu in
15643 pgcc
*) # Portland Group C compiler
15644 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'
15645 tmp_addflag
=' $pic_flag'
15647 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15648 # Portland Group f77 and f90 compilers
15649 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'
15650 tmp_addflag
=' $pic_flag -Mnomain' ;;
15651 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15652 tmp_addflag
=' -i_dynamic' ;;
15653 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15654 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15655 ifc
* | ifort
*) # Intel Fortran compiler
15656 tmp_addflag
=' -nofor_main' ;;
15657 lf95
*) # Lahey Fortran 8.1
15658 whole_archive_flag_spec
=
15659 tmp_sharedflag
='--shared' ;;
15660 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15661 tmp_sharedflag
='-qmkshrobj'
15663 nvcc
*) # Cuda Compiler Driver 2.2
15664 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'
15665 compiler_needs_object
=yes
15668 case `$CC -V 2>&1 | sed 5q` in
15669 *Sun\ C
*) # Sun C 5.9
15670 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'
15671 compiler_needs_object
=yes
15672 tmp_sharedflag
='-G' ;;
15673 *Sun\ F
*) # Sun Fortran 8.3
15674 tmp_sharedflag
='-G' ;;
15676 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 if test "x$supports_anon_versioning" = xyes
; then
15679 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15681 echo "local: *; };" >> $output_objdir/$libname.ver~
15682 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15685 case $cc_basename in
15686 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15687 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15688 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15689 hardcode_libdir_flag_spec
=
15690 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15691 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15692 if test "x$supports_anon_versioning" = xyes
; then
15693 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15695 echo "local: *; };" >> $output_objdir/$libname.ver~
15696 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15706 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15707 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15710 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15711 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15716 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15721 *** create shared libraries on Solaris systems. Therefore, libtool
15722 *** is disabling shared libraries support. We urge you to upgrade GNU
15723 *** binutils to release 2.9.1 or newer. Another option is to modify
15724 *** your PATH or compiler configuration so that the native linker is
15725 *** used, and then restart.
15728 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15729 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15730 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15736 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15737 case `$LD -v 2>&1` in
15738 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15743 *** reliably create shared libraries on SCO systems. Therefore, libtool
15744 *** is disabling shared libraries support. We urge you to upgrade GNU
15745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15746 *** your PATH or compiler configuration so that the native linker is
15747 *** used, and then restart.
15752 # For security reasons, it is highly recommended that you always
15753 # use absolute paths for naming shared libraries, and exclude the
15754 # DT_RUNPATH tag from executables and libraries. But doing so
15755 # requires that you compile everything twice, which is a pain.
15756 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15757 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15758 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15768 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15770 hardcode_direct
=yes
15771 hardcode_shlibpath_var
=no
15775 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15784 if test "$ld_shlibs" = no
; then
15786 hardcode_libdir_flag_spec
=
15787 export_dynamic_flag_spec
=
15788 whole_archive_flag_spec
=
15791 # PORTME fill in a description of your system's linker (not GNU ld)
15794 allow_undefined_flag
=unsupported
15795 always_export_symbols
=yes
15796 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'
15797 # Note: this linker hardcodes the directories in LIBPATH if there
15798 # are no directories specified by -L.
15799 hardcode_minus_L
=yes
15800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15801 # Neither direct hardcoding nor static linking is supported with a
15803 hardcode_direct
=unsupported
15808 if test "$host_cpu" = ia64
; then
15809 # On IA64, the linker does run time linking by default, so we don't
15810 # have to do anything special.
15811 aix_use_runtimelinking
=no
15812 exp_sym_flag
='-Bexport'
15815 # If we're using GNU nm, then we don't want the "-C" option.
15816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15817 # Also, AIX nm treats weak defined symbols like other global
15818 # defined symbols, whereas GNU nm marks them as "W".
15819 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15820 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'
15822 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'
15824 aix_use_runtimelinking
=no
15826 # Test if we are trying to use run time linking or normal
15827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15828 # need to do runtime linking.
15829 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15830 for ld_flag
in $LDFLAGS; do
15831 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15832 aix_use_runtimelinking
=yes
15839 exp_sym_flag
='-bexport'
15840 no_entry_flag
='-bnoentry'
15843 # When large executables or shared objects are built, AIX ld can
15844 # have problems creating the table of contents. If linking a library
15845 # or program results in "error TOC overflow" add -mminimal-toc to
15846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15850 hardcode_direct
=yes
15851 hardcode_direct_absolute
=yes
15852 hardcode_libdir_separator
=':'
15853 link_all_deplibs
=yes
15854 file_list_spec
='${wl}-f,'
15856 if test "$GCC" = yes; then
15857 case $host_os in aix4.
[012]|aix4.
[012].
*)
15858 # We only want to do this on AIX 4.2 and lower, the check
15859 # below for broken collect2 doesn't work under 4.3+
15860 collect2name
=`${CC} -print-prog-name=collect2`
15861 if test -f "$collect2name" &&
15862 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15864 # We have reworked collect2
15867 # We have old collect2
15868 hardcode_direct
=unsupported
15869 # It fails to find uninstalled libraries when the uninstalled
15870 # path is not listed in the libpath. Setting hardcode_minus_L
15871 # to unsupported forces relinking
15872 hardcode_minus_L
=yes
15873 hardcode_libdir_flag_spec
='-L$libdir'
15874 hardcode_libdir_separator
=
15878 shared_flag
='-shared'
15879 if test "$aix_use_runtimelinking" = yes; then
15880 shared_flag
="$shared_flag "'${wl}-G'
15884 if test "$host_cpu" = ia64
; then
15885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15886 # chokes on -Wl,-G. The following line is correct:
15889 if test "$aix_use_runtimelinking" = yes; then
15890 shared_flag
='${wl}-G'
15892 shared_flag
='${wl}-bM:SRE'
15897 export_dynamic_flag_spec
='${wl}-bexpall'
15898 # It seems that -bexpall does not export symbols beginning with
15899 # underscore (_), so it is better to generate a list of symbols to export.
15900 always_export_symbols
=yes
15901 if test "$aix_use_runtimelinking" = yes; then
15902 # Warning - without using the other runtime loading flags (-brtl),
15903 # -berok will link without error, but may produce a broken library.
15904 allow_undefined_flag
='-berok'
15905 # Determine the default libpath from the value encoded in an
15906 # empty executable.
15907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15918 if ac_fn_c_try_link
"$LINENO"; then :
15920 lt_aix_libpath_sed
='
15921 /Import File Strings/,/^$/ {
15927 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15928 # Check for a 64-bit object if we didn't find anything.
15929 if test -z "$aix_libpath"; then
15930 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15933 rm -f core conftest.err conftest.
$ac_objext \
15934 conftest
$ac_exeext conftest.
$ac_ext
15935 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15937 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15938 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"
15940 if test "$host_cpu" = ia64
; then
15941 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15942 allow_undefined_flag
="-z nodefs"
15943 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"
15945 # Determine the default libpath from the value encoded in an
15946 # empty executable.
15947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15958 if ac_fn_c_try_link
"$LINENO"; then :
15960 lt_aix_libpath_sed
='
15961 /Import File Strings/,/^$/ {
15967 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15968 # Check for a 64-bit object if we didn't find anything.
15969 if test -z "$aix_libpath"; then
15970 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15973 rm -f core conftest.err conftest.
$ac_objext \
15974 conftest
$ac_exeext conftest.
$ac_ext
15975 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15977 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15978 # Warning - without using the other run time loading flags,
15979 # -berok will link without error, but may produce a broken library.
15980 no_undefined_flag
=' ${wl}-bernotok'
15981 allow_undefined_flag
=' ${wl}-berok'
15982 if test "$with_gnu_ld" = yes; then
15983 # We only use this code for GNU lds that support --whole-archive.
15984 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15986 # Exported symbols can be pulled into shared objects from archives
15987 whole_archive_flag_spec
='$convenience'
15989 archive_cmds_need_lc
=yes
15990 # This is similar to how AIX traditionally builds its shared libraries.
15991 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'
15999 # see comment about AmigaOS4 .so support
16000 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_expsym_cmds
=''
16004 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)'
16005 hardcode_libdir_flag_spec
='-L$libdir'
16006 hardcode_minus_L
=yes
16012 export_dynamic_flag_spec
=-rdynamic
16015 cygwin
* | mingw
* | pw32
* | cegcc
*)
16016 # When not using gcc, we currently assume that we are using
16017 # Microsoft Visual C++.
16018 # hardcode_libdir_flag_spec is actually meaningless, as there is
16019 # no search path for DLLs.
16020 hardcode_libdir_flag_spec
=' '
16021 allow_undefined_flag
=unsupported
16022 # Tell ltmain to make .lib files, not .a files.
16024 # Tell ltmain to make .dll files, not .so files.
16026 # FIXME: Setting linknames here is a bad hack.
16027 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16028 # The linker will automatically build a .lib file if we build a DLL.
16029 old_archive_from_new_cmds
='true'
16030 # FIXME: Should let the user specify the lib program.
16031 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16032 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16033 enable_shared_with_static_runtimes
=yes
16036 darwin
* | rhapsody
*)
16039 archive_cmds_need_lc
=no
16041 hardcode_automatic
=yes
16042 hardcode_shlibpath_var
=unsupported
16043 if test "$lt_cv_ld_force_load" = "yes"; then
16044 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\"`'
16046 whole_archive_flag_spec
=''
16048 link_all_deplibs
=yes
16049 allow_undefined_flag
="$_lt_dar_allow_undefined"
16050 case $cc_basename in
16051 ifort
*) _lt_dar_can_shared
=yes ;;
16052 *) _lt_dar_can_shared
=$GCC ;;
16054 if test "$_lt_dar_can_shared" = "yes"; then
16055 output_verbose_link_cmd
=func_echo_all
16056 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16057 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16058 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}"
16059 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}"
16068 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_libdir_flag_spec
='-L$libdir'
16070 hardcode_shlibpath_var
=no
16073 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16074 # support. Future versions do this automatically, but an explicit c++rt0.o
16075 # does not break anything, and helps significantly (at the cost of a little
16078 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16079 hardcode_libdir_flag_spec
='-R$libdir'
16080 hardcode_direct
=yes
16081 hardcode_shlibpath_var
=no
16084 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16086 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_direct
=yes
16088 hardcode_minus_L
=yes
16089 hardcode_shlibpath_var
=no
16092 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16093 freebsd
* | dragonfly
*)
16094 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16095 hardcode_libdir_flag_spec
='-R$libdir'
16096 hardcode_direct
=yes
16097 hardcode_shlibpath_var
=no
16101 if test "$GCC" = yes; then
16102 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'
16104 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'
16106 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16107 hardcode_libdir_separator
=:
16108 hardcode_direct
=yes
16110 # hardcode_minus_L: Not really in the search PATH,
16111 # but as the default location of the library.
16112 hardcode_minus_L
=yes
16113 export_dynamic_flag_spec
='${wl}-E'
16117 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16118 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16122 if test "$with_gnu_ld" = no
; then
16123 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16124 hardcode_libdir_flag_spec_ld
='+b $libdir'
16125 hardcode_libdir_separator
=:
16126 hardcode_direct
=yes
16127 hardcode_direct_absolute
=yes
16128 export_dynamic_flag_spec
='${wl}-E'
16129 # hardcode_minus_L: Not really in the search PATH,
16130 # but as the default location of the library.
16131 hardcode_minus_L
=yes
16136 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16139 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16151 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16154 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16158 # Older versions of the 11.00 compiler do not understand -b yet
16159 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16161 $as_echo_n "checking if $CC understands -b... " >&6; }
16162 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16163 $as_echo_n "(cached) " >&6
16165 lt_cv_prog_compiler__b
=no
16166 save_LDFLAGS
="$LDFLAGS"
16167 LDFLAGS
="$LDFLAGS -b"
16168 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16169 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16170 # The linker can only warn and ignore the option if not recognized
16171 # So say no if there are warnings
16172 if test -s conftest.err
; then
16173 # Append any errors to the config.log.
16174 cat conftest.err
1>&5
16175 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16176 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16177 if diff conftest.exp conftest.er2
>/dev
/null
; then
16178 lt_cv_prog_compiler__b
=yes
16181 lt_cv_prog_compiler__b
=yes
16185 LDFLAGS
="$save_LDFLAGS"
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16189 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16191 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16192 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16200 if test "$with_gnu_ld" = no
; then
16201 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16202 hardcode_libdir_separator
=:
16207 hardcode_shlibpath_var
=no
16210 hardcode_direct
=yes
16211 hardcode_direct_absolute
=yes
16212 export_dynamic_flag_spec
='${wl}-E'
16214 # hardcode_minus_L: Not really in the search PATH,
16215 # but as the default location of the library.
16216 hardcode_minus_L
=yes
16222 irix5
* | irix6
* | nonstopux
*)
16223 if test "$GCC" = yes; then
16224 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'
16225 # Try to use the -exported_symbol ld option, if it does not
16226 # work, assume that -exports_file does not work either and
16227 # implicitly export all symbols.
16228 save_LDFLAGS
="$LDFLAGS"
16229 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16234 if ac_fn_c_try_link
"$LINENO"; then :
16235 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'
16238 rm -f core conftest.err conftest.
$ac_objext \
16239 conftest
$ac_exeext conftest.
$ac_ext
16240 LDFLAGS
="$save_LDFLAGS"
16242 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'
16243 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'
16245 archive_cmds_need_lc
='no'
16246 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16247 hardcode_libdir_separator
=:
16249 link_all_deplibs
=yes
16253 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16254 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16256 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16258 hardcode_libdir_flag_spec
='-R$libdir'
16259 hardcode_direct
=yes
16260 hardcode_shlibpath_var
=no
16264 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_direct
=yes
16266 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16267 hardcode_libdir_separator
=:
16268 hardcode_shlibpath_var
=no
16275 if test -f /usr
/libexec
/ld.so
; then
16276 hardcode_direct
=yes
16277 hardcode_shlibpath_var
=no
16278 hardcode_direct_absolute
=yes
16279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16280 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16281 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16282 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16283 export_dynamic_flag_spec
='${wl}-E'
16286 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16287 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16288 hardcode_libdir_flag_spec
='-R$libdir'
16291 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16292 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16302 hardcode_libdir_flag_spec
='-L$libdir'
16303 hardcode_minus_L
=yes
16304 allow_undefined_flag
=unsupported
16305 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'
16306 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16310 if test "$GCC" = yes; then
16311 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16312 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'
16314 allow_undefined_flag
=' -expect_unresolved \*'
16315 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'
16317 archive_cmds_need_lc
='no'
16318 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16319 hardcode_libdir_separator
=:
16322 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16323 if test "$GCC" = yes; then
16324 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16325 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'
16326 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16328 allow_undefined_flag
=' -expect_unresolved \*'
16329 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'
16330 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~
16331 $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'
16333 # Both c and cxx compiler support -rpath directly
16334 hardcode_libdir_flag_spec
='-rpath $libdir'
16336 archive_cmds_need_lc
='no'
16337 hardcode_libdir_separator
=:
16341 no_undefined_flag
=' -z defs'
16342 if test "$GCC" = yes; then
16344 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16345 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16346 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16348 case `$CC -V 2>&1` in
16351 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16353 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16357 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16358 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16359 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16363 hardcode_libdir_flag_spec
='-R$libdir'
16364 hardcode_shlibpath_var
=no
16366 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16368 # The compiler driver will combine and reorder linker options,
16369 # but understands `-z linker_flag'. GCC discards it without `$wl',
16370 # but is careful enough not to reorder.
16371 # Supported since Solaris 2.6 (maybe 2.5.1?)
16372 if test "$GCC" = yes; then
16373 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16375 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16379 link_all_deplibs
=yes
16383 if test "x$host_vendor" = xsequent
; then
16384 # Use $CC to link under sequent, because it throws in some extra .o
16385 # files that make .init and .fini sections work.
16386 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16388 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16390 hardcode_libdir_flag_spec
='-L$libdir'
16391 hardcode_direct
=yes
16392 hardcode_minus_L
=yes
16393 hardcode_shlibpath_var
=no
16397 case $host_vendor in
16399 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400 hardcode_direct
=yes # is this really true???
16403 ## LD is ld it makes a PLAMLIB
16404 ## CC just makes a GrossModule.
16405 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16406 reload_cmds
='$CC -r -o $output$reload_objs'
16410 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16411 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16414 runpath_var
='LD_RUN_PATH'
16415 hardcode_shlibpath_var
=no
16419 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420 hardcode_shlibpath_var
=no
16421 export_dynamic_flag_spec
='-Bexport'
16425 if test -d /usr
/nec
; then
16426 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16427 hardcode_shlibpath_var
=no
16428 runpath_var
=LD_RUN_PATH
16429 hardcode_runpath_var
=yes
16434 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16435 no_undefined_flag
='${wl}-z,text'
16436 archive_cmds_need_lc
=no
16437 hardcode_shlibpath_var
=no
16438 runpath_var
='LD_RUN_PATH'
16440 if test "$GCC" = yes; then
16441 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16442 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16444 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 sysv5
* | sco3.2v5
* | sco5v6
*)
16450 # Note: We can NOT use -z defs as we might desire, because we do not
16451 # link with -lc, and that would cause any symbols used from libc to
16452 # always be unresolved, which means just about no library would
16453 # ever link correctly. If we're not using GNU ld we use -z text
16454 # though, which does catch some bad symbols but isn't as heavy-handed
16456 no_undefined_flag
='${wl}-z,text'
16457 allow_undefined_flag
='${wl}-z,nodefs'
16458 archive_cmds_need_lc
=no
16459 hardcode_shlibpath_var
=no
16460 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16461 hardcode_libdir_separator
=':'
16462 link_all_deplibs
=yes
16463 export_dynamic_flag_spec
='${wl}-Bexport'
16464 runpath_var
='LD_RUN_PATH'
16466 if test "$GCC" = yes; then
16467 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16470 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16471 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16476 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_libdir_flag_spec
='-L$libdir'
16478 hardcode_shlibpath_var
=no
16486 if test x
$host_vendor = xsni
; then
16488 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16489 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16496 $as_echo "$ld_shlibs" >&6; }
16497 test "$ld_shlibs" = no
&& can_build_shared
=no
16499 with_gnu_ld
=$with_gnu_ld
16516 # Do we need to explicitly link libc?
16518 case "x$archive_cmds_need_lc" in
16520 # Assume -lc should be added
16521 archive_cmds_need_lc
=yes
16523 if test "$enable_shared" = yes && test "$GCC" = yes; then
16524 case $archive_cmds in
16526 # FIXME: we may have to deal with multi-command sequences.
16529 # Test whether the compiler implicitly links with -lc since on some
16530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16531 # to ld, don't add -lc before -lgcc.
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16533 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16534 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16535 $as_echo_n "(cached) " >&6
16538 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16541 (eval $ac_compile) 2>&5
16543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16544 test $ac_status = 0; } 2>conftest.err
; then
16547 libobjs
=conftest.
$ac_objext
16549 wl
=$lt_prog_compiler_wl
16550 pic_flag
=$lt_prog_compiler_pic
16556 lt_save_allow_undefined_flag
=$allow_undefined_flag
16557 allow_undefined_flag
=
16558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16559 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16562 test $ac_status = 0; }
16564 lt_cv_archive_cmds_need_lc
=no
16566 lt_cv_archive_cmds_need_lc
=yes
16568 allow_undefined_flag
=$lt_save_allow_undefined_flag
16570 cat conftest.err
1>&5
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16576 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16577 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16741 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16743 if test "$GCC" = yes; then
16745 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16746 *) lt_awk_arg
="/^libraries:/" ;;
16749 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16750 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16752 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16753 case $lt_search_path_spec in
16755 # if the path contains ";" then we assume it to be the separator
16756 # otherwise default to the standard path separator (i.e. ":") - it is
16757 # assumed that no part of a normal pathname contains ";" but that should
16758 # okay in the real world where ";" in dirpaths is itself problematic.
16759 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16762 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16765 # Ok, now we have the path, separated by spaces, we can step through it
16766 # and add multilib dir if necessary.
16767 lt_tmp_lt_search_path_spec
=
16768 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16769 for lt_sys_path
in $lt_search_path_spec; do
16770 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16771 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16773 test -d "$lt_sys_path" && \
16774 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16777 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16778 BEGIN {RS=" "; FS="/|\n";} {
16781 for (lt_i = NF; lt_i > 0; lt_i--) {
16782 if ($lt_i != "" && $lt_i != ".") {
16783 if ($lt_i == "..") {
16786 if (lt_count == 0) {
16787 lt_foo="/" $lt_i lt_foo;
16794 if (lt_foo != "") { lt_freq[lt_foo]++; }
16795 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16797 # AWK program above erroneously prepends '/' to C:/dos/paths
16800 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16801 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16803 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16805 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16807 library_names_spec
=
16808 libname_spec
='lib$name'
16812 postuninstall_cmds
=
16816 shlibpath_overrides_runpath
=unknown
16818 dynamic_linker
="$host_os ld.so"
16819 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16820 need_lib_prefix
=unknown
16821 hardcode_into_libs
=no
16823 # when you set need_version to no, make sure it does not cause -set_version
16824 # flags to be left without arguments
16825 need_version
=unknown
16830 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16831 shlibpath_var
=LIBPATH
16833 # AIX 3 has no versioning support, so we append a major version to the name.
16834 soname_spec
='${libname}${release}${shared_ext}$major'
16841 hardcode_into_libs
=yes
16842 if test "$host_cpu" = ia64
; then
16843 # AIX 5 supports IA64
16844 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16845 shlibpath_var
=LD_LIBRARY_PATH
16847 # With GCC up to 2.95.x, collect2 would create an import file
16848 # for dependence libraries. The import file would start with
16849 # the line `#! .'. This would cause the generated library to
16850 # depend on `.', always an invalid library. This was fixed in
16851 # development snapshots of GCC prior to 3.0.
16853 aix4 | aix4.
[01] | aix4.
[01].
*)
16854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16856 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16859 can_build_shared
=no
16863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16864 # soname into executable. Probably we can add versioning support to
16865 # collect2, so additional links can be useful in future.
16866 if test "$aix_use_runtimelinking" = yes; then
16867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16868 # instead of lib<name>.a to let people know that these are not
16869 # typical AIX shared libraries.
16870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872 # We preserve .a as extension for shared libraries through AIX4.2
16873 # and later when we are not doing run time linking.
16874 library_names_spec
='${libname}${release}.a $libname.a'
16875 soname_spec
='${libname}${release}${shared_ext}$major'
16877 shlibpath_var
=LIBPATH
16884 # Since July 2007 AmigaOS4 officially supports .so libraries.
16885 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16889 library_names_spec
='$libname.ixlibrary $libname.a'
16890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16891 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'
16897 library_names_spec
='${libname}${shared_ext}'
16898 dynamic_linker
="$host_os ld.so"
16899 shlibpath_var
=LIBRARY_PATH
16905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16906 soname_spec
='${libname}${release}${shared_ext}$major'
16907 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16908 shlibpath_var
=LD_LIBRARY_PATH
16909 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16910 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16911 # the default ld.so.conf also contains /usr/contrib/lib and
16912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16913 # libtool to hard-code these into programs
16916 cygwin
* | mingw
* | pw32
* | cegcc
*)
16917 version_type
=windows
16922 case $GCC,$host_os in
16923 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16924 library_names_spec
='$libname.dll.a'
16925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16926 postinstall_cmds
='base_file=`basename \${file}`~
16927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16928 dldir=$destdir/`dirname \$dlpath`~
16929 test -d \$dldir || mkdir -p \$dldir~
16930 $install_prog $dir/$dlname \$dldir/$dlname~
16931 chmod a+x \$dldir/$dlname~
16932 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16933 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16935 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16936 dlpath=$dir/\$dldll~
16938 shlibpath_overrides_runpath
=yes
16942 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16943 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16945 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16948 # MinGW DLLs use traditional 'lib' prefix
16949 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16952 # pw32 DLLs use 'pw' prefix rather than 'lib'
16953 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16959 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16962 dynamic_linker
='Win32 ld.exe'
16963 # FIXME: first we should search . and the directory the executable is in
16967 darwin
* | rhapsody
*)
16968 dynamic_linker
="$host_os dyld"
16969 version_type
=darwin
16972 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16973 soname_spec
='${libname}${release}${major}$shared_ext'
16974 shlibpath_overrides_runpath
=yes
16975 shlibpath_var
=DYLD_LIBRARY_PATH
16976 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16978 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16979 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16987 soname_spec
='${libname}${release}${shared_ext}$major'
16988 shlibpath_var
=LD_LIBRARY_PATH
16991 freebsd
* | dragonfly
*)
16992 # DragonFly does not have aout. When/if they implement a new
16993 # versioning mechanism, adjust this.
16994 if test -x /usr
/bin
/objformat
; then
16995 objformat
=`/usr/bin/objformat`
16998 freebsd
[23].
*) objformat
=aout
;;
16999 *) objformat
=elf
;;
17002 version_type
=freebsd-
$objformat
17003 case $version_type in
17005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17010 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17014 shlibpath_var
=LD_LIBRARY_PATH
17017 shlibpath_overrides_runpath
=yes
17019 freebsd3.
[01]* | freebsdelf3.
[01]*)
17020 shlibpath_overrides_runpath
=yes
17021 hardcode_into_libs
=yes
17023 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17024 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17025 shlibpath_overrides_runpath
=no
17026 hardcode_into_libs
=yes
17028 *) # from 4.6 on, and DragonFly
17029 shlibpath_overrides_runpath
=yes
17030 hardcode_into_libs
=yes
17039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17040 soname_spec
='${libname}${release}${shared_ext}$major'
17041 shlibpath_var
=LD_LIBRARY_PATH
17042 hardcode_into_libs
=yes
17049 dynamic_linker
="$host_os runtime_loader"
17050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17051 soname_spec
='${libname}${release}${shared_ext}$major'
17052 shlibpath_var
=LIBRARY_PATH
17053 shlibpath_overrides_runpath
=yes
17054 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17055 hardcode_into_libs
=yes
17058 hpux9
* | hpux10
* | hpux11
*)
17059 # Give a soname corresponding to the major version so that dld.sl refuses to
17060 # link against other versions.
17067 hardcode_into_libs
=yes
17068 dynamic_linker
="$host_os dld.so"
17069 shlibpath_var
=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec
='${libname}${release}${shared_ext}$major'
17073 if test "X$HPUX_IA64_MODE" = X32
; then
17074 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17076 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17078 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17082 hardcode_into_libs
=yes
17083 dynamic_linker
="$host_os dld.sl"
17084 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17085 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec
='${libname}${release}${shared_ext}$major'
17088 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17089 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17093 dynamic_linker
="$host_os dld.sl"
17094 shlibpath_var
=SHLIB_PATH
17095 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec
='${libname}${release}${shared_ext}$major'
17100 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17101 postinstall_cmds
='chmod 555 $lib'
17102 # or fails outright, so override atomically:
17103 install_override_mode
=555
17110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17111 soname_spec
='${libname}${release}${shared_ext}$major'
17112 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17113 shlibpath_var
=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath
=no
17115 hardcode_into_libs
=yes
17118 irix5
* | irix6
* | nonstopux
*)
17120 nonstopux
*) version_type
=nonstopux
;;
17122 if test "$lt_cv_prog_gnu_ld" = yes; then
17130 soname_spec
='${libname}${release}${shared_ext}$major'
17131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17133 irix5
* | nonstopux
*)
17134 libsuff
= shlibsuff
=
17137 case $LD in # libtool.m4 will add one of these switches to LD
17138 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17139 libsuff
= shlibsuff
= libmagic
=32-bit;;
17140 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17141 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17142 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17143 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17144 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17148 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17149 shlibpath_overrides_runpath
=no
17150 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17151 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17152 hardcode_into_libs
=yes
17155 # No shared lib support for Linux oldld, aout, or coff.
17156 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17160 # This must be Linux ELF.
17161 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 soname_spec
='${libname}${release}${shared_ext}$major'
17167 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17168 shlibpath_var
=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath
=no
17171 # Some binutils ld are patched to set DT_RUNPATH
17172 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17173 $as_echo_n "(cached) " >&6
17175 lt_cv_shlibpath_overrides_runpath
=no
17176 save_LDFLAGS
=$LDFLAGS
17177 save_libdir
=$libdir
17178 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17179 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17191 if ac_fn_c_try_link
"$LINENO"; then :
17192 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17193 lt_cv_shlibpath_overrides_runpath
=yes
17196 rm -f core conftest.err conftest.
$ac_objext \
17197 conftest
$ac_exeext conftest.
$ac_ext
17198 LDFLAGS
=$save_LDFLAGS
17199 libdir
=$save_libdir
17203 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17205 # This implies no fast_install, which is unacceptable.
17206 # Some rework will be needed to allow for fast_install
17207 # before this can be enabled.
17208 hardcode_into_libs
=yes
17210 # Append ld.so.conf contents to the search path
17211 if test -f /etc
/ld.so.conf
; then
17212 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' ' '`
17213 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17216 # We used to test for /lib/ld.so.1 and disable shared libraries on
17217 # powerpc, because MkLinux only supported shared libraries with the
17218 # GNU dynamic linker. Since this was broken with cross compilers,
17219 # most powerpc-linux boxes support dynamic linking these days and
17220 # people can always --disable-shared, the test was removed, and we
17221 # assume the GNU/Linux dynamic linker is in use.
17222 dynamic_linker
='GNU/Linux ld.so'
17229 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 dynamic_linker
='NetBSD (a.out) ld.so'
17234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec
='${libname}${release}${shared_ext}$major'
17236 dynamic_linker
='NetBSD ld.elf_so'
17238 shlibpath_var
=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath
=yes
17240 hardcode_into_libs
=yes
17245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 shlibpath_var
=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath
=yes
17254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec
='${libname}${release}${shared_ext}$major'
17256 shlibpath_var
=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath
=no
17258 hardcode_into_libs
=yes
17259 dynamic_linker
='ldqnx.so'
17264 sys_lib_dlsearch_path_spec
="/usr/lib"
17266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17268 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17269 *) need_version
=no
;;
17271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17273 shlibpath_var
=LD_LIBRARY_PATH
17274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17276 openbsd2.
[89] | openbsd2.
[89].
*)
17277 shlibpath_overrides_runpath
=no
17280 shlibpath_overrides_runpath
=yes
17284 shlibpath_overrides_runpath
=yes
17289 libname_spec
='$name'
17292 library_names_spec
='$libname${shared_ext} $libname.a'
17293 dynamic_linker
='OS/2 ld.exe'
17294 shlibpath_var
=LIBPATH
17297 osf3
* | osf4
* | osf5
*)
17301 soname_spec
='${libname}${release}${shared_ext}$major'
17302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 shlibpath_var
=LD_LIBRARY_PATH
17304 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17305 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec
='${libname}${release}${shared_ext}$major'
17318 shlibpath_var
=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath
=yes
17320 hardcode_into_libs
=yes
17321 # ldd complains unless libraries are executable
17322 postinstall_cmds
='chmod +x $lib'
17327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17329 shlibpath_var
=LD_LIBRARY_PATH
17330 shlibpath_overrides_runpath
=yes
17331 if test "$with_gnu_ld" = yes; then
17339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec
='${libname}${release}${shared_ext}$major'
17341 shlibpath_var
=LD_LIBRARY_PATH
17342 case $host_vendor in
17344 shlibpath_overrides_runpath
=no
17346 runpath_var
=LD_RUN_PATH
17354 shlibpath_overrides_runpath
=no
17355 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17361 if test -d /usr
/nec
;then
17363 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17364 soname_spec
='$libname${shared_ext}.$major'
17365 shlibpath_var
=LD_LIBRARY_PATH
17369 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17370 version_type
=freebsd-elf
17373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17374 soname_spec
='${libname}${release}${shared_ext}$major'
17375 shlibpath_var
=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath
=yes
17377 hardcode_into_libs
=yes
17378 if test "$with_gnu_ld" = yes; then
17379 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17381 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17384 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17388 sys_lib_dlsearch_path_spec
='/usr/lib'
17392 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 shlibpath_var
=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath
=no
17399 hardcode_into_libs
=yes
17404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 soname_spec
='${libname}${release}${shared_ext}$major'
17406 shlibpath_var
=LD_LIBRARY_PATH
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17414 $as_echo "$dynamic_linker" >&6; }
17415 test "$dynamic_linker" = no
&& can_build_shared
=no
17417 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17418 if test "$GCC" = yes; then
17419 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17423 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17426 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17523 if test -n "$hardcode_libdir_flag_spec" ||
17524 test -n "$runpath_var" ||
17525 test "X$hardcode_automatic" = "Xyes" ; then
17527 # We can hardcode non-existent directories.
17528 if test "$hardcode_direct" != no
&&
17529 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17530 # have to relink, otherwise we might link with an installed library
17531 # when we should be linking with a yet-to-be-installed one
17532 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17533 test "$hardcode_minus_L" != no
; then
17534 # Linking always hardcodes the temporary library directory.
17535 hardcode_action
=relink
17537 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17538 hardcode_action
=immediate
17541 # We cannot hardcode anything, or else we can only hardcode existing
17543 hardcode_action
=unsupported
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17546 $as_echo "$hardcode_action" >&6; }
17548 if test "$hardcode_action" = relink ||
17549 test "$inherit_rpath" = yes; then
17550 # Fast installation is not supported
17551 enable_fast_install
=no
17552 elif test "$shlibpath_overrides_runpath" = yes ||
17553 test "$enable_shared" = no
; then
17554 # Fast installation is not necessary
17555 enable_fast_install
=needless
17563 if test "x$enable_dlopen" != xyes
; then
17564 enable_dlopen
=unknown
17565 enable_dlopen_self
=unknown
17566 enable_dlopen_self_static
=unknown
17573 lt_cv_dlopen
="load_add_on"
17575 lt_cv_dlopen_self
=yes
17578 mingw
* | pw32
* | cegcc
*)
17579 lt_cv_dlopen
="LoadLibrary"
17584 lt_cv_dlopen
="dlopen"
17589 # if libdl is installed we need to link against it
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17593 $as_echo_n "(cached) " >&6
17595 ac_check_lib_save_LIBS
=$LIBS
17597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17600 /* Override any GCC internal prototype to avoid an error.
17601 Use char because int might match the return type of a GCC
17602 builtin and then its argument prototype would still apply. */
17615 if ac_fn_c_try_link
"$LINENO"; then :
17616 ac_cv_lib_dl_dlopen
=yes
17618 ac_cv_lib_dl_dlopen
=no
17620 rm -f core conftest.err conftest.
$ac_objext \
17621 conftest
$ac_exeext conftest.
$ac_ext
17622 LIBS
=$ac_check_lib_save_LIBS
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17626 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17627 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17630 lt_cv_dlopen
="dyld"
17632 lt_cv_dlopen_self
=yes
17639 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17640 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17641 lt_cv_dlopen
="shl_load"
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17644 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17646 $as_echo_n "(cached) " >&6
17648 ac_check_lib_save_LIBS
=$LIBS
17650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17653 /* Override any GCC internal prototype to avoid an error.
17654 Use char because int might match the return type of a GCC
17655 builtin and then its argument prototype would still apply. */
17663 return shl_load ();
17668 if ac_fn_c_try_link
"$LINENO"; then :
17669 ac_cv_lib_dld_shl_load
=yes
17671 ac_cv_lib_dld_shl_load
=no
17673 rm -f core conftest.err conftest.
$ac_objext \
17674 conftest
$ac_exeext conftest.
$ac_ext
17675 LIBS
=$ac_check_lib_save_LIBS
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17679 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17680 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17682 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17683 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17684 lt_cv_dlopen
="dlopen"
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17689 $as_echo_n "(cached) " >&6
17691 ac_check_lib_save_LIBS
=$LIBS
17693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17711 if ac_fn_c_try_link
"$LINENO"; then :
17712 ac_cv_lib_dl_dlopen
=yes
17714 ac_cv_lib_dl_dlopen
=no
17716 rm -f core conftest.err conftest.
$ac_objext \
17717 conftest
$ac_exeext conftest.
$ac_ext
17718 LIBS
=$ac_check_lib_save_LIBS
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17722 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17723 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17727 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17728 $as_echo_n "(cached) " >&6
17730 ac_check_lib_save_LIBS
=$LIBS
17731 LIBS
="-lsvld $LIBS"
17732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17735 /* Override any GCC internal prototype to avoid an error.
17736 Use char because int might match the return type of a GCC
17737 builtin and then its argument prototype would still apply. */
17750 if ac_fn_c_try_link
"$LINENO"; then :
17751 ac_cv_lib_svld_dlopen
=yes
17753 ac_cv_lib_svld_dlopen
=no
17755 rm -f core conftest.err conftest.
$ac_objext \
17756 conftest
$ac_exeext conftest.
$ac_ext
17757 LIBS
=$ac_check_lib_save_LIBS
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17761 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17762 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17766 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17767 $as_echo_n "(cached) " >&6
17769 ac_check_lib_save_LIBS
=$LIBS
17771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17774 /* Override any GCC internal prototype to avoid an error.
17775 Use char because int might match the return type of a GCC
17776 builtin and then its argument prototype would still apply. */
17784 return dld_link ();
17789 if ac_fn_c_try_link
"$LINENO"; then :
17790 ac_cv_lib_dld_dld_link
=yes
17792 ac_cv_lib_dld_dld_link
=no
17794 rm -f core conftest.err conftest.
$ac_objext \
17795 conftest
$ac_exeext conftest.
$ac_ext
17796 LIBS
=$ac_check_lib_save_LIBS
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17800 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17801 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17822 if test "x$lt_cv_dlopen" != xno
; then
17828 case $lt_cv_dlopen in
17830 save_CPPFLAGS
="$CPPFLAGS"
17831 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17833 save_LDFLAGS
="$LDFLAGS"
17834 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17837 LIBS
="$lt_cv_dlopen_libs $LIBS"
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17841 if test "${lt_cv_dlopen_self+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17844 if test "$cross_compiling" = yes; then :
17845 lt_cv_dlopen_self
=cross
17847 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17848 lt_status
=$lt_dlunknown
17849 cat > conftest.
$ac_ext <<_LT_EOF
17850 #line 17850 "configure"
17851 #include "confdefs.h"
17860 # define LT_DLGLOBAL RTLD_GLOBAL
17863 # define LT_DLGLOBAL DL_GLOBAL
17865 # define LT_DLGLOBAL 0
17869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17870 find out it does not work in some platform. */
17871 #ifndef LT_DLLAZY_OR_NOW
17873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17876 # define LT_DLLAZY_OR_NOW DL_LAZY
17879 # define LT_DLLAZY_OR_NOW RTLD_NOW
17882 # define LT_DLLAZY_OR_NOW DL_NOW
17884 # define LT_DLLAZY_OR_NOW 0
17891 /* When -fvisbility=hidden is used, assume the code has been annotated
17892 correspondingly for the symbols needed. */
17893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17894 void fnord () __attribute__((visibility("default")));
17897 void fnord () { int i=42; }
17900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17901 int status = $lt_dlunknown;
17905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17909 else puts (dlerror ());
17911 /* dlclose (self); */
17919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17920 (eval $ac_link) 2>&5
17922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17923 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17924 (.
/conftest
; exit; ) >&5 2>/dev
/null
17926 case x
$lt_status in
17927 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17928 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17929 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17932 # compilation failed
17933 lt_cv_dlopen_self
=no
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17941 $as_echo "$lt_cv_dlopen_self" >&6; }
17943 if test "x$lt_cv_dlopen_self" = xyes
; then
17944 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17947 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17948 $as_echo_n "(cached) " >&6
17950 if test "$cross_compiling" = yes; then :
17951 lt_cv_dlopen_self_static
=cross
17953 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17954 lt_status
=$lt_dlunknown
17955 cat > conftest.
$ac_ext <<_LT_EOF
17956 #line 17956 "configure"
17957 #include "confdefs.h"
17966 # define LT_DLGLOBAL RTLD_GLOBAL
17969 # define LT_DLGLOBAL DL_GLOBAL
17971 # define LT_DLGLOBAL 0
17975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17976 find out it does not work in some platform. */
17977 #ifndef LT_DLLAZY_OR_NOW
17979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17982 # define LT_DLLAZY_OR_NOW DL_LAZY
17985 # define LT_DLLAZY_OR_NOW RTLD_NOW
17988 # define LT_DLLAZY_OR_NOW DL_NOW
17990 # define LT_DLLAZY_OR_NOW 0
17997 /* When -fvisbility=hidden is used, assume the code has been annotated
17998 correspondingly for the symbols needed. */
17999 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18000 void fnord () __attribute__((visibility("default")));
18003 void fnord () { int i=42; }
18006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18007 int status = $lt_dlunknown;
18011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18014 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18015 else puts (dlerror ());
18017 /* dlclose (self); */
18025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18026 (eval $ac_link) 2>&5
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18030 (.
/conftest
; exit; ) >&5 2>/dev
/null
18032 case x
$lt_status in
18033 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18034 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18035 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18038 # compilation failed
18039 lt_cv_dlopen_self_static
=no
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18050 CPPFLAGS
="$save_CPPFLAGS"
18051 LDFLAGS
="$save_LDFLAGS"
18056 case $lt_cv_dlopen_self in
18057 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18058 *) enable_dlopen_self
=unknown
;;
18061 case $lt_cv_dlopen_self_static in
18062 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18063 *) enable_dlopen_self_static
=unknown
;;
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18087 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18088 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18089 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18091 $as_echo "yes" >&6; }
18093 # FIXME - insert some real tests, host_os isn't really good enough
18096 if test -n "$STRIP" ; then
18097 striplib
="$STRIP -x"
18098 old_striplib
="$STRIP -S"
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100 $as_echo "yes" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18108 $as_echo "no" >&6; }
18124 # Report which library types will actually be built
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18128 $as_echo "$can_build_shared" >&6; }
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18131 $as_echo_n "checking whether to build shared libraries... " >&6; }
18132 test "$can_build_shared" = "no" && enable_shared
=no
18134 # On AIX, shared libraries and static libraries use the same namespace, and
18135 # are all built from PIC.
18138 test "$enable_shared" = yes && enable_static
=no
18139 if test -n "$RANLIB"; then
18140 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18141 postinstall_cmds
='$RANLIB $lib'
18146 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18147 test "$enable_shared" = yes && enable_static
=no
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18152 $as_echo "$enable_shared" >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18155 $as_echo_n "checking whether to build static libraries... " >&6; }
18156 # Make sure either enable_shared or enable_static is yes.
18157 test "$enable_shared" = yes || enable_static
=yes
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18159 $as_echo "$enable_static" >&6; }
18166 ac_cpp
='$CPP $CPPFLAGS'
18167 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18175 (test "X$CXX" != "Xg++"))) ; then
18177 ac_cpp
='$CXXCPP $CPPFLAGS'
18178 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18179 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18180 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18182 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18183 if test -z "$CXXCPP"; then
18184 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18187 # Double quotes because CXXCPP needs to be expanded
18188 for CXXCPP
in "$CXX -E" "/lib/cpp"
18190 ac_preproc_ok
=false
18191 for ac_cxx_preproc_warn_flag
in '' yes
18193 # Use a header file that comes with gcc, so configuring glibc
18194 # with a fresh cross-compiler works.
18195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196 # <limits.h> exists even on freestanding compilers.
18197 # On the NeXT, cc -E runs the code through the compiler's parser,
18198 # not just through cpp. "Syntax error" is here to catch this case.
18199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18202 # include <limits.h>
18204 # include <assert.h>
18208 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18211 # Broken: fails on valid input.
18214 rm -f conftest.err conftest.
$ac_ext
18216 # OK, works on sane cases. Now check whether nonexistent headers
18217 # can be detected and how.
18218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18220 #include <ac_nonexistent.h>
18222 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18223 # Broken: success on invalid input.
18226 # Passes both tests.
18230 rm -f conftest.err conftest.
$ac_ext
18233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18234 rm -f conftest.err conftest.
$ac_ext
18235 if $ac_preproc_ok; then :
18240 ac_cv_prog_CXXCPP
=$CXXCPP
18243 CXXCPP
=$ac_cv_prog_CXXCPP
18245 ac_cv_prog_CXXCPP
=$CXXCPP
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18248 $as_echo "$CXXCPP" >&6; }
18249 ac_preproc_ok
=false
18250 for ac_cxx_preproc_warn_flag
in '' yes
18252 # Use a header file that comes with gcc, so configuring glibc
18253 # with a fresh cross-compiler works.
18254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18255 # <limits.h> exists even on freestanding compilers.
18256 # On the NeXT, cc -E runs the code through the compiler's parser,
18257 # not just through cpp. "Syntax error" is here to catch this case.
18258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18261 # include <limits.h>
18263 # include <assert.h>
18267 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18270 # Broken: fails on valid input.
18273 rm -f conftest.err conftest.
$ac_ext
18275 # OK, works on sane cases. Now check whether nonexistent headers
18276 # can be detected and how.
18277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18279 #include <ac_nonexistent.h>
18281 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18282 # Broken: success on invalid input.
18285 # Passes both tests.
18289 rm -f conftest.err conftest.
$ac_ext
18292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18293 rm -f conftest.err conftest.
$ac_ext
18294 if $ac_preproc_ok; then :
18297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18299 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18300 See \`config.log' for more details." "$LINENO" 5; }
18304 ac_cpp
='$CPP $CPPFLAGS'
18305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18310 _lt_caught_CXX_error
=yes
18314 ac_cpp
='$CXXCPP $CPPFLAGS'
18315 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18316 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18317 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18319 archive_cmds_need_lc_CXX
=no
18320 allow_undefined_flag_CXX
=
18321 always_export_symbols_CXX
=no
18322 archive_expsym_cmds_CXX
=
18323 compiler_needs_object_CXX
=no
18324 export_dynamic_flag_spec_CXX
=
18325 hardcode_direct_CXX
=no
18326 hardcode_direct_absolute_CXX
=no
18327 hardcode_libdir_flag_spec_CXX
=
18328 hardcode_libdir_flag_spec_ld_CXX
=
18329 hardcode_libdir_separator_CXX
=
18330 hardcode_minus_L_CXX
=no
18331 hardcode_shlibpath_var_CXX
=unsupported
18332 hardcode_automatic_CXX
=no
18333 inherit_rpath_CXX
=no
18335 module_expsym_cmds_CXX
=
18336 link_all_deplibs_CXX
=unknown
18337 old_archive_cmds_CXX
=$old_archive_cmds
18338 reload_flag_CXX
=$reload_flag
18339 reload_cmds_CXX
=$reload_cmds
18340 no_undefined_flag_CXX
=
18341 whole_archive_flag_spec_CXX
=
18342 enable_shared_with_static_runtimes_CXX
=no
18344 # Source file extension for C++ test sources.
18347 # Object file extension for compiled C++ test sources.
18351 # No sense in running all these tests if we already determined that
18352 # the CXX compiler isn't working. Some variables (like enable_shared)
18353 # are currently assumed to apply to all compilers on this platform,
18354 # and will be corrupted by setting them based on a non-working compiler.
18355 if test "$_lt_caught_CXX_error" != yes; then
18356 # Code to be used in simple compile tests
18357 lt_simple_compile_test_code
="int some_variable = 0;"
18359 # Code to be used in simple link tests
18360 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18362 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18369 # If no C compiler was specified, use CC.
18372 # If no C compiler flags were specified, use CFLAGS.
18373 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18375 # Allow CC to be a program name with arguments.
18379 # save warnings/boilerplate of simple test code
18380 ac_outfile
=conftest.
$ac_objext
18381 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18382 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_compiler_boilerplate
=`cat conftest.err`
18386 ac_outfile
=conftest.
$ac_objext
18387 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18388 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18389 _lt_linker_boilerplate
=`cat conftest.err`
18393 # Allow CC to be a program name with arguments.
18398 lt_save_with_gnu_ld
=$with_gnu_ld
18399 lt_save_path_LD
=$lt_cv_path_LD
18400 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18401 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18403 $as_unset lt_cv_prog_gnu_ld
18405 if test -n "${lt_cv_path_LDCXX+set}"; then
18406 lt_cv_path_LD
=$lt_cv_path_LDCXX
18408 $as_unset lt_cv_path_LD
18410 test -z "${LDCXX+set}" || LD
=$LDCXX
18414 for cc_temp
in $compiler""; do
18416 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18417 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18422 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18425 if test -n "$compiler"; then
18426 # We don't want -fno-exception when compiling C++ code, so set the
18427 # no_builtin_flag separately
18428 if test "$GXX" = yes; then
18429 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18431 lt_prog_compiler_no_builtin_flag_CXX
=
18434 if test "$GXX" = yes; then
18435 # Set up default GNU C++ configuration
18439 # Check whether --with-gnu-ld was given.
18440 if test "${with_gnu_ld+set}" = set; then :
18441 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18447 if test "$GCC" = yes; then
18448 # Check if gcc -print-prog-name=ld gives a path.
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18450 $as_echo_n "checking for ld used by $CC... " >&6; }
18453 # gcc leaves a trailing carriage return which upsets mingw
18454 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18456 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18459 # Accept absolute paths.
18461 re_direlt
='/[^/][^/]*/\.\./'
18462 # Canonicalize the pathname of ld
18463 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18464 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18465 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18467 test -z "$LD" && LD
="$ac_prog"
18470 # If it fails, then pretend we aren't using GCC.
18474 # If it is relative, then search for the first ld in PATH.
18475 with_gnu_ld
=unknown
18478 elif test "$with_gnu_ld" = yes; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18480 $as_echo_n "checking for GNU ld... " >&6; }
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18483 $as_echo_n "checking for non-GNU ld... " >&6; }
18485 if test "${lt_cv_path_LD+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18488 if test -z "$LD"; then
18489 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18490 for ac_dir
in $PATH; do
18492 test -z "$ac_dir" && ac_dir
=.
18493 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18494 lt_cv_path_LD
="$ac_dir/$ac_prog"
18495 # Check to see if the program is GNU ld. I'd rather use --version,
18496 # but apparently some variants of GNU ld only accept -v.
18497 # Break only if it was the GNU/non-GNU ld that we prefer.
18498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18499 *GNU
* |
*'with BFD'*)
18500 test "$with_gnu_ld" != no
&& break
18503 test "$with_gnu_ld" != yes && break
18510 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18514 LD
="$lt_cv_path_LD"
18515 if test -n "$LD"; then
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18517 $as_echo "$LD" >&6; }
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18520 $as_echo "no" >&6; }
18522 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18524 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18525 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18526 $as_echo_n "(cached) " >&6
18528 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18529 case `$LD -v 2>&1 </dev/null` in
18530 *GNU
* |
*'with BFD'*)
18531 lt_cv_prog_gnu_ld
=yes
18534 lt_cv_prog_gnu_ld
=no
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18539 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18540 with_gnu_ld
=$lt_cv_prog_gnu_ld
18548 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18549 # archiving commands below assume that GNU ld is being used.
18550 if test "$with_gnu_ld" = yes; then
18551 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18552 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'
18554 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18555 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18557 # If archive_cmds runs LD, not CC, wlarc should be empty
18558 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18559 # investigate it a little bit more. (MM)
18562 # ancient GNU ld didn't support --whole-archive et. al.
18563 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18564 $GREP 'no-whole-archive' > /dev
/null
; then
18565 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18567 whole_archive_flag_spec_CXX
=
18573 # A generic and very simple default shared library creation
18574 # command for GNU C++ for the case where it uses the native
18575 # linker, instead of GNU ld. If possible, this setting should
18576 # overridden to take advantage of the native linker features on
18577 # the platform it is being used on.
18578 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18581 # Commands to make compiler produce verbose output that lists
18582 # what "hidden" libraries, object files and flags are used when
18583 # linking a shared library.
18584 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18592 # PORTME: fill in a description of your system's C++ link characteristics
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18594 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18598 # FIXME: insert proper C++ library support
18602 if test "$host_cpu" = ia64
; then
18603 # On IA64, the linker does run time linking by default, so we don't
18604 # have to do anything special.
18605 aix_use_runtimelinking
=no
18606 exp_sym_flag
='-Bexport'
18609 aix_use_runtimelinking
=no
18611 # Test if we are trying to use run time linking or normal
18612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18613 # need to do runtime linking.
18614 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18615 for ld_flag
in $LDFLAGS; do
18618 aix_use_runtimelinking
=yes
18626 exp_sym_flag
='-bexport'
18627 no_entry_flag
='-bnoentry'
18630 # When large executables or shared objects are built, AIX ld can
18631 # have problems creating the table of contents. If linking a library
18632 # or program results in "error TOC overflow" add -mminimal-toc to
18633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18636 archive_cmds_CXX
=''
18637 hardcode_direct_CXX
=yes
18638 hardcode_direct_absolute_CXX
=yes
18639 hardcode_libdir_separator_CXX
=':'
18640 link_all_deplibs_CXX
=yes
18641 file_list_spec_CXX
='${wl}-f,'
18643 if test "$GXX" = yes; then
18644 case $host_os in aix4.
[012]|aix4.
[012].
*)
18645 # We only want to do this on AIX 4.2 and lower, the check
18646 # below for broken collect2 doesn't work under 4.3+
18647 collect2name
=`${CC} -print-prog-name=collect2`
18648 if test -f "$collect2name" &&
18649 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18651 # We have reworked collect2
18654 # We have old collect2
18655 hardcode_direct_CXX
=unsupported
18656 # It fails to find uninstalled libraries when the uninstalled
18657 # path is not listed in the libpath. Setting hardcode_minus_L
18658 # to unsupported forces relinking
18659 hardcode_minus_L_CXX
=yes
18660 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18661 hardcode_libdir_separator_CXX
=
18664 shared_flag
='-shared'
18665 if test "$aix_use_runtimelinking" = yes; then
18666 shared_flag
="$shared_flag "'${wl}-G'
18670 if test "$host_cpu" = ia64
; then
18671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18672 # chokes on -Wl,-G. The following line is correct:
18675 if test "$aix_use_runtimelinking" = yes; then
18676 shared_flag
='${wl}-G'
18678 shared_flag
='${wl}-bM:SRE'
18683 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18684 # It seems that -bexpall does not export symbols beginning with
18685 # underscore (_), so it is better to generate a list of symbols to
18687 always_export_symbols_CXX
=yes
18688 if test "$aix_use_runtimelinking" = yes; then
18689 # Warning - without using the other runtime loading flags (-brtl),
18690 # -berok will link without error, but may produce a broken library.
18691 allow_undefined_flag_CXX
='-berok'
18692 # Determine the default libpath from the value encoded in an empty
18694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18695 /* end confdefs.h. */
18705 if ac_fn_cxx_try_link
"$LINENO"; then :
18707 lt_aix_libpath_sed
='
18708 /Import File Strings/,/^$/ {
18714 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18715 # Check for a 64-bit object if we didn't find anything.
18716 if test -z "$aix_libpath"; then
18717 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18720 rm -f core conftest.err conftest.
$ac_objext \
18721 conftest
$ac_exeext conftest.
$ac_ext
18722 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18724 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18726 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"
18728 if test "$host_cpu" = ia64
; then
18729 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18730 allow_undefined_flag_CXX
="-z nodefs"
18731 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"
18733 # Determine the default libpath from the value encoded in an
18734 # empty executable.
18735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18746 if ac_fn_cxx_try_link
"$LINENO"; then :
18748 lt_aix_libpath_sed
='
18749 /Import File Strings/,/^$/ {
18755 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18756 # Check for a 64-bit object if we didn't find anything.
18757 if test -z "$aix_libpath"; then
18758 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18761 rm -f core conftest.err conftest.
$ac_objext \
18762 conftest
$ac_exeext conftest.
$ac_ext
18763 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18765 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18766 # Warning - without using the other run time loading flags,
18767 # -berok will link without error, but may produce a broken library.
18768 no_undefined_flag_CXX
=' ${wl}-bernotok'
18769 allow_undefined_flag_CXX
=' ${wl}-berok'
18770 if test "$with_gnu_ld" = yes; then
18771 # We only use this code for GNU lds that support --whole-archive.
18772 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18774 # Exported symbols can be pulled into shared objects from archives
18775 whole_archive_flag_spec_CXX
='$convenience'
18777 archive_cmds_need_lc_CXX
=yes
18778 # This is similar to how AIX traditionally builds its shared
18780 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'
18786 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18787 allow_undefined_flag_CXX
=unsupported
18788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18789 # support --undefined. This deserves some investigation. FIXME
18790 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18797 case $cc_basename in
18799 # FIXME: insert proper C++ library support
18805 cygwin
* | mingw
* | pw32
* | cegcc
*)
18806 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18807 # as there is no search path for DLLs.
18808 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18809 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18810 allow_undefined_flag_CXX
=unsupported
18811 always_export_symbols_CXX
=no
18812 enable_shared_with_static_runtimes_CXX
=yes
18814 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18815 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'
18816 # If the export-symbols file already is a .def file (1st line
18817 # is EXPORTS), use it as is; otherwise, prepend...
18818 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18819 cp $export_symbols $output_objdir/$soname.def;
18821 echo EXPORTS > $output_objdir/$soname.def;
18822 cat $export_symbols >> $output_objdir/$soname.def;
18824 $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'
18829 darwin
* | rhapsody
*)
18832 archive_cmds_need_lc_CXX
=no
18833 hardcode_direct_CXX
=no
18834 hardcode_automatic_CXX
=yes
18835 hardcode_shlibpath_var_CXX
=unsupported
18836 if test "$lt_cv_ld_force_load" = "yes"; then
18837 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\"`'
18839 whole_archive_flag_spec_CXX
=''
18841 link_all_deplibs_CXX
=yes
18842 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18843 case $cc_basename in
18844 ifort
*) _lt_dar_can_shared
=yes ;;
18845 *) _lt_dar_can_shared
=$GCC ;;
18847 if test "$_lt_dar_can_shared" = "yes"; then
18848 output_verbose_link_cmd
=func_echo_all
18849 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}"
18850 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18851 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}"
18852 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}"
18853 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18854 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}"
18855 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}"
18865 case $cc_basename in
18867 # FIXME: insert proper C++ library support
18871 # Green Hills C++ Compiler
18872 # FIXME: insert proper C++ library support
18876 # FIXME: insert proper C++ library support
18883 # C++ shared libraries reported to be fairly broken before
18889 archive_cmds_need_lc_CXX
=no
18892 freebsd
* | dragonfly
*)
18893 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18902 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18903 link_all_deplibs_CXX
=yes
18907 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18908 hardcode_libdir_separator_CXX
=:
18909 export_dynamic_flag_spec_CXX
='${wl}-E'
18910 hardcode_direct_CXX
=yes
18911 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18912 # but as the default
18913 # location of the library.
18915 case $cc_basename in
18917 # FIXME: insert proper C++ library support
18921 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'
18922 # Commands to make compiler produce verbose output that lists
18923 # what "hidden" libraries, object files and flags are used when
18924 # linking a shared library.
18926 # There doesn't appear to be a way to prevent this compiler from
18927 # explicitly linking system object files so we need to strip them
18928 # from the output so that they don't get included in the library
18930 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"'
18933 if test "$GXX" = yes; then
18934 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'
18936 # FIXME: insert proper C++ library support
18944 if test $with_gnu_ld = no
; then
18945 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18946 hardcode_libdir_separator_CXX
=:
18952 export_dynamic_flag_spec_CXX
='${wl}-E'
18958 hardcode_direct_CXX
=no
18959 hardcode_shlibpath_var_CXX
=no
18962 hardcode_direct_CXX
=yes
18963 hardcode_direct_absolute_CXX
=yes
18964 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18965 # but as the default
18966 # location of the library.
18970 case $cc_basename in
18972 # FIXME: insert proper C++ library support
18978 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18981 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18984 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18987 # Commands to make compiler produce verbose output that lists
18988 # what "hidden" libraries, object files and flags are used when
18989 # linking a shared library.
18991 # There doesn't appear to be a way to prevent this compiler from
18992 # explicitly linking system object files so we need to strip them
18993 # from the output so that they don't get included in the library
18995 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"'
18998 if test "$GXX" = yes; then
18999 if test $with_gnu_ld = no
; then
19002 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19005 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19008 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'
19013 # FIXME: insert proper C++ library support
19021 hardcode_direct_CXX
=no
19022 hardcode_shlibpath_var_CXX
=no
19023 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19024 export_dynamic_flag_spec_CXX
='${wl}-E'
19025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19026 # Instead, shared libraries are loaded at an image base (0x10000000 by
19027 # default) and relocated if they conflict, which is a slow very memory
19028 # consuming and fragmenting process. To avoid this, we pick a random,
19029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19030 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19031 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'
19032 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'
19035 case $cc_basename in
19038 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'
19040 # Archives containing C++ object files must be created using
19041 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19042 # necessary to make sure instantiated templates are included
19044 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19047 if test "$GXX" = yes; then
19048 if test "$with_gnu_ld" = no
; then
19049 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'
19051 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'
19054 link_all_deplibs_CXX
=yes
19057 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19058 hardcode_libdir_separator_CXX
=:
19059 inherit_rpath_CXX
=yes
19062 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19063 case $cc_basename in
19065 # Kuck and Associates, Inc. (KAI) C++ Compiler
19067 # KCC will only create a shared library if the output file
19068 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19069 # to its proper name (with version) after linking.
19070 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'
19071 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'
19072 # Commands to make compiler produce verbose output that lists
19073 # what "hidden" libraries, object files and flags are used when
19074 # linking a shared library.
19076 # There doesn't appear to be a way to prevent this compiler from
19077 # explicitly linking system object files so we need to strip them
19078 # from the output so that they don't get included in the library
19080 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"'
19082 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19083 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19085 # Archives containing C++ object files must be created using
19086 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19087 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19092 # version 8.0 and above of icpc choke on multiply defined symbols
19093 # if we add $predep_objects and $postdep_objects, however 7.1 and
19094 # earlier do not add the objects themselves.
19095 case `$CC -V 2>&1` in
19097 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19098 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'
19100 *) # Version 8.0 or newer
19103 ia64
*) tmp_idyn
=' -i_dynamic';;
19105 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19106 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'
19109 archive_cmds_need_lc_CXX
=no
19110 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19111 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19112 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19115 # Portland Group C++ compiler
19117 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19118 prelink_cmds_CXX
='tpldir=Template.dir~
19120 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19121 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19122 old_archive_cmds_CXX
='tpldir=Template.dir~
19124 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19125 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19127 archive_cmds_CXX
='tpldir=Template.dir~
19129 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19130 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19131 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19133 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19134 $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'
19136 *) # Version 6 and above use weak symbols
19137 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19138 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'
19142 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19143 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19144 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'
19148 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149 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'
19151 runpath_var
=LD_RUN_PATH
19152 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19153 hardcode_libdir_separator_CXX
=:
19155 # Commands to make compiler produce verbose output that lists
19156 # what "hidden" libraries, object files and flags are used when
19157 # linking a shared library.
19159 # There doesn't appear to be a way to prevent this compiler from
19160 # explicitly linking system object files so we need to strip them
19161 # from the output so that they don't get included in the library
19163 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'
19165 xl
* | mpixl
* | bgxl
*)
19166 # IBM XL 8.0 on PPC, with GNU ld
19167 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19168 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19169 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19170 if test "x$supports_anon_versioning" = xyes
; then
19171 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19173 echo "local: *; };" >> $output_objdir/$libname.ver~
19174 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19178 case `$CC -V 2>&1 | sed 5q` in
19181 no_undefined_flag_CXX
=' -zdefs'
19182 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19183 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'
19184 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19185 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'
19186 compiler_needs_object_CXX
=yes
19188 # Not sure whether something based on
19189 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19191 output_verbose_link_cmd
='func_echo_all'
19193 # Archives containing C++ object files must be created using
19194 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19195 # necessary to make sure instantiated templates are included
19197 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19205 # FIXME: insert proper C++ library support
19210 # FIXME: insert proper C++ library support
19215 case $cc_basename in
19217 # FIXME: insert proper C++ library support
19221 # FIXME: insert proper C++ library support
19228 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19229 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19231 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19232 hardcode_direct_CXX
=yes
19233 hardcode_shlibpath_var_CXX
=no
19235 # Workaround some broken pre-1.5 toolchains
19236 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19244 # C++ shared libraries are fairly broken
19249 if test -f /usr
/libexec
/ld.so
; then
19250 hardcode_direct_CXX
=yes
19251 hardcode_shlibpath_var_CXX
=no
19252 hardcode_direct_absolute_CXX
=yes
19253 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19254 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19256 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19257 export_dynamic_flag_spec_CXX
='${wl}-E'
19258 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19260 output_verbose_link_cmd
=func_echo_all
19266 osf3
* | osf4
* | osf5
*)
19267 case $cc_basename in
19269 # Kuck and Associates, Inc. (KAI) C++ Compiler
19271 # KCC will only create a shared library if the output file
19272 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19273 # to its proper name (with version) after linking.
19274 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'
19276 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19277 hardcode_libdir_separator_CXX
=:
19279 # Archives containing C++ object files must be created using
19280 # the KAI C++ compiler.
19282 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19283 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19287 # Rational C++ 2.4.1
19288 # FIXME: insert proper C++ library support
19294 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19295 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'
19296 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19299 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19300 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'
19301 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19302 echo "-hidden">> $lib.exp~
19303 $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~
19305 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19309 hardcode_libdir_separator_CXX
=:
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19319 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"'
19322 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19323 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19326 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'
19329 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'
19333 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19334 hardcode_libdir_separator_CXX
=:
19336 # Commands to make compiler produce verbose output that lists
19337 # what "hidden" libraries, object files and flags are used when
19338 # linking a shared library.
19339 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19342 # FIXME: insert proper C++ library support
19350 # FIXME: insert proper C++ library support
19355 case $cc_basename in
19358 # FIXME: insert proper C++ library support
19363 # FIXME: insert proper C++ library support
19367 # FIXME: insert proper C++ library support
19374 case $cc_basename in
19376 # Sun C++ 4.2, 5.x and Centerline C++
19377 archive_cmds_need_lc_CXX
=yes
19378 no_undefined_flag_CXX
=' -zdefs'
19379 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19380 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19381 $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'
19383 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19384 hardcode_shlibpath_var_CXX
=no
19386 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19388 # The compiler driver will combine and reorder linker options,
19389 # but understands `-z linker_flag'.
19390 # Supported since Solaris 2.6 (maybe 2.5.1?)
19391 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19394 link_all_deplibs_CXX
=yes
19396 output_verbose_link_cmd
='func_echo_all'
19398 # Archives containing C++ object files must be created using
19399 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19400 # necessary to make sure instantiated templates are included
19402 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19405 # Green Hills C++ Compiler
19406 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19408 # The C++ compiler must be used to create the archive.
19409 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19412 # GNU C++ compiler with Solaris linker
19413 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19414 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19415 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19416 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19417 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19418 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19420 # Commands to make compiler produce verbose output that lists
19421 # what "hidden" libraries, object files and flags are used when
19422 # linking a shared library.
19423 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19425 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19427 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19428 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19429 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19431 # Commands to make compiler produce verbose output that lists
19432 # what "hidden" libraries, object files and flags are used when
19433 # linking a shared library.
19434 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19437 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19439 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19441 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19449 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19450 no_undefined_flag_CXX
='${wl}-z,text'
19451 archive_cmds_need_lc_CXX
=no
19452 hardcode_shlibpath_var_CXX
=no
19453 runpath_var
='LD_RUN_PATH'
19455 case $cc_basename in
19457 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19458 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19461 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19462 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19467 sysv5
* | sco3.2v5
* | sco5v6
*)
19468 # Note: We can NOT use -z defs as we might desire, because we do not
19469 # link with -lc, and that would cause any symbols used from libc to
19470 # always be unresolved, which means just about no library would
19471 # ever link correctly. If we're not using GNU ld we use -z text
19472 # though, which does catch some bad symbols but isn't as heavy-handed
19474 no_undefined_flag_CXX
='${wl}-z,text'
19475 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19476 archive_cmds_need_lc_CXX
=no
19477 hardcode_shlibpath_var_CXX
=no
19478 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19479 hardcode_libdir_separator_CXX
=':'
19480 link_all_deplibs_CXX
=yes
19481 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19482 runpath_var
='LD_RUN_PATH'
19484 case $cc_basename in
19486 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19487 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19488 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19489 '"$old_archive_cmds_CXX"
19490 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19491 '"$reload_cmds_CXX"
19494 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19495 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19501 case $cc_basename in
19503 # NonStop-UX NCC 3.20
19504 # FIXME: insert proper C++ library support
19508 # FIXME: insert proper C++ library support
19515 # FIXME: insert proper C++ library support
19520 # FIXME: insert proper C++ library support
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19526 $as_echo "$ld_shlibs_CXX" >&6; }
19527 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19533 ## There is no encapsulation within the following macros, do not change
19534 ## the running order or otherwise move them around unless you know exactly
19535 ## what you are doing...
19536 # Dependencies to place before and after the object being linked:
19537 predep_objects_CXX
=
19538 postdep_objects_CXX
=
19541 compiler_lib_search_path_CXX
=
19543 cat > conftest.
$ac_ext <<_LT_EOF
19547 Foo (void) { a = 0; }
19553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19554 (eval $ac_compile) 2>&5
19556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19557 test $ac_status = 0; }; then
19558 # Parse the compiler output and extract the necessary
19559 # objects, libraries and library flags.
19561 # Sentinel used to keep track of whether or not we are before
19562 # the conftest object file.
19563 pre_test_object_deps_done
=no
19565 for p
in `eval "$output_verbose_link_cmd"`; do
19569 # Some compilers place space between "-{L,R}" and the path.
19570 # Remove the space.
19571 if test $p = "-L" ||
19572 test $p = "-R"; then
19579 if test "$pre_test_object_deps_done" = no
; then
19582 # Internal compiler library paths should come after those
19583 # provided the user. The postdeps already come after the
19584 # user supplied libs so there is no need to process them.
19585 if test -z "$compiler_lib_search_path_CXX"; then
19586 compiler_lib_search_path_CXX
="${prev}${p}"
19588 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19591 # The "-l" case would never come before the object being
19592 # linked, so don't bother handling this case.
19595 if test -z "$postdeps_CXX"; then
19596 postdeps_CXX
="${prev}${p}"
19598 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19604 # This assumes that the test object file only shows up
19605 # once in the compiler output.
19606 if test "$p" = "conftest.$objext"; then
19607 pre_test_object_deps_done
=yes
19611 if test "$pre_test_object_deps_done" = no
; then
19612 if test -z "$predep_objects_CXX"; then
19613 predep_objects_CXX
="$p"
19615 predep_objects_CXX
="$predep_objects_CXX $p"
19618 if test -z "$postdep_objects_CXX"; then
19619 postdep_objects_CXX
="$p"
19621 postdep_objects_CXX
="$postdep_objects_CXX $p"
19626 *) ;; # Ignore the rest.
19634 echo "libtool.m4: error: problem compiling CXX test program"
19637 $RM -f confest.
$objext
19639 # PORTME: override above test on systems where it is broken
19642 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19643 # hack all around it, let's just trust "g++" to DTRT.
19644 predep_objects_CXX
=
19645 postdep_objects_CXX
=
19650 case `$CC -V 2>&1 | sed 5q` in
19654 # The more standards-conforming stlport4 library is
19655 # incompatible with the Cstd library. Avoid specifying
19656 # it if it's in CXXFLAGS. Ignore libCrun as
19657 # -library=stlport4 depends on it.
19658 case " $CXX $CXXFLAGS " in
19659 *" -library=stlport4 "*)
19660 solaris_use_stlport4
=yes
19664 if test "$solaris_use_stlport4" != yes; then
19665 postdeps_CXX
='-library=Cstd -library=Crun'
19672 case $cc_basename in
19674 # The more standards-conforming stlport4 library is
19675 # incompatible with the Cstd library. Avoid specifying
19676 # it if it's in CXXFLAGS. Ignore libCrun as
19677 # -library=stlport4 depends on it.
19678 case " $CXX $CXXFLAGS " in
19679 *" -library=stlport4 "*)
19680 solaris_use_stlport4
=yes
19684 # Adding this requires a known-good setup of shared libraries for
19685 # Sun compiler versions before 5.6, else PIC objects from an old
19686 # archive will be linked into the output, leading to subtle bugs.
19687 if test "$solaris_use_stlport4" != yes; then
19688 postdeps_CXX
='-library=Cstd -library=Crun'
19696 case " $postdeps_CXX " in
19697 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19699 compiler_lib_search_dirs_CXX
=
19700 if test -n "${compiler_lib_search_path_CXX}"; then
19701 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19734 lt_prog_compiler_wl_CXX
=
19735 lt_prog_compiler_pic_CXX
=
19736 lt_prog_compiler_static_CXX
=
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19739 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19741 # C++ specific cases for pic, static, wl, etc.
19742 if test "$GXX" = yes; then
19743 lt_prog_compiler_wl_CXX
='-Wl,'
19744 lt_prog_compiler_static_CXX
='-static'
19748 # All AIX code is PIC.
19749 if test "$host_cpu" = ia64
; then
19750 # AIX 5 now supports IA64 processor
19751 lt_prog_compiler_static_CXX
='-Bstatic'
19753 lt_prog_compiler_pic_CXX
='-fPIC'
19759 # see comment about AmigaOS4 .so support
19760 lt_prog_compiler_pic_CXX
='-fPIC'
19763 # FIXME: we need at least 68020 code to build shared libraries, but
19764 # adding the `-m68020' flag to GCC prevents building anything better,
19766 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19771 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19772 # PIC is the default for these OSes.
19774 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19775 # This hack is so that the source file can tell whether it is being
19776 # built for inclusion in a dll (and should export symbols for example).
19777 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19778 # (--disable-auto-import) libraries
19779 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19781 darwin
* | rhapsody
*)
19782 # PIC is the default on this platform
19783 # Common symbols not allowed in MH_DYLIB files
19784 lt_prog_compiler_pic_CXX
='-fno-common'
19787 # DJGPP does not support shared libraries at all
19788 lt_prog_compiler_pic_CXX
=
19791 # PIC is the default for Haiku.
19792 # The "-static" flag exists, but is broken.
19793 lt_prog_compiler_static_CXX
=
19796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19797 # Instead, we relocate shared libraries at runtime.
19800 if test -d /usr
/nec
; then
19801 lt_prog_compiler_pic_CXX
=-Kconform_pic
19805 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19806 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19807 # sets the default TLS model and affects inlining.
19812 lt_prog_compiler_pic_CXX
='-fPIC'
19817 # QNX uses GNU C++, but need to define -shared option too, otherwise
19818 # it will coredump.
19819 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19822 lt_prog_compiler_pic_CXX
='-fPIC'
19828 # All AIX code is PIC.
19829 if test "$host_cpu" = ia64
; then
19830 # AIX 5 now supports IA64 processor
19831 lt_prog_compiler_static_CXX
='-Bstatic'
19833 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19837 case $cc_basename in
19839 # Green Hills C++ Compiler
19840 # _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"
19845 case $cc_basename in
19847 lt_prog_compiler_pic_CXX
='-KPIC'
19850 # Green Hills C++ Compiler
19851 lt_prog_compiler_pic_CXX
='-pic'
19857 freebsd
* | dragonfly
*)
19858 # FreeBSD uses GNU C++
19860 hpux9
* | hpux10
* | hpux11
*)
19861 case $cc_basename in
19863 lt_prog_compiler_wl_CXX
='-Wl,'
19864 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19865 if test "$host_cpu" != ia64
; then
19866 lt_prog_compiler_pic_CXX
='+Z'
19870 lt_prog_compiler_wl_CXX
='-Wl,'
19871 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19877 lt_prog_compiler_pic_CXX
='+Z'
19886 # This is c89, which is MS Visual C++ (no shared libs)
19887 # Anyone wants to do a port?
19889 irix5
* | irix6
* | nonstopux
*)
19890 case $cc_basename in
19892 lt_prog_compiler_wl_CXX
='-Wl,'
19893 lt_prog_compiler_static_CXX
='-non_shared'
19894 # CC pic flag -KPIC is the default.
19900 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19901 case $cc_basename in
19904 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19905 lt_prog_compiler_pic_CXX
='-fPIC'
19908 # old Intel C++ for x86_64 which still supported -KPIC.
19909 lt_prog_compiler_wl_CXX
='-Wl,'
19910 lt_prog_compiler_pic_CXX
='-KPIC'
19911 lt_prog_compiler_static_CXX
='-static'
19914 # Intel C++, used to be incompatible with GCC.
19915 # ICC 10 doesn't accept -KPIC any more.
19916 lt_prog_compiler_wl_CXX
='-Wl,'
19917 lt_prog_compiler_pic_CXX
='-fPIC'
19918 lt_prog_compiler_static_CXX
='-static'
19921 # Portland Group C++ compiler
19922 lt_prog_compiler_wl_CXX
='-Wl,'
19923 lt_prog_compiler_pic_CXX
='-fpic'
19924 lt_prog_compiler_static_CXX
='-Bstatic'
19928 # Make sure the PIC flag is empty. It appears that all Alpha
19929 # Linux and Compaq Tru64 Unix objects are PIC.
19930 lt_prog_compiler_pic_CXX
=
19931 lt_prog_compiler_static_CXX
='-non_shared'
19933 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19934 # IBM XL 8.0, 9.0 on PPC and BlueGene
19935 lt_prog_compiler_wl_CXX
='-Wl,'
19936 lt_prog_compiler_pic_CXX
='-qpic'
19937 lt_prog_compiler_static_CXX
='-qstaticlink'
19940 case `$CC -V 2>&1 | sed 5q` in
19943 lt_prog_compiler_pic_CXX
='-KPIC'
19944 lt_prog_compiler_static_CXX
='-Bstatic'
19945 lt_prog_compiler_wl_CXX
='-Qoption ld '
19956 case $cc_basename in
19958 lt_prog_compiler_pic_CXX
='-W c,exportall'
19967 # QNX uses GNU C++, but need to define -shared option too, otherwise
19968 # it will coredump.
19969 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19971 osf3
* | osf4
* | osf5
*)
19972 case $cc_basename in
19974 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19977 # Rational C++ 2.4.1
19978 lt_prog_compiler_pic_CXX
='-pic'
19981 # Digital/Compaq C++
19982 lt_prog_compiler_wl_CXX
='-Wl,'
19983 # Make sure the PIC flag is empty. It appears that all Alpha
19984 # Linux and Compaq Tru64 Unix objects are PIC.
19985 lt_prog_compiler_pic_CXX
=
19986 lt_prog_compiler_static_CXX
='-non_shared'
19995 case $cc_basename in
19997 # Sun C++ 4.2, 5.x and Centerline C++
19998 lt_prog_compiler_pic_CXX
='-KPIC'
19999 lt_prog_compiler_static_CXX
='-Bstatic'
20000 lt_prog_compiler_wl_CXX
='-Qoption ld '
20003 # Green Hills C++ Compiler
20004 lt_prog_compiler_pic_CXX
='-PIC'
20011 case $cc_basename in
20014 lt_prog_compiler_pic_CXX
='-pic'
20015 lt_prog_compiler_static_CXX
='-Bstatic'
20019 lt_prog_compiler_pic_CXX
='-pic'
20025 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20026 case $cc_basename in
20028 lt_prog_compiler_wl_CXX
='-Wl,'
20029 lt_prog_compiler_pic_CXX
='-KPIC'
20030 lt_prog_compiler_static_CXX
='-Bstatic'
20035 case $cc_basename in
20037 # NonStop-UX NCC 3.20
20038 lt_prog_compiler_pic_CXX
='-KPIC'
20047 lt_prog_compiler_can_build_shared_CXX
=no
20053 # For platforms which do not support PIC, -DPIC is meaningless:
20055 lt_prog_compiler_pic_CXX
=
20058 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20062 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20067 # Check to make sure the PIC flag actually works.
20069 if test -n "$lt_prog_compiler_pic_CXX"; then
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20071 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20072 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20073 $as_echo_n "(cached) " >&6
20075 lt_cv_prog_compiler_pic_works_CXX
=no
20076 ac_outfile
=conftest.
$ac_objext
20077 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20078 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20079 # Insert the option either (1) after the last *FLAGS variable, or
20080 # (2) before a word containing "conftest.", or (3) at the end.
20081 # Note that $ac_compile itself does not contain backslashes and begins
20082 # with a dollar sign (not a hyphen), so the echo should work correctly.
20083 # The option is referenced via a variable to avoid confusing sed.
20084 lt_compile
=`echo "$ac_compile" | $SED \
20085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087 -e 's:$: $lt_compiler_flag:'`
20088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20089 (eval "$lt_compile" 2>conftest.err
)
20091 cat conftest.err
>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 if (exit $ac_status) && test -s "$ac_outfile"; then
20094 # The compiler can only warn and ignore the option if not recognized
20095 # So say no if there are warnings other than the usual output.
20096 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20097 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20098 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20099 lt_cv_prog_compiler_pic_works_CXX
=yes
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20106 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20108 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20109 case $lt_prog_compiler_pic_CXX in
20111 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20114 lt_prog_compiler_pic_CXX
=
20115 lt_prog_compiler_can_build_shared_CXX
=no
20123 # Check to make sure the static flag actually works.
20125 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20128 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20129 $as_echo_n "(cached) " >&6
20131 lt_cv_prog_compiler_static_works_CXX
=no
20132 save_LDFLAGS
="$LDFLAGS"
20133 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20134 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20135 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20136 # The linker can only warn and ignore the option if not recognized
20137 # So say no if there are warnings
20138 if test -s conftest.err
; then
20139 # Append any errors to the config.log.
20140 cat conftest.err
1>&5
20141 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20142 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20143 if diff conftest.exp conftest.er2
>/dev
/null
; then
20144 lt_cv_prog_compiler_static_works_CXX
=yes
20147 lt_cv_prog_compiler_static_works_CXX
=yes
20151 LDFLAGS
="$save_LDFLAGS"
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20155 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20157 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20160 lt_prog_compiler_static_CXX
=
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20168 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20169 $as_echo_n "(cached) " >&6
20171 lt_cv_prog_compiler_c_o_CXX
=no
20172 $RM -r conftest
2>/dev
/null
20176 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20178 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20179 # Insert the option either (1) after the last *FLAGS variable, or
20180 # (2) before a word containing "conftest.", or (3) at the end.
20181 # Note that $ac_compile itself does not contain backslashes and begins
20182 # with a dollar sign (not a hyphen), so the echo should work correctly.
20183 lt_compile
=`echo "$ac_compile" | $SED \
20184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20186 -e 's:$: $lt_compiler_flag:'`
20187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20188 (eval "$lt_compile" 2>out
/conftest.err
)
20190 cat out
/conftest.err
>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20194 # The compiler can only warn and ignore the option if not recognized
20195 # So say no if there are warnings
20196 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20197 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20198 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20199 lt_cv_prog_compiler_c_o_CXX
=yes
20204 # SGI C++ compiler will create directory out/ii_files/ for
20205 # template instantiation
20206 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20207 $RM out
/* && rmdir out
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20214 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20219 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20220 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20221 $as_echo_n "(cached) " >&6
20223 lt_cv_prog_compiler_c_o_CXX
=no
20224 $RM -r conftest
2>/dev
/null
20228 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20230 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20231 # Insert the option either (1) after the last *FLAGS variable, or
20232 # (2) before a word containing "conftest.", or (3) at the end.
20233 # Note that $ac_compile itself does not contain backslashes and begins
20234 # with a dollar sign (not a hyphen), so the echo should work correctly.
20235 lt_compile
=`echo "$ac_compile" | $SED \
20236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20238 -e 's:$: $lt_compiler_flag:'`
20239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20240 (eval "$lt_compile" 2>out
/conftest.err
)
20242 cat out
/conftest.err
>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20246 # The compiler can only warn and ignore the option if not recognized
20247 # So say no if there are warnings
20248 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20249 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20250 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20251 lt_cv_prog_compiler_c_o_CXX
=yes
20256 # SGI C++ compiler will create directory out/ii_files/ for
20257 # template instantiation
20258 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20259 $RM out
/* && rmdir out
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20266 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20271 hard_links
="nottested"
20272 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20273 # do not overwrite the value of need_locks provided by the user
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20275 $as_echo_n "checking if we can lock with hard links... " >&6; }
20278 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20280 ln conftest.a conftest.b
2>&5 || hard_links
=no
20281 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20283 $as_echo "$hard_links" >&6; }
20284 if test "$hard_links" = no
; then
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20286 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20296 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20298 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20301 # If we're using GNU nm, then we don't want the "-C" option.
20302 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20303 # Also, AIX nm treats weak defined symbols like other global defined
20304 # symbols, whereas GNU nm marks them as "W".
20305 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20306 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'
20308 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'
20312 export_symbols_cmds_CXX
="$ltdll_cmds"
20314 cygwin
* | mingw
* | cegcc
*)
20315 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'
20318 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20321 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20324 $as_echo "$ld_shlibs_CXX" >&6; }
20325 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20327 with_gnu_ld_CXX
=$with_gnu_ld
20335 # Do we need to explicitly link libc?
20337 case "x$archive_cmds_need_lc_CXX" in
20339 # Assume -lc should be added
20340 archive_cmds_need_lc_CXX
=yes
20342 if test "$enable_shared" = yes && test "$GCC" = yes; then
20343 case $archive_cmds_CXX in
20345 # FIXME: we may have to deal with multi-command sequences.
20348 # Test whether the compiler implicitly links with -lc since on some
20349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20350 # to ld, don't add -lc before -lgcc.
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20352 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20353 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20354 $as_echo_n "(cached) " >&6
20357 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20360 (eval $ac_compile) 2>&5
20362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20363 test $ac_status = 0; } 2>conftest.err
; then
20366 libobjs
=conftest.
$ac_objext
20368 wl
=$lt_prog_compiler_wl_CXX
20369 pic_flag
=$lt_prog_compiler_pic_CXX
20375 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20376 allow_undefined_flag_CXX
=
20377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20378 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20381 test $ac_status = 0; }
20383 lt_cv_archive_cmds_need_lc_CXX
=no
20385 lt_cv_archive_cmds_need_lc_CXX
=yes
20387 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20389 cat conftest.err
1>&5
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20395 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20396 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20467 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20469 library_names_spec
=
20470 libname_spec
='lib$name'
20474 postuninstall_cmds
=
20478 shlibpath_overrides_runpath
=unknown
20480 dynamic_linker
="$host_os ld.so"
20481 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20482 need_lib_prefix
=unknown
20483 hardcode_into_libs
=no
20485 # when you set need_version to no, make sure it does not cause -set_version
20486 # flags to be left without arguments
20487 need_version
=unknown
20492 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20493 shlibpath_var
=LIBPATH
20495 # AIX 3 has no versioning support, so we append a major version to the name.
20496 soname_spec
='${libname}${release}${shared_ext}$major'
20503 hardcode_into_libs
=yes
20504 if test "$host_cpu" = ia64
; then
20505 # AIX 5 supports IA64
20506 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20507 shlibpath_var
=LD_LIBRARY_PATH
20509 # With GCC up to 2.95.x, collect2 would create an import file
20510 # for dependence libraries. The import file would start with
20511 # the line `#! .'. This would cause the generated library to
20512 # depend on `.', always an invalid library. This was fixed in
20513 # development snapshots of GCC prior to 3.0.
20515 aix4 | aix4.
[01] | aix4.
[01].
*)
20516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20518 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20521 can_build_shared
=no
20525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20526 # soname into executable. Probably we can add versioning support to
20527 # collect2, so additional links can be useful in future.
20528 if test "$aix_use_runtimelinking" = yes; then
20529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20530 # instead of lib<name>.a to let people know that these are not
20531 # typical AIX shared libraries.
20532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534 # We preserve .a as extension for shared libraries through AIX4.2
20535 # and later when we are not doing run time linking.
20536 library_names_spec
='${libname}${release}.a $libname.a'
20537 soname_spec
='${libname}${release}${shared_ext}$major'
20539 shlibpath_var
=LIBPATH
20546 # Since July 2007 AmigaOS4 officially supports .so libraries.
20547 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20551 library_names_spec
='$libname.ixlibrary $libname.a'
20552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20553 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'
20559 library_names_spec
='${libname}${shared_ext}'
20560 dynamic_linker
="$host_os ld.so"
20561 shlibpath_var
=LIBRARY_PATH
20567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 soname_spec
='${libname}${release}${shared_ext}$major'
20569 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20570 shlibpath_var
=LD_LIBRARY_PATH
20571 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20572 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20573 # the default ld.so.conf also contains /usr/contrib/lib and
20574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20575 # libtool to hard-code these into programs
20578 cygwin
* | mingw
* | pw32
* | cegcc
*)
20579 version_type
=windows
20584 case $GCC,$host_os in
20585 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20586 library_names_spec
='$libname.dll.a'
20587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20588 postinstall_cmds
='base_file=`basename \${file}`~
20589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20590 dldir=$destdir/`dirname \$dlpath`~
20591 test -d \$dldir || mkdir -p \$dldir~
20592 $install_prog $dir/$dlname \$dldir/$dlname~
20593 chmod a+x \$dldir/$dlname~
20594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20597 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20598 dlpath=$dir/\$dldll~
20600 shlibpath_overrides_runpath
=yes
20604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20605 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20609 # MinGW DLLs use traditional 'lib' prefix
20610 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20613 # pw32 DLLs use 'pw' prefix rather than 'lib'
20614 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20620 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20623 dynamic_linker
='Win32 ld.exe'
20624 # FIXME: first we should search . and the directory the executable is in
20628 darwin
* | rhapsody
*)
20629 dynamic_linker
="$host_os dyld"
20630 version_type
=darwin
20633 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20634 soname_spec
='${libname}${release}${major}$shared_ext'
20635 shlibpath_overrides_runpath
=yes
20636 shlibpath_var
=DYLD_LIBRARY_PATH
20637 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20639 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20647 soname_spec
='${libname}${release}${shared_ext}$major'
20648 shlibpath_var
=LD_LIBRARY_PATH
20651 freebsd
* | dragonfly
*)
20652 # DragonFly does not have aout. When/if they implement a new
20653 # versioning mechanism, adjust this.
20654 if test -x /usr
/bin
/objformat
; then
20655 objformat
=`/usr/bin/objformat`
20658 freebsd
[23].
*) objformat
=aout
;;
20659 *) objformat
=elf
;;
20662 version_type
=freebsd-
$objformat
20663 case $version_type in
20665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20670 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20674 shlibpath_var
=LD_LIBRARY_PATH
20677 shlibpath_overrides_runpath
=yes
20679 freebsd3.
[01]* | freebsdelf3.
[01]*)
20680 shlibpath_overrides_runpath
=yes
20681 hardcode_into_libs
=yes
20683 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20684 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20685 shlibpath_overrides_runpath
=no
20686 hardcode_into_libs
=yes
20688 *) # from 4.6 on, and DragonFly
20689 shlibpath_overrides_runpath
=yes
20690 hardcode_into_libs
=yes
20699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20700 soname_spec
='${libname}${release}${shared_ext}$major'
20701 shlibpath_var
=LD_LIBRARY_PATH
20702 hardcode_into_libs
=yes
20709 dynamic_linker
="$host_os runtime_loader"
20710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20711 soname_spec
='${libname}${release}${shared_ext}$major'
20712 shlibpath_var
=LIBRARY_PATH
20713 shlibpath_overrides_runpath
=yes
20714 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20715 hardcode_into_libs
=yes
20718 hpux9
* | hpux10
* | hpux11
*)
20719 # Give a soname corresponding to the major version so that dld.sl refuses to
20720 # link against other versions.
20727 hardcode_into_libs
=yes
20728 dynamic_linker
="$host_os dld.so"
20729 shlibpath_var
=LD_LIBRARY_PATH
20730 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 soname_spec
='${libname}${release}${shared_ext}$major'
20733 if test "X$HPUX_IA64_MODE" = X32
; then
20734 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20736 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20738 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20742 hardcode_into_libs
=yes
20743 dynamic_linker
="$host_os dld.sl"
20744 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20745 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747 soname_spec
='${libname}${release}${shared_ext}$major'
20748 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20749 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20753 dynamic_linker
="$host_os dld.sl"
20754 shlibpath_var
=SHLIB_PATH
20755 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 soname_spec
='${libname}${release}${shared_ext}$major'
20760 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20761 postinstall_cmds
='chmod 555 $lib'
20762 # or fails outright, so override atomically:
20763 install_override_mode
=555
20770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20771 soname_spec
='${libname}${release}${shared_ext}$major'
20772 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20773 shlibpath_var
=LD_LIBRARY_PATH
20774 shlibpath_overrides_runpath
=no
20775 hardcode_into_libs
=yes
20778 irix5
* | irix6
* | nonstopux
*)
20780 nonstopux
*) version_type
=nonstopux
;;
20782 if test "$lt_cv_prog_gnu_ld" = yes; then
20790 soname_spec
='${libname}${release}${shared_ext}$major'
20791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20793 irix5
* | nonstopux
*)
20794 libsuff
= shlibsuff
=
20797 case $LD in # libtool.m4 will add one of these switches to LD
20798 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20799 libsuff
= shlibsuff
= libmagic
=32-bit;;
20800 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20801 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20802 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20803 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20804 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20808 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20809 shlibpath_overrides_runpath
=no
20810 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20811 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20812 hardcode_into_libs
=yes
20815 # No shared lib support for Linux oldld, aout, or coff.
20816 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20820 # This must be Linux ELF.
20821 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec
='${libname}${release}${shared_ext}$major'
20827 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20828 shlibpath_var
=LD_LIBRARY_PATH
20829 shlibpath_overrides_runpath
=no
20831 # Some binutils ld are patched to set DT_RUNPATH
20832 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20835 lt_cv_shlibpath_overrides_runpath
=no
20836 save_LDFLAGS
=$LDFLAGS
20837 save_libdir
=$libdir
20838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h. */
20851 if ac_fn_cxx_try_link
"$LINENO"; then :
20852 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20853 lt_cv_shlibpath_overrides_runpath
=yes
20856 rm -f core conftest.err conftest.
$ac_objext \
20857 conftest
$ac_exeext conftest.
$ac_ext
20858 LDFLAGS
=$save_LDFLAGS
20859 libdir
=$save_libdir
20863 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20865 # This implies no fast_install, which is unacceptable.
20866 # Some rework will be needed to allow for fast_install
20867 # before this can be enabled.
20868 hardcode_into_libs
=yes
20870 # Append ld.so.conf contents to the search path
20871 if test -f /etc
/ld.so.conf
; then
20872 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' ' '`
20873 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20876 # We used to test for /lib/ld.so.1 and disable shared libraries on
20877 # powerpc, because MkLinux only supported shared libraries with the
20878 # GNU dynamic linker. Since this was broken with cross compilers,
20879 # most powerpc-linux boxes support dynamic linking these days and
20880 # people can always --disable-shared, the test was removed, and we
20881 # assume the GNU/Linux dynamic linker is in use.
20882 dynamic_linker
='GNU/Linux ld.so'
20889 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20891 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20892 dynamic_linker
='NetBSD (a.out) ld.so'
20894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20895 soname_spec
='${libname}${release}${shared_ext}$major'
20896 dynamic_linker
='NetBSD ld.elf_so'
20898 shlibpath_var
=LD_LIBRARY_PATH
20899 shlibpath_overrides_runpath
=yes
20900 hardcode_into_libs
=yes
20905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 shlibpath_var
=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath
=yes
20914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20915 soname_spec
='${libname}${release}${shared_ext}$major'
20916 shlibpath_var
=LD_LIBRARY_PATH
20917 shlibpath_overrides_runpath
=no
20918 hardcode_into_libs
=yes
20919 dynamic_linker
='ldqnx.so'
20924 sys_lib_dlsearch_path_spec
="/usr/lib"
20926 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20928 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20929 *) need_version
=no
;;
20931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20932 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20933 shlibpath_var
=LD_LIBRARY_PATH
20934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20936 openbsd2.
[89] | openbsd2.
[89].
*)
20937 shlibpath_overrides_runpath
=no
20940 shlibpath_overrides_runpath
=yes
20944 shlibpath_overrides_runpath
=yes
20949 libname_spec
='$name'
20952 library_names_spec
='$libname${shared_ext} $libname.a'
20953 dynamic_linker
='OS/2 ld.exe'
20954 shlibpath_var
=LIBPATH
20957 osf3
* | osf4
* | osf5
*)
20961 soname_spec
='${libname}${release}${shared_ext}$major'
20962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20963 shlibpath_var
=LD_LIBRARY_PATH
20964 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20965 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20977 soname_spec
='${libname}${release}${shared_ext}$major'
20978 shlibpath_var
=LD_LIBRARY_PATH
20979 shlibpath_overrides_runpath
=yes
20980 hardcode_into_libs
=yes
20981 # ldd complains unless libraries are executable
20982 postinstall_cmds
='chmod +x $lib'
20987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20988 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20989 shlibpath_var
=LD_LIBRARY_PATH
20990 shlibpath_overrides_runpath
=yes
20991 if test "$with_gnu_ld" = yes; then
20999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 soname_spec
='${libname}${release}${shared_ext}$major'
21001 shlibpath_var
=LD_LIBRARY_PATH
21002 case $host_vendor in
21004 shlibpath_overrides_runpath
=no
21006 runpath_var
=LD_RUN_PATH
21014 shlibpath_overrides_runpath
=no
21015 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21021 if test -d /usr
/nec
;then
21023 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21024 soname_spec
='$libname${shared_ext}.$major'
21025 shlibpath_var
=LD_LIBRARY_PATH
21029 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21030 version_type
=freebsd-elf
21033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21034 soname_spec
='${libname}${release}${shared_ext}$major'
21035 shlibpath_var
=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath
=yes
21037 hardcode_into_libs
=yes
21038 if test "$with_gnu_ld" = yes; then
21039 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21041 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21044 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21048 sys_lib_dlsearch_path_spec
='/usr/lib'
21052 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057 shlibpath_var
=LD_LIBRARY_PATH
21058 shlibpath_overrides_runpath
=no
21059 hardcode_into_libs
=yes
21064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec
='${libname}${release}${shared_ext}$major'
21066 shlibpath_var
=LD_LIBRARY_PATH
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21074 $as_echo "$dynamic_linker" >&6; }
21075 test "$dynamic_linker" = no
&& can_build_shared
=no
21077 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21078 if test "$GCC" = yes; then
21079 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21082 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21083 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21085 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21086 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21127 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21128 hardcode_action_CXX
=
21129 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21130 test -n "$runpath_var_CXX" ||
21131 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21133 # We can hardcode non-existent directories.
21134 if test "$hardcode_direct_CXX" != no
&&
21135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21136 # have to relink, otherwise we might link with an installed library
21137 # when we should be linking with a yet-to-be-installed one
21138 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21139 test "$hardcode_minus_L_CXX" != no
; then
21140 # Linking always hardcodes the temporary library directory.
21141 hardcode_action_CXX
=relink
21143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21144 hardcode_action_CXX
=immediate
21147 # We cannot hardcode anything, or else we can only hardcode existing
21149 hardcode_action_CXX
=unsupported
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21152 $as_echo "$hardcode_action_CXX" >&6; }
21154 if test "$hardcode_action_CXX" = relink ||
21155 test "$inherit_rpath_CXX" = yes; then
21156 # Fast installation is not supported
21157 enable_fast_install
=no
21158 elif test "$shlibpath_overrides_runpath" = yes ||
21159 test "$enable_shared" = no
; then
21160 # Fast installation is not necessary
21161 enable_fast_install
=needless
21170 fi # test -n "$compiler"
21176 with_gnu_ld
=$lt_save_with_gnu_ld
21177 lt_cv_path_LDCXX
=$lt_cv_path_LD
21178 lt_cv_path_LD
=$lt_save_path_LD
21179 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21180 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21181 fi # test "$_lt_caught_CXX_error" != yes
21184 ac_cpp
='$CPP $CPPFLAGS'
21185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21204 # Only expand once:
21210 # Identify the assembler which will work hand-in-glove with the newly
21211 # built GCC, so that we can examine its features. This is the assembler
21212 # which will be driven by the driver program.
21214 # If build != host, and we aren't building gas in-tree, we identify a
21215 # build->target assembler and hope that it will have the same features
21216 # as the host->target assembler we'll be using.
21217 gcc_cv_gas_major_version
=
21218 gcc_cv_gas_minor_version
=
21219 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21221 if test "${gcc_cv_as+set}" = set; then :
21225 if test -x "$DEFAULT_ASSEMBLER"; then
21226 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21227 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21228 && test -f ..
/gas
/Makefile \
21229 && test x
$build = x
$host; then
21230 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21231 elif test -x as
$build_exeext; then
21232 # Build using assembler in the current directory.
21233 gcc_cv_as
=.
/as
$build_exeext
21234 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21235 gcc_cv_as
="$AS_FOR_TARGET"
21237 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21238 set dummy
$AS_FOR_TARGET; ac_word
=$2
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21240 $as_echo_n "checking for $ac_word... " >&6; }
21241 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21242 $as_echo_n "(cached) " >&6
21246 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21250 for as_dir
in $PATH
21253 test -z "$as_dir" && as_dir
=.
21254 for ac_exec_ext
in '' $ac_executable_extensions; do
21255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21256 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21267 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21268 if test -n "$gcc_cv_as"; then
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21270 $as_echo "$gcc_cv_as" >&6; }
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21273 $as_echo "no" >&6; }
21280 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21282 case "$ORIGINAL_AS_FOR_TARGET" in
21283 .
/as | .
/as
$build_exeext) ;;
21284 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21289 $as_echo_n "checking what assembler to use... " >&6; }
21290 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21291 # Single tree build which includes gas. We want to prefer it
21292 # over whatever linker top-level may have detected, since
21293 # we'll use what we're building after installation anyway.
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21295 $as_echo "newly built gas" >&6; }
21297 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21298 for f
in $gcc_cv_as_bfd_srcdir/configure \
21299 $gcc_cv_as_gas_srcdir/configure \
21300 $gcc_cv_as_gas_srcdir/configure.
in \
21301 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21302 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21303 if test x
$gcc_cv_gas_version != x
; then
21307 case $gcc_cv_gas_version in
21309 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21311 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21312 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21313 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21314 case $gcc_cv_gas_patch_version in
21315 "") gcc_cv_gas_patch_version
="0" ;;
21317 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21318 + $gcc_cv_gas_minor_version \) \* 1000 \
21319 + $gcc_cv_gas_patch_version`
21321 in_tree_gas_is_elf
=no
21322 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21323 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21324 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21326 in_tree_gas_is_elf
=yes
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21330 $as_echo "$gcc_cv_as" >&6; }
21334 # Identify the linker which will work hand-in-glove with the newly
21335 # built GCC, so that we can examine its features. This is the linker
21336 # which will be driven by the driver program.
21338 # If build != host, and we aren't building gas in-tree, we identify a
21339 # build->target linker and hope that it will have the same features
21340 # as the host->target linker we'll be using.
21341 gcc_cv_gld_major_version
=
21342 gcc_cv_gld_minor_version
=
21343 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21344 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21346 if test "${gcc_cv_ld+set}" = set; then :
21350 if test -x "$DEFAULT_LINKER"; then
21351 gcc_cv_ld
="$DEFAULT_LINKER"
21352 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21353 && test -f ..
/ld
/Makefile \
21354 && test x
$build = x
$host; then
21355 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21356 elif test -x collect-ld
$build_exeext; then
21357 # Build using linker in the current directory.
21358 gcc_cv_ld
=.
/collect-ld
$build_exeext
21359 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21360 gcc_cv_ld
="$LD_FOR_TARGET"
21362 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21363 set dummy
$LD_FOR_TARGET; ac_word
=$2
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21365 $as_echo_n "checking for $ac_word... " >&6; }
21366 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21367 $as_echo_n "(cached) " >&6
21371 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21375 for as_dir
in $PATH
21378 test -z "$as_dir" && as_dir
=.
21379 for ac_exec_ext
in '' $ac_executable_extensions; do
21380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21381 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21392 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21393 if test -n "$gcc_cv_ld"; then
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21395 $as_echo "$gcc_cv_ld" >&6; }
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21398 $as_echo "no" >&6; }
21405 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21406 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21407 # if the PLUGIN_LD is set ld-new, just have it as ld
21408 # as that is the installed named.
21409 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21410 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21411 PLUGIN_LD_SUFFIX
=ld
21414 # Check whether --with-plugin-ld was given.
21415 if test "${with_plugin_ld+set}" = set; then :
21416 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21417 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21418 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21424 cat >>confdefs.h
<<_ACEOF
21425 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21429 # Check to see if we are using gold instead of ld
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21431 $as_echo_n "checking whether we are using gold... " >&6; }
21433 if test x
$gcc_cv_ld != x
; then
21434 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21435 |
grep "GNU gold" > /dev
/null
; then
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21440 $as_echo "$ld_is_gold" >&6; }
21442 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21444 case "$ORIGINAL_LD_FOR_TARGET" in
21445 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21446 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21451 $as_echo_n "checking what linker to use... " >&6; }
21452 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21453 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21454 # Single tree build which includes ld. We want to prefer it
21455 # over whatever linker top-level may have detected, since
21456 # we'll use what we're building after installation anyway.
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21458 $as_echo "newly built ld" >&6; }
21460 in_tree_ld_is_elf
=no
21461 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21462 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21463 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21464 in_tree_ld_is_elf
=yes
21465 elif test "$ld_is_gold" = yes; then
21466 in_tree_ld_is_elf
=yes
21468 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
21470 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21471 if test x
$gcc_cv_gld_version != x
; then
21475 case $gcc_cv_gld_version in
21477 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21479 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21480 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21483 $as_echo "$gcc_cv_ld" >&6; }
21487 # Figure out what nm we will be using.
21488 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21489 if test "${gcc_cv_nm+set}" = set; then :
21493 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21494 && test -f ..
/binutils
/Makefile \
21495 && test x
$build = x
$host; then
21496 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21497 elif test -x nm
$build_exeext; then
21498 gcc_cv_nm
=.
/nm
$build_exeext
21499 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21500 gcc_cv_nm
="$NM_FOR_TARGET"
21502 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21503 set dummy
$NM_FOR_TARGET; ac_word
=$2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21505 $as_echo_n "checking for $ac_word... " >&6; }
21506 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21507 $as_echo_n "(cached) " >&6
21511 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21515 for as_dir
in $PATH
21518 test -z "$as_dir" && as_dir
=.
21519 for ac_exec_ext
in '' $ac_executable_extensions; do
21520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21521 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21532 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21533 if test -n "$gcc_cv_nm"; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21535 $as_echo "$gcc_cv_nm" >&6; }
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21546 $as_echo_n "checking what nm to use... " >&6; }
21547 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21548 # Single tree build which includes binutils.
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21550 $as_echo "newly built nm" >&6; }
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21554 $as_echo "$gcc_cv_nm" >&6; }
21558 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21560 case "$ORIGINAL_NM_FOR_TARGET" in
21561 .
/nm | .
/nm
$build_exeext) ;;
21562 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21567 # Figure out what objdump we will be using.
21568 if test "${gcc_cv_objdump+set}" = set; then :
21572 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21573 && test -f ..
/binutils
/Makefile \
21574 && test x
$build = x
$host; then
21575 # Single tree build which includes binutils.
21576 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21577 elif test -x objdump
$build_exeext; then
21578 gcc_cv_objdump
=.
/objdump
$build_exeext
21579 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21580 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21582 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21583 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21585 $as_echo_n "checking for $ac_word... " >&6; }
21586 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21587 $as_echo_n "(cached) " >&6
21589 case $gcc_cv_objdump in
21591 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21595 for as_dir
in $PATH
21598 test -z "$as_dir" && as_dir
=.
21599 for ac_exec_ext
in '' $ac_executable_extensions; do
21600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21601 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21612 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21613 if test -n "$gcc_cv_objdump"; then
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21615 $as_echo "$gcc_cv_objdump" >&6; }
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618 $as_echo "no" >&6; }
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21626 $as_echo_n "checking what objdump to use... " >&6; }
21627 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21628 # Single tree build which includes binutils.
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21630 $as_echo "newly built objdump" >&6; }
21631 elif test x
$gcc_cv_objdump = x
; then
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21633 $as_echo "not found" >&6; }
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21636 $as_echo "$gcc_cv_objdump" >&6; }
21639 # Figure out what readelf we will be using.
21640 if test "${gcc_cv_readelf+set}" = set; then :
21644 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21645 && test -f ..
/binutils
/Makefile \
21646 && test x
$build = x
$host; then
21647 # Single tree build which includes binutils.
21648 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21649 elif test -x readelf
$build_exeext; then
21650 gcc_cv_readelf
=.
/readelf
$build_exeext
21652 # Extract the first word of "readelf", so it can be a program name with args.
21653 set dummy readelf
; ac_word
=$2
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21655 $as_echo_n "checking for $ac_word... " >&6; }
21656 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21657 $as_echo_n "(cached) " >&6
21659 case $gcc_cv_readelf in
21661 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21665 for as_dir
in $PATH
21668 test -z "$as_dir" && as_dir
=.
21669 for ac_exec_ext
in '' $ac_executable_extensions; do
21670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21671 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21682 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21683 if test -n "$gcc_cv_readelf"; then
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21685 $as_echo "$gcc_cv_readelf" >&6; }
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21688 $as_echo "no" >&6; }
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21696 $as_echo_n "checking what readelf to use... " >&6; }
21697 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21698 # Single tree build which includes binutils.
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21700 $as_echo "newly built readelf" >&6; }
21701 elif test x
$gcc_cv_readelf = x
; then
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21703 $as_echo "not found" >&6; }
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21706 $as_echo "$gcc_cv_readelf" >&6; }
21709 # Figure out what assembler alignment features are present.
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21711 $as_echo_n "checking assembler flags... " >&6; }
21712 if test "${gcc_cv_as_flags+set}" = set; then :
21713 $as_echo_n "(cached) " >&6
21716 i
[34567]86-*-linux*)
21717 gcc_cv_as_flags
="--32"
21719 powerpc
*-*-darwin*)
21720 gcc_cv_as_flags
="-arch ppc"
21723 gcc_cv_as_flags
=" "
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21728 $as_echo "$gcc_cv_as_flags" >&6; }
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21731 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21732 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21733 $as_echo_n "(cached) " >&6
21735 gcc_cv_as_balign_and_p2align
=no
21736 if test $in_tree_gas = yes; then
21737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21738 then gcc_cv_as_balign_and_p2align
=yes
21740 elif test x
$gcc_cv_as != x
; then
21741 $as_echo '.balign 4
21742 .p2align 2' > conftest.s
21743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21745 (eval $ac_try) 2>&5
21747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21748 test $ac_status = 0; }; }
21750 gcc_cv_as_balign_and_p2align
=yes
21752 echo "configure: failed program was" >&5
21755 rm -f conftest.o conftest.s
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21759 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21760 if test $gcc_cv_as_balign_and_p2align = yes; then
21762 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21767 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21768 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21771 gcc_cv_as_max_skip_p2align
=no
21772 if test $in_tree_gas = yes; then
21773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21774 then gcc_cv_as_max_skip_p2align
=yes
21776 elif test x
$gcc_cv_as != x
; then
21777 $as_echo '.p2align 4,,7' > conftest.s
21778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21780 (eval $ac_try) 2>&5
21782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21783 test $ac_status = 0; }; }
21785 gcc_cv_as_max_skip_p2align
=yes
21787 echo "configure: failed program was" >&5
21790 rm -f conftest.o conftest.s
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21794 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21795 if test $gcc_cv_as_max_skip_p2align = yes; then
21797 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21802 $as_echo_n "checking assembler for .literal16... " >&6; }
21803 if test "${gcc_cv_as_literal16+set}" = set; then :
21804 $as_echo_n "(cached) " >&6
21806 gcc_cv_as_literal16
=no
21807 if test $in_tree_gas = yes; then
21808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21809 then gcc_cv_as_literal16
=yes
21811 elif test x
$gcc_cv_as != x
; then
21812 $as_echo '.literal16' > conftest.s
21813 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21815 (eval $ac_try) 2>&5
21817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21818 test $ac_status = 0; }; }
21820 gcc_cv_as_literal16
=yes
21822 echo "configure: failed program was" >&5
21825 rm -f conftest.o conftest.s
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21829 $as_echo "$gcc_cv_as_literal16" >&6; }
21830 if test $gcc_cv_as_literal16 = yes; then
21832 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21837 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21838 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21839 $as_echo_n "(cached) " >&6
21841 gcc_cv_as_subsection_m1
=no
21842 if test $in_tree_gas = yes; then
21843 if test $in_tree_gas_is_elf = yes \
21844 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21845 then gcc_cv_as_subsection_m1
=yes
21847 elif test x
$gcc_cv_as != x
; then
21848 $as_echo 'conftest_label1: .word 0
21850 conftest_label2: .word 0
21851 .previous' > conftest.s
21852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21854 (eval $ac_try) 2>&5
21856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857 test $ac_status = 0; }; }
21859 if test x
$gcc_cv_nm != x
; then
21860 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21861 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21862 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21864 else gcc_cv_as_subsection_m1
=yes
21866 rm -f conftest.nm1 conftest.nm2
21869 echo "configure: failed program was" >&5
21872 rm -f conftest.o conftest.s
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21876 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21877 if test $gcc_cv_as_subsection_m1 = yes; then
21879 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21884 $as_echo_n "checking assembler for .weak... " >&6; }
21885 if test "${gcc_cv_as_weak+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21889 if test $in_tree_gas = yes; then
21890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21891 then gcc_cv_as_weak
=yes
21893 elif test x
$gcc_cv_as != x
; then
21894 $as_echo ' .weak foobar' > conftest.s
21895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21897 (eval $ac_try) 2>&5
21899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21900 test $ac_status = 0; }; }
21904 echo "configure: failed program was" >&5
21907 rm -f conftest.o conftest.s
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21911 $as_echo "$gcc_cv_as_weak" >&6; }
21912 if test $gcc_cv_as_weak = yes; then
21914 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21919 $as_echo_n "checking assembler for .weakref... " >&6; }
21920 if test "${gcc_cv_as_weakref+set}" = set; then :
21921 $as_echo_n "(cached) " >&6
21923 gcc_cv_as_weakref
=no
21924 if test $in_tree_gas = yes; then
21925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21926 then gcc_cv_as_weakref
=yes
21928 elif test x
$gcc_cv_as != x
; then
21929 $as_echo ' .weakref foobar, barfnot' > conftest.s
21930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21932 (eval $ac_try) 2>&5
21934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21935 test $ac_status = 0; }; }
21937 gcc_cv_as_weakref
=yes
21939 echo "configure: failed program was" >&5
21942 rm -f conftest.o conftest.s
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21946 $as_echo "$gcc_cv_as_weakref" >&6; }
21947 if test $gcc_cv_as_weakref = yes; then
21949 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21954 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21955 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21958 gcc_cv_as_nsubspa_comdat
=no
21959 if test $in_tree_gas = yes; then
21960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21961 then gcc_cv_as_nsubspa_comdat
=yes
21963 elif test x
$gcc_cv_as != x
; then
21964 $as_echo ' .SPACE $TEXT$
21965 .NSUBSPA $CODE$,COMDAT' > conftest.s
21966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21968 (eval $ac_try) 2>&5
21970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21971 test $ac_status = 0; }; }
21973 gcc_cv_as_nsubspa_comdat
=yes
21975 echo "configure: failed program was" >&5
21978 rm -f conftest.o conftest.s
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21982 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21983 if test $gcc_cv_as_nsubspa_comdat = yes; then
21985 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21989 # .hidden needs to be supported in both the assembler and the linker,
21990 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21991 # This is irritatingly difficult to feature test for; we have to check the
21992 # date string after the version number. If we've got an in-tree
21993 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21995 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21997 $as_echo_n "checking assembler for .hidden... " >&6; }
21998 if test "${gcc_cv_as_hidden+set}" = set; then :
21999 $as_echo_n "(cached) " >&6
22001 gcc_cv_as_hidden
=no
22002 if test $in_tree_gas = yes; then
22003 if test $in_tree_gas_is_elf = yes \
22004 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22005 then gcc_cv_as_hidden
=yes
22007 elif test x
$gcc_cv_as != x
; then
22008 $as_echo ' .hidden foobar
22009 foobar:' > conftest.s
22010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22012 (eval $ac_try) 2>&5
22014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22015 test $ac_status = 0; }; }
22018 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22019 # STV_HIDDEN, so disable .hidden support if so.
22020 case "${target}" in
22021 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22022 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22023 cat > conftest.s
<<EOF
22028 .set default,hidden
22030 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22031 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22032 grep '\.hidden default' > /dev
/null
; then
22033 gcc_cv_as_hidden
=no
22035 gcc_cv_as_hidden
=yes
22038 # Assume bug is present if objdump is missing.
22039 gcc_cv_as_hidden
=no
22043 gcc_cv_as_hidden
=yes
22047 echo "configure: failed program was" >&5
22050 rm -f conftest.o conftest.s
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22054 $as_echo "$gcc_cv_as_hidden" >&6; }
22056 case "${target}" in
22058 # Darwin as has some visibility support, though with a different syntax.
22059 gcc_cv_as_hidden
=yes
22063 # gnu_indirect_function type is an extension proposed at
22064 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22065 # selection of function implementation
22066 # Check whether --enable-gnu-indirect-function was given.
22067 if test "${enable_gnu_indirect_function+set}" = set; then :
22068 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22070 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22071 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22074 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22077 if test x
$enable_gnu_indirect_function = xyes
; then
22079 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22083 if test $in_tree_ld != yes ; then
22084 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22085 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22086 if test x
"$ld_is_gold" = xyes
; then
22087 # GNU gold --version looks like this:
22089 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22091 # We extract the binutils version which is more familiar and specific
22092 # than the gold version.
22093 ld_vers
=`echo $ld_ver | sed -n \
22094 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22096 # GNU ld --version looks like this:
22098 # GNU ld (GNU Binutils) 2.21.51.20110225
22099 ld_vers
=`echo $ld_ver | sed -n \
22100 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22102 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'`
22103 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22104 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22105 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22107 case "${target}" in
22109 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22112 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22113 # /usr/ccs/bin/ld has been configured.
22114 ld_ver
=`$gcc_cv_ld -V 2>&1`
22115 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22116 ld_vers
=`echo $ld_ver | sed -n \
22117 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22118 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22119 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22127 $as_echo_n "checking linker for .hidden support... " >&6; }
22128 if test "${gcc_cv_ld_hidden+set}" = set; then :
22129 $as_echo_n "(cached) " >&6
22131 if test $in_tree_ld = yes ; then
22132 gcc_cv_ld_hidden
=no
22133 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 \
22134 && test $in_tree_ld_is_elf = yes; then
22135 gcc_cv_ld_hidden
=yes
22138 gcc_cv_ld_hidden
=yes
22139 if test x
"$ld_is_gold" = xyes
; then
22141 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22142 case "${target}" in
22143 mmix-knuth-mmixware
)
22144 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22145 gcc_cv_ld_hidden
=no
22148 if test 0"$ld_date" -lt 20020404; then
22149 if test -n "$ld_date"; then
22150 # If there was date string, but was earlier than 2002-04-04, fail
22151 gcc_cv_ld_hidden
=no
22152 elif test -z "$ld_vers"; then
22153 # If there was no date string nor ld version number, something is wrong
22154 gcc_cv_ld_hidden
=no
22156 test -z "$ld_vers_patch" && ld_vers_patch
=0
22157 if test "$ld_vers_major" -lt 2; then
22158 gcc_cv_ld_hidden
=no
22159 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22160 gcc_cv_ld_hidden
="no"
22161 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22162 gcc_cv_ld_hidden
=no
22167 case "${target}" in
22169 # Darwin ld has some visibility support.
22170 gcc_cv_ld_hidden
=yes
22172 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22173 gcc_cv_ld_hidden
=yes
22175 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22176 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22177 # .symbolic was only added in Solaris 9 12/02.
22178 gcc_cv_ld_hidden
=yes
22181 gcc_cv_ld_hidden
=no
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22188 $as_echo "$gcc_cv_ld_hidden" >&6; }
22189 libgcc_visibility
=no
22192 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22193 libgcc_visibility
=yes
22195 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22200 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22201 gcc_cv_ld_ro_rw_mix
=unknown
22202 if test $in_tree_ld = yes ; then
22203 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 \
22204 && test $in_tree_ld_is_elf = yes; then
22205 gcc_cv_ld_ro_rw_mix
=read-write
22207 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22208 echo '.section myfoosect, "a"' > conftest1.s
22209 echo '.section myfoosect, "aw"' > conftest2.s
22210 echo '.byte 1' >> conftest2.s
22211 echo '.section myfoosect, "a"' > conftest3.s
22212 echo '.byte 0' >> conftest3.s
22213 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22214 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22215 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22216 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22217 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22218 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22219 | sed -e '/myfoosect/!d' -e N`
22220 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22221 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22222 gcc_cv_ld_ro_rw_mix
=read-only
22224 gcc_cv_ld_ro_rw_mix
=read-write
22228 rm -f conftest.
* conftest
[123].
*
22230 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22232 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22236 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22238 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22239 case "${target}" in
22242 # Solaris 2 ld -V output looks like this for a regular version:
22244 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22246 # but test versions add stuff at the end:
22248 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22250 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22251 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22252 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22253 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22254 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22255 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22261 # Check whether --enable-initfini-array was given.
22262 if test "${enable_initfini_array+set}" = set; then :
22263 enableval
=$enable_initfini_array;
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22267 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22268 if test "${gcc_cv_initfini_array+set}" = set; then :
22269 $as_echo_n "(cached) " >&6
22271 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22272 case "${target}" in
22274 if test "$cross_compiling" = yes; then :
22275 gcc_cv_initfini_array
=no
22277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h. */
22281 #error Not an ELF OS
22283 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22284 if it can be used. */
22286 int main (void) { return x; }
22287 int foo (void) { x = 0; }
22288 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22291 if ac_fn_c_try_run
"$LINENO"; then :
22292 gcc_cv_initfini_array
=yes
22294 gcc_cv_initfini_array
=no
22296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22301 gcc_cv_initfini_array
=no
22302 if test $in_tree_ld = yes ; then
22303 if test "$gcc_cv_gld_major_version" -eq 2 \
22304 -a "$gcc_cv_gld_minor_version" -ge 22 \
22305 -o "$gcc_cv_gld_major_version" -gt 2 \
22306 && test $in_tree_ld_is_elf = yes; then
22307 gcc_cv_initfini_array
=yes
22309 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22310 cat > conftest.s
<<\EOF
22311 .section .dtors
,"a",%progbits
22313 .byte
'A', 'A', 'A', 'A'
22314 .section .ctors
,"a",%progbits
22316 .byte
'B', 'B', 'B', 'B'
22317 .section .fini_array
.65530,"a",%progbits
22319 .byte
'C', 'C', 'C', 'C'
22320 .section .init_array
.65530,"a",%progbits
22322 .byte
'D', 'D', 'D', 'D'
22323 .section .dtors
.64528,"a",%progbits
22325 .byte
'E', 'E', 'E', 'E'
22326 .section .ctors
.64528,"a",%progbits
22328 .byte
'F', 'F', 'F', 'F'
22329 .section .fini_array
.01005,"a",%progbits
22331 .byte
'G', 'G', 'G', 'G'
22332 .section .init_array
.01005,"a",%progbits
22334 .byte
'H', 'H', 'H', 'H'
22339 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22340 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22341 && $gcc_cv_objdump -s -j .init_array conftest \
22342 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22343 && $gcc_cv_objdump -s -j .fini_array conftest \
22344 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22345 gcc_cv_initfini_array
=yes
22347 rm -f conftest conftest.
*
22349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22350 /* end confdefs.h. */
22353 # error Not an ELF OS
22355 #include <stdlib.h>
22356 #if defined __GLIBC_PREREQ
22357 # if __GLIBC_PREREQ (2, 4)
22359 # error GLIBC 2.4 required
22362 # if defined __sun__ && defined __svr4__
22363 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22365 # error The C library not known to support .init_array/.fini_array
22370 if ac_fn_c_try_cpp
"$LINENO"; then :
22373 gcc_cv_initfini_array
=no
22375 rm -f conftest.err conftest.
$ac_ext;;
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22379 $as_echo_n "checking cross compile... guessing... " >&6; }
22380 gcc_cv_initfini_array
=no
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22384 $as_echo "$gcc_cv_initfini_array" >&6; }
22385 enable_initfini_array
=$gcc_cv_initfini_array
22389 if test $enable_initfini_array = yes; then
22391 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22395 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22397 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22398 if test "${gcc_cv_as_leb128+set}" = set; then :
22399 $as_echo_n "(cached) " >&6
22401 gcc_cv_as_leb128
=no
22402 if test $in_tree_gas = yes; then
22403 if test $in_tree_gas_is_elf = yes \
22404 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22405 then gcc_cv_as_leb128
=yes
22407 elif test x
$gcc_cv_as != x
; then
22414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22416 (eval $ac_try) 2>&5
22418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22419 test $ac_status = 0; }; }
22421 # GAS versions before 2.11 do not support uleb128,
22422 # despite appearing to.
22423 # ??? There exists an elf-specific test that will crash
22424 # the assembler. Perhaps it's better to figure out whether
22425 # arbitrary sections are supported and try the test.
22426 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22427 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22428 as_vers
=`echo $as_ver | sed -n \
22429 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22430 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22431 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22432 if test $as_major -eq 2 && test $as_minor -lt 11
22434 else gcc_cv_as_leb128
=yes
22438 echo "configure: failed program was" >&5
22441 rm -f conftest.o conftest.s
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22445 $as_echo "$gcc_cv_as_leb128" >&6; }
22446 if test $gcc_cv_as_leb128 = yes; then
22448 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22452 # Check if we have assembler support for unwind directives.
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22454 $as_echo_n "checking assembler for cfi directives... " >&6; }
22455 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22458 gcc_cv_as_cfi_directive
=no
22459 if test x
$gcc_cv_as != x
; then
22465 .cfi_escape 1, 2, 3, 4, 5
22466 .cfi_endproc' > conftest.s
22467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22469 (eval $ac_try) 2>&5
22471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22472 test $ac_status = 0; }; }
22476 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22477 # read-only and read-write sections, we need to make sure that the
22478 # assembler used emits read-write .eh_frame sections.
22479 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22480 if test "x$gcc_cv_objdump" != x
; then
22481 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22482 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22483 gcc_cv_as_cfi_directive
=no
22486 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22487 # On Solaris/x86, make sure that GCC and gas agree on using
22488 # read-only .eh_frame sections for 64-bit.
22489 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22490 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22491 sed -e /.eh_frame
/!d
-e N | \
22492 grep READONLY
> /dev
/null
; then
22493 gcc_cv_as_cfi_directive
=yes
22495 gcc_cv_as_cfi_directive
=no
22499 gcc_cv_as_cfi_directive
=yes
22504 # no objdump, err on the side of caution
22505 gcc_cv_as_cfi_directive
=no
22508 gcc_cv_as_cfi_directive
=yes
22512 gcc_cv_as_cfi_directive
=yes
22516 echo "configure: failed program was" >&5
22519 rm -f conftest.o conftest.s
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22523 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22525 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22527 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22528 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22531 gcc_cv_as_cfi_advance_working
=no
22532 if test x
$gcc_cv_as != x
; then
22535 .cfi_adjust_cfa_offset 64
22537 .cfi_adjust_cfa_offset 128
22538 .cfi_endproc' > conftest.s
22539 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22541 (eval $ac_try) 2>&5
22543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22544 test $ac_status = 0; }; }
22547 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22548 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22549 gcc_cv_as_cfi_advance_working
=yes
22553 echo "configure: failed program was" >&5
22556 rm -f conftest.o conftest.s
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22560 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22563 # no objdump, err on the side of caution
22564 gcc_cv_as_cfi_advance_working
=no
22568 cat >>confdefs.h
<<_ACEOF
22569 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22570 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22576 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22577 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22580 gcc_cv_as_cfi_personality_directive
=no
22581 if test x
$gcc_cv_as != x
; then
22584 .cfi_personality 0, symbol
22585 .cfi_endproc' > conftest.s
22586 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22588 (eval $ac_try) 2>&5
22590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22591 test $ac_status = 0; }; }
22593 gcc_cv_as_cfi_personality_directive
=yes
22595 echo "configure: failed program was" >&5
22598 rm -f conftest.o conftest.s
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22602 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22605 cat >>confdefs.h
<<_ACEOF
22606 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22607 then echo 1; else echo 0; fi`
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22612 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22613 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22616 gcc_cv_as_cfi_sections_directive
=no
22617 if test x
$gcc_cv_as != x
; then
22619 .cfi_sections .debug_frame, .eh_frame
22621 .cfi_endproc' > conftest.s
22622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22624 (eval $ac_try) 2>&5
22626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22627 test $ac_status = 0; }; }
22630 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22631 # Need to check that we generated the correct relocation for the
22632 # .debug_frame section. This was fixed for binutils 2.21.
22633 gcc_cv_as_cfi_sections_directive
=no
22634 if test "x$gcc_cv_objdump" != x
; then
22635 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22636 grep secrel
> /dev
/null
; then
22637 gcc_cv_as_cfi_sections_directive
=yes
22642 gcc_cv_as_cfi_sections_directive
=yes
22646 echo "configure: failed program was" >&5
22649 rm -f conftest.o conftest.s
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22653 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22657 cat >>confdefs.h
<<_ACEOF
22658 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22659 then echo 1; else echo 0; fi`
22663 # GAS versions up to and including 2.11.0 may mis-optimize
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22666 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22667 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22668 $as_echo_n "(cached) " >&6
22670 gcc_cv_as_eh_frame
=no
22671 if test $in_tree_gas = yes; then
22672 if test $in_tree_gas_is_elf = yes \
22673 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22674 then gcc_cv_as_eh_frame
=yes
22676 elif test x
$gcc_cv_as != x
; then
22683 .section .eh_frame,"aw",@progbits
22685 .4byte .LECIE1-.LSCIE1
22699 .4byte .LEFDE1-.LASFDE1
22701 .4byte .LASFDE1-__FRAME_BEGIN__
22708 .LEFDE1:' > conftest.s
22709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22711 (eval $ac_try) 2>&5
22713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22714 test $ac_status = 0; }; }
22716 cat > conftest.lit
<<EOF
22717 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22718 0010 01000000 12000000 18000000 00000000 ................
22719 0020 08000000 04080000 0044 .........D
22721 cat > conftest.big
<<EOF
22722 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22723 0010 00000001 00000012 00000018 00000000 ................
22724 0020 00000008 04000000 0844 .........D
22726 # If the assembler didn't choke, and we can objdump,
22727 # and we got the correct data, then succeed.
22728 # The text in the here-document typically retains its unix-style line
22729 # endings, while the output of objdump will use host line endings.
22730 # Therefore, use diff -b for the comparisons.
22731 if test x
$gcc_cv_objdump != x \
22732 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22733 |
tail -3 > conftest.got \
22734 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22735 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22737 gcc_cv_as_eh_frame
=yes
22738 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; }; then
22744 gcc_cv_as_eh_frame
=buggy
22746 # Uh oh, what do we do now?
22747 gcc_cv_as_eh_frame
=no
22750 echo "configure: failed program was" >&5
22753 rm -f conftest.o conftest.s
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22757 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22760 if test $gcc_cv_as_eh_frame = buggy
; then
22762 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22767 $as_echo_n "checking assembler for section merging support... " >&6; }
22768 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22769 $as_echo_n "(cached) " >&6
22771 gcc_cv_as_shf_merge
=no
22772 if test $in_tree_gas = yes; then
22773 if test $in_tree_gas_is_elf = yes \
22774 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22775 then gcc_cv_as_shf_merge
=yes
22777 elif test x
$gcc_cv_as != x
; then
22778 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22781 (eval $ac_try) 2>&5
22783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22784 test $ac_status = 0; }; }
22786 gcc_cv_as_shf_merge
=yes
22788 echo "configure: failed program was" >&5
22791 rm -f conftest.o conftest.s
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22795 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22797 if test $gcc_cv_as_shf_merge = no
; then
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22799 $as_echo_n "checking assembler for section merging support... " >&6; }
22800 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22803 gcc_cv_as_shf_merge
=no
22804 if test $in_tree_gas = yes; then
22805 if test $in_tree_gas_is_elf = yes \
22806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22807 then gcc_cv_as_shf_merge
=yes
22809 elif test x
$gcc_cv_as != x
; then
22810 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22813 (eval $ac_try) 2>&5
22815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22816 test $ac_status = 0; }; }
22818 gcc_cv_as_shf_merge
=yes
22820 echo "configure: failed program was" >&5
22823 rm -f conftest.o conftest.s
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22827 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22831 cat >>confdefs.h
<<_ACEOF
22832 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22837 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22838 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22839 $as_echo_n "(cached) " >&6
22841 gcc_cv_as_comdat_group
=no
22842 if test $in_tree_gas = yes; then
22843 if test $in_tree_gas_is_elf = yes \
22844 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22845 then gcc_cv_as_comdat_group
=yes
22847 elif test x
$gcc_cv_as != x
; then
22848 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22851 (eval $ac_try) 2>&5
22853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22854 test $ac_status = 0; }; }
22856 gcc_cv_as_comdat_group
=yes
22858 echo "configure: failed program was" >&5
22861 rm -f conftest.o conftest.s
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22865 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22867 if test $gcc_cv_as_comdat_group = yes; then
22868 gcc_cv_as_comdat_group_percent
=no
22869 gcc_cv_as_comdat_group_group
=no
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22872 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22873 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22874 $as_echo_n "(cached) " >&6
22876 gcc_cv_as_comdat_group_percent
=no
22877 if test $in_tree_gas = yes; then
22878 if test $in_tree_gas_is_elf = yes \
22879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22880 then gcc_cv_as_comdat_group_percent
=yes
22882 elif test x
$gcc_cv_as != x
; then
22883 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22886 (eval $ac_try) 2>&5
22888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22889 test $ac_status = 0; }; }
22891 gcc_cv_as_comdat_group_percent
=yes
22893 echo "configure: failed program was" >&5
22896 rm -f conftest.o conftest.s
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22900 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22902 if test $gcc_cv_as_comdat_group_percent = yes; then
22903 gcc_cv_as_comdat_group_group
=no
22905 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22906 gcc_cv_as_comdat_group_group
=no
22908 case "${target}" in
22909 # Sun as uses a completely different syntax.
22911 case "${target}" in
22912 sparc
*-*-solaris2*)
22914 .group foo,".text%foo",#comdat
22915 .section ".text%foo", #alloc,#execinstr,#progbits
22920 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22922 .group foo,.text%foo,#comdat
22923 .section .text%foo, "ax", @progbits
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22930 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22931 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22932 $as_echo_n "(cached) " >&6
22934 gcc_cv_as_comdat_group_group
=no
22935 if test x
$gcc_cv_as != x
; then
22936 $as_echo "$conftest_s" > conftest.s
22937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22939 (eval $ac_try) 2>&5
22941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22942 test $ac_status = 0; }; }
22944 gcc_cv_as_comdat_group_group
=yes
22946 echo "configure: failed program was" >&5
22949 rm -f conftest.o conftest.s
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22953 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22959 if test x
"$ld_is_gold" = xyes
; then
22961 elif test $in_tree_ld = yes ; then
22963 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 \
22964 && test $in_tree_ld_is_elf = yes; then
22967 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22969 if test 0"$ld_date" -lt 20050308; then
22970 if test -n "$ld_date"; then
22971 # If there was date string, but was earlier than 2005-03-08, fail
22973 elif test "$ld_vers_major" -lt 2; then
22975 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22980 case "${target}" in
22981 *-*-solaris2.1
[1-9]*)
22983 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22984 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22987 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22988 # least ld version 1.2267.
22989 if test "$ld_vers_major" -gt 1; then
22991 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22993 elif test "$ld_vers_minor" -ge 2267; then
22998 # Assume linkers other than GNU ld don't support COMDAT group.
23003 # Allow overriding the automatic COMDAT group tests above.
23004 # Check whether --enable-comdat was given.
23005 if test "${enable_comdat+set}" = set; then :
23006 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23009 if test $comdat_group = no
; then
23010 gcc_cv_as_comdat_group
=no
23011 gcc_cv_as_comdat_group_percent
=no
23012 gcc_cv_as_comdat_group_group
=no
23015 cat >>confdefs.h
<<_ACEOF
23016 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23017 || test $gcc_cv_as_comdat_group_percent = yes \
23018 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23023 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23024 if test "${gcc_cv_as_discriminator+set}" = set; then :
23025 $as_echo_n "(cached) " >&6
23027 gcc_cv_as_discriminator
=no
23028 if test $in_tree_gas = yes; then
23029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23030 then gcc_cv_as_discriminator
=yes
23032 elif test x
$gcc_cv_as != x
; then
23035 .loc 1 1 0 discriminator 1' > conftest.s
23036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23038 (eval $ac_try) 2>&5
23040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23041 test $ac_status = 0; }; }
23043 gcc_cv_as_discriminator
=yes
23045 echo "configure: failed program was" >&5
23048 rm -f conftest.o conftest.s
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23052 $as_echo "$gcc_cv_as_discriminator" >&6; }
23053 if test $gcc_cv_as_discriminator = yes; then
23055 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23059 # Thread-local storage - the check is heavily parameterized.
23067 .section ".tdata","awT",@progbits
23070 ldq $27,__tls_get_addr($29) !literal!1
23071 lda $16,foo($29) !tlsgd!1
23072 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23073 ldq $27,__tls_get_addr($29) !literal!2
23074 lda $16,foo($29) !tlsldm!2
23075 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23076 ldq $1,foo($29) !gotdtprel
23077 ldah $2,foo($29) !dtprelhi
23078 lda $3,foo($2) !dtprello
23079 lda $4,foo($29) !dtprel
23080 ldq $1,foo($29) !gottprel
23081 ldah $2,foo($29) !tprelhi
23082 lda $3,foo($2) !tprello
23083 lda $4,foo($29) !tprel'
23086 tls_as_opt
=--fatal-warnings
23088 cris-
*-*|crisv32-
*-*)
23090 .section ".tdata","awT",@progbits
23097 tls_as_opt
=--fatal-warnings
23101 .section ".tdata","awT",@progbits
23104 call #gettlsoff(x)'
23113 .section ".tdata","awT",@progbits
23117 addil LT%foo-$tls_gdidx$,gp
23118 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23121 addil LT%foo-$tls_ldidx$,gp
23123 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23124 addil LR%foo-$tls_dtpoff$,%ret0
23125 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23127 addil LT%foo-$tls_ieoff$,gp
23128 ldw RT%foo-$tls_ieoff$(%r1),%t2
23131 addil LR%foo-$tls_leoff$,%t1
23132 ldo RR%foo-$tls_leoff$(%r1),%t2'
23135 tls_as_opt
=--fatal-warnings
23139 .section ".tdata","awT",%progbits
23142 .word foo(gottpoff)
23150 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23152 i
[34567]86-*-solaris2.
*)
23154 tga_func
=___tls_get_addr
23156 x86_64-
*-solaris2.1
[0-9]*)
23158 tga_func
=__tls_get_addr
23164 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23166 .section .tdata,"awt",@progbits'
23170 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23174 .section ".tdata","awT",@progbits'
23177 tls_as_opt
="--fatal-warnings"
23179 conftest_s
="$conftest_s
23183 leal foo@tlsgd(,%ebx,1), %eax
23184 leal foo@tlsldm(%ebx), %eax
23185 leal foo@dtpoff(%eax), %edx
23186 movl foo@gottpoff(%ebx), %eax
23187 subl foo@gottpoff(%ebx), %eax
23188 addl foo@gotntpoff(%ebx), %eax
23189 movl foo@indntpoff, %eax
23190 movl \$foo@tpoff, %eax
23191 subl \$foo@tpoff, %eax
23192 leal foo@ntpoff(%ecx), %eax"
23196 .section ".tdata","awT",@progbits
23200 leaq foo@TLSGD(%rip), %rdi
23201 leaq foo@TLSLD(%rip), %rdi
23202 leaq foo@DTPOFF(%rax), %rdx
23203 movq foo@GOTTPOFF(%rip), %rax
23204 movq $foo@TPOFF, %rax'
23207 tls_as_opt
=--fatal-warnings
23211 .section ".tdata","awT",@progbits
23214 addl r16 = @ltoff(@dtpmod(foo#)), gp
23215 addl r17 = @ltoff(@dtprel(foo#)), gp
23216 addl r18 = @ltoff(@tprel(foo#)), gp
23217 addl r19 = @dtprel(foo#), gp
23218 adds r21 = @dtprel(foo#), r13
23219 movl r23 = @dtprel(foo#)
23220 addl r20 = @tprel(foo#), gp
23221 adds r22 = @tprel(foo#), r13
23222 movl r24 = @tprel(foo#)'
23225 tls_as_opt
=--fatal-warnings
23229 .section .tdata,"awT",@progbits
23233 addik r5,r20,x@TLSGD
23234 addik r5,r20,x@TLSLDM'
23237 tls_as_opt
='--fatal-warnings'
23241 .section .tdata,"awT",@progbits
23245 addiu $4, $28, %tlsgd(x)
23246 addiu $4, $28, %tlsldm(x)
23247 lui $4, %dtprel_hi(x)
23248 addiu $4, $4, %dtprel_lo(x)
23249 lw $4, %gottprel(x)($28)
23250 lui $4, %tprel_hi(x)
23251 addiu $4, $4, %tprel_lo(x)'
23254 tls_as_opt
='-32 --fatal-warnings'
23258 .section .tdata,"awT",@progbits
23263 move.l x@TLSGD(%a5),%a0
23264 move.l x@TLSLDM(%a5),%a0
23265 move.l x@TLSLDO(%a5),%a0
23266 move.l x@TLSIE(%a5),%a0
23267 move.l x@TLSLE(%a5),%a0'
23270 tls_as_opt
='--fatal-warnings'
23274 .section ".tdata","awT",%progbits
23278 add x0, x0, #:tlsgd_lo12:x
23283 tls_as_opt
='--fatal-warnings'
23287 .extern __get_tpointer
23305 .section ".tdata","awT",@progbits
23313 addi 3,2,ld0@got@tlsgd
23319 addi 3,2,x1@got@tlsld
23325 addis 9,3,x2@dtprel@ha
23326 addi 9,9,x2@dtprel@l
23329 ld 9,x3@got@dtprel(2)
23335 tls_as_opt
="-a64 --fatal-warnings"
23339 .section ".tdata","awT",@progbits
23347 addi 3,31,ld0@got@tlsgd
23349 addi 3,31,x1@got@tlsld
23352 addis 9,3,x2@dtprel@ha
23353 addi 9,9,x2@dtprel@l
23354 lwz 9,x3@got@tprel(31)
23357 addis 9,2,x2@tprel@ha
23358 addi 9,9,x2@tprel@l'
23361 tls_as_opt
="-a32 --fatal-warnings"
23365 .section ".tdata","awT",@progbits
23372 .long foo@GOTNTPOFF
23373 .long foo@INDNTPOFF
23374 l %r1,foo@GOTNTPOFF(%r12)
23375 l %r1,0(%r1):tls_load:foo
23376 bas %r14,0(%r1,%r13):tls_gdcall:foo
23377 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23380 tls_as_opt
="-m31 --fatal-warnings"
23384 .section ".tdata","awT",@progbits
23391 .quad foo@GOTNTPOFF
23392 lg %r1,foo@GOTNTPOFF(%r12)
23393 larl %r1,foo@INDNTPOFF
23394 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23395 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23398 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23400 sh-
*-* | sh
[34]-*-*)
23402 .section ".tdata","awT",@progbits
23412 tls_as_opt
=--fatal-warnings
23416 sparc
*-sun-solaris2.
*)
23418 tga_func
=__tls_get_addr
23424 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23426 .section ".tdata",#alloc,#write,#tls'
23431 .section ".tdata","awT",@progbits'
23434 tls_as_opt
="-32 --fatal-warnings"
23436 conftest_s
="$conftest_s
23439 sethi %tgd_hi22(foo), %o0
23440 add %o0, %tgd_lo10(foo), %o1
23441 add %l7, %o1, %o0, %tgd_add(foo)
23442 call __tls_get_addr, %tgd_call(foo)
23443 sethi %tldm_hi22(foo), %l1
23444 add %l1, %tldm_lo10(foo), %l2
23445 add %l7, %l2, %o0, %tldm_add(foo)
23446 call __tls_get_addr, %tldm_call(foo)
23447 sethi %tldo_hix22(foo), %l3
23448 xor %l3, %tldo_lox10(foo), %l4
23449 add %o0, %l4, %l5, %tldo_add(foo)
23450 sethi %tie_hi22(foo), %o3
23451 add %o3, %tie_lo10(foo), %o3
23452 ld [%l7 + %o3], %o2, %tie_ld(foo)
23453 add %g7, %o2, %o4, %tie_add(foo)
23454 sethi %tle_hix22(foo), %l1
23455 xor %l1, %tle_lox10(foo), %o5
23456 ld [%g7 + %o5], %o1"
23460 .section ".tdata","awT",@progbits
23463 addli r0, zero, tls_gd(foo)
23464 auli r0, zero, tls_gd_ha16(foo)
23465 addli r0, r0, tls_gd_lo16(foo)
23467 addli r0, zero, tls_ie(foo)
23468 auli r0, r0, tls_ie_ha16(foo)
23469 addli r0, r0, tls_ie_lo16(foo)'
23472 tls_as_opt
="--fatal-warnings"
23476 .section ".tdata","awT",@progbits
23479 shl16insli r0, zero, hw0_last_tls_gd(foo)
23480 shl16insli r0, zero, hw1_last_tls_gd(foo)
23481 shl16insli r0, r0, hw0_tls_gd(foo)
23483 shl16insli r0, zero, hw1_last_tls_ie(foo)
23484 shl16insli r0, r0, hw0_tls_ie(foo)'
23487 tls_as_opt
="--fatal-warnings"
23491 .section ".tdata","awT",@progbits
23494 movi a8, foo@TLSFUNC
23495 movi a10, foo@TLSARG
23496 callx8.tls a8, foo@TLSCALL'
23502 if test "x$enable_tls" = xno
; then
23503 : # TLS explicitly disabled.
23504 elif test "x$enable_tls" = xyes
; then
23505 set_have_as_tls
=yes # TLS explicitly enabled.
23506 elif test -z "$tls_first_major"; then
23507 : # If we don't have a check, assume no support.
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23510 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23511 if test "${gcc_cv_as_tls+set}" = set; then :
23512 $as_echo_n "(cached) " >&6
23515 if test $in_tree_gas = yes; then
23516 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23517 then gcc_cv_as_tls
=yes
23519 elif test x
$gcc_cv_as != x
; then
23520 $as_echo "$conftest_s" > conftest.s
23521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; }
23530 echo "configure: failed program was" >&5
23533 rm -f conftest.o conftest.s
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23537 $as_echo "$gcc_cv_as_tls" >&6; }
23538 if test $gcc_cv_as_tls = yes; then
23539 set_have_as_tls
=yes
23543 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23544 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23545 # Sun style that Sun ld and GCC don't support any longer.
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23548 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23550 # Check ld and ld.so.1 TLS support.
23551 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23552 # Assume all interesting versions of GNU ld have TLS support.
23553 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23557 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23559 min_tls_ld_vers_minor
=374
23561 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23562 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23563 min_tls_ld_vers_minor
=343
23566 if test "$ld_vers_major" -gt 1 || \
23567 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23574 $as_echo "$ld_tls_support" >&6; }
23577 save_LDFLAGS
="$LDFLAGS"
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23582 $as_echo_n "checking library containing $tga_func... " >&6; }
23583 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23584 # (32-bit x86) only lived in libthread, so check for that. Keep
23585 # set_have_as_tls if found, disable if not.
23586 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23588 $as_echo_n "checking for library containing $tga_func... " >&6; }
23589 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23590 $as_echo_n "(cached) " >&6
23592 ac_func_search_save_LIBS
=$LIBS
23593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23596 /* Override any GCC internal prototype to avoid an error.
23597 Use char because int might match the return type of a GCC
23598 builtin and then its argument prototype would still apply. */
23606 return $tga_func ();
23611 for ac_lib
in '' thread
; do
23612 if test -z "$ac_lib"; then
23613 ac_res
="none required"
23616 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23618 if ac_fn_c_try_link
"$LINENO"; then :
23619 eval "$as_ac_Search=\$ac_res"
23621 rm -f core conftest.err conftest.
$ac_objext \
23623 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23627 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23630 eval "$as_ac_Search=no"
23632 rm conftest.
$ac_ext
23633 LIBS
=$ac_func_search_save_LIBS
23635 eval ac_res
=\$
$as_ac_Search
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23637 $as_echo "$ac_res" >&6; }
23638 eval ac_res
=\$
$as_ac_Search
23639 if test "$ac_res" != no
; then :
23640 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23646 # Clear LIBS if we cannot support TLS.
23647 if test $set_have_as_tls = no
; then
23650 # Always define LIB_TLS_SPEC, even without TLS support.
23652 cat >>confdefs.h
<<_ACEOF
23653 #define LIB_TLS_SPEC "$LIBS"
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23657 $as_echo "$LIBS" >&6; }
23660 LDFLAGS
="$save_LDFLAGS"
23663 if test $set_have_as_tls = yes ; then
23665 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23669 # Target-specific assembler checks.
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23672 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23673 gcc_cv_ld_static_dynamic
=no
23674 gcc_cv_ld_static_option
='-Bstatic'
23675 gcc_cv_ld_dynamic_option
='-Bdynamic'
23676 if test $in_tree_ld = yes ; then
23677 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
23678 gcc_cv_ld_static_dynamic
=yes
23680 elif test x
$gcc_cv_ld != x
; then
23681 # Check if linker supports -Bstatic/-Bdynamic option
23682 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23683 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23684 gcc_cv_ld_static_dynamic
=yes
23687 # AIX ld uses -b flags
23688 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23689 gcc_cv_ld_static_dynamic
=yes
23690 gcc_cv_ld_static_option
="-bstatic"
23691 gcc_cv_ld_dynamic_option
="-bdynamic"
23693 # HP-UX ld uses -a flags to select between shared and archive.
23695 if test x
"$gnu_ld" = xno
; then
23696 gcc_cv_ld_static_dynamic
=yes
23697 gcc_cv_ld_static_option
="-aarchive_shared"
23698 gcc_cv_ld_dynamic_option
="-adefault"
23701 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23703 gcc_cv_ld_static_dynamic
=yes
23708 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23710 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23713 cat >>confdefs.h
<<_ACEOF
23714 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23718 cat >>confdefs.h
<<_ACEOF
23719 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23724 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23726 if test x
"$demangler_in_ld" = xyes
; then
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23728 $as_echo_n "checking linker --demangle support... " >&6; }
23729 gcc_cv_ld_demangle
=no
23730 if test $in_tree_ld = yes; then
23731 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 \
23732 gcc_cv_ld_demangle
=yes
23734 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23735 # Check if the GNU linker supports --demangle option
23736 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23737 gcc_cv_ld_demangle
=yes
23740 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23742 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23746 $as_echo "$gcc_cv_ld_demangle" >&6; }
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23750 $as_echo_n "checking linker plugin support... " >&6; }
23751 gcc_cv_lto_plugin
=0
23752 if test -f liblto_plugin.la
; then
23753 save_ld_ver
="$ld_ver"
23754 save_ld_vers_major
="$ld_vers_major"
23755 save_ld_vers_minor
="$ld_vers_minor"
23756 save_ld_is_gold
="$ld_is_gold"
23760 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23762 # FIXME: ld_is_gold?
23763 ld_vers_major
="$gcc_cv_gld_major_version"
23764 ld_vers_minor
="$gcc_cv_gld_minor_version"
23766 # Determine plugin linker version.
23767 # FIXME: Partial duplicate from above, generalize.
23768 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23769 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23770 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23772 ld_vers
=`echo $ld_ver | sed -n \
23773 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23775 ld_vers
=`echo $ld_ver | sed -n \
23776 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23778 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23779 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23783 # Determine plugin support.
23784 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23785 # Require GNU ld or gold 2.21+ for plugin support by default.
23786 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23787 gcc_cv_lto_plugin
=2
23788 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23789 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23790 gcc_cv_lto_plugin
=1
23794 ld_ver
="$save_ld_ver"
23795 ld_vers_major
="$save_ld_vers_major"
23796 ld_vers_minor
="$save_ld_vers_minor"
23797 ld_is_gold
="$save_ld_is_gold"
23800 cat >>confdefs.h
<<_ACEOF
23801 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23805 $as_echo "$gcc_cv_lto_plugin" >&6; }
23810 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
23811 # Check whether --enable-fix-cortex-a53-835769 was given.
23812 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
23813 enableval
=$enable_fix_cortex_a53_835769;
23816 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
23821 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
23822 Valid choices are 'yes' and 'no'." "$LINENO" 5
23830 # All TARGET_ABI_OSF targets.
23831 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23833 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23834 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23837 gcc_cv_as_alpha_explicit_relocs
=no
23838 if test $in_tree_gas = yes; then
23839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23840 then gcc_cv_as_alpha_explicit_relocs
=yes
23842 elif test x
$gcc_cv_as != x
; then
23843 $as_echo ' .set nomacro
23845 extbl $3, $2, $3 !lituse_bytoff!1
23846 ldq $2, a($29) !literal!1
23847 ldq $4, b($29) !literal!2
23848 ldq_u $3, 0($2) !lituse_base!1
23849 ldq $27, f($29) !literal!5
23850 jsr $26, ($27), f !lituse_jsr!5
23851 ldah $29, 0($26) !gpdisp!3
23852 lda $0, c($29) !gprel
23853 ldah $1, d($29) !gprelhigh
23854 lda $1, d($1) !gprellow
23855 lda $29, 0($29) !gpdisp!3' > conftest.s
23856 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23858 (eval $ac_try) 2>&5
23860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23861 test $ac_status = 0; }; }
23863 gcc_cv_as_alpha_explicit_relocs
=yes
23865 echo "configure: failed program was" >&5
23868 rm -f conftest.o conftest.s
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23872 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23873 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23875 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23879 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23880 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23881 $as_echo_n "(cached) " >&6
23883 gcc_cv_as_alpha_jsrdirect_relocs
=no
23884 if test $in_tree_gas = yes; then
23885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23886 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23888 elif test x
$gcc_cv_as != x
; then
23889 $as_echo ' .set nomacro
23891 ldq $27, a($29) !literal!1
23892 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23895 (eval $ac_try) 2>&5
23897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23898 test $ac_status = 0; }; }
23900 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23902 echo "configure: failed program was" >&5
23905 rm -f conftest.o conftest.s
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23909 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23910 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23912 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23919 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23920 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23921 $as_echo_n "(cached) " >&6
23923 gcc_cv_as_cris_no_mul_bug
=no
23924 if test $in_tree_gas = yes; then
23925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23926 then gcc_cv_as_cris_no_mul_bug
=yes
23928 elif test x
$gcc_cv_as != x
; then
23929 $as_echo '.text' > conftest.s
23930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23932 (eval $ac_try) 2>&5
23934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935 test $ac_status = 0; }; }
23937 gcc_cv_as_cris_no_mul_bug
=yes
23939 echo "configure: failed program was" >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23946 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23947 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23949 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23956 $as_echo_n "checking assembler for .register... " >&6; }
23957 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23960 gcc_cv_as_sparc_register_op
=no
23961 if test x
$gcc_cv_as != x
; then
23962 $as_echo '.register %g2, #scratch' > conftest.s
23963 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23965 (eval $ac_try) 2>&5
23967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23968 test $ac_status = 0; }; }
23970 gcc_cv_as_sparc_register_op
=yes
23972 echo "configure: failed program was" >&5
23975 rm -f conftest.o conftest.s
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23979 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23980 if test $gcc_cv_as_sparc_register_op = yes; then
23982 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23987 $as_echo_n "checking assembler for #nobits... " >&6; }
23988 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23989 $as_echo_n "(cached) " >&6
23991 gcc_cv_as_sparc_nobits
=no
23992 if test x
$gcc_cv_as != x
; then
23993 $as_echo '.section "nobits",#alloc,#write,#nobits
23994 .section "progbits",#alloc,#write,#progbits' > conftest.s
23995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23997 (eval $ac_try) 2>&5
23999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24000 test $ac_status = 0; }; }
24002 gcc_cv_as_sparc_nobits
=yes
24004 echo "configure: failed program was" >&5
24007 rm -f conftest.o conftest.s
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24011 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24014 cat >>confdefs.h
<<_ACEOF
24015 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24020 $as_echo_n "checking assembler for -relax option... " >&6; }
24021 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24022 $as_echo_n "(cached) " >&6
24024 gcc_cv_as_sparc_relax
=no
24025 if test x
$gcc_cv_as != x
; then
24026 $as_echo '.text' > conftest.s
24027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24029 (eval $ac_try) 2>&5
24031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24032 test $ac_status = 0; }; }
24034 gcc_cv_as_sparc_relax
=yes
24036 echo "configure: failed program was" >&5
24039 rm -f conftest.o conftest.s
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24043 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24044 if test $gcc_cv_as_sparc_relax = yes; then
24046 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24051 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24052 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24055 gcc_cv_as_sparc_gotdata_op
=no
24056 if test x
$gcc_cv_as != x
; then
24062 sethi %gdop_hix22(foo), %g1
24063 xor %g1, %gdop_lox10(foo), %g1
24064 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24067 (eval $ac_try) 2>&5
24069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24070 test $ac_status = 0; }; }
24072 if test x
$gcc_cv_ld != x \
24073 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24074 if test x
$gcc_cv_objdump != x
; then
24075 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24076 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24077 gcc_cv_as_sparc_gotdata_op
=no
24079 gcc_cv_as_sparc_gotdata_op
=yes
24085 echo "configure: failed program was" >&5
24088 rm -f conftest.o conftest.s
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24092 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24093 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24095 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24100 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24101 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24104 gcc_cv_as_sparc_ua_pcrel
=no
24105 if test x
$gcc_cv_as != x
; then
24112 .uaword %r_disp32(foo)' > conftest.s
24113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24115 (eval $ac_try) 2>&5
24117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24118 test $ac_status = 0; }; }
24120 if test x
$gcc_cv_ld != x \
24121 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24122 gcc_cv_as_sparc_ua_pcrel
=yes
24126 echo "configure: failed program was" >&5
24129 rm -f conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24133 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24134 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24136 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24140 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24141 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24142 $as_echo_n "(cached) " >&6
24144 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24145 if test x
$gcc_cv_as != x
; then
24149 .uaword %r_disp32(foo)
24150 .byte 0x32, 0x33, 0x34
24154 .skip 4' > conftest.s
24155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24157 (eval $ac_try) 2>&5
24159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24160 test $ac_status = 0; }; }
24162 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24163 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24164 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24165 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24166 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24167 |
grep 'DISP32' > /dev
/null
2>&1; then
24170 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24175 echo "configure: failed program was" >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24182 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24183 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24185 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24189 fi # unaligned pcrel relocs
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24192 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24193 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24196 gcc_cv_as_sparc_offsetable_lo10
=no
24197 if test x
$gcc_cv_as != x
; then
24199 or %g1, %lo(ab) + 12, %g1
24200 or %g1, %lo(ab + 12), %g1' > conftest.s
24201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; }
24208 if test x
$gcc_cv_objdump != x \
24209 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24210 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24211 gcc_cv_as_sparc_offsetable_lo10
=yes
24214 echo "configure: failed program was" >&5
24217 rm -f conftest.o conftest.s
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24221 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24222 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24224 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24229 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24230 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24231 $as_echo_n "(cached) " >&6
24233 gcc_cv_as_sparc_fmaf
=no
24234 if test x
$gcc_cv_as != x
; then
24236 .register %g2, #scratch
24237 .register %g3, #scratch
24239 fmaddd %f0, %f2, %f4, %f6
24240 addxccc %g1, %g2, %g3
24241 fsrl32 %f2, %f4, %f8
24242 fnaddd %f10, %f12, %f14' > conftest.s
24243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24245 (eval $ac_try) 2>&5
24247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24248 test $ac_status = 0; }; }
24250 gcc_cv_as_sparc_fmaf
=yes
24252 echo "configure: failed program was" >&5
24255 rm -f conftest.o conftest.s
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24259 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24260 if test $gcc_cv_as_sparc_fmaf = yes; then
24262 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24267 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24268 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24269 $as_echo_n "(cached) " >&6
24271 gcc_cv_as_sparc_sparc4
=no
24272 if test x
$gcc_cv_as != x
; then
24274 .register %g2, #scratch
24275 .register %g3, #scratch
24278 1: cwbneg %g2, %g3, 1f
24281 aes_kexpand0 %f4, %f6, %f8
24282 des_round %f38, %f40, %f42, %f44
24283 camellia_f %f54, %f56, %f58, %f60
24284 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24292 gcc_cv_as_sparc_sparc4
=yes
24294 echo "configure: failed program was" >&5
24297 rm -f conftest.o conftest.s
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24301 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24302 if test $gcc_cv_as_sparc_sparc4 = yes; then
24304 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24309 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24310 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24311 $as_echo_n "(cached) " >&6
24313 gcc_cv_as_sparc_leon
=no
24314 if test x
$gcc_cv_as != x
; then
24316 .register %g2, #scratch
24317 .register %g3, #scratch
24321 casa [%g2] 0xb, %g3, %g1' > conftest.s
24322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24329 gcc_cv_as_sparc_leon
=yes
24331 echo "configure: failed program was" >&5
24334 rm -f conftest.o conftest.s
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24338 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24339 if test $gcc_cv_as_sparc_leon = yes; then
24341 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24346 i
[34567]86-*-* | x86_64-
*-*)
24349 # Full C++ conformance when using a shared libstdc++-v3 requires some
24350 # support from the Cygwin DLL, which in more recent versions exports
24351 # wrappers to aid in interposing and redirecting operators new, delete,
24352 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24353 # are configuring for a version of Cygwin that exports the wrappers.
24354 if test x
$host = x
$target; then
24355 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24356 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24357 gcc_ac_cygwin_dll_wrappers
=yes
24359 gcc_ac_cygwin_dll_wrappers
=no
24363 # Can't check presence of libc functions during cross-compile, so
24364 # we just have to assume we're building for an up-to-date target.
24365 gcc_ac_cygwin_dll_wrappers
=yes
24368 cat >>confdefs.h
<<_ACEOF
24369 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24374 cygwin
* | pe | mingw32
* | interix
*)
24375 # Recent binutils allows the three-operand form of ".comm" on PE. This
24376 # definition is used unconditionally to initialise the default state of
24377 # the target option variable that governs usage of the feature.
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24379 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24380 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24381 $as_echo_n "(cached) " >&6
24383 gcc_cv_as_comm_has_align
=no
24384 if test $in_tree_gas = yes; then
24385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24386 then gcc_cv_as_comm_has_align
=yes
24388 elif test x
$gcc_cv_as != x
; then
24389 $as_echo '.comm foo,1,32' > conftest.s
24390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24392 (eval $ac_try) 2>&5
24394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24395 test $ac_status = 0; }; }
24397 gcc_cv_as_comm_has_align
=yes
24399 echo "configure: failed program was" >&5
24402 rm -f conftest.o conftest.s
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24406 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24409 cat >>confdefs.h
<<_ACEOF
24410 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24413 # Used for DWARF 2 in PE
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24415 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24416 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24417 $as_echo_n "(cached) " >&6
24419 gcc_cv_as_ix86_pe_secrel32
=no
24420 if test $in_tree_gas = yes; then
24421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24422 then gcc_cv_as_ix86_pe_secrel32
=yes
24424 elif test x
$gcc_cv_as != x
; then
24428 .secrel32 foo' > conftest.s
24429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24431 (eval $ac_try) 2>&5
24433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24434 test $ac_status = 0; }; }
24436 if test x
$gcc_cv_ld != x \
24437 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24438 gcc_cv_as_ix86_pe_secrel32
=yes
24442 echo "configure: failed program was" >&5
24445 rm -f conftest.o conftest.s
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24449 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24450 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24452 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24455 # Test if the assembler supports the extended form of the .section
24456 # directive that specifies section alignment. LTO support uses this,
24457 # but normally only after installation, so we warn but don't fail the
24458 # configure if LTO is enabled but the assembler does not support it.
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24460 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24461 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24462 $as_echo_n "(cached) " >&6
24464 gcc_cv_as_section_has_align
=no
24465 if test $in_tree_gas = yes; then
24466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24467 then gcc_cv_as_section_has_align
=yes
24469 elif test x
$gcc_cv_as != x
; then
24470 $as_echo '.section lto_test,"dr0"' > conftest.s
24471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473 (eval $ac_try) 2>&5
24475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476 test $ac_status = 0; }; }
24478 gcc_cv_as_section_has_align
=yes
24480 echo "configure: failed program was" >&5
24483 rm -f conftest.o conftest.s
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24487 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24489 if test x
$gcc_cv_as_section_has_align != xyes
; then
24490 case ",$enable_languages," in
24492 { $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
24493 $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;}
24497 # Test if the assembler supports the section flag 'e' for specifying
24498 # an excluded section.
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24500 $as_echo_n "checking assembler for .section with e... " >&6; }
24501 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24504 gcc_cv_as_section_has_e
=no
24505 if test $in_tree_gas = yes; then
24506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24507 then gcc_cv_as_section_has_e
=yes
24509 elif test x
$gcc_cv_as != x
; then
24510 $as_echo '.section foo1,"e"
24511 .byte 0,0,0,0' > conftest.s
24512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24519 gcc_cv_as_section_has_e
=yes
24521 echo "configure: failed program was" >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24528 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24531 cat >>confdefs.h
<<_ACEOF
24532 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24539 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24540 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24543 gcc_cv_as_ix86_filds
=no
24544 if test x
$gcc_cv_as != x
; then
24545 $as_echo 'filds mem; fists mem' > conftest.s
24546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24553 gcc_cv_as_ix86_filds
=yes
24555 echo "configure: failed program was" >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24562 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24563 if test $gcc_cv_as_ix86_filds = yes; then
24565 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24570 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24571 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24574 gcc_cv_as_ix86_fildq
=no
24575 if test x
$gcc_cv_as != x
; then
24576 $as_echo 'fildq mem; fistpq mem' > conftest.s
24577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579 (eval $ac_try) 2>&5
24581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582 test $ac_status = 0; }; }
24584 gcc_cv_as_ix86_fildq
=yes
24586 echo "configure: failed program was" >&5
24589 rm -f conftest.o conftest.s
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24593 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24594 if test $gcc_cv_as_ix86_fildq = yes; then
24596 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24601 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24602 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24605 gcc_cv_as_ix86_cmov_sun_syntax
=no
24606 if test x
$gcc_cv_as != x
; then
24607 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24615 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24617 echo "configure: failed program was" >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24624 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24625 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24627 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24632 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24633 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24636 gcc_cv_as_ix86_ffreep
=no
24637 if test x
$gcc_cv_as != x
; then
24638 $as_echo 'ffreep %st(1)' > conftest.s
24639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24641 (eval $ac_try) 2>&5
24643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24644 test $ac_status = 0; }; }
24646 gcc_cv_as_ix86_ffreep
=yes
24648 echo "configure: failed program was" >&5
24651 rm -f conftest.o conftest.s
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24655 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24656 if test $gcc_cv_as_ix86_ffreep = yes; then
24658 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24663 $as_echo_n "checking assembler for .quad directive... " >&6; }
24664 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24667 gcc_cv_as_ix86_quad
=no
24668 if test x
$gcc_cv_as != x
; then
24669 $as_echo '.quad 0' > conftest.s
24670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24672 (eval $ac_try) 2>&5
24674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24675 test $ac_status = 0; }; }
24677 gcc_cv_as_ix86_quad
=yes
24679 echo "configure: failed program was" >&5
24682 rm -f conftest.o conftest.s
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24686 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24687 if test $gcc_cv_as_ix86_quad = yes; then
24689 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24694 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24695 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24696 $as_echo_n "(cached) " >&6
24698 gcc_cv_as_ix86_sahf
=no
24699 if test x
$gcc_cv_as != x
; then
24702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24704 (eval $ac_try) 2>&5
24706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24707 test $ac_status = 0; }; }
24709 gcc_cv_as_ix86_sahf
=yes
24711 echo "configure: failed program was" >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24718 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24719 if test $gcc_cv_as_ix86_sahf = yes; then
24721 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24726 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24727 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24730 gcc_cv_as_ix86_hle
=no
24731 if test x
$gcc_cv_as != x
; then
24732 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24740 gcc_cv_as_ix86_hle
=yes
24742 echo "configure: failed program was" >&5
24745 rm -f conftest.o conftest.s
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24749 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24750 if test $gcc_cv_as_ix86_hle = yes; then
24752 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24757 $as_echo_n "checking assembler for swap suffix... " >&6; }
24758 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24759 $as_echo_n "(cached) " >&6
24761 gcc_cv_as_ix86_swap
=no
24762 if test x
$gcc_cv_as != x
; then
24763 $as_echo 'movl.s %esp, %ebp' > conftest.s
24764 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; }
24771 gcc_cv_as_ix86_swap
=yes
24773 echo "configure: failed program was" >&5
24776 rm -f conftest.o conftest.s
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24780 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24781 if test $gcc_cv_as_ix86_swap = yes; then
24783 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24788 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24789 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24792 gcc_cv_as_ix86_diff_sect_delta
=no
24793 if test x
$gcc_cv_as != x
; then
24794 $as_echo '.section .rodata
24800 .L2: nop' > conftest.s
24801 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24803 (eval $ac_try) 2>&5
24805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24806 test $ac_status = 0; }; }
24808 gcc_cv_as_ix86_diff_sect_delta
=yes
24810 echo "configure: failed program was" >&5
24813 rm -f conftest.o conftest.s
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24817 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24818 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24820 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24824 # These two are used unconditionally by i386.[ch]; it is to be defined
24825 # to 1 if the feature is present, 0 otherwise.
24826 as_ix86_gotoff_in_data_opt
=
24827 if test x
$gas = xyes
; then
24828 as_ix86_gotoff_in_data_opt
="--32"
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24831 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24832 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24835 gcc_cv_as_ix86_gotoff_in_data
=no
24836 if test $in_tree_gas = yes; then
24837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24838 then gcc_cv_as_ix86_gotoff_in_data
=yes
24840 elif test x
$gcc_cv_as != x
; then
24845 .long .L0@GOTOFF' > conftest.s
24846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24853 gcc_cv_as_ix86_gotoff_in_data
=yes
24855 echo "configure: failed program was" >&5
24858 rm -f conftest.o conftest.s
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24862 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24865 cat >>confdefs.h
<<_ACEOF
24866 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24871 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24872 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24873 $as_echo_n "(cached) " >&6
24875 gcc_cv_as_ix86_rep_lock_prefix
=no
24876 if test x
$gcc_cv_as != x
; then
24877 $as_echo 'rep movsl
24882 lock addl %edi, (%eax,%esi)
24883 lock orl $0, (%esp)' > conftest.s
24884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24891 gcc_cv_as_ix86_rep_lock_prefix
=yes
24893 echo "configure: failed program was" >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24900 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24901 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24903 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
24908 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
24909 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24912 gcc_cv_as_ix86_ud2
=no
24913 if test x
$gcc_cv_as != x
; then
24914 $as_echo 'ud2' > conftest.s
24915 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24922 gcc_cv_as_ix86_ud2
=yes
24924 echo "configure: failed program was" >&5
24927 rm -f conftest.o conftest.s
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
24931 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
24932 if test $gcc_cv_as_ix86_ud2 = yes; then
24934 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24939 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24940 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24943 gcc_cv_as_ix86_tlsgdplt
=no
24944 if test x
$gcc_cv_as != x
; then
24945 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24948 (eval $ac_try) 2>&5
24950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24951 test $ac_status = 0; }; }
24953 if test x
$gcc_cv_ld != x \
24954 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24955 gcc_cv_as_ix86_tlsgdplt
=yes
24959 echo "configure: failed program was" >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24966 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24967 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24969 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24974 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24975 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24978 gcc_cv_as_ix86_tlsldmplt
=no
24979 if test x
$gcc_cv_as != x
; then
24981 call tls_ld@tlsldmplt' > conftest.s
24982 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24984 (eval $ac_try) 2>&5
24986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24987 test $ac_status = 0; }; }
24989 if test x
$gcc_cv_ld != x \
24990 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24991 gcc_cv_as_ix86_tlsldmplt
=yes
24995 echo "configure: failed program was" >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25002 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25003 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25005 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25013 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25014 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25015 $as_echo_n "(cached) " >&6
25017 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25018 if test $in_tree_gas = yes; then
25019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25020 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25022 elif test x
$gcc_cv_as != x
; then
25024 addl r15 = @ltoffx(x#), gp
25026 ld8.mov r16 = [r15], x#' > conftest.s
25027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25029 (eval $ac_try) 2>&5
25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25032 test $ac_status = 0; }; }
25034 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25036 echo "configure: failed program was" >&5
25039 rm -f conftest.o conftest.s
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25043 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25044 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25046 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25054 *-*-aix*) conftest_s
=' .machine "pwr5"
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25059 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25060 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25061 $as_echo_n "(cached) " >&6
25063 gcc_cv_as_machine_directive
=no
25064 if test x
$gcc_cv_as != x
; then
25065 $as_echo ' .machine ppc7400' > conftest.s
25066 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25068 (eval $ac_try) 2>&5
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; }
25073 gcc_cv_as_machine_directive
=yes
25075 echo "configure: failed program was" >&5
25078 rm -f conftest.o conftest.s
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25082 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25084 if test x
$gcc_cv_as_machine_directive != xyes
; then
25085 echo "*** This target requires an assembler supporting \".machine\"" >&2
25086 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25087 test x
$build = x
$target && exit 1
25091 *) conftest_s
=' .machine power4
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25097 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25098 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25099 $as_echo_n "(cached) " >&6
25101 gcc_cv_as_powerpc_mfcrf
=no
25102 if test $in_tree_gas = yes; then
25103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25104 then gcc_cv_as_powerpc_mfcrf
=yes
25106 elif test x
$gcc_cv_as != x
; then
25107 $as_echo "$conftest_s" > conftest.s
25108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110 (eval $ac_try) 2>&5
25112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113 test $ac_status = 0; }; }
25115 gcc_cv_as_powerpc_mfcrf
=yes
25117 echo "configure: failed program was" >&5
25120 rm -f conftest.o conftest.s
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25124 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25125 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25127 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25132 *-*-aix*) conftest_s
=' .machine "pwr5"
25135 *) conftest_s
=' .machine power5
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25141 $as_echo_n "checking assembler for popcntb support... " >&6; }
25142 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25143 $as_echo_n "(cached) " >&6
25145 gcc_cv_as_powerpc_popcntb
=no
25146 if test $in_tree_gas = yes; then
25147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25148 then gcc_cv_as_powerpc_popcntb
=yes
25150 elif test x
$gcc_cv_as != x
; then
25151 $as_echo "$conftest_s" > conftest.s
25152 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25159 gcc_cv_as_powerpc_popcntb
=yes
25161 echo "configure: failed program was" >&5
25164 rm -f conftest.o conftest.s
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25168 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25169 if test $gcc_cv_as_powerpc_popcntb = yes; then
25171 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25176 *-*-aix*) conftest_s
=' .machine "pwr5x"
25179 *) conftest_s
=' .machine power5
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25185 $as_echo_n "checking assembler for fp round support... " >&6; }
25186 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25187 $as_echo_n "(cached) " >&6
25189 gcc_cv_as_powerpc_fprnd
=no
25190 if test $in_tree_gas = yes; then
25191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25192 then gcc_cv_as_powerpc_fprnd
=yes
25194 elif test x
$gcc_cv_as != x
; then
25195 $as_echo "$conftest_s" > conftest.s
25196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25198 (eval $ac_try) 2>&5
25200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25201 test $ac_status = 0; }; }
25203 gcc_cv_as_powerpc_fprnd
=yes
25205 echo "configure: failed program was" >&5
25208 rm -f conftest.o conftest.s
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25212 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25213 if test $gcc_cv_as_powerpc_fprnd = yes; then
25215 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25220 *-*-aix*) conftest_s
=' .machine "pwr6"
25223 *) conftest_s
=' .machine power6
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25229 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25230 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25231 $as_echo_n "(cached) " >&6
25233 gcc_cv_as_powerpc_mfpgpr
=no
25234 if test $in_tree_gas = yes; then
25235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25236 then gcc_cv_as_powerpc_mfpgpr
=yes
25238 elif test x
$gcc_cv_as != x
; then
25239 $as_echo "$conftest_s" > conftest.s
25240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25247 gcc_cv_as_powerpc_mfpgpr
=yes
25249 echo "configure: failed program was" >&5
25252 rm -f conftest.o conftest.s
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25256 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25257 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25259 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25264 *-*-aix*) conftest_s
=' .csect .text[PR]
25266 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25270 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25271 *) conftest_s
=' .text
25273 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25277 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25278 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25279 $as_echo_n "(cached) " >&6
25281 gcc_cv_as_powerpc_rel16
=no
25282 if test $in_tree_gas = yes; then
25283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25284 then gcc_cv_as_powerpc_rel16
=yes
25286 elif test x
$gcc_cv_as != x
; then
25287 $as_echo "$conftest_s" > conftest.s
25288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25295 gcc_cv_as_powerpc_rel16
=yes
25297 echo "configure: failed program was" >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25304 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25305 if test $gcc_cv_as_powerpc_rel16 = yes; then
25307 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25312 *-*-aix*) conftest_s
=' .machine "pwr6"
25315 *) conftest_s
=' .machine power6
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25321 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25322 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25323 $as_echo_n "(cached) " >&6
25325 gcc_cv_as_powerpc_cmpb
=no
25326 if test $in_tree_gas = yes; then
25327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25328 then gcc_cv_as_powerpc_cmpb
=yes
25330 elif test x
$gcc_cv_as != x
; then
25331 $as_echo "$conftest_s" > conftest.s
25332 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25334 (eval $ac_try) 2>&5
25336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25337 test $ac_status = 0; }; }
25339 gcc_cv_as_powerpc_cmpb
=yes
25341 echo "configure: failed program was" >&5
25344 rm -f conftest.o conftest.s
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25348 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25349 if test $gcc_cv_as_powerpc_cmpb = yes; then
25351 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25356 *-*-aix*) conftest_s
=' .machine "pwr6"
25359 *) conftest_s
=' .machine power6
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25365 $as_echo_n "checking assembler for decimal float support... " >&6; }
25366 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25369 gcc_cv_as_powerpc_dfp
=no
25370 if test $in_tree_gas = yes; then
25371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25372 then gcc_cv_as_powerpc_dfp
=yes
25374 elif test x
$gcc_cv_as != x
; then
25375 $as_echo "$conftest_s" > conftest.s
25376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25378 (eval $ac_try) 2>&5
25380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25381 test $ac_status = 0; }; }
25383 gcc_cv_as_powerpc_dfp
=yes
25385 echo "configure: failed program was" >&5
25388 rm -f conftest.o conftest.s
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25392 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25393 if test $gcc_cv_as_powerpc_dfp = yes; then
25395 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25400 *-*-aix*) conftest_s
=' .machine "pwr7"
25403 *) conftest_s
=' .machine power7
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25409 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25410 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25413 gcc_cv_as_powerpc_vsx
=no
25414 if test $in_tree_gas = yes; then
25415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25416 then gcc_cv_as_powerpc_vsx
=yes
25418 elif test x
$gcc_cv_as != x
; then
25419 $as_echo "$conftest_s" > conftest.s
25420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25422 (eval $ac_try) 2>&5
25424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25425 test $ac_status = 0; }; }
25427 gcc_cv_as_powerpc_vsx
=yes
25429 echo "configure: failed program was" >&5
25432 rm -f conftest.o conftest.s
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25436 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25437 if test $gcc_cv_as_powerpc_vsx = yes; then
25439 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25444 *-*-aix*) conftest_s
=' .machine "pwr7"
25447 *) conftest_s
=' .machine power7
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25453 $as_echo_n "checking assembler for popcntd support... " >&6; }
25454 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25457 gcc_cv_as_powerpc_popcntd
=no
25458 if test $in_tree_gas = yes; then
25459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25460 then gcc_cv_as_powerpc_popcntd
=yes
25462 elif test x
$gcc_cv_as != x
; then
25463 $as_echo "$conftest_s" > conftest.s
25464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25466 (eval $ac_try) 2>&5
25468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25469 test $ac_status = 0; }; }
25471 gcc_cv_as_powerpc_popcntd
=yes
25473 echo "configure: failed program was" >&5
25476 rm -f conftest.o conftest.s
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25480 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25481 if test $gcc_cv_as_powerpc_popcntd = yes; then
25483 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25488 *-*-aix*) conftest_s
=' .machine "pwr8"
25489 .csect .text[PR]';;
25490 *) conftest_s
=' .machine power8
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25495 $as_echo_n "checking assembler for power8 support... " >&6; }
25496 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25499 gcc_cv_as_powerpc_power8
=no
25500 if test $in_tree_gas = yes; then
25501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25502 then gcc_cv_as_powerpc_power8
=yes
25504 elif test x
$gcc_cv_as != x
; then
25505 $as_echo "$conftest_s" > conftest.s
25506 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508 (eval $ac_try) 2>&5
25510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; }
25513 gcc_cv_as_powerpc_power8
=yes
25515 echo "configure: failed program was" >&5
25518 rm -f conftest.o conftest.s
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25522 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25523 if test $gcc_cv_as_powerpc_power8 = yes; then
25525 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25530 *-*-aix*) conftest_s
=' .csect .text[PR]
25532 *) conftest_s
=' .text
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25537 $as_echo_n "checking assembler for lwsync support... " >&6; }
25538 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25539 $as_echo_n "(cached) " >&6
25541 gcc_cv_as_powerpc_lwsync
=no
25542 if test $in_tree_gas = yes; then
25543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25544 then gcc_cv_as_powerpc_lwsync
=yes
25546 elif test x
$gcc_cv_as != x
; then
25547 $as_echo "$conftest_s" > conftest.s
25548 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25550 (eval $ac_try) 2>&5
25552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25553 test $ac_status = 0; }; }
25555 gcc_cv_as_powerpc_lwsync
=yes
25557 echo "configure: failed program was" >&5
25560 rm -f conftest.o conftest.s
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25564 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25565 if test $gcc_cv_as_powerpc_lwsync = yes; then
25567 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25572 *-*-aix*) conftest_s
=' .machine "476"
25575 *) conftest_s
=' .machine "476"
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25581 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25582 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25583 $as_echo_n "(cached) " >&6
25585 gcc_cv_as_powerpc_dci
=no
25586 if test $in_tree_gas = yes; then
25587 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25588 then gcc_cv_as_powerpc_dci
=yes
25590 elif test x
$gcc_cv_as != x
; then
25591 $as_echo "$conftest_s" > conftest.s
25592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25594 (eval $ac_try) 2>&5
25596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25597 test $ac_status = 0; }; }
25599 gcc_cv_as_powerpc_dci
=yes
25601 echo "configure: failed program was" >&5
25604 rm -f conftest.o conftest.s
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25608 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25609 if test $gcc_cv_as_powerpc_dci = yes; then
25611 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25616 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25617 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25620 gcc_cv_as_powerpc_gnu_attribute
=no
25621 if test $in_tree_gas = yes; then
25622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25623 then gcc_cv_as_powerpc_gnu_attribute
=yes
25625 elif test x
$gcc_cv_as != x
; then
25626 $as_echo '.gnu_attribute 4,1' > conftest.s
25627 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25629 (eval $ac_try) 2>&5
25631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25632 test $ac_status = 0; }; }
25634 gcc_cv_as_powerpc_gnu_attribute
=yes
25636 echo "configure: failed program was" >&5
25639 rm -f conftest.o conftest.s
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25643 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25644 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25646 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25651 $as_echo_n "checking assembler for tls marker support... " >&6; }
25652 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25655 gcc_cv_as_powerpc_tls_markers
=no
25656 if test $in_tree_gas = yes; then
25657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25658 then gcc_cv_as_powerpc_tls_markers
=yes
25660 elif test x
$gcc_cv_as != x
; then
25661 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25664 (eval $ac_try) 2>&5
25666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25667 test $ac_status = 0; }; }
25669 gcc_cv_as_powerpc_tls_markers
=yes
25671 echo "configure: failed program was" >&5
25674 rm -f conftest.o conftest.s
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25678 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25679 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25681 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25688 $as_echo_n "checking assembler for .ref support... " >&6; }
25689 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25690 $as_echo_n "(cached) " >&6
25692 gcc_cv_as_aix_ref
=no
25693 if test $in_tree_gas = yes; then
25694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25695 then gcc_cv_as_aix_ref
=yes
25697 elif test x
$gcc_cv_as != x
; then
25698 $as_echo ' .csect stuff[rw]
25704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25711 gcc_cv_as_aix_ref
=yes
25713 echo "configure: failed program was" >&5
25716 rm -f conftest.o conftest.s
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25720 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25721 if test $gcc_cv_as_aix_ref = yes; then
25723 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25732 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25733 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25734 $as_echo_n "(cached) " >&6
25736 gcc_cv_as_mips_explicit_relocs
=no
25737 if test $in_tree_gas = yes; then
25738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25739 then gcc_cv_as_mips_explicit_relocs
=yes
25741 elif test x
$gcc_cv_as != x
; then
25742 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; }
25750 gcc_cv_as_mips_explicit_relocs
=yes
25752 echo "configure: failed program was" >&5
25755 rm -f conftest.o conftest.s
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25759 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25760 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25761 if test x
$target_cpu_default = x
25762 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25763 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25767 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25768 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25769 $as_echo_n "(cached) " >&6
25771 gcc_cv_as_mips_no_shared
=no
25772 if test $in_tree_gas = yes; then
25773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25774 then gcc_cv_as_mips_no_shared
=yes
25776 elif test x
$gcc_cv_as != x
; then
25777 $as_echo 'nop' > conftest.s
25778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; }
25785 gcc_cv_as_mips_no_shared
=yes
25787 echo "configure: failed program was" >&5
25790 rm -f conftest.o conftest.s
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25794 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25795 if test $gcc_cv_as_mips_no_shared = yes; then
25797 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25802 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25803 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25806 gcc_cv_as_mips_gnu_attribute
=no
25807 if test $in_tree_gas = yes; then
25808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25809 then gcc_cv_as_mips_gnu_attribute
=yes
25811 elif test x
$gcc_cv_as != x
; then
25812 $as_echo '.gnu_attribute 4,1' > conftest.s
25813 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }
25820 gcc_cv_as_mips_gnu_attribute
=yes
25822 echo "configure: failed program was" >&5
25825 rm -f conftest.o conftest.s
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25829 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25830 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25832 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25837 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25838 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25841 gcc_cv_as_mips_dtprelword
=no
25842 if test $in_tree_gas = yes; then
25843 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25844 then gcc_cv_as_mips_dtprelword
=yes
25846 elif test x
$gcc_cv_as != x
; then
25847 $as_echo '.section .tdata,"awT",@progbits
25851 .dtprelword x+0x8000' > conftest.s
25852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25854 (eval $ac_try) 2>&5
25856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25857 test $ac_status = 0; }; }
25859 gcc_cv_as_mips_dtprelword
=yes
25861 echo "configure: failed program was" >&5
25864 rm -f conftest.o conftest.s
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25868 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25869 if test $gcc_cv_as_mips_dtprelword = yes; then
25871 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25876 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25877 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25878 $as_echo_n "(cached) " >&6
25880 gcc_cv_as_mips_dspr1_mult
=no
25881 if test x
$gcc_cv_as != x
; then
25882 $as_echo ' .set mips32r2
25890 multu $ac3,$4,$5' > 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 gcc_cv_as_mips_dspr1_mult
=yes
25900 echo "configure: failed program was" >&5
25903 rm -f conftest.o conftest.s
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25907 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25908 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25910 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25915 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25916 gcc_cv_as_ld_jalr_reloc
=no
25917 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25918 if test $in_tree_ld = yes ; then
25919 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 \
25920 && test $in_tree_ld_is_elf = yes; then
25921 gcc_cv_as_ld_jalr_reloc
=yes
25923 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25924 echo ' .ent x' > conftest.s
25925 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25926 echo ' ld $25,%call16(y)($28)' >> conftest.s
25927 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25928 echo '1: jalr $25' >> conftest.s
25929 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25930 echo '1: jalr $25' >> conftest.s
25931 echo ' .end x' >> conftest.s
25932 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25933 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25934 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25935 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25936 gcc_cv_as_ld_jalr_reloc
=yes
25942 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25943 if test x
$target_cpu_default = x
; then
25944 target_cpu_default
=MASK_RELAX_PIC_CALLS
25946 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25950 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25953 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25954 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25955 $as_echo_n "(cached) " >&6
25957 gcc_cv_ld_mips_personality_relaxation
=no
25958 if test $in_tree_ld = yes ; then
25959 if test "$gcc_cv_gld_major_version" -eq 2 \
25960 -a "$gcc_cv_gld_minor_version" -ge 21 \
25961 -o "$gcc_cv_gld_major_version" -gt 2; then
25962 gcc_cv_ld_mips_personality_relaxation
=yes
25964 elif test x
$gcc_cv_as != x \
25965 -a x
$gcc_cv_ld != x \
25966 -a x
$gcc_cv_readelf != x
; then
25967 cat > conftest.s
<<EOF
25969 .cfi_personality 0x80,indirect_ptr
25976 .section .data,"aw",@progbits
25980 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25981 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25982 if $gcc_cv_readelf -d conftest
2>&1 \
25983 |
grep TEXTREL
> /dev
/null
2>&1; then
25985 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25986 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25989 gcc_cv_ld_mips_personality_relaxation
=yes
25993 rm -f conftest.s conftest.o conftest
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25996 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25997 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25999 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26005 # Mips and HP-UX need the GNU assembler.
26006 # Linux on IA64 might be able to use the Intel assembler.
26009 mips
*-*-* |
*-*-hpux* )
26010 if test x
$gas_flag = xyes \
26011 ||
test x
"$host" != x
"$build" \
26012 ||
test ! -x "$gcc_cv_as" \
26013 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26016 echo "*** This configuration requires the GNU assembler" >&2
26022 # ??? Not all targets support dwarf2 debug_line, even within a version
26023 # of gas. Moreover, we need to emit a valid instruction to trigger any
26024 # info to the output file. So, as supported targets are added to gas 2.11,
26025 # add some instruction here to (also) show we expect this might work.
26026 # ??? Once 2.11 is released, probably need to add first known working
26027 # version to the per-target configury.
26028 case "$cpu_type" in
26029 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26030 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
26040 if test x
"$insn" != x
; then
26042 .file 1 \"conftest.s\"
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26046 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26047 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26050 gcc_cv_as_dwarf2_debug_line
=no
26051 if test $in_tree_gas = yes; then
26052 if test $in_tree_gas_is_elf = yes \
26053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26054 then gcc_cv_as_dwarf2_debug_line
=yes
26056 elif test x
$gcc_cv_as != x
; then
26057 $as_echo "$conftest_s" > conftest.s
26058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26060 (eval $ac_try) 2>&5
26062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26063 test $ac_status = 0; }; }
26065 if test x
$gcc_cv_objdump != x \
26066 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26067 |
grep debug_line
> /dev
/null
2>&1; then
26068 gcc_cv_as_dwarf2_debug_line
=yes
26071 echo "configure: failed program was" >&5
26074 rm -f conftest.o conftest.s
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26078 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26081 # The .debug_line file table must be in the exact order that
26082 # we specified the files, since these indices are also used
26083 # by DW_AT_decl_file. Approximate this test by testing if
26084 # the assembler bitches if the same index is assigned twice.
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26086 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26087 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26090 gcc_cv_as_dwarf2_file_buggy
=no
26091 if test x
$gcc_cv_as != x
; then
26092 $as_echo ' .file 1 "foo.s"
26093 .file 1 "bar.s"' > conftest.s
26094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }
26101 gcc_cv_as_dwarf2_file_buggy
=yes
26103 echo "configure: failed program was" >&5
26106 rm -f conftest.o conftest.s
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26110 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26113 if test $gcc_cv_as_dwarf2_debug_line = yes \
26114 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26116 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26121 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26122 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26123 $as_echo_n "(cached) " >&6
26125 gcc_cv_as_gdwarf2_flag
=no
26126 if test $in_tree_gas = yes; then
26127 if test $in_tree_gas_is_elf = yes \
26128 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26129 then gcc_cv_as_gdwarf2_flag
=yes
26131 elif test x
$gcc_cv_as != x
; then
26132 $as_echo "$insn" > conftest.s
26133 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26135 (eval $ac_try) 2>&5
26137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138 test $ac_status = 0; }; }
26140 gcc_cv_as_gdwarf2_flag
=yes
26142 echo "configure: failed program was" >&5
26145 rm -f conftest.o conftest.s
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26149 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26150 if test $gcc_cv_as_gdwarf2_flag = yes; then
26152 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26157 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26158 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26159 $as_echo_n "(cached) " >&6
26161 gcc_cv_as_gstabs_flag
=no
26162 if test $in_tree_gas = yes; then
26163 if test $in_tree_gas_is_elf = yes \
26164 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26165 then gcc_cv_as_gstabs_flag
=yes
26167 elif test x
$gcc_cv_as != x
; then
26168 $as_echo "$insn" > conftest.s
26169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26171 (eval $ac_try) 2>&5
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; }
26176 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26177 # and warns about it, but still exits successfully. So check for
26179 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26181 (eval $ac_try) 2>&5
26183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26184 test $ac_status = 0; }; }
26186 else gcc_cv_as_gstabs_flag
=yes
26189 echo "configure: failed program was" >&5
26192 rm -f conftest.o conftest.s
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26196 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26197 if test $gcc_cv_as_gstabs_flag = yes; then
26199 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26204 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26205 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26206 $as_echo_n "(cached) " >&6
26208 gcc_cv_as_debug_prefix_map_flag
=no
26209 if test $in_tree_gas = yes; then
26210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26211 then gcc_cv_as_debug_prefix_map_flag
=yes
26213 elif test x
$gcc_cv_as != x
; then
26214 $as_echo "$insn" > conftest.s
26215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26222 gcc_cv_as_debug_prefix_map_flag
=yes
26224 echo "configure: failed program was" >&5
26227 rm -f conftest.o conftest.s
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26231 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26232 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26234 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26240 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26241 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26242 $as_echo_n "(cached) " >&6
26244 gcc_cv_as_lcomm_with_alignment
=no
26245 if test x
$gcc_cv_as != x
; then
26246 $as_echo '.lcomm bar,4,16' > conftest.s
26247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26249 (eval $ac_try) 2>&5
26251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252 test $ac_status = 0; }; }
26254 gcc_cv_as_lcomm_with_alignment
=yes
26256 echo "configure: failed program was" >&5
26259 rm -f conftest.o conftest.s
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26263 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26264 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26266 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26270 # Check whether --enable-gnu-unique-object was given.
26271 if test "${enable_gnu_unique_object+set}" = set; then :
26272 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26274 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26275 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26279 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26280 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26283 gcc_cv_as_gnu_unique_object
=no
26284 if test $in_tree_gas = yes; then
26285 if test $in_tree_gas_is_elf = yes \
26286 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26287 then gcc_cv_as_gnu_unique_object
=yes
26289 elif test x
$gcc_cv_as != x
; then
26290 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26298 gcc_cv_as_gnu_unique_object
=yes
26300 echo "configure: failed program was" >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26307 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26308 if test $gcc_cv_as_gnu_unique_object = yes; then
26309 # We need to unquote above to to use the definition from config.gcc.
26310 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26311 if test x
$host = x
$build -a x
$host = x
$target &&
26312 ldd
--version 2>/dev
/null
&&
26313 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26314 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26315 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26316 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26317 if test "$glibcnum" -ge 2011 ; then
26318 enable_gnu_unique_object
=yes
26324 if test x
$enable_gnu_unique_object = xyes
; then
26326 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26331 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26332 if test "${gcc_cv_as_line_zero+set}" = set; then :
26333 $as_echo_n "(cached) " >&6
26335 gcc_cv_as_line_zero
=no
26336 if test $in_tree_gas = yes; then
26337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26338 then gcc_cv_as_line_zero
=yes
26340 elif test "x$gcc_cv_as" != x
; then
26341 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26342 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; } &&
26348 test "x`cat conftest.out`" = x
26350 gcc_cv_as_line_zero
=yes
26352 echo "configure: failed program was" >&5
26354 echo "configure: error output was" >&5
26355 cat conftest.out
>&5
26357 rm -f conftest.o conftest.s conftest.out
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26361 $as_echo "$gcc_cv_as_line_zero" >&6; }
26362 if test "x$gcc_cv_as_line_zero" = xyes
; then
26364 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26369 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26370 gcc_cv_ld_eh_frame_hdr
=no
26371 if test $in_tree_ld = yes ; then
26372 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 \
26373 && test $in_tree_ld_is_elf = yes; then
26374 gcc_cv_ld_eh_frame_hdr
=yes
26376 elif test x
$gcc_cv_ld != x
; then
26377 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26378 # Check if linker supports --eh-frame-hdr option
26379 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26380 gcc_cv_ld_eh_frame_hdr
=yes
26385 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26386 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26387 gcc_cv_ld_eh_frame_hdr
=yes
26394 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26396 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26400 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26403 $as_echo_n "checking linker position independent executable support... " >&6; }
26405 if test $in_tree_ld = yes ; then
26406 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 \
26407 && test $in_tree_ld_is_elf = yes; then
26410 elif test x
$gcc_cv_ld != x
; then
26411 # Check if linker supports -pie option
26412 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26416 if test x
"$gcc_cv_ld_pie" = xyes
; then
26418 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26422 $as_echo "$gcc_cv_ld_pie" >&6; }
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26425 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26426 gcc_cv_ld_eh_gc_sections
=no
26427 if test $in_tree_ld = yes ; then
26428 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 \
26429 && test $in_tree_ld_is_elf = yes; then
26430 gcc_cv_ld_eh_gc_sections
=yes
26432 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26433 cat > conftest.s
<<EOF
26436 .type _start, @function
26439 .size _start, .-_start
26440 .section .text.foo,"ax",@progbits
26441 .type foo, @function
26445 .section .gcc_except_table.foo,"a",@progbits
26448 .section .eh_frame,"a",@progbits
26451 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26452 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26453 |
grep "gc-sections option ignored" > /dev
/null
; then
26454 gcc_cv_ld_eh_gc_sections
=no
26455 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26456 |
grep gcc_except_table
> /dev
/null
; then
26457 gcc_cv_ld_eh_gc_sections
=yes
26458 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26459 if test x
$gcc_cv_as_comdat_group != xyes
; then
26460 gcc_cv_ld_eh_gc_sections
=no
26461 cat > conftest.s
<<EOF
26464 .type _start, @function
26467 .size _start, .-_start
26468 .section .gnu.linkonce.t.foo,"ax",@progbits
26469 .type foo, @function
26473 .section .gcc_except_table.foo,"a",@progbits
26476 .section .eh_frame,"a",@progbits
26479 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26480 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26481 |
grep "gc-sections option ignored" > /dev
/null
; then
26482 gcc_cv_ld_eh_gc_sections
=no
26483 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26484 |
grep gcc_except_table
> /dev
/null
; then
26485 gcc_cv_ld_eh_gc_sections
=yes
26491 rm -f conftest.s conftest.o conftest
26495 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26496 gcc_cv_ld_eh_gc_sections
=no
26499 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26501 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26505 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26508 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26509 gcc_cv_ld_eh_gc_sections_bug
=no
26510 if test $in_tree_ld = yes ; then
26511 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 \
26512 && test $in_tree_ld_is_elf = yes; then
26513 gcc_cv_ld_eh_gc_sections_bug
=yes
26515 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
26516 gcc_cv_ld_eh_gc_sections_bug
=yes
26517 cat > conftest.s
<<EOF
26520 .type _start, @function
26523 .size _start, .-_start
26524 .section .text.startup.foo,"ax",@progbits
26525 .type foo, @function
26529 .section .gcc_except_table.foo,"a",@progbits
26532 .section .eh_frame,"a",@progbits
26535 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26536 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26537 |
grep "gc-sections option ignored" > /dev
/null
; then
26539 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26540 |
grep gcc_except_table
> /dev
/null
; then
26541 gcc_cv_ld_eh_gc_sections_bug
=no
26544 rm -f conftest.s conftest.o conftest
26546 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26548 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26552 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26559 $as_echo_n "checking linker --as-needed support... " >&6; }
26560 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26561 $as_echo_n "(cached) " >&6
26563 gcc_cv_ld_as_needed
=no
26564 if test $in_tree_ld = yes ; then
26565 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 \
26566 && test $in_tree_ld_is_elf = yes; then
26567 gcc_cv_ld_as_needed
=yes
26569 elif test x
$gcc_cv_ld != x
; then
26570 # Check if linker supports --as-needed and --no-as-needed options
26571 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26572 gcc_cv_ld_as_needed
=yes
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26578 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26579 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26581 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26585 case "$target:$tm_file" in
26586 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26589 emul_name
="-melf64lppc"
26592 emul_name
="-melf64ppc"
26595 emul_name
="-melf64ppc_fbsd"
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26599 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26600 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26601 $as_echo_n "(cached) " >&6
26603 gcc_cv_ld_no_dot_syms
=no
26604 if test x
"$ld_is_gold" = xyes
; then
26605 gcc_cv_ld_no_dot_syms
=yes
26606 elif test $in_tree_ld = yes ; then
26607 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
26608 gcc_cv_ld_no_dot_syms
=yes
26610 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26611 cat > conftest1.s
<<EOF
26615 cat > conftest2.s
<<EOF
26616 .section ".opd","aw"
26619 .type foo,@function
26621 .quad .LEfoo,.TOC.@tocbase,0
26627 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26628 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26629 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26630 gcc_cv_ld_no_dot_syms
=yes
26632 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26637 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26638 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26640 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26645 $as_echo_n "checking linker large toc support... " >&6; }
26646 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26647 $as_echo_n "(cached) " >&6
26649 gcc_cv_ld_large_toc
=no
26650 if test x
"$ld_is_gold" = xyes
; then
26651 gcc_cv_ld_large_toc
=yes
26652 elif test $in_tree_ld = yes ; then
26653 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
26654 gcc_cv_ld_large_toc
=yes
26656 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26657 cat > conftest.s
<<EOF
26658 .section ".tbss","awT",@nobits
26664 addis 9,13,ie0@got@tprel@ha
26665 ld 9,ie0@got@tprel@l(9)
26667 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26668 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26669 gcc_cv_ld_large_toc
=yes
26671 rm -f conftest conftest.o conftest.s
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26676 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26677 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26679 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26688 $as_echo_n "checking linker large toc support... " >&6; }
26689 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26690 $as_echo_n "(cached) " >&6
26692 gcc_cv_ld_large_toc
=no
26693 if test x
$gcc_cv_as != x
; then
26694 cat > conftest.s
<<EOF
26704 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26705 gcc_cv_ld_large_toc
=yes
26707 rm -f conftest conftest.o conftest.s
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26712 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26713 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26715 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26722 $as_echo_n "checking linker --build-id support... " >&6; }
26723 if test "${gcc_cv_ld_buildid+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26726 gcc_cv_ld_buildid
=no
26727 if test $in_tree_ld = yes ; then
26728 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26729 "$gcc_cv_gld_minor_version" -ge 18 -o \
26730 "$gcc_cv_gld_major_version" -gt 2 \
26731 && test $in_tree_ld_is_elf = yes; then
26732 gcc_cv_ld_buildid
=yes
26734 elif test x
$gcc_cv_ld != x
; then
26735 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26736 gcc_cv_ld_buildid
=yes
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26741 $as_echo "$gcc_cv_ld_buildid" >&6; }
26742 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26744 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26748 # Check whether --enable-linker-build-id was given.
26749 if test "${enable_linker_build_id+set}" = set; then :
26750 enableval
=$enable_linker_build_id;
26752 enable_linker_build_id
=no
26756 if test x
"$enable_linker_build_id" = xyes
; then
26757 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26759 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26763 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26767 # In binutils 2.21, GNU ld gained support for new emulations fully
26768 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26770 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26771 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26772 $as_echo_n "(cached) " >&6
26774 gcc_cv_ld_sol2_emulation
=no
26775 if test $in_tree_ld = yes ; then
26776 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26777 "$gcc_cv_gld_minor_version" -ge 21 -o \
26778 "$gcc_cv_gld_major_version" -gt 2 \
26779 && test $in_tree_ld_is_elf = yes; then
26780 gcc_cv_ld_sol2_emulation
=yes
26782 elif test x
$gcc_cv_ld != x
; then
26783 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26784 grep _sol2
> /dev
/null
; then
26785 gcc_cv_ld_sol2_emulation
=yes
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26790 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26791 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26793 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26798 $as_echo_n "checking linker --sysroot support... " >&6; }
26799 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26800 $as_echo_n "(cached) " >&6
26802 gcc_cv_ld_sysroot
=no
26803 if test $in_tree_ld = yes ; then
26804 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
26805 gcc_cv_ld_sysroot
=yes
26807 elif test x
$gcc_cv_ld != x
; then
26808 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26809 gcc_cv_ld_sysroot
=yes
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26814 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26815 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26817 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26821 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26822 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26823 && test "$prefix" != "NONE"; then
26825 cat >>confdefs.h
<<_ACEOF
26826 #define PREFIX_INCLUDE_DIR "$prefix/include"
26831 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26832 if test "x$with_headers" != x
; then
26833 target_header_dir
=$with_headers
26834 elif test "x$with_sysroot" = x
; then
26835 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26836 elif test "x$with_build_sysroot" != "x"; then
26837 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26838 elif test "x$with_sysroot" = xyes
; then
26839 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26841 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26844 target_header_dir
=${native_system_header_dir}
26847 # Test for stack protector support in target C library.
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26849 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26850 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26851 $as_echo_n "(cached) " >&6
26853 gcc_cv_libc_provides_ssp
=no
26855 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26856 # glibc 2.4 and later provides __stack_chk_fail and
26857 # either __stack_chk_guard, or TLS access to stack guard canary.
26858 if test -f $target_header_dir/features.h \
26859 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26860 $target_header_dir/features.h
> /dev
/null
; then
26861 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26862 $target_header_dir/features.h
> /dev
/null
; then
26863 gcc_cv_libc_provides_ssp
=yes
26864 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26865 $target_header_dir/features.h
> /dev
/null \
26866 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26867 $target_header_dir/features.h
> /dev
/null
; then
26868 gcc_cv_libc_provides_ssp
=yes
26869 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26870 $target_header_dir/features.h
> /dev
/null
&& \
26871 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26872 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26873 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26874 gcc_cv_libc_provides_ssp
=yes
26876 # all versions of Bionic support stack protector
26877 elif test -f $target_header_dir/sys
/cdefs.h \
26878 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26879 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26880 gcc_cv_libc_provides_ssp
=yes
26884 # Avoid complicated tests (see
26885 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26886 # simply assert that glibc does provide this, which is true for all
26887 # realistically usable GNU/Hurd configurations.
26888 gcc_cv_libc_provides_ssp
=yes;;
26889 *-*-darwin* |
*-*-freebsd*)
26890 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26891 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26892 gcc_cv_libc_provides_ssp
=yes
26894 echo "no __stack_chk_fail on this target"
26898 *) gcc_cv_libc_provides_ssp
=no
;;
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26902 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26904 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26906 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26910 # Test for <sys/sdt.h> on the target.
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26913 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26915 if test -f $target_header_dir/sys
/sdt.h
; then
26918 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26922 $as_echo "$have_sys_sdt_h" >&6; }
26924 # Check if TFmode long double should be used by default or not.
26925 # Some glibc targets used DFmode long double, but with glibc 2.4
26926 # and later they can use TFmode.
26928 powerpc
*-*-linux* | \
26929 sparc
*-*-linux* | \
26933 # Check whether --with-long-double-128 was given.
26934 if test "${with_long_double_128+set}" = set; then :
26935 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26937 gcc_cv_target_ldbl128
=no
26938 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26939 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26940 && gcc_cv_target_ldbl128
=yes
26946 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26948 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26953 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26954 gcc_cv_target_dl_iterate_phdr
=unknown
26956 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26957 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26958 # libdl there, both complicating its use and breaking compatibility
26959 # between Solaris 10 updates.
26960 *-*-solaris2.1
[1-9]*)
26961 # <link.h> needs both a dl_iterate_phdr declaration and support for
26962 # compilation with largefile support.
26963 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26964 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26965 gcc_cv_target_dl_iterate_phdr
=yes
26967 gcc_cv_target_dl_iterate_phdr
=no
26972 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26974 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26978 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26980 # We no longer support different GC mechanisms. Emit an error if
26981 # the user configures with --with-gc.
26983 # Check whether --with-gc was given.
26984 if test "${with_gc+set}" = set; then :
26985 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
26989 # Libraries to use on the host. This will normally be set by the top
26990 # level Makefile. Here we simply capture the value for our Makefile.
26991 if test -z "${HOST_LIBS+set}"; then
26996 # Use the system's zlib library.
26998 zlibinc
="-I\$(srcdir)/../zlib"
27000 # Check whether --with-system-zlib was given.
27001 if test "${with_system_zlib+set}" = set; then :
27002 withval
=$with_system_zlib; zlibdir
=
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27012 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27013 # Check whether --enable-maintainer-mode was given.
27014 if test "${enable_maintainer_mode+set}" = set; then :
27015 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27022 $as_echo "$maintainer_mode" >&6; }
27024 if test "$maintainer_mode" = "yes"; then
27034 # Make empty files to contain the specs and options for each language.
27035 # Then add #include lines to for a compiler that has specs and/or options.
27041 # These (without "all_") are set in each config-lang.in.
27042 # `language' must be a single word so is spelled singularly.
27045 all_outputs
='Makefile'
27046 # List of language makefile fragments.
27047 all_lang_makefrags
=
27048 # Additional files for gengtype
27049 all_gtfiles
="$target_gtfiles"
27051 # These are the languages that are set in --enable-languages,
27052 # and are available in the GCC tree.
27053 all_selected_languages
=
27055 # Add the language fragments.
27056 # Languages are added via two mechanisms. Some information must be
27057 # recorded in makefile variables, these are defined in config-lang.in.
27058 # We accumulate them and plug them into the main Makefile.
27059 # The other mechanism is a set of hooks for each of the main targets
27060 # like `clean', `install', etc.
27062 language_hooks
="Make-hooks"
27064 for lang
in ${srcdir}/*/config-lang.
in
27066 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27068 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27069 if test "x$lang_alias" = x
27071 echo "$lang doesn't set \$language." 1>&2
27074 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27075 subdirs
="$subdirs $subdir"
27077 # $gcc_subdir is where the gcc integration files are to be found
27078 # for a language, both for internal compiler purposes (compiler
27079 # sources implementing front-end to GCC tree converters), and for
27080 # build infrastructure purposes (Make-lang.in, etc.)
27082 # This will be <subdir> (relative to $srcdir) if a line like
27083 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27084 # is found in <langdir>/config-lang.in, and will remain <langdir>
27087 # Except for the language alias (fetched above), the regular
27088 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27089 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27090 # only this and the language alias.
27092 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27093 if [ "$gcc_subdir" = "" ]; then
27094 gcc_subdir
="$subdir"
27097 case ",$enable_languages," in
27099 all_selected_languages
="$all_selected_languages $lang_alias"
27100 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27101 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27112 .
${srcdir}/$gcc_subdir/config-lang.
in
27113 if test "x$language" = x
27115 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27120 case ",$enable_languages," in
27121 *,$lang_alias,*) ;;
27123 for i
in $subdir_requires; do
27124 test -f "${srcdir}/$i/config-lang.in" && continue
27132 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27133 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27134 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27135 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27137 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27138 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27140 all_languages
="$all_languages $language"
27141 all_compilers
="$all_compilers $compilers"
27142 all_outputs
="$all_outputs $outputs"
27143 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27144 case ",$enable_languages," in
27147 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27157 for language
in $all_selected_languages
27159 check_languages
="$check_languages check-$language"
27162 # We link each language in with a set of hooks, reached indirectly via
27163 # lang.${target}. Only do so for selected languages.
27167 target_list
="all.cross start.encap rest.encap tags \
27168 install-common install-man install-info install-pdf install-html dvi \
27169 pdf html uninstall info man srcextra srcman srcinfo \
27170 mostlyclean clean distclean maintainer-clean install-plugin"
27172 for t
in $target_list
27175 for lang
in $all_selected_languages
27179 echo "lang.$t: $x" >> Make-hooks
27183 # Option include files
27186 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27187 option_includes
="option-includes.mk"
27196 echo "dir ." > .gdbinit
27197 echo "dir ${srcdir}" >> .gdbinit
27198 if test x
$gdb_needs_out_file_path = xyes
27200 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27202 if test "x$subdirs" != x
; then
27205 echo "dir ${srcdir}/$s" >> .gdbinit
27208 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27210 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27214 # Find a directory in which to install a shared libgcc.
27216 # Check whether --enable-version-specific-runtime-libs was given.
27217 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27218 enableval
=$enable_version_specific_runtime_libs;
27222 # Substitute configuration variables
27286 if test x
${build} = x
${host} ; then
27287 if test x
${host} = x
${target} ; then
27288 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27290 echo "Links are now set up to build a cross-compiler" 1>&2
27291 echo " from ${host} to ${target}." 1>&2
27294 if test x
${host} = x
${target} ; then
27295 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27296 echo " for ${target}." 1>&2
27298 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27299 echo " from ${host} to ${target}." 1>&2
27311 if test "x${CLOOGLIBS}" != "x" ; then
27313 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27316 # Check whether isl_schedule_constraints_compute_schedule is available;
27317 # it's new in ISL-0.13.
27318 saved_CFLAGS
="$CFLAGS"
27319 CFLAGS
="$CFLAGS $ISLINC"
27321 LIBS
="$LIBS $CLOOGLIBS $ISLLIBS $GMPLIBS"
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
27324 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
27325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27326 /* end confdefs.h. */
27327 #include <isl/schedule.h>
27331 isl_schedule_constraints_compute_schedule (NULL);
27336 if ac_fn_c_try_link
"$LINENO"; then :
27337 ac_has_isl_schedule_constraints_compute_schedule
=yes
27339 ac_has_isl_schedule_constraints_compute_schedule
=no
27341 rm -f core conftest.err conftest.
$ac_objext \
27342 conftest
$ac_exeext conftest.
$ac_ext
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
27344 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
27347 CFLAGS
="$saved_CFLAGS"
27349 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
27351 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
27357 # Check for plugin support
27358 # Check whether --enable-plugin was given.
27359 if test "${enable_plugin+set}" = set; then :
27360 enableval
=$enable_plugin; enable_plugin
=$enableval
27362 enable_plugin
=yes; default_plugin
=yes
27370 if test x
$build = x
$host; then
27371 export_sym_check
="nm${exeext} -g"
27372 elif test x
$host = x
$target; then
27373 export_sym_check
="$gcc_cv_nm -g"
27379 if test x
$build = x
$host; then
27380 export_sym_check
="objdump${exeext} -T"
27381 elif test x
$host = x
$target; then
27382 export_sym_check
="$gcc_cv_objdump -T"
27389 if test x
"$enable_plugin" = x
"yes"; then
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27392 $as_echo_n "checking for exported symbols... " >&6; }
27393 if test "x$export_sym_check" != x
; then
27394 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27395 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27396 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27397 : # No need to use a flag
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27399 $as_echo "yes" >&6; }
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27402 $as_echo "yes" >&6; }
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27404 $as_echo_n "checking for -rdynamic... " >&6; }
27405 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27406 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27407 plugin_rdynamic
=yes
27408 pluginlibs
="-rdynamic"
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27414 $as_echo "$plugin_rdynamic" >&6; }
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27418 $as_echo "unable to check" >&6; }
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27424 $as_echo_n "checking for library containing dlopen... " >&6; }
27425 if test "${ac_cv_search_dlopen+set}" = set; then :
27426 $as_echo_n "(cached) " >&6
27428 ac_func_search_save_LIBS
=$LIBS
27429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27430 /* end confdefs.h. */
27432 /* Override any GCC internal prototype to avoid an error.
27433 Use char because int might match the return type of a GCC
27434 builtin and then its argument prototype would still apply. */
27447 for ac_lib
in '' dl
; do
27448 if test -z "$ac_lib"; then
27449 ac_res
="none required"
27452 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27454 if ac_fn_c_try_link
"$LINENO"; then :
27455 ac_cv_search_dlopen
=$ac_res
27457 rm -f core conftest.err conftest.
$ac_objext \
27459 if test "${ac_cv_search_dlopen+set}" = set; then :
27463 if test "${ac_cv_search_dlopen+set}" = set; then :
27466 ac_cv_search_dlopen
=no
27468 rm conftest.
$ac_ext
27469 LIBS
=$ac_func_search_save_LIBS
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27472 $as_echo "$ac_cv_search_dlopen" >&6; }
27473 ac_res
=$ac_cv_search_dlopen
27474 if test "$ac_res" != no
; then :
27475 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27479 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27480 pluginlibs
="$pluginlibs -ldl"
27484 # Check that we can build shared objects with -fPIC -shared
27485 saved_LDFLAGS
="$LDFLAGS"
27486 saved_CFLAGS
="$CFLAGS"
27489 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27490 CFLAGS
="$CFLAGS -fPIC"
27491 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27494 CFLAGS
="$CFLAGS -fPIC"
27495 LDFLAGS
="$LDFLAGS -fPIC -shared"
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27499 $as_echo_n "checking for -fPIC -shared... " >&6; }
27500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27511 if ac_fn_c_try_link
"$LINENO"; then :
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27513 $as_echo "yes" >&6; }; have_pic_shared
=yes
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27516 $as_echo "no" >&6; }; have_pic_shared
=no
27518 rm -f core conftest.err conftest.
$ac_objext \
27519 conftest
$ac_exeext conftest.
$ac_ext
27520 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27524 LDFLAGS
="$saved_LDFLAGS"
27525 CFLAGS
="$saved_CFLAGS"
27527 # If plugin support had been requested but not available, fail.
27528 if test x
"$enable_plugin" = x
"no" ; then
27529 if test x
"$default_plugin" != x
"yes"; then
27531 Building GCC with plugin support requires a host that supports
27532 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27539 if test x
"$enable_plugin" = x
"yes"; then
27541 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27546 # Check whether --enable-libquadmath-support was given.
27547 if test "${enable_libquadmath_support+set}" = set; then :
27548 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27550 ENABLE_LIBQUADMATH_SUPPORT
=yes
27553 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27555 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27560 # Specify what hash style to use by default.
27562 # Check whether --with-linker-hash-style was given.
27563 if test "${with_linker_hash_style+set}" = set; then :
27564 withval
=$with_linker_hash_style; case x
"$withval" in
27566 LINKER_HASH_STYLE
=sysv
27569 LINKER_HASH_STYLE
=gnu
27572 LINKER_HASH_STYLE
=both
27575 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27579 LINKER_HASH_STYLE
=''
27582 if test x
"${LINKER_HASH_STYLE}" != x
; then
27584 cat >>confdefs.h
<<_ACEOF
27585 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27590 # Configure the subdirectories
27591 # AC_CONFIG_SUBDIRS($subdirs)
27593 # Create the Makefile
27594 # and configure language subdirectories
27595 ac_config_files
="$ac_config_files $all_outputs"
27598 ac_config_commands
="$ac_config_commands default"
27600 cat >confcache
<<\_ACEOF
27601 # This file is a shell script that caches the results of configure
27602 # tests run on this system so they can be shared between configure
27603 # scripts and configure runs, see configure's option --config-cache.
27604 # It is not useful on other systems. If it contains results you don't
27605 # want to keep, you may remove or edit it.
27607 # config.status only pays attention to the cache file if you give it
27608 # the --recheck option to rerun configure.
27610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27612 # following values.
27616 # The following way of writing the cache mishandles newlines in values,
27617 # but we know of no workaround that is simple, portable, and efficient.
27618 # So, we kill variables containing newlines.
27619 # Ultrix sh set writes to stderr and can't be redirected directly,
27620 # and sets the high bit in the cache file unless we assign to the vars.
27622 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27623 eval ac_val
=\$
$ac_var
27627 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27628 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27631 _ | IFS | as_nl
) ;; #(
27632 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27633 *) { eval $ac_var=; unset $ac_var;} ;;
27639 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27640 *${as_nl}ac_space
=\
*)
27641 # `set' does not quote correctly, so add quotes: double-quote
27642 # substitution turns \\\\ into \\, and sed turns \\ into \.
27645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27648 # `set' quotes correctly as required by POSIX, so do not add quotes.
27649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27662 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27663 if test -w "$cache_file"; then
27664 test "x$cache_file" != "x/dev/null" &&
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27666 $as_echo "$as_me: updating cache $cache_file" >&6;}
27667 cat confcache
>$cache_file
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27675 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27676 # Let make expand exec_prefix.
27677 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27679 DEFS
=-DHAVE_CONFIG_H
27683 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27684 # 1. Remove the extension, and $U if already installed.
27685 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27686 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27688 # will be set to the directory where LIBOBJS objects are built.
27689 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27690 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27692 LIBOBJS
=$ac_libobjs
27694 LTLIBOBJS
=$ac_ltlibobjs
27699 : ${CONFIG_STATUS=./config.status}
27701 ac_clean_files_save
=$ac_clean_files
27702 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27704 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27706 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27708 # Generated by $as_me.
27709 # Run this file to recreate the current configuration.
27710 # Compiler output produced by configure, useful for debugging
27711 # configure, is in config.log if it exists.
27714 ac_cs_recheck=false
27717 SHELL=\${CONFIG_SHELL-$SHELL}
27720 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27721 ## -------------------- ##
27722 ## M4sh Initialization. ##
27723 ## -------------------- ##
27725 # Be more Bourne compatible
27726 DUALCASE
=1; export DUALCASE
# for MKS sh
27727 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27730 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27731 # is contrary to our usage. Disable this feature.
27732 alias -g '${1+"$@"}'='"$@"'
27733 setopt NO_GLOB_SUBST
27735 case `(set -o) 2>/dev/null` in #(
27747 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27748 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27751 # Prefer a ksh shell builtin over an external printf program on Solaris,
27752 # but without wasting forks for bash or zsh.
27753 if test -z "$BASH_VERSION$ZSH_VERSION" \
27754 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27755 as_echo='print
-r --'
27756 as_echo_n='print
-rn --'
27757 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27758 as_echo='printf %s
\n'
27759 as_echo_n='printf %s
'
27761 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27762 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27763 as_echo_n='/usr
/ucb
/echo -n'
27765 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27766 as_echo_n_body='eval
27770 expr "X$arg" : "X\\(.*\\)$as_nl";
27771 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27773 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27775 export as_echo_n_body
27776 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27778 export as_echo_body
27779 as_echo='sh
-c $as_echo_body as_echo
'
27782 # The user is always right.
27783 if test "${PATH_SEPARATOR+set}" != set; then
27785 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27786 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27793 # We need space, tab and new line, in precisely that order. Quoting is
27794 # there to prevent editors from complaining about space-tab.
27795 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27796 # splitting by setting IFS to empty value.)
27799 # Find who we are. Look in the path if we contain no directory separator.
27801 *[\\/]* ) as_myself=$0 ;;
27802 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27803 for as_dir in $PATH
27806 test -z "$as_dir" && as_dir=.
27807 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27813 # We did not find ourselves, most probably we were run as `sh COMMAND'
27814 # in which case we are not to be found in the path.
27815 if test "x$as_myself" = x
; then
27818 if test ! -f "$as_myself"; then
27819 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27823 # Unset variables that we do not need and which cause bugs (e.g. in
27824 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27825 # suppresses any "Segmentation fault" message there. '((' could
27826 # trigger a bug in pdksh 5.2.14.
27827 for as_var
in BASH_ENV ENV MAIL MAILPATH
27828 do eval test x\
${$as_var+set} = xset \
27829 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27842 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27845 # as_fn_error ERROR [LINENO LOG_FD]
27846 # ---------------------------------
27847 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27848 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27849 # script with status $?, using 1 if that was 0.
27852 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27854 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27855 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27857 $as_echo "$as_me: error: $1" >&2
27858 as_fn_exit
$as_status
27862 # as_fn_set_status STATUS
27863 # -----------------------
27864 # Set $? to STATUS, without forking.
27865 as_fn_set_status
()
27868 } # as_fn_set_status
27870 # as_fn_exit STATUS
27871 # -----------------
27872 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27876 as_fn_set_status
$1
27882 # Portably unset VAR.
27885 { eval $1=; unset $1;}
27887 as_unset
=as_fn_unset
27888 # as_fn_append VAR VALUE
27889 # ----------------------
27890 # Append the text in VALUE to the end of the definition contained in VAR. Take
27891 # advantage of any shell optimizations that allow amortized linear growth over
27892 # repeated appends, instead of the typical quadratic growth present in naive
27894 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27895 eval 'as_fn_append ()
27906 # as_fn_arith ARG...
27907 # ------------------
27908 # Perform arithmetic evaluation on the ARGs, and store the result in the
27909 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27910 # must be portable across $(()) and expr.
27911 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27912 eval 'as_fn_arith ()
27919 as_val
=`expr "$@" || test $? -eq 1`
27924 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27925 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27931 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27932 as_basename
=basename
27937 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27943 as_me
=`$as_basename -- "$0" ||
27944 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27945 X"$0" : 'X\(//\)$' \| \
27946 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27948 sed '/^.*\/\([^/][^/]*\)\/*$/{
27962 # Avoid depending upon Character Ranges.
27963 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27964 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27965 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27966 as_cr_digits
='0123456789'
27967 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27969 ECHO_C
= ECHO_N
= ECHO_T
=
27970 case `echo -n x` in #(((((
27972 case `echo 'xy\c'` in
27973 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27975 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27982 rm -f conf$$ conf$$.exe conf$$.
file
27983 if test -d conf$$.dir
; then
27984 rm -f conf$$.dir
/conf$$.
file
27987 mkdir conf$$.dir
2>/dev
/null
27989 if (echo >conf$$.
file) 2>/dev
/null
; then
27990 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27992 # ... but there are two gotchas:
27993 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27994 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27995 # In both cases, we have to default to `cp -p'.
27996 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27998 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28006 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28007 rmdir conf$$.dir
2>/dev
/null
28012 # Create "$as_dir" as a directory, including parents if necessary.
28017 -*) as_dir
=.
/$as_dir;;
28019 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28023 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28024 *) as_qdir
=$as_dir;;
28026 as_dirs
="'$as_qdir' $as_dirs"
28027 as_dir
=`$as_dirname -- "$as_dir" ||
28028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28029 X"$as_dir" : 'X\(//\)[^/]' \| \
28030 X"$as_dir" : 'X\(//\)$' \| \
28031 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28032 $as_echo X"$as_dir" |
28033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28037 /^X\(\/\/\)[^/].*/{
28050 test -d "$as_dir" && break
28052 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28053 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28057 if mkdir
-p .
2>/dev
/null
; then
28058 as_mkdir_p
='mkdir -p "$as_dir"'
28060 test -d .
/-p && rmdir .
/-p
28064 if test -x / >/dev
/null
2>&1; then
28065 as_test_x
='test -x'
28067 if ls -dL / >/dev
/null
2>&1; then
28074 if test -d "$1"; then
28080 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28081 ???[sx]*):;;*)false;;esac;fi
28085 as_executable_p
=$as_test_x
28087 # Sed expression to map a string onto a valid CPP name.
28088 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28090 # Sed expression to map a string onto a valid variable name.
28091 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28095 ## ----------------------------------- ##
28096 ## Main body of $CONFIG_STATUS script. ##
28097 ## ----------------------------------- ##
28099 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28102 # Save the log message, to keep $0 and so on meaningful, and to
28103 # report actual input values of CONFIG_FILES etc. instead of their
28104 # values after options handling.
28106 This file was extended by $as_me, which was
28107 generated by GNU Autoconf 2.64. Invocation command line was
28109 CONFIG_FILES = $CONFIG_FILES
28110 CONFIG_HEADERS = $CONFIG_HEADERS
28111 CONFIG_LINKS = $CONFIG_LINKS
28112 CONFIG_COMMANDS = $CONFIG_COMMANDS
28115 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28120 case $ac_config_files in *"
28121 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28124 case $ac_config_headers in *"
28125 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28130 # Files that config.status was made for.
28131 config_files="$ac_config_files"
28132 config_headers="$ac_config_headers"
28133 config_commands="$ac_config_commands"
28137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28139 \`$as_me' instantiates files and other configuration actions
28140 from templates according to the current configuration. Unless the files
28141 and actions are specified as TAGs, all are instantiated by default.
28143 Usage: $0 [OPTION]... [TAG]...
28145 -h, --help print this help, then exit
28146 -V, --version print version number and configuration settings, then exit
28147 -q, --quiet, --silent
28148 do not print progress messages
28149 -d, --debug don't remove temporary files
28150 --recheck update $as_me by reconfiguring in the same conditions
28151 --file=FILE[:TEMPLATE]
28152 instantiate the configuration file FILE
28153 --header=FILE[:TEMPLATE]
28154 instantiate the configuration header FILE
28156 Configuration files:
28159 Configuration headers:
28162 Configuration commands:
28165 Report bugs to the package provider."
28168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28171 configured by $0, generated by GNU Autoconf 2.64,
28172 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28174 Copyright (C) 2009 Free Software Foundation, Inc.
28175 This config.status script is free software; the Free Software Foundation
28176 gives unlimited permission to copy, distribute and modify it."
28181 test -n "\$AWK" || AWK=awk
28184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28185 # The default lists apply if the user does not specify any file.
28191 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28192 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28203 # Handling of the options.
28204 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28206 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28207 $as_echo "$ac_cs_version"; exit ;;
28208 --debug |
--debu |
--deb |
--de |
--d |
-d )
28210 --file |
--fil |
--fi |
--f )
28213 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28215 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28216 ac_need_defaults
=false
;;
28217 --header |
--heade |
--head |
--hea )
28220 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28222 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28223 ac_need_defaults
=false
;;
28225 # Conflict between --help and --header
28226 as_fn_error
"ambiguous option: \`$1'
28227 Try \`$0 --help' for more information.";;
28228 --help |
--hel |
-h )
28229 $as_echo "$ac_cs_usage"; exit ;;
28230 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28231 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28234 # This is an error.
28235 -*) as_fn_error
"unrecognized option: \`$1'
28236 Try \`$0 --help' for more information." ;;
28238 *) as_fn_append ac_config_targets
" $1"
28239 ac_need_defaults
=false
;;
28245 ac_configure_extra_args
=
28247 if $ac_cs_silent; then
28249 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28254 if \$ac_cs_recheck; then
28255 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28258 CONFIG_SHELL='$SHELL'
28259 export CONFIG_SHELL
28264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28269 ## Running $as_me. ##
28275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28285 # Handling of arguments.
28286 for ac_config_target
in $ac_config_targets
28288 case $ac_config_target in
28289 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28290 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28291 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28292 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28293 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28294 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28296 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28301 # If the user did not use the arguments to specify the items to instantiate,
28302 # then the envvar interface is used. Set only those that are not.
28303 # We use the long form for the default assignment because of an extremely
28304 # bizarre bug on SunOS 4.1.3.
28305 if $ac_need_defaults; then
28306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28311 # Have a temporary directory for convenience. Make it in the build tree
28312 # simply because there is no reason against having it here, and in addition,
28313 # creating and moving files from /tmp can sometimes cause problems.
28314 # Hook for its removal unless debugging.
28315 # Note that there is a small window in which the directory will not be cleaned:
28316 # after its creation but before its name has been assigned to `$tmp'.
28320 trap 'exit_status=$?
28321 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28323 trap 'as_fn_exit 1' 1 2 13 15
28325 # Create a (secure) tmp directory for tmp files.
28328 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28329 test -n "$tmp" && test -d "$tmp"
28332 tmp
=.
/conf$$
-$RANDOM
28333 (umask 077 && mkdir
"$tmp")
28334 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28336 # Set up the scripts for CONFIG_FILES section.
28337 # No need to generate them if there are no CONFIG_FILES.
28338 # This happens for instance with `./config.status config.h'.
28339 if test -n "$CONFIG_FILES"; then
28341 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28342 ac_cs_awk_getline
=:
28343 ac_cs_awk_pipe_init
=
28344 ac_cs_awk_read_file
='
28345 while ((getline aline < (F[key])) > 0)
28348 ac_cs_awk_pipe_fini
=
28350 ac_cs_awk_getline
=false
28351 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28352 ac_cs_awk_read_file
='
28354 print "cat " F[key] " &&"
28355 '$ac_cs_awk_pipe_init
28356 # The final `:' finishes the AND list.
28357 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28359 ac_cr
=`echo X | tr X '\015'`
28360 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28361 # But we know of no other shell where ac_cr would be empty at this
28362 # point, so we can use a bashism as a fallback.
28363 if test "x$ac_cr" = x
; then
28364 eval ac_cr
=\$
\'\\r
\'
28366 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28367 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28370 ac_cs_awk_cr
=$ac_cr
28373 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28376 # Create commands to substitute file output variables.
28378 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28379 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28380 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28383 } >conf$
$files.sh
&&
28384 . .
/conf$
$files.sh ||
28385 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28386 rm -f conf$
$files.sh
28389 echo "cat >conf$$subs.awk <<_ACEOF" &&
28390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28392 } >conf$$subs.sh ||
28393 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28396 for ac_last_try in false false false false false :; do
28397 . ./conf$$subs.sh ||
28398 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28400 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28401 if test $ac_delim_n = $ac_delim_num; then
28403 elif $ac_last_try; then
28404 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28406 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28409 rm -f conf$$subs.sh
28411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28412 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28416 s/^/S["/; s
/!.
*/"]=/
28426 s/\(.\{148\}\).*/\1/
28428 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28433 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28440 s/\(.\{148\}\).*/\1/
28442 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28446 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28451 ' <conf$$subs.awk | sed '
28456 ' >>$CONFIG_STATUS || ac_write_fail=1
28457 rm -f conf$$subs.awk
28458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28460 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28461 for (key in S) S_is_set[key] = 1
28463 \$ac_cs_awk_pipe_init
28467 nfields = split(line, field, "@
")
28469 len = length(field[1])
28470 for (i = 2; i < nfields; i++) {
28472 keylen = length(key)
28473 if (S_is_set[key]) {
28475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28476 len += length(value) + length(field[++i])
28481 if (nfields == 3 && !substed) {
28483 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28484 \$ac_cs_awk_read_file
28490 \$ac_cs_awk_pipe_fini
28493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28494 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28495 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28498 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28499 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28504 # trailing colons and then remove the whole line if VPATH becomes empty
28505 # (actually we leave an empty line to preserve line numbers).
28506 if test "x
$srcdir" = x.; then
28507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28508 s/:*\$(srcdir):*/:/
28509 s/:*\${srcdir}:*/:/
28511 s/^\([^=]*=[ ]*\):*/\1/
28517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28518 fi # test -n "$CONFIG_FILES"
28520 # Set up the scripts for CONFIG_HEADERS section.
28521 # No need to generate them if there are no CONFIG_HEADERS.
28522 # This happens for instance with `./config.status Makefile'.
28523 if test -n "$CONFIG_HEADERS"; then
28524 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28528 # Transform confdefs.h into an awk script `defines.awk', embedded as
28529 # here-document in config.status, that substitutes the proper values into
28530 # config.h.in to produce config.h.
28532 # Create a delimiter string that does not exist in confdefs.h, to ease
28533 # handling of long lines.
28535 for ac_last_try in false false :; do
28536 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28537 if test -z "$ac_t"; then
28539 elif $ac_last_try; then
28540 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28542 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28546 # For the awk script, D is an array of macro values keyed by name,
28547 # likewise P contains macro parameters if any. Preserve backslash
28548 # newline sequences.
28550 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28552 s/.\{148\}/&'"$ac_delim"'/g
28555 s/^[ ]*#[ ]*define[ ][ ]*/ /
28562 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28564 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28569 D["\
1"]=" \
3\\\\\\n
"\\/p
28571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28576 s/.\{148\}/&'"$ac_delim"'/g
28581 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28584 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28586 ' <confdefs.h | sed '
28587 s/'"$ac_delim"'/"\\\
28588 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28591 for (key in D) D_is_set[key] = 1
28594 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28596 split(line, arg, " ")
28597 if (arg[1] == "#") {
28601 defundef
= substr
(arg
[1], 2)
28604 split(mac1
, mac2
, "(") #)
28606 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28607 if (D_is_set
[macro
]) {
28608 # Preserve the white space surrounding the "#".
28609 print prefix
"define", macro P
[macro
] D
[macro
]
28612 # Replace #undef with comments. This is necessary, for example,
28613 # in the case of _POSIX_SOURCE, which is predefined and required
28614 # on some systems where configure will not decide to define it.
28615 if (defundef
== "undef") {
28616 print
"/*", prefix defundef
, macro
, "*/"
28624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28625 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28626 fi # test -n "$CONFIG_HEADERS"
28629 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28634 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28636 case $ac_mode$ac_tag in
28638 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28639 :[FH
]-) ac_tag
=-:-;;
28640 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28657 -) ac_f
="$tmp/stdin";;
28658 *) # Look for the file first in the build tree, then in the source tree
28659 # (if the path is not absolute). The absolute path cannot be DOS-style,
28660 # because $ac_f cannot contain `:'.
28664 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28666 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28668 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28669 as_fn_append ac_file_inputs
" '$ac_f'"
28672 # Let's still pretend it is `configure' which instantiates (i.e., don't
28673 # use $as_me), people would be surprised to read:
28674 # /* config.h. Generated by config.status. */
28675 configure_input
='Generated from '`
28676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28678 if test x
"$ac_file" != x-
; then
28679 configure_input
="$ac_file. $configure_input"
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28681 $as_echo "$as_me: creating $ac_file" >&6;}
28683 # Neutralize special characters interpreted by sed in replacement strings.
28684 case $configure_input in #(
28685 *\
&* |
*\|
* |
*\\* )
28686 ac_sed_conf_input
=`$as_echo "$configure_input" |
28687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28688 *) ac_sed_conf_input
=$configure_input;;
28692 *:-:* |
*:-) cat >"$tmp/stdin" \
28693 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28698 ac_dir
=`$as_dirname -- "$ac_file" ||
28699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28700 X"$ac_file" : 'X\(//\)[^/]' \| \
28701 X"$ac_file" : 'X\(//\)$' \| \
28702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28703 $as_echo X"$ac_file" |
28704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28708 /^X\(\/\/\)[^/].*/{
28721 as_dir
="$ac_dir"; as_fn_mkdir_p
28725 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28727 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28728 # A ".." for each directory in $ac_dir_suffix.
28729 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28730 case $ac_top_builddir_sub in
28731 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28732 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28735 ac_abs_top_builddir
=$ac_pwd
28736 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28737 # for backward compatibility:
28738 ac_top_builddir
=$ac_top_build_prefix
28741 .
) # We are building in place.
28743 ac_top_srcdir
=$ac_top_builddir_sub
28744 ac_abs_top_srcdir
=$ac_pwd ;;
28745 [\\/]* | ?
:[\\/]* ) # Absolute name.
28746 ac_srcdir
=$srcdir$ac_dir_suffix;
28747 ac_top_srcdir
=$srcdir
28748 ac_abs_top_srcdir
=$srcdir ;;
28749 *) # Relative name.
28750 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28751 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28752 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28754 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28766 # If the template does not know about datarootdir, expand it.
28767 # FIXME: This hack should be removed a few years after 2.60.
28768 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28779 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28780 *datarootdir
*) ac_datarootdir_seen
=yes;;
28781 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28783 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28786 ac_datarootdir_hack='
28787 s&@datadir@&$datadir&g
28788 s&@docdir@&$docdir&g
28789 s&@infodir@&$infodir&g
28790 s&@localedir@&$localedir&g
28791 s&@mandir@&$mandir&g
28792 s&\\\${datarootdir}&$datarootdir&g' ;;
28796 # Neutralize VPATH when `$srcdir' = `.'.
28797 # Shell code in configure.ac might set extrasub.
28798 # FIXME: do we really want to maintain this feature?
28799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28800 ac_sed_extra="$ac_vpsub
28803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28805 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28806 s|@configure_input@|
$ac_sed_conf_input|
;t t
28807 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28808 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28809 s
&@srcdir@
&$ac_srcdir&;t t
28810 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28811 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28812 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28813 s
&@builddir@
&$ac_builddir&;t t
28814 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28815 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28816 $ac_datarootdir_hack
28818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28819 if $ac_cs_awk_getline; then
28820 $AWK -f "$tmp/subs.
awk"
28822 $AWK -f "$tmp/subs.
awk" | $SHELL
28824 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28827 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28828 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28830 which seems to be undefined. Please make sure it is defined." >&5
28831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28832 which seems to be undefined. Please make sure it is defined." >&2;}
28836 -) cat "$tmp/out" && rm -f "$tmp/out";;
28837 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28839 || as_fn_error "could not create $ac_file" "$LINENO" 5
28845 if test x"$ac_file" != x-; then
28847 $as_echo "/* $configure_input */" \
28848 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28849 } >"$tmp/config.h" \
28850 || as_fn_error "could not create $ac_file" "$LINENO" 5
28851 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28853 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28856 mv "$tmp/config.h" "$ac_file" \
28857 || as_fn_error "could not create $ac_file" "$LINENO" 5
28860 $as_echo "/* $configure_input */" \
28861 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28862 || as_fn_error "could not create -" "$LINENO" 5
28866 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28867 $as_echo "$as_me: executing $ac_file commands" >&6;}
28872 case $ac_file$ac_mode in
28873 "as":F) chmod +x as ;;
28874 "collect-ld":F) chmod +x collect-ld ;;
28875 "nm":F) chmod +x nm ;;
28877 case ${CONFIG_HEADERS} in
28878 *auto-host.h:config.in*)
28881 # Make sure all the subdirs exist.
28882 for d in $subdirs doc build common c-family
28884 test -d $d || mkdir $d
28894 ac_clean_files=$ac_clean_files_save
28896 test $ac_write_fail = 0 ||
28897 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28900 # configure is writing to config.log, and then calls config.status.
28901 # config.status does its own redirection, appending to config.log.
28902 # Unfortunately, on DOS this fails, as config.log is still kept open
28903 # by configure, so config.status won't be able to
write to it
; its
28904 # output is simply discarded. So we exec the FD to /dev/null,
28905 # effectively closing config.log, so it can be properly (re)opened and
28906 # appended to by config.status. When coming back to configure, we
28907 # need to make the FD available again.
28908 if test "$no_create" != yes; then
28910 ac_config_status_args
=
28911 test "$silent" = yes &&
28912 ac_config_status_args
="$ac_config_status_args --quiet"
28914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28917 # would make configure fail if this is the last instruction.
28918 $ac_cs_success || as_fn_exit $?
28920 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28922 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}