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
621 libgcc_tm_include_list
627 common_out_object_file
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
654 TM_MULTILIB_EXCEPTIONS_CONFIG
663 build_xm_include_list
665 build_install_headers_dir
667 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
771 ENABLE_BUILD_WITH_CXX
774 valgrind_path_defines
846 program_transform_name
857 ac_subst_files
='option_includes
860 enable_option_checking
865 enable_generated_files_in_srcdir
875 enable_gather_detailed_mem_stats
876 enable_build_with_cxx
896 enable_initfini_array
897 enable_sjlj_exceptions
899 enable_leading_mingw64_underscores
902 enable_win32_registry
908 enable_gnu_indirect_function
910 enable_gnu_unique_object
911 enable_linker_build_id
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
919 enable_libquadmath_support
920 with_linker_hash_style
922 ac_precious_vars
='build_alias
943 # Initialize some variables set by options.
945 ac_init_version
=false
946 ac_unrecognized_opts
=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name
=s
,x
,x
,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir
='${exec_prefix}/bin'
972 sbindir
='${exec_prefix}/sbin'
973 libexecdir
='${exec_prefix}/libexec'
974 datarootdir
='${prefix}/share'
975 datadir
='${datarootdir}'
976 sysconfdir
='${prefix}/etc'
977 sharedstatedir
='${prefix}/com'
978 localstatedir
='${prefix}/var'
979 includedir
='${prefix}/include'
980 oldincludedir
='/usr/include'
981 docdir
='${datarootdir}/doc/${PACKAGE}'
982 infodir
='${datarootdir}/info'
987 libdir
='${exec_prefix}/lib'
988 localedir
='${datarootdir}/locale'
989 mandir
='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\
$ac_option
1003 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1015 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1016 bindir
=$ac_optarg ;;
1018 -build |
--build |
--buil |
--bui |
--bu)
1019 ac_prev
=build_alias
;;
1020 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1021 build_alias
=$ac_optarg ;;
1023 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1024 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1025 ac_prev
=cache_file
;;
1026 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1027 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1028 cache_file
=$ac_optarg ;;
1030 --config-cache |
-C)
1031 cache_file
=config.cache
;;
1033 -datadir |
--datadir |
--datadi |
--datad)
1035 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1036 datadir
=$ac_optarg ;;
1038 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1039 |
--dataroo |
--dataro |
--datar)
1040 ac_prev
=datarootdir
;;
1041 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1042 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1043 datarootdir
=$ac_optarg ;;
1045 -disable-* |
--disable-*)
1046 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1049 as_fn_error
"invalid feature name: $ac_useropt"
1050 ac_useropt_orig
=$ac_useropt
1051 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_
$ac_useropt"
1056 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep
=', ';;
1059 eval enable_
$ac_useropt=no
;;
1061 -docdir |
--docdir |
--docdi |
--doc |
--do)
1063 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1064 docdir
=$ac_optarg ;;
1066 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1068 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1069 dvidir
=$ac_optarg ;;
1071 -enable-* |
--enable-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error
"invalid feature name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_
$ac_useropt"
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval enable_
$ac_useropt=\
$ac_optarg ;;
1087 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1088 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1089 |
--exec |
--exe |
--ex)
1090 ac_prev
=exec_prefix
;;
1091 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1092 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1093 |
--exec=* |
--exe=* |
--ex=*)
1094 exec_prefix
=$ac_optarg ;;
1096 -gas |
--gas |
--ga |
--g)
1097 # Obsolete; use --with-gas.
1100 -help |
--help |
--hel |
--he |
-h)
1101 ac_init_help
=long
;;
1102 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1103 ac_init_help
=recursive
;;
1104 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1105 ac_init_help
=short
;;
1107 -host |
--host |
--hos |
--ho)
1108 ac_prev
=host_alias
;;
1109 -host=* |
--host=* |
--hos=* |
--ho=*)
1110 host_alias
=$ac_optarg ;;
1112 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1114 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1116 htmldir
=$ac_optarg ;;
1118 -includedir |
--includedir |
--includedi |
--included |
--include \
1119 |
--includ |
--inclu |
--incl |
--inc)
1120 ac_prev
=includedir
;;
1121 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1122 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1123 includedir
=$ac_optarg ;;
1125 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1127 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1128 infodir
=$ac_optarg ;;
1130 -libdir |
--libdir |
--libdi |
--libd)
1132 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1133 libdir
=$ac_optarg ;;
1135 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1136 |
--libexe |
--libex |
--libe)
1137 ac_prev
=libexecdir
;;
1138 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1139 |
--libexe=* |
--libex=* |
--libe=*)
1140 libexecdir
=$ac_optarg ;;
1142 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1143 ac_prev
=localedir
;;
1144 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1145 localedir
=$ac_optarg ;;
1147 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1148 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1149 ac_prev
=localstatedir
;;
1150 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1151 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1152 localstatedir
=$ac_optarg ;;
1154 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1156 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1157 mandir
=$ac_optarg ;;
1159 -nfp |
--nfp |
--nf)
1160 # Obsolete; use --without-fp.
1163 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1164 |
--no-cr |
--no-c |
-n)
1167 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1168 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1171 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1172 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1173 |
--oldin |
--oldi |
--old |
--ol |
--o)
1174 ac_prev
=oldincludedir
;;
1175 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1176 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1177 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1178 oldincludedir
=$ac_optarg ;;
1180 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1182 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1183 prefix
=$ac_optarg ;;
1185 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1186 |
--program-pre |
--program-pr |
--program-p)
1187 ac_prev
=program_prefix
;;
1188 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1189 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1190 program_prefix
=$ac_optarg ;;
1192 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1193 |
--program-suf |
--program-su |
--program-s)
1194 ac_prev
=program_suffix
;;
1195 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1196 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1197 program_suffix
=$ac_optarg ;;
1199 -program-transform-name |
--program-transform-name \
1200 |
--program-transform-nam |
--program-transform-na \
1201 |
--program-transform-n |
--program-transform- \
1202 |
--program-transform |
--program-transfor \
1203 |
--program-transfo |
--program-transf \
1204 |
--program-trans |
--program-tran \
1205 |
--progr-tra |
--program-tr |
--program-t)
1206 ac_prev
=program_transform_name
;;
1207 -program-transform-name=* |
--program-transform-name=* \
1208 |
--program-transform-nam=* |
--program-transform-na=* \
1209 |
--program-transform-n=* |
--program-transform-=* \
1210 |
--program-transform=* |
--program-transfor=* \
1211 |
--program-transfo=* |
--program-transf=* \
1212 |
--program-trans=* |
--program-tran=* \
1213 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1214 program_transform_name
=$ac_optarg ;;
1216 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1218 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1219 pdfdir
=$ac_optarg ;;
1221 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1223 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1226 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1227 |
-silent |
--silent |
--silen |
--sile |
--sil)
1230 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1232 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1234 sbindir
=$ac_optarg ;;
1236 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1237 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1238 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1240 ac_prev
=sharedstatedir
;;
1241 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1242 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1243 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1245 sharedstatedir
=$ac_optarg ;;
1247 -site |
--site |
--sit)
1249 -site=* |
--site=* |
--sit=*)
1252 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1254 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1255 srcdir
=$ac_optarg ;;
1257 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1258 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1259 ac_prev
=sysconfdir
;;
1260 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1261 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1262 sysconfdir
=$ac_optarg ;;
1264 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1265 ac_prev
=target_alias
;;
1266 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1267 target_alias
=$ac_optarg ;;
1269 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1272 -version |
--version |
--versio |
--versi |
--vers |
-V)
1273 ac_init_version
=: ;;
1276 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1279 as_fn_error
"invalid package name: $ac_useropt"
1280 ac_useropt_orig
=$ac_useropt
1281 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep
=', ';;
1289 eval with_
$ac_useropt=\
$ac_optarg ;;
1291 -without-* |
--without-*)
1292 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=no
;;
1308 # Obsolete; use --with-x.
1311 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1312 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1313 ac_prev
=x_includes
;;
1314 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1315 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1316 x_includes
=$ac_optarg ;;
1318 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1319 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1320 ac_prev
=x_libraries
;;
1321 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1322 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1323 x_libraries
=$ac_optarg ;;
1325 -*) as_fn_error
"unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1330 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1334 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1336 eval $ac_envvar=\
$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error
"missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val
=\$
$ac_var
1370 # Remove trailing slashes.
1373 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\
$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$
]* | ?
:[\\/]* ) continue;;
1379 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1381 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1389 target
=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x
; then
1393 if test "x$build_alias" = x
; then
1394 cross_compiling
=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1403 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1405 test "$silent" = yes && exec 6>/dev
/null
1408 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di
=`ls -di .` &&
1410 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error
"working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error
"pwd does not report name of working directory"
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted
=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir
=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1448 ac_srcdir_defaulted
=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1452 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1454 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var
in $ac_precious_vars; do
1469 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1471 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures this package to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1545 --build=BUILD configure
for building on BUILD
[guessed
]
1546 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1547 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1551 if test -n "$ac_init_help"; then
1556 --disable-option-checking ignore unrecognized
--enable/--with options
1557 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1558 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1559 --enable-generated-files-in-srcdir
1560 put copies of generated files
in source dir intended
1561 for creating
source tarballs
for users without
1562 texinfo bison or flex
1563 --disable-largefile omit support
for large files
1564 --enable-werror-always enable -Werror despite compiler version
1565 --enable-checking[=LIST
]
1566 enable expensive run-time checks. With LIST
, enable
1567 only specific categories of checks. Categories are
:
1568 yes,no
,all
,none
,release. Flags are
:
1569 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1570 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1571 --enable-coverage[=LEVEL
]
1572 enable compiler
's code coverage collection. Use to
1573 measure compiler performance and locate unused parts
1574 of the compiler. With LEVEL, specify optimization.
1575 Values are opt, noopt, default is noopt
1576 --enable-gather-detailed-mem-stats
1577 enable detailed memory allocation stats gathering
1578 --enable-build-with-cxx build with C++ compiler instead of C compiler
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-__cxa_atexit enable __cxa_atexit for C++
1581 --enable-decimal-float={no,yes,bid,dpd}
1582 enable decimal float extension to C. Selecting 'bid
'
1583 or 'dpd
' choses which decimal floating point format
1585 --enable-fixed-point enable fixed-point arithmetic extension to C
1586 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1588 --enable-tls enable or disable generation of tls code overriding
1589 the assembler check for tls support
1590 --enable-objc-gc enable the use of Boehm's garbage collector with the
1591 GNU Objective-C runtime
1592 --disable-shared don
't provide a shared libgcc
1593 --enable-languages=LIST specify which front-ends to build
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-initfini-array use .init_array/.fini_array sections
1596 --enable-sjlj-exceptions
1597 arrange to use setjmp/longjmp exception handling
1598 --enable-secureplt enable -msecure-plt by default for PowerPC
1599 --enable-leading-mingw64-underscores
1600 enable leading underscores on 64 bit mingw targets
1601 --enable-cld enable -mcld by default for 32bit x86
1602 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1604 --disable-win32-registry
1605 disable lookup of installation paths in the Registry
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful (and
1627 sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be installed
1630 in a compiler-specific directory
1631 --enable-plugin enable plugin support
1632 --disable-libquadmath-support
1633 disable libquadmath support for Fortran
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-build-libsubdir=DIR Directory where to find libraries for build system
1639 --with-local-prefix=DIR specifies directory to put local include
1640 --with-gxx-include-dir=DIR
1641 specifies directory to put g++ header files
1642 --with-cpp-install-dir=DIR
1643 install the user visible C preprocessor in DIR
1644 (relative to PREFIX) as well as PREFIX/bin
1645 --with-gnu-ld arrange to work with GNU ld
1646 --with-ld arrange to use the specified ld (full pathname)
1647 --with-demangler-in-ld try to use demangler in GNU ld
1648 --with-gnu-as arrange to work with GNU as
1649 --with-as arrange to use the specified as (full pathname)
1650 --with-stabs arrange to use stabs instead of host debug format
1651 --with-dwarf2 force the default debug format to be DWARF 2
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1662 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1664 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1665 --with-plugin-ld=[ARG
] specify the plugin linker
1666 --with-long-double-128 use
128-bit long double by default
1667 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1669 --with-system-zlib use installed libz
1670 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1671 --with-linker-hash-style={sysv
,gnu
,both
}
1672 specify the linker
hash style
1674 Some influential environment variables
:
1675 CC C compiler
command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1678 nonstandard directory
<lib dir
>
1679 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1680 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1681 you have headers
in a nonstandard directory
<include dir
>
1682 CXX C
++ compiler
command
1683 CXXFLAGS C
++ compiler flags
1685 CXXCPP C
++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to
find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to
find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to
find CLOOG include files
1693 Use these variables to override the choices made by
`configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1696 Report bugs to the package provider.
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1726 .) # We are building in place.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1760 generated by GNU Autoconf 2.64
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1783 *) ac_try_echo
=$ac_try;;
1785 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1789 if test -s conftest.err
; then
1790 grep -v '^ *+' conftest.err
>conftest.er1
1791 cat conftest.er1
>&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.
$ac_objext; then :
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.
$ac_ext >&5
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1809 } # ac_fn_c_try_compile
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext
1818 if { { ac_try
="$ac_compile"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_cxx_try_compile
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1858 *) ac_try_echo
=$ac_try;;
1860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 if test -s conftest.err
; then
1865 grep -v '^ *+' conftest.err
>conftest.er1
1866 cat conftest.er1
>&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev
/null
&& {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.
$ac_ext >&5
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1891 ac_fn_c_check_header_mongrel
()
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1912 if ac_fn_c_try_compile
"$LINENO"; then :
1913 ac_header_compiler
=yes
1915 ac_header_compiler
=no
1917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 if ac_fn_c_try_cpp
"$LINENO"; then :
1929 ac_header_preproc
=yes
1931 ac_header_preproc
=no
1933 rm -f conftest.err conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval "$3=\$ac_header_compiler"
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1971 } # ac_fn_c_check_header_mongrel
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 if { { ac_try
="$ac_link"
1982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1993 *) ac_try_echo
=$ac_try;;
1995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.
$ac_ext >&5
2007 ac_retval
=$ac_status
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2044 } # ac_fn_c_check_header_compile
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 ac_fn_c_compute_int
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 ac_hi
=$ac_mid; break
2088 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2089 if test $ac_lo -le $ac_mid; then
2093 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) < 0)];
2111 if ac_fn_c_try_compile
"$LINENO"; then :
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2127 if ac_fn_c_try_compile
"$LINENO"; then :
2128 ac_lo
=$ac_mid; break
2130 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2131 if test $ac_mid -le $ac_hi; then
2135 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2164 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2184 FILE *f = fopen ("conftest.val", "w");
2189 long int i = longval ();
2192 fprintf (f, "%ld", i);
2196 unsigned long int i = ulongval ();
2199 fprintf (f, "%lu", i);
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2209 if ac_fn_c_try_run
"$LINENO"; then :
2210 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2222 } # ac_fn_c_compute_int
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type
()
2230 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2249 if ac_fn_c_try_compile
"$LINENO"; then :
2250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2262 if ac_fn_c_try_compile
"$LINENO"; then :
2267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2276 } # ac_fn_c_check_type
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 ac_fn_c_find_intX_t
()
2284 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2291 for ac_type
in int
$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2306 if ac_fn_c_try_compile
"$LINENO"; then :
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2321 if ac_fn_c_try_compile
"$LINENO"; then :
2328 eval "$3=\$ac_type" ;;
2331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2335 if test "x$as_val" = x
""no
; then :
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2347 } # ac_fn_c_find_intX_t
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2355 rm -f conftest.
$ac_objext conftest
$ac_exeext
2356 if { { ac_try
="$ac_link"
2358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 } # ac_fn_c_try_link
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 ac_fn_c_find_uintX_t ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 eval "$3=\$ac_type" ;;
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 if test "x$as_val" = x""no; then :
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_find_uintX_t
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2467 rm -f conftest.err conftest.$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_check_header_preproc
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2485 *) ac_try_echo
=$ac_try;;
2487 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 if test -s conftest.err
; then
2492 grep -v '^ *+' conftest.err
>conftest.er1
2493 cat conftest.er1
>&5
2494 mv -f conftest.er1 conftest.err
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev
/null
&& {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.
$ac_ext >&5
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2511 } # ac_fn_cxx_try_cpp
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc
()
2518 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2533 rm -f conftest.err conftest.
$ac_ext
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2540 } # ac_fn_cxx_check_header_preproc
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func
()
2547 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2565 # include <limits.h>
2567 # include <assert.h>
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2594 if ac_fn_c_try_link
"$LINENO"; then :
2599 rm -f core conftest.err conftest.
$ac_objext \
2600 conftest
$ac_exeext conftest.
$ac_ext
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2607 } # ac_fn_c_check_func
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link
()
2614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2615 rm -f conftest.
$ac_objext conftest
$ac_exeext
2616 if { { ac_try
="$ac_link"
2618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2671 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2672 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2673 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2674 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2675 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2677 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2678 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2680 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2681 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2682 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2683 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2684 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2685 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2686 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_must_keep_next=false
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2730 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 -* ) ac_must_keep_next=true ;;
2751 as_fn_append ac_configure_args " '$ac_arg'"
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2775 # The following way of writing the cache mishandles newlines in values,
2777 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2778 eval ac_val=\$$ac_var
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2793 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2813 for ac_var in $ac_subst_vars
2815 eval ac_val=\$$ac_var
2817 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 $as_echo "$ac_var='\''$ac_val'\''"
2823 if test -n "$ac_subst_files"; then
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2830 for ac_var in $ac_subst_files
2832 eval ac_val=\$$ac_var
2834 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 $as_echo "$ac_var='\''$ac_val'\''"
2841 if test -s confdefs.h; then
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2867 $as_echo "/* confdefs.h */" > confdefs.h
2869 # Predefined preprocessor variables.
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 # Check that the precious variables saved in the cache have kept the same
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2948 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2952 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x
$ac_old_val`
2959 ac_new_val_w=`echo x
$ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2963 ac_cache_corrupted=:
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3012 gcc_version=`cat $srcdir/BASE-VER
`
3014 # Determine the host, build, and target systems
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 ac_save_IFS=$IFS; IFS='-'
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3073 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 ac_save_IFS=$IFS; IFS='-'
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3106 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3139 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3147 program_prefix=${target_alias}-
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3168 # Determine the target- and build-specific subdirectories
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 build_libsubdir="$build_subdir"
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3197 target_subdir=${target_noncanonical}
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s
,x
,x
', remove it if useless.
3208 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3227 library_path_setting="ok"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again.
" "$LINENO" 5
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory
"
3253 gcc_exec_prefix_setting="ok
"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok
"; then
3260 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3269 # Specify the local prefix
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 *) local_prefix=$with_local_prefix ;;
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3287 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir
=
3291 # Specify the g++ header file directory
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval
=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x
${gcc_gxx_include_dir} = x
; then
3305 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3306 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3308 libstdcxx_incdir
='include/c++/$(version)'
3309 if test x
$host != x
$target; then
3310 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3312 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3320 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x
$withval != xno
; then
3322 cpp_install_dir
=$withval
3327 # We would like to our source tree to be readonly. However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335 # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3339 generated_files_in_srcdir
=no
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3346 if test "$generated_files_in_srcdir" = "yes"; then
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3367 # With pre-defined ld
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3374 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3375 if test ! -x "$DEFAULT_LINKER"; then
3376 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3381 cat >>confdefs.h
<<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3387 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389 cat >>confdefs.h
<<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3397 if test x
"$gnu_ld_flag" = x
"no"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3409 # With demangler in GNU ld
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3439 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3440 if test ! -x "$DEFAULT_ASSEMBLER"; then
3441 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3446 cat >>confdefs.h
<<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3452 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454 cat >>confdefs.h
<<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3462 if test x
"$gas_flag" = x
"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3487 # Find the native compiler
3489 ac_cpp
='$CPP $CPPFLAGS'
3490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC
="$CC" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$ac_cv_prog_CC"; then
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc
; ac_word
=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir
=.
3549 for ac_exec_ext
in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC
="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3570 if test "x$ac_ct_CC" = x
; then
3573 case $cross_compiling:$ac_tool_warned in
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned
=yes ;;
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC
="$CC" # Let the user override the test.
3597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir
=.
3602 for ac_exec_ext
in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc
; ac_word
=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC
="$CC" # Let the user override the test.
3638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir
=.
3643 for ac_exec_ext
in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected
=yes
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy
$ac_cv_prog_CC
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3666 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog
in cl.exe
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC
="$CC" # Let the user override the test.
3696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir
=.
3701 for ac_exec_ext
in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$CC" && break
3726 if test -z "$CC"; then
3728 for ac_prog
in cl.exe
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy
$ac_prog; ac_word
=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir
=.
3745 for ac_exec_ext
in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC
="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$ac_ct_CC" && break
3770 if test "x$ac_ct_CC" = x
; then
3773 case $cross_compiling:$ac_tool_warned in
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned
=yes ;;
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error
"no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3795 for ac_option
in --version -v -V -qversion; do
3796 { { ac_try
="$ac_compiler $ac_option >&5"
3798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 if test -s conftest.err; then
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 for ac_file in $ac_files
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 if { { ac_try="$ac_link_default"
3851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3852 *) ac_try_echo
=$ac_try;;
3854 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3865 for ac_file
in $ac_files ''
3867 test -f "$ac_file" ||
continue
3869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3872 # We found the default executable, but exeext='' is most
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3878 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3890 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.
$ac_ext >&5
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status
77
3904 as_fn_error
"C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3907 ac_exeext
=$ac_cv_exeext
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try
='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3928 if test "$cross_compiling" = maybe; then
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile
, use \
`--host'.
3935 See \`config.log
' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3968 for ac_file
in conftest.exe conftest conftest.
*; do
3969 test -f "$ac_file" ||
continue
3971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3972 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest
$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.
$ac_ext
3988 EXEEXT
=$ac_cv_exeext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try
="$ac_compile"
4009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files
: cannot compile
4033 See \
`config.log' for more details." "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"; then :
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4150 if test "$GCC" = yes; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_cv_prog_cc_c89=no
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4183 s = g (p, va_arg (v,int));
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 rm -f conftest.$ac_ext
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4283 *) ac_try_echo
=$ac_try;;
4285 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4308 *) ac_try_echo
=$ac_try;;
4310 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 if { { case "(($ac_try" in
4319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4330 *) ac_try_echo
=$ac_try;;
4332 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4348 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4350 rm -f core conftest
*
4353 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir
=`cd $ac_aux_dir && pwd`
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4370 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC
="$am_aux_dir/compile $CC"
4383 ac_cpp
='$CXXCPP $CPPFLAGS'
4384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CXX" && break
4434 if test -z "$CXX"; then
4436 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy
$ac_prog; ac_word
=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir
=.
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CXX" && break
4478 if test "x$ac_ct_CXX" = x
; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned
=yes ;;
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4497 for ac_option
in --version -v -V -qversion; do
4498 { { ac_try
="$ac_compiler $ac_option >&5"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 if test -s conftest.err; then
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4627 if test "$GXX" = yes; then
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4719 if test "x$ac_ct_GNATBIND" = x; then
4722 case $cross_compiling:$ac_tool_warned in
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4728 GNATBIND=$ac_ct_GNATBIND
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_GNATMAKE" = x; then
4814 case $cross_compiling:$ac_tool_warned in
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4820 GNATMAKE=$ac_ct_GNATMAKE
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4863 OUTPUT_OPTION='-o $@'
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4876 # -------------------------
4877 # Check C compiler features
4878 # -------------------------
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4887 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4888 # On Suns, sometimes $CPP names a directory.
4889 if test -n "$CPP" && test -d "$CPP"; then
4892 if test -z "$CPP"; then
4893 if test "${ac_cv_prog_CPP+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4896 # Double quotes because CPP needs to be expanded
4897 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4900 for ac_c_preproc_warn_flag in '' yes
4902 # Use a header file that comes with gcc, so configuring glibc
4903 # with a fresh cross-compiler works.
4904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4905 # <limits.h> exists even on freestanding compilers.
4906 # On the NeXT, cc -E runs the code through the compiler's parser,
4907 # not just through cpp. "Syntax error" is here to catch this case.
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4911 # include <limits.h>
4913 # include <assert.h>
4917 if ac_fn_c_try_cpp "$LINENO"; then :
4920 # Broken: fails on valid input.
4923 rm -f conftest.err conftest.$ac_ext
4925 # OK, works on sane cases. Now check whether nonexistent headers
4926 # can be detected and how.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #include <ac_nonexistent.h>
4931 if ac_fn_c_try_cpp "$LINENO"; then :
4932 # Broken: success on invalid input.
4935 # Passes both tests.
4939 rm -f conftest.err conftest.$ac_ext
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.err conftest.
$ac_ext
4944 if $ac_preproc_ok; then :
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4957 $as_echo "$CPP" >&6; }
4959 for ac_c_preproc_warn_flag
in '' yes
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4970 # include <limits.h>
4972 # include <assert.h>
4976 if ac_fn_c_try_cpp
"$LINENO"; then :
4979 # Broken: fails on valid input.
4982 rm -f conftest.err conftest.
$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4990 if ac_fn_c_try_cpp
"$LINENO"; then :
4991 # Broken: success on invalid input.
4994 # Passes both tests.
4998 rm -f conftest.err conftest.
$ac_ext
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.
$ac_ext
5003 if $ac_preproc_ok; then :
5006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5009 See \`config.log' for more details." "$LINENO" 5; }
5013 ac_cpp
='$CPP $CPPFLAGS'
5014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5020 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5021 if test "${ac_cv_path_GREP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5024 if test -z "$GREP"; then
5025 ac_path_GREP_found
=false
5026 # Loop through the user's path and test for each of PROGNAME-LIST
5027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5028 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5031 test -z "$as_dir" && as_dir
=.
5032 for ac_prog
in grep ggrep
; do
5033 for ac_exec_ext
in '' $ac_executable_extensions; do
5034 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5036 # Check for GNU ac_path_GREP and select it if it is found.
5037 # Check for GNU $ac_path_GREP
5038 case `"$ac_path_GREP" --version 2>&1` in
5040 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5043 $as_echo_n 0123456789 >"conftest.in"
5046 cat "conftest.in" "conftest.in" >"conftest.tmp"
5047 mv "conftest.tmp" "conftest.in"
5048 cp "conftest.in" "conftest.nl"
5049 $as_echo 'GREP' >> "conftest.nl"
5050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5051 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5052 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5054 # Best one so far, save it but keep looking for a better one
5055 ac_cv_path_GREP
="$ac_path_GREP"
5056 ac_path_GREP_max
=$ac_count
5058 # 10*(2^10) chars as input seems more than enough
5059 test $ac_count -gt 10 && break
5061 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5064 $ac_path_GREP_found && break 3
5069 if test -z "$ac_cv_path_GREP"; then
5070 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5073 ac_cv_path_GREP
=$GREP
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5078 $as_echo "$ac_cv_path_GREP" >&6; }
5079 GREP
="$ac_cv_path_GREP"
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5083 $as_echo_n "checking for egrep... " >&6; }
5084 if test "${ac_cv_path_EGREP+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5087 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5088 then ac_cv_path_EGREP
="$GREP -E"
5090 if test -z "$EGREP"; then
5091 ac_path_EGREP_found
=false
5092 # Loop through the user's path and test for each of PROGNAME-LIST
5093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5094 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5097 test -z "$as_dir" && as_dir
=.
5098 for ac_prog
in egrep; do
5099 for ac_exec_ext
in '' $ac_executable_extensions; do
5100 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5101 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5102 # Check for GNU ac_path_EGREP and select it if it is found.
5103 # Check for GNU $ac_path_EGREP
5104 case `"$ac_path_EGREP" --version 2>&1` in
5106 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5109 $as_echo_n 0123456789 >"conftest.in"
5112 cat "conftest.in" "conftest.in" >"conftest.tmp"
5113 mv "conftest.tmp" "conftest.in"
5114 cp "conftest.in" "conftest.nl"
5115 $as_echo 'EGREP' >> "conftest.nl"
5116 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5117 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5118 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5119 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5120 # Best one so far, save it but keep looking for a better one
5121 ac_cv_path_EGREP
="$ac_path_EGREP"
5122 ac_path_EGREP_max
=$ac_count
5124 # 10*(2^10) chars as input seems more than enough
5125 test $ac_count -gt 10 && break
5127 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5130 $ac_path_EGREP_found && break 3
5135 if test -z "$ac_cv_path_EGREP"; then
5136 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5139 ac_cv_path_EGREP
=$EGREP
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5145 $as_echo "$ac_cv_path_EGREP" >&6; }
5146 EGREP
="$ac_cv_path_EGREP"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5150 $as_echo_n "checking for ANSI C header files... " >&6; }
5151 if test "${ac_cv_header_stdc+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5169 if ac_fn_c_try_compile
"$LINENO"; then :
5170 ac_cv_header_stdc
=yes
5172 ac_cv_header_stdc
=no
5174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5176 if test $ac_cv_header_stdc = yes; then
5177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "memchr" >/dev
/null
2>&1; then :
5187 ac_cv_header_stdc
=no
5193 if test $ac_cv_header_stdc = yes; then
5194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5201 $EGREP "free" >/dev
/null
2>&1; then :
5204 ac_cv_header_stdc
=no
5210 if test $ac_cv_header_stdc = yes; then
5211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5212 if test "$cross_compiling" = yes; then :
5215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5219 #if ((' ' & 0x0FF) == 0x020)
5220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5223 # define ISLOWER(c) \
5224 (('a' <= (c) && (c) <= 'i') \
5225 || ('j' <= (c) && (c) <= 'r') \
5226 || ('s' <= (c) && (c) <= 'z'))
5227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5235 for (i = 0; i < 256; i++)
5236 if (XOR (islower (i), ISLOWER (i))
5237 || toupper (i) != TOUPPER (i))
5242 if ac_fn_c_try_run
"$LINENO"; then :
5245 ac_cv_header_stdc
=no
5247 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5248 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5254 $as_echo "$ac_cv_header_stdc" >&6; }
5255 if test $ac_cv_header_stdc = yes; then
5257 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5262 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5263 inttypes.h stdint.h unistd.h
5265 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5268 eval as_val
=\$
$as_ac_Header
5269 if test "x$as_val" = x
""yes; then :
5270 cat >>confdefs.h
<<_ACEOF
5271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5280 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5281 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5288 if test "$MINIX" = yes; then
5290 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5296 $as_echo "#define _MINIX 1" >>confdefs.h
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5302 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5303 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5309 # define __EXTENSIONS__ 1
5310 $ac_includes_default
5319 if ac_fn_c_try_compile
"$LINENO"; then :
5320 ac_cv_safe_to_define___extensions__
=yes
5322 ac_cv_safe_to_define___extensions__
=no
5324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5327 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5328 test $ac_cv_safe_to_define___extensions__ = yes &&
5329 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5331 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5333 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5335 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5337 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5341 ac_cpp
='$CPP $CPPFLAGS'
5342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5346 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5347 # On Suns, sometimes $CPP names a directory.
5348 if test -n "$CPP" && test -d "$CPP"; then
5351 if test -z "$CPP"; then
5352 if test "${ac_cv_prog_CPP+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5355 # Double quotes because CPP needs to be expanded
5356 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5359 for ac_c_preproc_warn_flag
in '' yes
5361 # Use a header file that comes with gcc, so configuring glibc
5362 # with a fresh cross-compiler works.
5363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364 # <limits.h> exists even on freestanding compilers.
5365 # On the NeXT, cc -E runs the code through the compiler's parser,
5366 # not just through cpp. "Syntax error" is here to catch this case.
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5370 # include <limits.h>
5372 # include <assert.h>
5376 if ac_fn_c_try_cpp
"$LINENO"; then :
5379 # Broken: fails on valid input.
5382 rm -f conftest.err conftest.
$ac_ext
5384 # OK, works on sane cases. Now check whether nonexistent headers
5385 # can be detected and how.
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <ac_nonexistent.h>
5390 if ac_fn_c_try_cpp
"$LINENO"; then :
5391 # Broken: success on invalid input.
5394 # Passes both tests.
5398 rm -f conftest.err conftest.
$ac_ext
5401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5402 rm -f conftest.err conftest.
$ac_ext
5403 if $ac_preproc_ok; then :
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5416 $as_echo "$CPP" >&6; }
5418 for ac_c_preproc_warn_flag
in '' yes
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
5426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5429 # include <limits.h>
5431 # include <assert.h>
5435 if ac_fn_c_try_cpp
"$LINENO"; then :
5438 # Broken: fails on valid input.
5441 rm -f conftest.err conftest.
$ac_ext
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
5445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <ac_nonexistent.h>
5449 if ac_fn_c_try_cpp
"$LINENO"; then :
5450 # Broken: success on invalid input.
5453 # Passes both tests.
5457 rm -f conftest.err conftest.
$ac_ext
5460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5461 rm -f conftest.err conftest.
$ac_ext
5462 if $ac_preproc_ok; then :
5465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5467 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5468 See \`config.log' for more details." "$LINENO" 5; }
5472 ac_cpp
='$CPP $CPPFLAGS'
5473 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5478 $as_echo_n "checking for inline... " >&6; }
5479 if test "${ac_cv_c_inline+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5483 for ac_kw
in inline __inline__ __inline
; do
5484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5488 static $ac_kw foo_t static_foo () {return 0; }
5489 $ac_kw foo_t foo () {return 0; }
5493 if ac_fn_c_try_compile
"$LINENO"; then :
5494 ac_cv_c_inline
=$ac_kw
5496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5497 test "$ac_cv_c_inline" != no
&& break
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5502 $as_echo "$ac_cv_c_inline" >&6; }
5504 case $ac_cv_c_inline in
5507 case $ac_cv_c_inline in
5509 *) ac_val
=$ac_cv_c_inline;;
5511 cat >>confdefs.h
<<_ACEOF
5513 #define inline $ac_val
5520 # Check whether --enable-largefile was given.
5521 if test "${enable_largefile+set}" = set; then :
5522 enableval
=$enable_largefile;
5525 if test "$enable_largefile" != no
; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5528 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5529 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5532 ac_cv_sys_largefile_CC
=no
5533 if test "$GCC" != yes; then
5536 # IRIX 6.2 and later do not support large files by default,
5537 # so use the C compiler's -n32 option if that helps.
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <sys/types.h>
5541 /* Check that off_t can represent 2**63 - 1 correctly.
5542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5543 since some C++ compilers masquerading as C compilers
5544 incorrectly reject 9223372036854775807. */
5545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5547 && LARGE_OFF_T % 2147483647 == 1)
5557 if ac_fn_c_try_compile
"$LINENO"; then :
5560 rm -f core conftest.err conftest.
$ac_objext
5562 if ac_fn_c_try_compile
"$LINENO"; then :
5563 ac_cv_sys_largefile_CC
=' -n32'; break
5565 rm -f core conftest.err conftest.
$ac_objext
5569 rm -f conftest.
$ac_ext
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5573 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5574 if test "$ac_cv_sys_largefile_CC" != no
; then
5575 CC
=$CC$ac_cv_sys_largefile_CC
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5579 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5580 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5603 if ac_fn_c_try_compile
"$LINENO"; then :
5604 ac_cv_sys_file_offset_bits
=no
; break
5606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #define _FILE_OFFSET_BITS 64
5610 #include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613 since some C++ compilers masquerading as C compilers
5614 incorrectly reject 9223372036854775807. */
5615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617 && LARGE_OFF_T % 2147483647 == 1)
5627 if ac_fn_c_try_compile
"$LINENO"; then :
5628 ac_cv_sys_file_offset_bits
=64; break
5630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5631 ac_cv_sys_file_offset_bits
=unknown
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5636 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5637 case $ac_cv_sys_file_offset_bits in #(
5640 cat >>confdefs.h
<<_ACEOF
5641 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5646 if test $ac_cv_sys_file_offset_bits = unknown
; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5648 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5649 if test "${ac_cv_sys_large_files+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5656 /* Check that off_t can represent 2**63 - 1 correctly.
5657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5658 since some C++ compilers masquerading as C compilers
5659 incorrectly reject 9223372036854775807. */
5660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5662 && LARGE_OFF_T % 2147483647 == 1)
5672 if ac_fn_c_try_compile
"$LINENO"; then :
5673 ac_cv_sys_large_files
=no
; break
5675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #define _LARGE_FILES 1
5679 #include <sys/types.h>
5680 /* Check that off_t can represent 2**63 - 1 correctly.
5681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5682 since some C++ compilers masquerading as C compilers
5683 incorrectly reject 9223372036854775807. */
5684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5686 && LARGE_OFF_T % 2147483647 == 1)
5696 if ac_fn_c_try_compile
"$LINENO"; then :
5697 ac_cv_sys_large_files
=1; break
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 ac_cv_sys_large_files
=unknown
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5705 $as_echo "$ac_cv_sys_large_files" >&6; }
5706 case $ac_cv_sys_large_files in #(
5709 cat >>confdefs.h
<<_ACEOF
5710 #define _LARGE_FILES $ac_cv_sys_large_files
5719 # sizeof(char) is 1 by definition.
5720 # The cast to long int works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5725 $as_echo_n "checking size of void *... " >&6; }
5726 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5729 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5732 if test "$ac_cv_type_void_p" = yes; then
5733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5735 { as_fn_set_status
77
5736 as_fn_error
"cannot compute sizeof (void *)
5737 See \`config.log' for more details." "$LINENO" 5; }; }
5739 ac_cv_sizeof_void_p
=0
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5745 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5749 cat >>confdefs.h
<<_ACEOF
5750 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5754 # The cast to long int works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5759 $as_echo_n "checking size of short... " >&6; }
5760 if test "${ac_cv_sizeof_short+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5766 if test "$ac_cv_type_short" = yes; then
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 { as_fn_set_status
77
5770 as_fn_error
"cannot compute sizeof (short)
5771 See \`config.log' for more details." "$LINENO" 5; }; }
5773 ac_cv_sizeof_short
=0
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5779 $as_echo "$ac_cv_sizeof_short" >&6; }
5783 cat >>confdefs.h
<<_ACEOF
5784 #define SIZEOF_SHORT $ac_cv_sizeof_short
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5793 $as_echo_n "checking size of int... " >&6; }
5794 if test "${ac_cv_sizeof_int+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5797 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5800 if test "$ac_cv_type_int" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status
77
5804 as_fn_error
"cannot compute sizeof (int)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5813 $as_echo "$ac_cv_sizeof_int" >&6; }
5817 cat >>confdefs.h
<<_ACEOF
5818 #define SIZEOF_INT $ac_cv_sizeof_int
5822 # The cast to long int works around a bug in the HP C Compiler
5823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5825 # This bug is HP SR number 8606223364.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5827 $as_echo_n "checking size of long... " >&6; }
5828 if test "${ac_cv_sizeof_long+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5834 if test "$ac_cv_type_long" = yes; then
5835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5837 { as_fn_set_status
77
5838 as_fn_error
"cannot compute sizeof (long)
5839 See \`config.log' for more details." "$LINENO" 5; }; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5847 $as_echo "$ac_cv_sizeof_long" >&6; }
5851 cat >>confdefs.h
<<_ACEOF
5852 #define SIZEOF_LONG $ac_cv_sizeof_long
5856 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5857 if test "x$ac_cv_type_long_long" = x
""yes; then :
5859 cat >>confdefs.h
<<_ACEOF
5860 #define HAVE_LONG_LONG 1
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5868 $as_echo_n "checking size of long long... " >&6; }
5869 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5875 if test "$ac_cv_type_long_long" = yes; then
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status
77
5879 as_fn_error
"cannot compute sizeof (long long)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5882 ac_cv_sizeof_long_long
=0
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5888 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5892 cat >>confdefs.h
<<_ACEOF
5893 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5899 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5900 if test "x$ac_cv_type___int64" = x
""yes; then :
5902 cat >>confdefs.h
<<_ACEOF
5903 #define HAVE___INT64 1
5906 # The cast to long int works around a bug in the HP C Compiler
5907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5909 # This bug is HP SR number 8606223364.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5911 $as_echo_n "checking size of __int64... " >&6; }
5912 if test "${ac_cv_sizeof___int64+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5915 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5918 if test "$ac_cv_type___int64" = yes; then
5919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 { as_fn_set_status
77
5922 as_fn_error
"cannot compute sizeof (__int64)
5923 See \`config.log' for more details." "$LINENO" 5; }; }
5925 ac_cv_sizeof___int64
=0
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5931 $as_echo "$ac_cv_sizeof___int64" >&6; }
5935 cat >>confdefs.h
<<_ACEOF
5936 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5942 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5943 case $ac_cv_c_int8_t in #(
5947 cat >>confdefs.h
<<_ACEOF
5948 #define int8_t $ac_cv_c_int8_t
5953 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5954 case $ac_cv_c_int16_t in #(
5958 cat >>confdefs.h
<<_ACEOF
5959 #define int16_t $ac_cv_c_int16_t
5964 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5965 case $ac_cv_c_int32_t in #(
5969 cat >>confdefs.h
<<_ACEOF
5970 #define int32_t $ac_cv_c_int32_t
5975 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5976 case $ac_cv_c_int64_t in #(
5980 cat >>confdefs.h
<<_ACEOF
5981 #define int64_t $ac_cv_c_int64_t
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5988 $as_echo_n "checking for long long int... " >&6; }
5989 if test "${ac_cv_type_long_long_int+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5995 /* For now, do not test the preprocessor; as of 2007 there are too many
5996 implementations with broken preprocessors. Perhaps this can
5997 be revisited in 2012. In the meantime, code should not expect
5998 #if to work with literals wider than 32 bits. */
5999 /* Test literals. */
6000 long long int ll = 9223372036854775807ll;
6001 long long int nll = -9223372036854775807LL;
6002 unsigned long long int ull = 18446744073709551615ULL;
6003 /* Test constant expressions. */
6004 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6006 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6012 /* Test availability of runtime routines for shift and division. */
6013 long long int llmax = 9223372036854775807ll;
6014 unsigned long long int ullmax = 18446744073709551615ull;
6015 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6016 | (llmax / ll) | (llmax % ll)
6017 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6018 | (ullmax / ull) | (ullmax % ull));
6024 if ac_fn_c_try_link
"$LINENO"; then :
6025 if test "$cross_compiling" = yes; then :
6026 ac_cv_type_long_long_int
=yes
6028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6033 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6034 # define LLONG_MAX (HALF - 1 + HALF)
6039 long long int n = 1;
6043 long long int m = n << i;
6046 if (LLONG_MAX / 2 < m)
6054 if ac_fn_c_try_run
"$LINENO"; then :
6055 ac_cv_type_long_long_int
=yes
6057 ac_cv_type_long_long_int
=no
6059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6064 ac_cv_type_long_long_int
=no
6066 rm -f core conftest.err conftest.
$ac_objext \
6067 conftest
$ac_exeext conftest.
$ac_ext
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6070 $as_echo "$ac_cv_type_long_long_int" >&6; }
6071 if test $ac_cv_type_long_long_int = yes; then
6073 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6079 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6080 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6082 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6085 test $ac_cv_type_long_long_int = yes \
6086 && ac_type
='long long int' \
6087 || ac_type
='long int'
6089 cat >>confdefs.h
<<_ACEOF
6090 #define intmax_t $ac_type
6097 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6098 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6100 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6103 for ac_type
in 'int' 'long int' 'long long int'; do
6104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 $ac_includes_default
6110 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6117 if ac_fn_c_try_compile
"$LINENO"; then :
6119 cat >>confdefs.h
<<_ACEOF
6120 #define intptr_t $ac_type
6125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6126 test -z "$ac_type" && break
6131 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6132 case $ac_cv_c_uint8_t in #(
6136 $as_echo "#define _UINT8_T 1" >>confdefs.h
6139 cat >>confdefs.h
<<_ACEOF
6140 #define uint8_t $ac_cv_c_uint8_t
6145 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6146 case $ac_cv_c_uint16_t in #(
6151 cat >>confdefs.h
<<_ACEOF
6152 #define uint16_t $ac_cv_c_uint16_t
6157 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6158 case $ac_cv_c_uint32_t in #(
6162 $as_echo "#define _UINT32_T 1" >>confdefs.h
6165 cat >>confdefs.h
<<_ACEOF
6166 #define uint32_t $ac_cv_c_uint32_t
6171 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6172 case $ac_cv_c_uint64_t in #(
6176 $as_echo "#define _UINT64_T 1" >>confdefs.h
6179 cat >>confdefs.h
<<_ACEOF
6180 #define uint64_t $ac_cv_c_uint64_t
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6187 $as_echo_n "checking for unsigned long long int... " >&6; }
6188 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6194 /* For now, do not test the preprocessor; as of 2007 there are too many
6195 implementations with broken preprocessors. Perhaps this can
6196 be revisited in 2012. In the meantime, code should not expect
6197 #if to work with literals wider than 32 bits. */
6198 /* Test literals. */
6199 long long int ll = 9223372036854775807ll;
6200 long long int nll = -9223372036854775807LL;
6201 unsigned long long int ull = 18446744073709551615ULL;
6202 /* Test constant expressions. */
6203 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6205 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6211 /* Test availability of runtime routines for shift and division. */
6212 long long int llmax = 9223372036854775807ll;
6213 unsigned long long int ullmax = 18446744073709551615ull;
6214 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6215 | (llmax / ll) | (llmax % ll)
6216 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6217 | (ullmax / ull) | (ullmax % ull));
6223 if ac_fn_c_try_link
"$LINENO"; then :
6224 ac_cv_type_unsigned_long_long_int
=yes
6226 ac_cv_type_unsigned_long_long_int
=no
6228 rm -f core conftest.err conftest.
$ac_objext \
6229 conftest
$ac_exeext conftest.
$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6232 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6233 if test $ac_cv_type_unsigned_long_long_int = yes; then
6235 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6241 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6244 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6247 test $ac_cv_type_unsigned_long_long_int = yes \
6248 && ac_type
='unsigned long long int' \
6249 || ac_type
='unsigned long int'
6251 cat >>confdefs.h
<<_ACEOF
6252 #define uintmax_t $ac_type
6259 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6262 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6265 for ac_type
in 'unsigned int' 'unsigned long int' \
6266 'unsigned long long int'; do
6267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 $ac_includes_default
6273 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6280 if ac_fn_c_try_compile
"$LINENO"; then :
6282 cat >>confdefs.h
<<_ACEOF
6283 #define uintptr_t $ac_type
6288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 test -z "$ac_type" && break
6307 # ---------------------
6308 # Warnings and checking
6309 # ---------------------
6311 # Check $CC warning features (if it's GCC).
6312 # We want to use -pedantic, but we don't want warnings about
6315 # * overlong strings
6316 # So, we only use -pedantic if we can disable those warnings.
6319 save_CFLAGS
="$CFLAGS"
6320 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6321 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6324 $as_echo_n "checking whether $CC supports $option... " >&6; }
6325 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6326 $as_echo_n "(cached) " >&6
6329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6340 if ac_fn_c_try_compile
"$LINENO"; then :
6341 eval "$as_acx_Woption=yes"
6343 eval "$as_acx_Woption=no"
6345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6348 eval ac_res
=\$
$as_acx_Woption
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6350 $as_echo "$ac_res" >&6; }
6351 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6352 loose_warn
="$loose_warn${loose_warn:+ }$option"
6355 CFLAGS
="$save_CFLAGS"
6358 save_CFLAGS
="$CFLAGS"
6359 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6360 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6363 $as_echo_n "checking whether $CC supports $option... " >&6; }
6364 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6365 $as_echo_n "(cached) " >&6
6368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6379 if ac_fn_c_try_compile
"$LINENO"; then :
6380 eval "$as_acx_Woption=yes"
6382 eval "$as_acx_Woption=no"
6384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6387 eval ac_res
=\$
$as_acx_Woption
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6389 $as_echo "$ac_res" >&6; }
6390 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6391 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6394 CFLAGS
="$save_CFLAGS"
6397 save_CFLAGS
="$CFLAGS"
6398 for option
in -Wmissing-format-attribute; do
6399 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6402 $as_echo_n "checking whether $CC supports $option... " >&6; }
6403 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6404 $as_echo_n "(cached) " >&6
6407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6418 if ac_fn_c_try_compile
"$LINENO"; then :
6419 eval "$as_acx_Woption=yes"
6421 eval "$as_acx_Woption=no"
6423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6426 eval ac_res
=\$
$as_acx_Woption
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6428 $as_echo "$ac_res" >&6; }
6429 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6430 strict_warn
="$strict_warn${strict_warn:+ }$option"
6433 CFLAGS
="$save_CFLAGS"
6436 save_CFLAGS
="$CFLAGS"
6437 for option
in -Wold-style-definition -Wc++-compat; do
6438 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6441 $as_echo_n "checking whether $CC supports $option... " >&6; }
6442 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6443 $as_echo_n "(cached) " >&6
6446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6457 if ac_fn_c_try_compile
"$LINENO"; then :
6458 eval "$as_acx_Woption=yes"
6460 eval "$as_acx_Woption=no"
6462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6465 eval ac_res
=\$
$as_acx_Woption
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6467 $as_echo "$ac_res" >&6; }
6468 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6469 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6472 CFLAGS
="$save_CFLAGS"
6474 if test "$GCC" = yes; then :
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6476 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6477 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6480 save_CFLAGS
="$CFLAGS"
6481 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6493 if ac_fn_c_try_compile
"$LINENO"; then :
6494 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6496 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6499 CFLAGS
="$save_CFLAGS"
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6502 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6503 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6504 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6509 # Check whether --enable-werror-always was given.
6510 if test "${enable_werror_always+set}" = set; then :
6511 enableval
=$enable_werror_always;
6513 enable_werror_always
=no
6516 if test $enable_werror_always = yes; then :
6517 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6522 # The above macros do nothing if the compiler is not GCC. However, the
6523 # Makefile has more goo to add other flags, so these variables are used
6524 # to enable warnings only for GCC.
6527 if test "x$GCC" = "xyes"; then
6528 warn_cflags
='$(GCC_WARN_CFLAGS)'
6529 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6534 # Enable expensive internal checks
6536 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6540 # Check whether --enable-checking was given.
6541 if test "${enable_checking+set}" = set; then :
6542 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6545 # Determine the default checks.
6546 if test x
$is_release = x
; then
6547 ac_checking_flags
=yes
6549 ac_checking_flags
=release
6553 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6554 for check
in release
$ac_checking_flags
6557 # these set all the flags to specific states
6558 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6559 ac_fold_checking
= ; ac_gc_checking
=1 ;
6560 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6561 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6562 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6563 ac_types_checking
=1 ;;
6564 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6565 ac_fold_checking
= ; ac_gc_checking
= ;
6566 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6567 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6568 ac_tree_checking
= ; ac_valgrind_checking
= ;
6569 ac_types_checking
= ;;
6570 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6571 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6572 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6573 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6574 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6575 ac_types_checking
=1 ;;
6576 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6577 ac_fold_checking
= ; ac_gc_checking
= ;
6578 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6579 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6580 ac_tree_checking
= ; ac_valgrind_checking
= ;
6581 ac_types_checking
= ;;
6582 # these enable particular checks
6583 assert
) ac_assert_checking
=1 ;;
6584 df
) ac_df_checking
=1 ;;
6585 fold) ac_fold_checking
=1 ;;
6586 gc
) ac_gc_checking
=1 ;;
6587 gcac
) ac_gc_always_collect
=1 ;;
6588 gimple
) ac_gimple_checking
=1 ;;
6589 misc
) ac_checking
=1 ;;
6590 rtl
) ac_rtl_checking
=1 ;;
6591 rtlflag
) ac_rtlflag_checking
=1 ;;
6592 runtime
) ac_runtime_checking
=1 ;;
6593 tree
) ac_tree_checking
=1 ;;
6594 types
) ac_types_checking
=1 ;;
6595 valgrind
) ac_valgrind_checking
=1 ;;
6596 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6602 if test x
$ac_checking != x
; then
6604 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6606 nocommon_flag
=-fno-common
6609 if test x
$ac_df_checking != x
; then
6611 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6614 if test x
$ac_assert_checking != x
; then
6616 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6619 if test x
$ac_gimple_checking != x
; then
6621 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6625 if test x
$ac_runtime_checking != x
; then
6627 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6630 if test x
$ac_tree_checking != x
; then
6632 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6634 TREEBROWSER
=tree-browser.o
6636 if test x
$ac_types_checking != x
; then
6638 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6642 if test x
$ac_rtl_checking != x
; then
6644 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6647 if test x
$ac_rtlflag_checking != x
; then
6649 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6652 if test x
$ac_gc_checking != x
; then
6654 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6657 if test x
$ac_gc_always_collect != x
; then
6659 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6662 if test x
$ac_fold_checking != x
; then
6664 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6667 valgrind_path_defines
=
6670 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6671 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6679 if test x
$ac_valgrind_checking != x
; then
6680 # It is certainly possible that there's valgrind but no valgrind.h.
6681 # GCC relies on making annotations so we must have both.
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6683 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <valgrind/memcheck.h>
6687 #ifndef VALGRIND_DISCARD
6688 #error VALGRIND_DISCARD not defined
6691 if ac_fn_c_try_cpp
"$LINENO"; then :
6692 gcc_cv_header_valgrind_memcheck_h
=yes
6694 gcc_cv_header_valgrind_memcheck_h
=no
6696 rm -f conftest.err conftest.
$ac_ext
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6698 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6700 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 #include <memcheck.h>
6704 #ifndef VALGRIND_DISCARD
6705 #error VALGRIND_DISCARD not defined
6708 if ac_fn_c_try_cpp
"$LINENO"; then :
6709 gcc_cv_header_memcheck_h
=yes
6711 gcc_cv_header_memcheck_h
=no
6713 rm -f conftest.err conftest.
$ac_ext
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6715 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6717 # Prepare PATH_SEPARATOR.
6718 # The user is always right.
6719 if test "${PATH_SEPARATOR+set}" != set; then
6720 echo "#! /bin/sh" >conf$$.sh
6721 echo "exit 0" >>conf$$.sh
6723 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6731 # Find out how to test for executable files. Don't use a zero-byte file,
6732 # as systems may use methods other than mode bits to determine executability.
6733 cat >conf$$.
file <<_ASEOF
6737 chmod +x conf$$.
file
6738 if test -x conf$$.
file >/dev
/null
2>&1; then
6739 ac_executable_p
="test -x"
6741 ac_executable_p
="test -f"
6745 # Extract the first word of "valgrind", so it can be a program name with args.
6746 set dummy valgrind
; ac_word
=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6752 case "$valgrind_path" in
6754 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6757 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6758 for ac_dir
in $PATH; do
6760 test -z "$ac_dir" && ac_dir
=.
6761 for ac_exec_ext
in '' $ac_executable_extensions; do
6762 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6763 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6764 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6774 valgrind_path
="$ac_cv_path_valgrind_path"
6775 if test -n "$valgrind_path"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6777 $as_echo "$valgrind_path" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6783 if test "x$valgrind_path" = "x" \
6784 ||
(test $have_valgrind_h = no \
6785 && test $gcc_cv_header_memcheck_h = no \
6786 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6787 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6789 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6790 valgrind_command
="$valgrind_path -q"
6792 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6794 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6796 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6799 if test $gcc_cv_header_memcheck_h = yes; then
6801 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6808 # Enable code coverage collection
6809 # Check whether --enable-coverage was given.
6810 if test "${enable_coverage+set}" = set; then :
6811 enableval
=$enable_coverage; case "${enableval}" in
6813 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6816 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6819 # a.k.a. --disable-coverage
6823 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6832 # Check whether --enable-gather-detailed-mem-stats was given.
6833 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6834 enableval
=$enable_gather_detailed_mem_stats;
6836 enable_gather_detailed_mem_stats
=no
6839 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6841 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6845 # -------------------------------
6846 # Miscenalleous configure options
6847 # -------------------------------
6849 # See if we are building gcc with C++.
6850 # Check whether --enable-build-with-cxx was given.
6851 if test "${enable_build_with_cxx+set}" = set; then :
6852 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6854 ENABLE_BUILD_WITH_CXX
=no
6858 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6860 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6866 # Check whether --with-stabs was given.
6867 if test "${with_stabs+set}" = set; then :
6868 withval
=$with_stabs; stabs
="$with_stabs"
6874 # Determine whether or not multilibs are enabled.
6875 # Check whether --enable-multilib was given.
6876 if test "${enable_multilib+set}" = set; then :
6877 enableval
=$enable_multilib;
6884 # Enable __cxa_atexit for C++.
6885 # Check whether --enable-__cxa_atexit was given.
6886 if test "${enable___cxa_atexit+set}" = set; then :
6887 enableval
=$enable___cxa_atexit;
6891 # Enable C extension for decimal float if target supports it.
6893 # Check whether --enable-decimal-float was given.
6894 if test "${enable_decimal_float+set}" = set; then :
6895 enableval
=$enable_decimal_float;
6896 case $enable_decimal_float in
6897 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6898 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6899 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6905 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6906 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6908 enable_decimal_float
=yes
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6912 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6913 enable_decimal_float
=no
6920 # x86's use BID format instead of DPD
6921 case x
$enable_decimal_float in
6924 i?
86*-*-* | x86_64
*-*-*)
6925 enable_decimal_float
=bid
6928 enable_decimal_float
=dpd
6931 default_decimal_float
=$enable_decimal_float
6934 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6935 # dependency on libdecnumber.
6936 default_decimal_float
=dpd
6943 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6945 cat >>confdefs.h
<<_ACEOF
6946 #define ENABLE_DECIMAL_FLOAT $dfp
6950 # Use default_decimal_float for dependency.
6951 enable_decimal_float
=$default_decimal_float
6953 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6955 cat >>confdefs.h
<<_ACEOF
6956 #define ENABLE_DECIMAL_BID_FORMAT $bid
6960 # Enable C extension for fixed-point arithmetic.
6961 # Check whether --enable-fixed-point was given.
6962 if test "${enable_fixed_point+set}" = set; then :
6963 enableval
=$enable_fixed_point;
6968 enable_fixed_point
=yes
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6975 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6976 enable_fixed_point
=no
6979 enable_fixed_point
=yes
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6985 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6986 enable_fixed_point
=no
6994 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6996 cat >>confdefs.h
<<_ACEOF
6997 #define ENABLE_FIXED_POINT $fixedpoint
7002 # Pass with no value to take the default
7003 # Pass with a value to specify a thread package
7004 # Check whether --enable-threads was given.
7005 if test "${enable_threads+set}" = set; then :
7006 enableval
=$enable_threads;
7012 # Check whether --enable-tls was given.
7013 if test "${enable_tls+set}" = set; then :
7014 enableval
=$enable_tls;
7017 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7018 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7026 # Check whether --enable-objc-gc was given.
7027 if test "${enable_objc_gc+set}" = set; then :
7028 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7039 # Check whether --with-dwarf2 was given.
7040 if test "${with_dwarf2+set}" = set; then :
7041 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7047 # Check whether --enable-shared was given.
7048 if test "${enable_shared+set}" = set; then :
7049 enableval
=$enable_shared;
7050 case $enable_shared in
7054 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7055 for pkg
in $enableval; do
7056 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7071 # Check whether --with-build-sysroot was given.
7072 if test "${with_build_sysroot+set}" = set; then :
7073 withval
=$with_build_sysroot;
7078 # Check whether --with-sysroot was given.
7079 if test "${with_sysroot+set}" = set; then :
7080 withval
=$with_sysroot;
7081 case ${with_sysroot} in
7082 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7083 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7086 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7087 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7089 if test "x$prefix" = xNONE
; then
7090 test_prefix
=/usr
/local
7094 if test "x$exec_prefix" = xNONE
; then
7095 test_exec_prefix
=$test_prefix
7097 test_exec_prefix
=$exec_prefix
7099 case ${TARGET_SYSTEM_ROOT} in
7100 "${test_prefix}"|
"${test_prefix}/"*|\
7101 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7102 '${prefix}'|
'${prefix}/'*|\
7103 '${exec_prefix}'|
'${exec_prefix}/'*)
7104 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7105 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7112 TARGET_SYSTEM_ROOT_DEFINE
=
7113 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7122 # Check whether --with-specs was given.
7123 if test "${with_specs+set}" = set; then :
7124 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7134 # Check whether --with-pkgversion was given.
7135 if test "${with_pkgversion+set}" = set; then :
7136 withval
=$with_pkgversion; case "$withval" in
7137 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7139 *) PKGVERSION
="($withval) " ;;
7150 # Check whether --with-bugurl was given.
7151 if test "${with_bugurl+set}" = set; then :
7152 withval
=$with_bugurl; case "$withval" in
7153 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7156 *) BUGURL
="$withval"
7160 BUGURL
="http://gcc.gnu.org/bugs.html"
7170 REPORT_BUGS_TO
="<$BUGURL>"
7171 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7178 # Sanity check enable_languages in case someone does not run the toplevel
7179 # configure # script.
7180 # Check whether --enable-languages was given.
7181 if test "${enable_languages+set}" = set; then :
7182 enableval
=$enable_languages; case ,${enable_languages}, in
7184 # go safe -- we cannot be much sure without the toplevel
7186 # analysis of which target libs are present and usable
7190 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7195 enable_languages
=c
,${enable_languages}
7204 # Check whether --with-multilib-list was given.
7205 if test "${with_multilib_list+set}" = set; then :
7206 withval
=$with_multilib_list; :
7208 with_multilib_list
=default
7212 # -------------------------
7213 # Checks for other programs
7214 # -------------------------
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7219 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7220 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7221 $as_echo_n "(cached) " >&6
7223 cat >conftest.
make <<\_ACEOF
7226 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7231 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7233 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7237 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7239 $as_echo "yes" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 SET_MAKE
="MAKE=${MAKE-make}"
7248 # Find some useful tools
7249 for ac_prog
in gawk mawk nawk
awk
7251 # Extract the first word of "$ac_prog", so it can be a program name with args.
7252 set dummy
$ac_prog; ac_word
=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if test "${ac_cv_prog_AWK+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7258 if test -n "$AWK"; then
7259 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir
=.
7266 for ac_exec_ext
in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_prog_AWK
="$ac_prog"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 if test -n "$AWK"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7281 $as_echo "$AWK" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7288 test -n "$AWK" && break
7291 # We need awk to create options.c and options.h.
7292 # Bail out if it's missing.
7294 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7298 $as_echo_n "checking whether ln -s works... " >&6; }
7299 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7300 $as_echo_n "(cached) " >&6
7302 rm -f conftestdata_t
7303 echo >conftestdata_f
7304 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7306 gcc_cv_prog_LN_S
="ln -s"
7308 if ln conftestdata_f conftestdata_t
2>/dev
/null
7312 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7314 gcc_cv_prog_LN_S
="cp -p"
7320 rm -f conftestdata_f conftestdata_t
7323 LN_S
="$gcc_cv_prog_LN_S"
7324 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7328 if test "$gcc_cv_prog_LN_S" = "ln"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7330 $as_echo "no, using ln" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7333 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7338 $as_echo_n "checking whether ln works... " >&6; }
7339 if test "${acx_cv_prog_LN+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7342 rm -f conftestdata_t
7343 echo >conftestdata_f
7344 if ln conftestdata_f conftestdata_t
2>/dev
/null
7350 rm -f conftestdata_f conftestdata_t
7353 if test $acx_cv_prog_LN = no
; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7356 $as_echo "no, using $LN" >&6; }
7358 LN
="$acx_cv_prog_LN"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7360 $as_echo "yes" >&6; }
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7365 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$RANLIB"; then
7372 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir
=.
7379 for ac_exec_ext
in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 RANLIB
=$ac_cv_prog_RANLIB
7392 if test -n "$RANLIB"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7394 $as_echo "$RANLIB" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7402 if test -z "$ac_cv_prog_RANLIB"; then
7403 ac_ct_RANLIB
=$RANLIB
7404 # Extract the first word of "ranlib", so it can be a program name with args.
7405 set dummy ranlib
; ac_word
=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$ac_ct_RANLIB"; then
7412 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir
=.
7419 for ac_exec_ext
in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7432 if test -n "$ac_ct_RANLIB"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7434 $as_echo "$ac_ct_RANLIB" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7440 if test "x$ac_ct_RANLIB" = x
; then
7443 case $cross_compiling:$ac_tool_warned in
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned
=yes ;;
7449 RANLIB
=$ac_ct_RANLIB
7452 RANLIB
="$ac_cv_prog_RANLIB"
7457 # By default, the Darwin ranlib will not treat common symbols as
7458 # definitions when building the archive table of contents. Other
7459 # ranlibs do that; pass an option to the Darwin ranlib that makes
7460 # it behave similarly.
7468 # Find a good install program. We prefer a C program (faster),
7469 # so one script is as good as another. But avoid the broken or
7470 # incompatible versions:
7471 # SysV /etc/install, /usr/sbin/install
7472 # SunOS /usr/etc/install
7473 # IRIX /sbin/install
7475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7477 # ./install, which can be erroneously created by make from ./install.sh.
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7479 $as_echo_n "checking for a BSD compatible install... " >&6; }
7480 if test -z "$INSTALL"; then
7481 if test "${ac_cv_path_install+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7484 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7485 for ac_dir
in $PATH; do
7486 # Account for people who put trailing slashes in PATH elements.
7488 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7490 # OSF1 and SCO ODT 3.0 have their own names for install.
7491 for ac_prog
in ginstall scoinst
install; do
7492 if test -f $ac_dir/$ac_prog; then
7493 if test $ac_prog = install &&
7494 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7495 # AIX install. It has an incompatible calling convention.
7496 # OSF/1 installbsd also uses dspmsg, but is usable.
7499 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7510 if test "${ac_cv_path_install+set}" = set; then
7511 INSTALL
="$ac_cv_path_install"
7513 # As a last resort, use the slow shell script. We don't cache a
7514 # path for INSTALL within a source directory, because that will
7515 # break other packages using the cache if that directory is
7516 # removed, or if the path is relative.
7517 INSTALL
="$ac_install_sh"
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7521 $as_echo "$INSTALL" >&6; }
7523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7524 # It thinks the first close brace ends the variable substitution.
7525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7527 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7530 # See if cmp has --ignore-initial.
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7532 $as_echo_n "checking for cmp's capabilities... " >&6; }
7533 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7538 gcc_cv_prog_cmp_skip
=slowcompare
7539 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7540 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7543 gcc_cv_prog_cmp_skip
=gnucompare
7546 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7547 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7548 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7551 gcc_cv_prog_cmp_skip
=fastcompare
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7559 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7560 make_compare_target
=$gcc_cv_prog_cmp_skip
7564 # See if we have the mktemp command.
7565 # Extract the first word of "mktemp", so it can be a program name with args.
7566 set dummy mktemp
; ac_word
=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7570 $as_echo_n "(cached) " >&6
7572 if test -n "$have_mktemp_command"; then
7573 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir
=.
7580 for ac_exec_ext
in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_have_mktemp_command
="yes"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7593 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7594 if test -n "$have_mktemp_command"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7596 $as_echo "$have_mktemp_command" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7604 # See if makeinfo has been installed and is modern enough
7605 # that we can use it.
7607 # Extract the first word of "makeinfo", so it can be a program name with args.
7608 set dummy makeinfo
; ac_word
=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7614 if test -n "$MAKEINFO"; then
7615 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir
=.
7622 for ac_exec_ext
in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_prog_MAKEINFO
="makeinfo"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 MAKEINFO
=$ac_cv_prog_MAKEINFO
7635 if test -n "$MAKEINFO"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7637 $as_echo "$MAKEINFO" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7644 if test -n "$MAKEINFO"; then
7645 # Found it, now check the version.
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7647 $as_echo_n "checking for modern makeinfo... " >&6; }
7648 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
7651 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7652 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7654 case $ac_prog_version in
7655 '') gcc_cv_prog_makeinfo_modern
=no
;;
7656 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7657 *) gcc_cv_prog_makeinfo_modern
=no
;;
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7662 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7664 gcc_cv_prog_makeinfo_modern
=no
7666 if test $gcc_cv_prog_makeinfo_modern = no
; then
7667 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7670 if test $gcc_cv_prog_makeinfo_modern = no
; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&5
7674 $as_echo "$as_me: WARNING:
7675 *** Makeinfo is missing or too old.
7676 *** Info documentation will not be built." >&2;}
7683 # Is pod2man recent enough to regenerate manpages?
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7685 $as_echo_n "checking for recent Pod::Man... " >&6; }
7686 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7688 $as_echo "yes" >&6; }
7689 GENERATED_MANPAGES
=generated-manpages
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7697 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7702 # Extract the first word of "$ac_prog", so it can be a program name with args.
7703 set dummy
$ac_prog; ac_word
=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_prog_FLEX+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7709 if test -n "$FLEX"; then
7710 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir
=.
7717 for ac_exec_ext
in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_prog_FLEX
="$ac_prog"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 FLEX
=$ac_cv_prog_FLEX
7730 if test -n "$FLEX"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7732 $as_echo "$FLEX" >&6; }
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7739 test -n "$FLEX" && break
7741 test -n "$FLEX" || FLEX
="$MISSING flex"
7745 for ac_prog
in bison
7747 # Extract the first word of "$ac_prog", so it can be a program name with args.
7748 set dummy
$ac_prog; ac_word
=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if test "${ac_cv_prog_BISON+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7754 if test -n "$BISON"; then
7755 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir
=.
7762 for ac_exec_ext
in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_BISON
="$ac_prog"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 BISON
=$ac_cv_prog_BISON
7775 if test -n "$BISON"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7777 $as_echo "$BISON" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7784 test -n "$BISON" && break
7786 test -n "$BISON" || BISON
="$MISSING bison"
7789 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7790 # check for build == host before using them.
7793 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7794 && test -d ..
/binutils
; then
7795 NM
='${objdir}/../binutils/nm-new'
7797 # Extract the first word of "nm", so it can be a program name with args.
7798 set dummy nm
; ac_word
=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_NM+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7804 if test -n "$NM"; then
7805 ac_cv_prog_NM
="$NM" # Let the user override the test.
7807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir
=.
7812 for ac_exec_ext
in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7826 if test -n "$NM"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7828 $as_echo "$NM" >&6; }
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7838 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7839 && test -d ..
/binutils
; then
7840 AR
='${objdir}/../binutils/ar'
7842 # Extract the first word of "ar", so it can be a program name with args.
7843 set dummy
ar; ac_word
=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_AR+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7849 if test -n "$AR"; then
7850 ac_cv_prog_AR
="$AR" # Let the user override the test.
7852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7856 test -z "$as_dir" && as_dir
=.
7857 for ac_exec_ext
in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7871 if test -n "$AR"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7873 $as_echo "$AR" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7883 # --------------------
7884 # Checks for C headers
7885 # --------------------
7887 # Need to reject headers which give warnings, so that the -Werror bootstrap
7888 # works later. *sigh* This needs to come before all header checks.
7890 ac_c_preproc_warn_flag
=yes
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7893 $as_echo_n "checking for ANSI C header files... " >&6; }
7894 if test "${ac_cv_header_stdc+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7912 if ac_fn_c_try_compile
"$LINENO"; then :
7913 ac_cv_header_stdc
=yes
7915 ac_cv_header_stdc
=no
7917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7919 if test $ac_cv_header_stdc = yes; then
7920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7927 $EGREP "memchr" >/dev
/null
2>&1; then :
7930 ac_cv_header_stdc
=no
7936 if test $ac_cv_header_stdc = yes; then
7937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7944 $EGREP "free" >/dev
/null
2>&1; then :
7947 ac_cv_header_stdc
=no
7953 if test $ac_cv_header_stdc = yes; then
7954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7955 if test "$cross_compiling" = yes; then :
7958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7962 #if ((' ' & 0x0FF) == 0x020)
7963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7966 # define ISLOWER(c) \
7967 (('a' <= (c) && (c) <= 'i') \
7968 || ('j' <= (c) && (c) <= 'r') \
7969 || ('s' <= (c) && (c) <= 'z'))
7970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7978 for (i = 0; i < 256; i++)
7979 if (XOR (islower (i), ISLOWER (i))
7980 || toupper (i) != TOUPPER (i))
7985 if ac_fn_c_try_run
"$LINENO"; then :
7988 ac_cv_header_stdc
=no
7990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7997 $as_echo "$ac_cv_header_stdc" >&6; }
7998 if test $ac_cv_header_stdc = yes; then
8000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8005 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8006 if test "${ac_cv_header_time+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <sys/time.h>
8018 if ((struct tm *) 0)
8024 if ac_fn_c_try_compile
"$LINENO"; then :
8025 ac_cv_header_time
=yes
8027 ac_cv_header_time
=no
8029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8032 $as_echo "$ac_cv_header_time" >&6; }
8033 if test $ac_cv_header_time = yes; then
8035 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8040 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8041 if test "${gcc_cv_header_string+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8047 #include <strings.h>
8056 if ac_fn_c_try_compile
"$LINENO"; then :
8057 gcc_cv_header_string
=yes
8059 gcc_cv_header_string
=no
8061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8064 $as_echo "$gcc_cv_header_string" >&6; }
8065 if test $gcc_cv_header_string = yes; then
8067 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8072 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8073 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 #include <sys/types.h>
8079 #include <sys/wait.h>
8081 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8084 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8092 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8097 if ac_fn_c_try_compile
"$LINENO"; then :
8098 ac_cv_header_sys_wait_h
=yes
8100 ac_cv_header_sys_wait_h
=no
8102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8105 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8106 if test $ac_cv_header_sys_wait_h = yes; then
8108 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8112 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8113 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8114 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8115 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8117 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8118 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8119 eval as_val
=\$
$as_ac_Header
8120 if test "x$as_val" = x
""yes; then :
8121 cat >>confdefs.h
<<_ACEOF
8122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8129 # Check for thread headers.
8130 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8131 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8137 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8138 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8145 # These tests can't be done till we know if we have limits.h.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8147 $as_echo_n "checking for CHAR_BIT... " >&6; }
8148 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 #ifdef HAVE_LIMITS_H
8160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8161 $EGREP "found" >/dev
/null
2>&1; then :
8162 gcc_cv_decl_char_bit
=yes
8164 gcc_cv_decl_char_bit
=no
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8171 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8172 if test $gcc_cv_decl_char_bit = no
; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8174 $as_echo_n "checking number of bits in a byte... " >&6; }
8175 if test "${gcc_cv_c_nbby+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8180 while test $i -lt 65; do
8181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8188 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8189 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8195 if ac_fn_c_try_compile
"$LINENO"; then :
8196 gcc_cv_c_nbby
=$i; break
8198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8201 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8205 $as_echo "$gcc_cv_c_nbby" >&6; }
8206 if test $gcc_cv_c_nbby = failed
; then
8207 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8210 cat >>confdefs.h
<<_ACEOF
8211 #define CHAR_BIT $gcc_cv_c_nbby
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8217 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8218 if test "${ac_cv_c_bigendian+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8221 ac_cv_c_bigendian
=unknown
8222 # See if we're dealing with a universal compiler.
8223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #ifndef __APPLE_CC__
8226 not a universal capable compiler
8231 if ac_fn_c_try_compile
"$LINENO"; then :
8233 # Check for potential -arch flags. It is not universal unless
8234 # there are at least two -arch flags with different values.
8237 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8238 if test -n "$ac_prev"; then
8240 i?
86 | x86_64 | ppc | ppc64
)
8241 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8244 ac_cv_c_bigendian
=universal
8250 elif test "x$ac_word" = "x-arch"; then
8255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8256 if test $ac_cv_c_bigendian = unknown
; then
8257 # See if sys/param.h defines the BYTE_ORDER macro.
8258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 #include <sys/types.h>
8261 #include <sys/param.h>
8266 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8267 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8276 if ac_fn_c_try_compile
"$LINENO"; then :
8277 # It does; now see whether it defined to BIG_ENDIAN or not.
8278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #include <sys/types.h>
8281 #include <sys/param.h>
8286 #if BYTE_ORDER != BIG_ENDIAN
8294 if ac_fn_c_try_compile
"$LINENO"; then :
8295 ac_cv_c_bigendian
=yes
8297 ac_cv_c_bigendian
=no
8299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8303 if test $ac_cv_c_bigendian = unknown
; then
8304 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8312 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8320 if ac_fn_c_try_compile
"$LINENO"; then :
8321 # It does; now see whether it defined to _BIG_ENDIAN or not.
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8337 if ac_fn_c_try_compile
"$LINENO"; then :
8338 ac_cv_c_bigendian
=yes
8340 ac_cv_c_bigendian
=no
8342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8346 if test $ac_cv_c_bigendian = unknown
; then
8347 # Compile a test program.
8348 if test "$cross_compiling" = yes; then :
8349 # Try to guess by grepping values from an object file.
8350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 short int ascii_mm[] =
8353 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8354 short int ascii_ii[] =
8355 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8356 int use_ascii (int i) {
8357 return ascii_mm[i] + ascii_ii[i];
8359 short int ebcdic_ii[] =
8360 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8361 short int ebcdic_mm[] =
8362 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8363 int use_ebcdic (int i) {
8364 return ebcdic_mm[i] + ebcdic_ii[i];
8371 return use_ascii (foo) == use_ebcdic (foo);
8376 if ac_fn_c_try_compile
"$LINENO"; then :
8377 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8378 ac_cv_c_bigendian
=yes
8380 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8381 if test "$ac_cv_c_bigendian" = unknown
; then
8382 ac_cv_c_bigendian
=no
8384 # finding both strings is unlikely to happen, but who knows?
8385 ac_cv_c_bigendian
=unknown
8389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 $ac_includes_default
8398 /* Are we little or big endian? From Harbison&Steele. */
8402 char c[sizeof (long int)];
8405 return u.c[sizeof (long int) - 1] == 1;
8411 if ac_fn_c_try_run
"$LINENO"; then :
8412 ac_cv_c_bigendian
=no
8414 ac_cv_c_bigendian
=yes
8416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8423 $as_echo "$ac_cv_c_bigendian" >&6; }
8424 case $ac_cv_c_bigendian in #(
8426 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8432 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8436 as_fn_error
"unknown endianness
8437 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8441 # ----------------------
8442 # Checks for C++ headers
8443 # ----------------------
8446 ac_cpp
='$CXXCPP $CPPFLAGS'
8447 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8451 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8452 if test -z "$CXXCPP"; then
8453 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8456 # Double quotes because CXXCPP needs to be expanded
8457 for CXXCPP
in "$CXX -E" "/lib/cpp"
8460 for ac_cxx_preproc_warn_flag
in '' yes
8462 # Use a header file that comes with gcc, so configuring glibc
8463 # with a fresh cross-compiler works.
8464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465 # <limits.h> exists even on freestanding compilers.
8466 # On the NeXT, cc -E runs the code through the compiler's parser,
8467 # not just through cpp. "Syntax error" is here to catch this case.
8468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8471 # include <limits.h>
8473 # include <assert.h>
8477 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8480 # Broken: fails on valid input.
8483 rm -f conftest.err conftest.
$ac_ext
8485 # OK, works on sane cases. Now check whether nonexistent headers
8486 # can be detected and how.
8487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include <ac_nonexistent.h>
8491 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8492 # Broken: success on invalid input.
8495 # Passes both tests.
8499 rm -f conftest.err conftest.
$ac_ext
8502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8503 rm -f conftest.err conftest.
$ac_ext
8504 if $ac_preproc_ok; then :
8509 ac_cv_prog_CXXCPP
=$CXXCPP
8512 CXXCPP
=$ac_cv_prog_CXXCPP
8514 ac_cv_prog_CXXCPP
=$CXXCPP
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8517 $as_echo "$CXXCPP" >&6; }
8519 for ac_cxx_preproc_warn_flag
in '' yes
8521 # Use a header file that comes with gcc, so configuring glibc
8522 # with a fresh cross-compiler works.
8523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8524 # <limits.h> exists even on freestanding compilers.
8525 # On the NeXT, cc -E runs the code through the compiler's parser,
8526 # not just through cpp. "Syntax error" is here to catch this case.
8527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8530 # include <limits.h>
8532 # include <assert.h>
8536 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8539 # Broken: fails on valid input.
8542 rm -f conftest.err conftest.
$ac_ext
8544 # OK, works on sane cases. Now check whether nonexistent headers
8545 # can be detected and how.
8546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 #include <ac_nonexistent.h>
8550 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8551 # Broken: success on invalid input.
8554 # Passes both tests.
8558 rm -f conftest.err conftest.
$ac_ext
8561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8562 rm -f conftest.err conftest.
$ac_ext
8563 if $ac_preproc_ok; then :
8566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8569 See \`config.log' for more details." >&5
8570 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8571 See \`config.log' for more details." >&2;}; }
8575 ac_cpp
='$CPP $CPPFLAGS'
8576 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8577 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8578 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8582 ac_cpp
='$CXXCPP $CPPFLAGS'
8583 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8590 for ac_header
in unordered_map
8592 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8593 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8594 cat >>confdefs.h
<<_ACEOF
8595 #define HAVE_UNORDERED_MAP 1
8601 for ac_header
in tr1/unordered_map
8603 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8604 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8605 cat >>confdefs.h
<<_ACEOF
8606 #define HAVE_TR1_UNORDERED_MAP 1
8612 for ac_header
in ext
/hash_map
8614 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8615 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8616 cat >>confdefs.h
<<_ACEOF
8617 #define HAVE_EXT_HASH_MAP 1
8625 ac_cpp
='$CPP $CPPFLAGS'
8626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8636 # These libraries may be used by collect2.
8637 # We may need a special search path to get them linked.
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8639 $as_echo_n "checking for collect2 libraries... " >&6; }
8640 if test "${gcc_cv_collect2_libs+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8644 for libs
in '' -lld -lmld \
8645 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8646 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8652 /* Override any GCC internal prototype to avoid an error.
8653 Use char because int might match the return type of a GCC
8654 builtin and then its argument prototype would still apply. */
8667 if ac_fn_c_try_link
"$LINENO"; then :
8668 gcc_cv_collect2_libs
="$libs"; break
8670 rm -f core conftest.err conftest.
$ac_objext \
8671 conftest
$ac_exeext conftest.
$ac_ext
8674 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8677 $as_echo "$gcc_cv_collect2_libs" >&6; }
8678 case $gcc_cv_collect2_libs in
8680 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8684 # When building Ada code on Alpha, we need exc_resume which is usually in
8685 # -lexc. So test for it.
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8689 $as_echo_n "checking for library containing exc_resume... " >&6; }
8690 if test "${ac_cv_search_exc_resume+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8693 ac_func_search_save_LIBS
=$LIBS
8694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8697 /* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8707 return exc_resume ();
8712 for ac_lib
in '' exc
; do
8713 if test -z "$ac_lib"; then
8714 ac_res
="none required"
8717 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8719 if ac_fn_c_try_link
"$LINENO"; then :
8720 ac_cv_search_exc_resume
=$ac_res
8722 rm -f core conftest.err conftest.
$ac_objext \
8724 if test "${ac_cv_search_exc_resume+set}" = set; then :
8728 if test "${ac_cv_search_exc_resume+set}" = set; then :
8731 ac_cv_search_exc_resume
=no
8734 LIBS
=$ac_func_search_save_LIBS
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8737 $as_echo "$ac_cv_search_exc_resume" >&6; }
8738 ac_res
=$ac_cv_search_exc_resume
8739 if test "$ac_res" != no
; then :
8740 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8748 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8752 $as_echo_n "checking for library containing kstat_open... " >&6; }
8753 if test "${ac_cv_search_kstat_open+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8756 ac_func_search_save_LIBS
=$LIBS
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8760 /* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8770 return kstat_open ();
8775 for ac_lib
in '' kstat
; do
8776 if test -z "$ac_lib"; then
8777 ac_res
="none required"
8780 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8782 if ac_fn_c_try_link
"$LINENO"; then :
8783 ac_cv_search_kstat_open
=$ac_res
8785 rm -f core conftest.err conftest.
$ac_objext \
8787 if test "${ac_cv_search_kstat_open+set}" = set; then :
8791 if test "${ac_cv_search_kstat_open+set}" = set; then :
8794 ac_cv_search_kstat_open
=no
8797 LIBS
=$ac_func_search_save_LIBS
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8800 $as_echo "$ac_cv_search_kstat_open" >&6; }
8801 ac_res
=$ac_cv_search_kstat_open
8802 if test "$ac_res" != no
; then :
8803 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8807 EXTRA_GCC_LIBS
="$LIBS"
8811 # Some systems put ldexp and frexp in libm instead of libc; assume
8812 # they're both in the same place. jcf-dump needs them.
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8816 $as_echo_n "checking for library containing ldexp... " >&6; }
8817 if test "${ac_cv_search_ldexp+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
8820 ac_func_search_save_LIBS
=$LIBS
8821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8839 for ac_lib
in '' m
; do
8840 if test -z "$ac_lib"; then
8841 ac_res
="none required"
8844 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8846 if ac_fn_c_try_link
"$LINENO"; then :
8847 ac_cv_search_ldexp
=$ac_res
8849 rm -f core conftest.err conftest.
$ac_objext \
8851 if test "${ac_cv_search_ldexp+set}" = set; then :
8855 if test "${ac_cv_search_ldexp+set}" = set; then :
8858 ac_cv_search_ldexp
=no
8861 LIBS
=$ac_func_search_save_LIBS
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8864 $as_echo "$ac_cv_search_ldexp" >&6; }
8865 ac_res
=$ac_cv_search_ldexp
8866 if test "$ac_res" != no
; then :
8867 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8875 # Use <inttypes.h> only if it exists,
8876 # doesn't clash with <sys/types.h>, and declares intmax_t.
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8878 $as_echo_n "checking for inttypes.h... " >&6; }
8879 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include <sys/types.h>
8885 #include <inttypes.h>
8894 if ac_fn_c_try_compile
"$LINENO"; then :
8895 gcc_cv_header_inttypes_h
=yes
8897 gcc_cv_header_inttypes_h
=no
8899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8903 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8904 if test $gcc_cv_header_inttypes_h = yes; then
8906 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8912 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8913 sysconf strsignal getrusage nl_langinfo \
8914 gettimeofday mbstowcs wcswidth mmap setlocale \
8915 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
8917 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8918 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8919 eval as_val
=\$
$as_ac_var
8920 if test "x$as_val" = x
""yes; then :
8921 cat >>confdefs.h
<<_ACEOF
8922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8929 if test x
$ac_cv_func_mbstowcs = xyes
; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8931 $as_echo_n "checking whether mbstowcs works... " >&6; }
8932 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8935 if test "$cross_compiling" = yes; then :
8936 gcc_cv_func_mbstowcs_works
=yes
8938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8947 if ac_fn_c_try_run
"$LINENO"; then :
8948 gcc_cv_func_mbstowcs_works
=yes
8950 gcc_cv_func_mbstowcs_works
=no
8952 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8953 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8958 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8959 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8961 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8966 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8967 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8971 cat >>confdefs.h
<<_ACEOF
8977 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8978 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8982 cat >>confdefs.h
<<_ACEOF
8983 #define caddr_t char *
8990 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8991 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8992 gcc_header_sys_mman_h
=yes
8994 gcc_header_sys_mman_h
=no
8997 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8998 if test "x$ac_cv_func_mmap" = x
""yes; then :
9004 if test "$gcc_header_sys_mman_h" != yes \
9005 ||
test "$gcc_func_mmap" != yes; then
9006 gcc_cv_func_mmap_file
=no
9007 gcc_cv_func_mmap_dev_zero
=no
9008 gcc_cv_func_mmap_anon
=no
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9011 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9012 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9013 $as_echo_n "(cached) " >&6
9015 # Add a system to this blacklist if
9016 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9017 # memory area containing the same data that you'd get if you applied
9018 # read() to the same fd. The only system known to have a problem here
9019 # is VMS, where text files have record structure.
9022 gcc_cv_func_mmap_file
=no
;;
9024 gcc_cv_func_mmap_file
=yes;;
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9028 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9030 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9031 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9034 # Add a system to this blacklist if it has mmap() but /dev/zero
9035 # does not exist, or if mmapping /dev/zero does not give anonymous
9036 # zeroed pages with both the following properties:
9037 # 1. If you map N consecutive pages in with one call, and then
9038 # unmap any subset of those pages, the pages that were not
9039 # explicitly unmapped remain accessible.
9040 # 2. If you map two adjacent blocks of memory and then unmap them
9041 # both at once, they must both go away.
9042 # Systems known to be in this category are Windows (all variants),
9045 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9046 gcc_cv_func_mmap_dev_zero
=no
;;
9048 gcc_cv_func_mmap_dev_zero
=yes;;
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9052 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9054 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9056 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9057 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 #include <sys/types.h>
9063 #include <sys/mman.h>
9066 #ifndef MAP_ANONYMOUS
9067 #define MAP_ANONYMOUS MAP_ANON
9073 int n = MAP_ANONYMOUS;
9078 if ac_fn_c_try_compile
"$LINENO"; then :
9079 gcc_cv_decl_map_anon
=yes
9081 gcc_cv_decl_map_anon
=no
9083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9086 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9088 if test $gcc_cv_decl_map_anon = no
; then
9089 gcc_cv_func_mmap_anon
=no
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9092 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9093 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9096 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9097 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9098 # doesn't give anonymous zeroed pages with the same properties listed
9099 # above for use of /dev/zero.
9100 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9102 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9103 gcc_cv_func_mmap_anon
=no
;;
9105 gcc_cv_func_mmap_anon
=yes;;
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9109 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9113 if test $gcc_cv_func_mmap_file = yes; then
9115 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9118 if test $gcc_cv_func_mmap_dev_zero = yes; then
9120 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9123 if test $gcc_cv_func_mmap_anon = yes; then
9125 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9132 # Under VMS, vfork works very differently than on Unix. The standard test
9133 # won't work, and it isn't easily adaptable. It makes more sense to
9135 ac_cv_func_vfork_works
=yes
9138 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9139 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9143 cat >>confdefs.h
<<_ACEOF
9149 for ac_header
in vfork.h
9151 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9152 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9153 cat >>confdefs.h
<<_ACEOF
9154 #define HAVE_VFORK_H 1
9160 for ac_func
in fork vfork
9162 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9163 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9164 eval as_val
=\$
$as_ac_var
9165 if test "x$as_val" = x
""yes; then :
9166 cat >>confdefs.h
<<_ACEOF
9167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9173 if test "x$ac_cv_func_fork" = xyes
; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9175 $as_echo_n "checking for working fork... " >&6; }
9176 if test "${ac_cv_func_fork_works+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9179 if test "$cross_compiling" = yes; then :
9180 ac_cv_func_fork_works
=cross
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 $ac_includes_default
9189 /* By Ruediger Kuhlmann. */
9196 if ac_fn_c_try_run
"$LINENO"; then :
9197 ac_cv_func_fork_works
=yes
9199 ac_cv_func_fork_works
=no
9201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9207 $as_echo "$ac_cv_func_fork_works" >&6; }
9210 ac_cv_func_fork_works
=$ac_cv_func_fork
9212 if test "x$ac_cv_func_fork_works" = xcross
; then
9214 *-*-amigaos* |
*-*-msdosdjgpp*)
9215 # Override, as these systems have only a dummy fork() stub
9216 ac_cv_func_fork_works
=no
9219 ac_cv_func_fork_works
=yes
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9223 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9225 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9226 if test "x$ac_cv_func_vfork" = xyes
; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9228 $as_echo_n "checking for working vfork... " >&6; }
9229 if test "${ac_cv_func_vfork_works+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9232 if test "$cross_compiling" = yes; then :
9233 ac_cv_func_vfork_works
=cross
9235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 /* Thanks to Paul Eggert for this test. */
9238 $ac_includes_default
9239 #include <sys/wait.h>
9243 /* On some sparc systems, changes by the child to local and incoming
9244 argument registers are propagated back to the parent. The compiler
9245 is told about this with #include <vfork.h>, but some compilers
9246 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9247 static variable whose address is put into a register that is
9248 clobbered by the vfork. */
9251 sparc_address_test (int arg)
9253 sparc_address_test (arg) int arg;
9274 pid_t parent = getpid ();
9277 sparc_address_test (0);
9282 /* Here is another test for sparc vfork register problems. This
9283 test uses lots of local variables, at least as many local
9284 variables as main has allocated so far including compiler
9285 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9286 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9287 reuse the register of parent for one of the local variables,
9288 since it will think that parent can't possibly be used any more
9289 in this routine. Assigning to the local variable will thus
9290 munge parent in the parent process. */
9292 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9293 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9294 /* Convince the compiler that p..p7 are live; otherwise, it might
9295 use the same hardware register for all 8 local variables. */
9296 if (p != p1 || p != p2 || p != p3 || p != p4
9297 || p != p5 || p != p6 || p != p7)
9300 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9301 from child file descriptors. If the child closes a descriptor
9302 before it execs or exits, this munges the parent's descriptor
9303 as well. Test for this by closing stdout in the child. */
9304 _exit(close(fileno(stdout)) != 0);
9309 while (wait(&status) != child)
9312 /* Was there some problem with vforking? */
9315 /* Did the child fail? (This shouldn't happen.) */
9318 /* Did the vfork/compiler bug occur? */
9319 || parent != getpid()
9321 /* Did the file descriptor bug occur? */
9322 || fstat(fileno(stdout), &st) != 0
9327 if ac_fn_c_try_run
"$LINENO"; then :
9328 ac_cv_func_vfork_works
=yes
9330 ac_cv_func_vfork_works
=no
9332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9338 $as_echo "$ac_cv_func_vfork_works" >&6; }
9341 if test "x$ac_cv_func_fork_works" = xcross
; then
9342 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9344 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9347 if test "x$ac_cv_func_vfork_works" = xyes
; then
9349 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9353 $as_echo "#define vfork fork" >>confdefs.h
9356 if test "x$ac_cv_func_fork_works" = xyes
; then
9358 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9363 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9364 # iconv() prototype.
9366 if test "X$prefix" = "XNONE"; then
9367 acl_final_prefix
="$ac_default_prefix"
9369 acl_final_prefix
="$prefix"
9371 if test "X$exec_prefix" = "XNONE"; then
9372 acl_final_exec_prefix
='${prefix}'
9374 acl_final_exec_prefix
="$exec_prefix"
9376 acl_save_prefix
="$prefix"
9377 prefix
="$acl_final_prefix"
9378 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9379 prefix
="$acl_save_prefix"
9382 # Check whether --with-gnu-ld was given.
9383 if test "${with_gnu_ld+set}" = set; then :
9384 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9389 # Prepare PATH_SEPARATOR.
9390 # The user is always right.
9391 if test "${PATH_SEPARATOR+set}" != set; then
9392 echo "#! /bin/sh" >conf$$.sh
9393 echo "exit 0" >>conf$$.sh
9395 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9403 if test "$GCC" = yes; then
9404 # Check if gcc -print-prog-name=ld gives a path.
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9406 $as_echo_n "checking for ld used by GCC... " >&6; }
9409 # gcc leaves a trailing carriage return which upsets mingw
9410 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9412 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9415 # Accept absolute paths.
9416 [\\/]* |
[A-Za-z
]:[\\/]*)
9417 re_direlt
='/[^/][^/]*/\.\./'
9418 # Canonicalize the path of ld
9419 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9420 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9421 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9423 test -z "$LD" && LD
="$ac_prog"
9426 # If it fails, then pretend we aren't using GCC.
9430 # If it is relative, then search for the first ld in PATH.
9434 elif test "$with_gnu_ld" = yes; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9436 $as_echo_n "checking for GNU ld... " >&6; }
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9439 $as_echo_n "checking for non-GNU ld... " >&6; }
9441 if test "${acl_cv_path_LD+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9444 if test -z "$LD"; then
9445 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9446 for ac_dir
in $PATH; do
9447 test -z "$ac_dir" && ac_dir
=.
9448 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9449 acl_cv_path_LD
="$ac_dir/$ac_prog"
9450 # Check to see if the program is GNU ld. I'd rather use --version,
9451 # but apparently some GNU ld's only accept -v.
9452 # Break only if it was the GNU/non-GNU ld that we prefer.
9453 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9454 test "$with_gnu_ld" != no
&& break
9456 test "$with_gnu_ld" != yes && break
9462 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9466 LD
="$acl_cv_path_LD"
9467 if test -n "$LD"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9469 $as_echo "$LD" >&6; }
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9474 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9476 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9477 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9480 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9481 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9482 acl_cv_prog_gnu_ld
=yes
9484 acl_cv_prog_gnu_ld
=no
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9488 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9489 with_gnu_ld
=$acl_cv_prog_gnu_ld
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9494 $as_echo_n "checking for shared library run path origin... " >&6; }
9495 if test "${acl_cv_rpath+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9499 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9500 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9507 $as_echo "$acl_cv_rpath" >&6; }
9509 libext
="$acl_cv_libext"
9510 shlibext
="$acl_cv_shlibext"
9511 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9512 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9513 hardcode_direct
="$acl_cv_hardcode_direct"
9514 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9515 # Check whether --enable-rpath was given.
9516 if test "${enable_rpath+set}" = set; then :
9517 enableval
=$enable_rpath; :
9531 acl_save_prefix
="$prefix"
9532 prefix
="$acl_final_prefix"
9533 acl_save_exec_prefix
="$exec_prefix"
9534 exec_prefix
="$acl_final_exec_prefix"
9536 eval additional_includedir
=\"$includedir\"
9537 eval additional_libdir
=\"$libdir\"
9539 exec_prefix
="$acl_save_exec_prefix"
9540 prefix
="$acl_save_prefix"
9543 # Check whether --with-libiconv-prefix was given.
9544 if test "${with_libiconv_prefix+set}" = set; then :
9545 withval
=$with_libiconv_prefix;
9546 if test "X$withval" = "Xno"; then
9549 if test "X$withval" = "X"; then
9551 acl_save_prefix
="$prefix"
9552 prefix
="$acl_final_prefix"
9553 acl_save_exec_prefix
="$exec_prefix"
9554 exec_prefix
="$acl_final_exec_prefix"
9556 eval additional_includedir
=\"$includedir\"
9557 eval additional_libdir
=\"$libdir\"
9559 exec_prefix
="$acl_save_exec_prefix"
9560 prefix
="$acl_save_prefix"
9563 additional_includedir
="$withval/include"
9564 additional_libdir
="$withval/lib"
9575 names_already_handled
=
9576 names_next_round
='iconv '
9577 while test -n "$names_next_round"; do
9578 names_this_round
="$names_next_round"
9580 for name
in $names_this_round; do
9582 for n
in $names_already_handled; do
9583 if test "$n" = "$name"; then
9588 if test -z "$already_handled"; then
9589 names_already_handled
="$names_already_handled $name"
9590 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9591 eval value
=\"\
$HAVE_LIB$uppername\"
9592 if test -n "$value"; then
9593 if test "$value" = yes; then
9594 eval value
=\"\
$LIB$uppername\"
9595 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9596 eval value
=\"\
$LTLIB$uppername\"
9597 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9606 if test $use_additional = yes; then
9607 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9608 found_dir
="$additional_libdir"
9609 found_so
="$additional_libdir/lib$name.$shlibext"
9610 if test -f "$additional_libdir/lib$name.la"; then
9611 found_la
="$additional_libdir/lib$name.la"
9614 if test -f "$additional_libdir/lib$name.$libext"; then
9615 found_dir
="$additional_libdir"
9616 found_a
="$additional_libdir/lib$name.$libext"
9617 if test -f "$additional_libdir/lib$name.la"; then
9618 found_la
="$additional_libdir/lib$name.la"
9623 if test "X$found_dir" = "X"; then
9624 for x
in $LDFLAGS $LTLIBICONV; do
9626 acl_save_prefix
="$prefix"
9627 prefix
="$acl_final_prefix"
9628 acl_save_exec_prefix
="$exec_prefix"
9629 exec_prefix
="$acl_final_exec_prefix"
9631 exec_prefix
="$acl_save_exec_prefix"
9632 prefix
="$acl_save_prefix"
9636 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9637 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9639 found_so
="$dir/lib$name.$shlibext"
9640 if test -f "$dir/lib$name.la"; then
9641 found_la
="$dir/lib$name.la"
9644 if test -f "$dir/lib$name.$libext"; then
9646 found_a
="$dir/lib$name.$libext"
9647 if test -f "$dir/lib$name.la"; then
9648 found_la
="$dir/lib$name.la"
9654 if test "X$found_dir" != "X"; then
9659 if test "X$found_dir" != "X"; then
9660 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9661 if test "X$found_so" != "X"; then
9662 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9663 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9666 for x
in $ltrpathdirs; do
9667 if test "X$x" = "X$found_dir"; then
9672 if test -z "$haveit"; then
9673 ltrpathdirs
="$ltrpathdirs $found_dir"
9675 if test "$hardcode_direct" = yes; then
9676 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9678 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9679 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9681 for x
in $rpathdirs; do
9682 if test "X$x" = "X$found_dir"; then
9687 if test -z "$haveit"; then
9688 rpathdirs
="$rpathdirs $found_dir"
9692 for x
in $LDFLAGS $LIBICONV; do
9694 acl_save_prefix
="$prefix"
9695 prefix
="$acl_final_prefix"
9696 acl_save_exec_prefix
="$exec_prefix"
9697 exec_prefix
="$acl_final_exec_prefix"
9699 exec_prefix
="$acl_save_exec_prefix"
9700 prefix
="$acl_save_prefix"
9702 if test "X$x" = "X-L$found_dir"; then
9707 if test -z "$haveit"; then
9708 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9710 if test "$hardcode_minus_L" != no
; then
9711 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9713 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9719 if test "X$found_a" != "X"; then
9720 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9722 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9725 additional_includedir
=
9726 case "$found_dir" in
9728 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9729 additional_includedir
="$basedir/include"
9732 if test "X$additional_includedir" != "X"; then
9733 if test "X$additional_includedir" != "X/usr/include"; then
9735 if test "X$additional_includedir" = "X/usr/local/include"; then
9736 if test -n "$GCC"; then
9738 linux
*) haveit
=yes;;
9742 if test -z "$haveit"; then
9743 for x
in $CPPFLAGS $INCICONV; do
9745 acl_save_prefix
="$prefix"
9746 prefix
="$acl_final_prefix"
9747 acl_save_exec_prefix
="$exec_prefix"
9748 exec_prefix
="$acl_final_exec_prefix"
9750 exec_prefix
="$acl_save_exec_prefix"
9751 prefix
="$acl_save_prefix"
9753 if test "X$x" = "X-I$additional_includedir"; then
9758 if test -z "$haveit"; then
9759 if test -d "$additional_includedir"; then
9760 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9766 if test -n "$found_la"; then
9767 save_libdir
="$libdir"
9769 */* |
*\\*) .
"$found_la" ;;
9770 *) .
"./$found_la" ;;
9772 libdir
="$save_libdir"
9773 for dep
in $dependency_libs; do
9776 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9777 if test "X$additional_libdir" != "X/usr/lib"; then
9779 if test "X$additional_libdir" = "X/usr/local/lib"; then
9780 if test -n "$GCC"; then
9782 linux
*) haveit
=yes;;
9786 if test -z "$haveit"; then
9788 for x
in $LDFLAGS $LIBICONV; do
9790 acl_save_prefix
="$prefix"
9791 prefix
="$acl_final_prefix"
9792 acl_save_exec_prefix
="$exec_prefix"
9793 exec_prefix
="$acl_final_exec_prefix"
9795 exec_prefix
="$acl_save_exec_prefix"
9796 prefix
="$acl_save_prefix"
9798 if test "X$x" = "X-L$additional_libdir"; then
9803 if test -z "$haveit"; then
9804 if test -d "$additional_libdir"; then
9805 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9809 for x
in $LDFLAGS $LTLIBICONV; do
9811 acl_save_prefix
="$prefix"
9812 prefix
="$acl_final_prefix"
9813 acl_save_exec_prefix
="$exec_prefix"
9814 exec_prefix
="$acl_final_exec_prefix"
9816 exec_prefix
="$acl_save_exec_prefix"
9817 prefix
="$acl_save_prefix"
9819 if test "X$x" = "X-L$additional_libdir"; then
9824 if test -z "$haveit"; then
9825 if test -d "$additional_libdir"; then
9826 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9833 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9834 if test "$enable_rpath" != no
; then
9836 for x
in $rpathdirs; do
9837 if test "X$x" = "X$dir"; then
9842 if test -z "$haveit"; then
9843 rpathdirs
="$rpathdirs $dir"
9846 for x
in $ltrpathdirs; do
9847 if test "X$x" = "X$dir"; then
9852 if test -z "$haveit"; then
9853 ltrpathdirs
="$ltrpathdirs $dir"
9858 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9861 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9864 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9865 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9871 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9872 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9878 if test "X$rpathdirs" != "X"; then
9879 if test -n "$hardcode_libdir_separator"; then
9881 for found_dir
in $rpathdirs; do
9882 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9884 acl_save_libdir
="$libdir"
9886 eval flag
=\"$hardcode_libdir_flag_spec\"
9887 libdir
="$acl_save_libdir"
9888 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9890 for found_dir
in $rpathdirs; do
9891 acl_save_libdir
="$libdir"
9893 eval flag
=\"$hardcode_libdir_flag_spec\"
9894 libdir
="$acl_save_libdir"
9895 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9899 if test "X$ltrpathdirs" != "X"; then
9900 for found_dir
in $ltrpathdirs; do
9901 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9906 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9908 ac_cpp
='$CXXCPP $CPPFLAGS'
9909 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9910 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9911 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9918 am_save_CPPFLAGS
="$CPPFLAGS"
9920 for element
in $INCICONV; do
9922 for x
in $CPPFLAGS; do
9924 acl_save_prefix
="$prefix"
9925 prefix
="$acl_final_prefix"
9926 acl_save_exec_prefix
="$exec_prefix"
9927 exec_prefix
="$acl_final_exec_prefix"
9929 exec_prefix
="$acl_save_exec_prefix"
9930 prefix
="$acl_save_prefix"
9932 if test "X$x" = "X$element"; then
9937 if test -z "$haveit"; then
9938 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9944 $as_echo_n "checking for iconv... " >&6; }
9945 if test "${am_cv_func_iconv+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9949 am_cv_func_iconv
="no, consider installing GNU libiconv"
9951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9958 iconv_t cd = iconv_open("","");
9959 iconv(cd,NULL,NULL,NULL,NULL);
9965 if ac_fn_cxx_try_link
"$LINENO"; then :
9966 am_cv_func_iconv
=yes
9968 rm -f core conftest.err conftest.
$ac_objext \
9969 conftest
$ac_exeext conftest.
$ac_ext
9970 if test "$am_cv_func_iconv" != yes; then
9971 am_save_LIBS
="$LIBS"
9972 LIBS
="$LIBS $LIBICONV"
9973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9980 iconv_t cd = iconv_open("","");
9981 iconv(cd,NULL,NULL,NULL,NULL);
9987 if ac_fn_cxx_try_link
"$LINENO"; then :
9989 am_cv_func_iconv
=yes
9991 rm -f core conftest.err conftest.
$ac_objext \
9992 conftest
$ac_exeext conftest.
$ac_ext
9993 LIBS
="$am_save_LIBS"
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9998 $as_echo "$am_cv_func_iconv" >&6; }
9999 if test "$am_cv_func_iconv" = yes; then
10001 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10004 if test "$am_cv_lib_iconv" = yes; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10006 $as_echo_n "checking how to link with libiconv... " >&6; }
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10008 $as_echo "$LIBICONV" >&6; }
10010 CPPFLAGS
="$am_save_CPPFLAGS"
10017 if test "$am_cv_func_iconv" = yes; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10019 $as_echo_n "checking for iconv declaration... " >&6; }
10020 if test "${am_cv_proto_iconv+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10027 #include <stdlib.h>
10033 #if defined(__STDC__) || defined(__cplusplus)
10034 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10047 if ac_fn_cxx_try_compile
"$LINENO"; then :
10048 am_cv_proto_iconv_arg1
=""
10050 am_cv_proto_iconv_arg1
="const"
10052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10053 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);"
10056 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10058 }$am_cv_proto_iconv" >&5
10060 }$am_cv_proto_iconv" >&6; }
10062 cat >>confdefs.h
<<_ACEOF
10063 #define ICONV_CONST $am_cv_proto_iconv_arg1
10069 ac_cpp
='$CPP $CPPFLAGS'
10070 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10071 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10072 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10080 am_save_CPPFLAGS
="$CPPFLAGS"
10082 for element
in $INCICONV; do
10084 for x
in $CPPFLAGS; do
10086 acl_save_prefix
="$prefix"
10087 prefix
="$acl_final_prefix"
10088 acl_save_exec_prefix
="$exec_prefix"
10089 exec_prefix
="$acl_final_exec_prefix"
10091 exec_prefix
="$acl_save_exec_prefix"
10092 prefix
="$acl_save_prefix"
10094 if test "X$x" = "X$element"; then
10099 if test -z "$haveit"; then
10100 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10106 $as_echo_n "checking for iconv... " >&6; }
10107 if test "${am_cv_func_iconv+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10111 am_cv_func_iconv
="no, consider installing GNU libiconv"
10113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115 #include <stdlib.h>
10120 iconv_t cd = iconv_open("","");
10121 iconv(cd,NULL,NULL,NULL,NULL);
10127 if ac_fn_c_try_link
"$LINENO"; then :
10128 am_cv_func_iconv
=yes
10130 rm -f core conftest.err conftest.
$ac_objext \
10131 conftest
$ac_exeext conftest.
$ac_ext
10132 if test "$am_cv_func_iconv" != yes; then
10133 am_save_LIBS
="$LIBS"
10134 LIBS
="$LIBS $LIBICONV"
10135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 #include <stdlib.h>
10142 iconv_t cd = iconv_open("","");
10143 iconv(cd,NULL,NULL,NULL,NULL);
10149 if ac_fn_c_try_link
"$LINENO"; then :
10150 am_cv_lib_iconv
=yes
10151 am_cv_func_iconv
=yes
10153 rm -f core conftest.err conftest.
$ac_objext \
10154 conftest
$ac_exeext conftest.
$ac_ext
10155 LIBS
="$am_save_LIBS"
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10160 $as_echo "$am_cv_func_iconv" >&6; }
10161 if test "$am_cv_func_iconv" = yes; then
10163 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10166 if test "$am_cv_lib_iconv" = yes; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10168 $as_echo_n "checking how to link with libiconv... " >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10170 $as_echo "$LIBICONV" >&6; }
10172 CPPFLAGS
="$am_save_CPPFLAGS"
10179 if test "$am_cv_func_iconv" = yes; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10181 $as_echo_n "checking for iconv declaration... " >&6; }
10182 if test "${am_cv_proto_iconv+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10189 #include <stdlib.h>
10195 #if defined(__STDC__) || defined(__cplusplus)
10196 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10209 if ac_fn_c_try_compile
"$LINENO"; then :
10210 am_cv_proto_iconv_arg1
=""
10212 am_cv_proto_iconv_arg1
="const"
10214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10215 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);"
10218 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10220 }$am_cv_proto_iconv" >&5
10222 }$am_cv_proto_iconv" >&6; }
10224 cat >>confdefs.h
<<_ACEOF
10225 #define ICONV_CONST $am_cv_proto_iconv_arg1
10232 # Until we have in-tree GNU iconv:
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10238 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10239 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 #include <locale.h>
10253 if ac_fn_c_try_link
"$LINENO"; then :
10254 am_cv_val_LC_MESSAGES
=yes
10256 am_cv_val_LC_MESSAGES
=no
10258 rm -f core conftest.err conftest.
$ac_objext \
10259 conftest
$ac_exeext conftest.
$ac_ext
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10262 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10263 if test $am_cv_val_LC_MESSAGES = yes; then
10265 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10272 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10273 if test "${am_cv_langinfo_codeset+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
10276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10278 #include <langinfo.h>
10282 char* cs = nl_langinfo(CODESET);
10287 if ac_fn_c_try_link
"$LINENO"; then :
10288 am_cv_langinfo_codeset
=yes
10290 am_cv_langinfo_codeset
=no
10292 rm -f core conftest.err conftest.
$ac_objext \
10293 conftest
$ac_exeext conftest.
$ac_ext
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10297 $as_echo "$am_cv_langinfo_codeset" >&6; }
10298 if test $am_cv_langinfo_codeset = yes; then
10300 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10305 # We will need to find libiberty.h and ansidecl.h
10306 saved_CFLAGS
="$CFLAGS"
10307 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10308 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10309 strsignal strstr strverscmp \
10310 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10311 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10313 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10315 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10316 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10317 $as_echo_n "(cached) " >&6
10319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10322 #define $ac_tr_decl 1
10324 #include "ansidecl.h"
10325 #include "system.h"
10331 char *(*pfn) = (char *(*)) $ac_func ;
10337 if ac_fn_c_try_compile
"$LINENO"; then :
10338 eval "gcc_cv_have_decl_$ac_func=yes"
10340 eval "gcc_cv_have_decl_$ac_func=no"
10342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10345 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10348 #define $ac_tr_decl 1
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10354 #define $ac_tr_decl 0
10362 for ac_func
in getrlimit setrlimit getrusage
10364 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10367 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10368 $as_echo_n "(cached) " >&6
10370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10373 #define $ac_tr_decl 1
10375 #include "ansidecl.h"
10376 #include "system.h"
10377 #ifdef HAVE_SYS_RESOURCE_H
10378 #include <sys/resource.h>
10386 char *(*pfn) = (char *(*)) $ac_func ;
10392 if ac_fn_c_try_compile
"$LINENO"; then :
10393 eval "gcc_cv_have_decl_$ac_func=yes"
10395 eval "gcc_cv_have_decl_$ac_func=no"
10397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10400 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10403 #define $ac_tr_decl 1
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10409 #define $ac_tr_decl 0
10417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10420 #include "ansidecl.h"
10421 #include "system.h"
10422 #ifdef HAVE_SYS_RESOURCE_H
10423 #include <sys/resource.h>
10434 if ac_fn_c_try_compile
"$LINENO"; then :
10438 $as_echo "#define rlim_t long" >>confdefs.h
10441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10443 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10444 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10445 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10446 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10447 for ac_func
in ldgetname
10449 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10451 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10452 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10453 $as_echo_n "(cached) " >&6
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10458 #define $ac_tr_decl 1
10460 #include "ansidecl.h"
10461 #include "system.h"
10462 #ifdef HAVE_LDFCN_H
10473 char *(*pfn) = (char *(*)) $ac_func ;
10479 if ac_fn_c_try_compile
"$LINENO"; then :
10480 eval "gcc_cv_have_decl_$ac_func=yes"
10482 eval "gcc_cv_have_decl_$ac_func=no"
10484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10487 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10489 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10490 #define $ac_tr_decl 1
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10496 #define $ac_tr_decl 0
10504 for ac_func
in times
10506 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10508 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10509 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10510 $as_echo_n "(cached) " >&6
10512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10515 #define $ac_tr_decl 1
10517 #include "ansidecl.h"
10518 #include "system.h"
10519 #ifdef HAVE_SYS_TIMES_H
10520 #include <sys/times.h>
10528 char *(*pfn) = (char *(*)) $ac_func ;
10534 if ac_fn_c_try_compile
"$LINENO"; then :
10535 eval "gcc_cv_have_decl_$ac_func=yes"
10537 eval "gcc_cv_have_decl_$ac_func=no"
10539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10542 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10545 #define $ac_tr_decl 1
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10551 #define $ac_tr_decl 0
10559 for ac_func
in sigaltstack
10561 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10563 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10564 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10565 $as_echo_n "(cached) " >&6
10567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10570 #define $ac_tr_decl 1
10572 #include "ansidecl.h"
10573 #include "system.h"
10574 #include <signal.h>
10581 char *(*pfn) = (char *(*)) $ac_func ;
10587 if ac_fn_c_try_compile
"$LINENO"; then :
10588 eval "gcc_cv_have_decl_$ac_func=yes"
10590 eval "gcc_cv_have_decl_$ac_func=no"
10592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10595 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10597 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10598 #define $ac_tr_decl 1
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10604 #define $ac_tr_decl 0
10612 # More time-related stuff.
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10614 $as_echo_n "checking for struct tms... " >&6; }
10615 if test "${ac_cv_struct_tms+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 #include "ansidecl.h"
10623 #include "system.h"
10624 #ifdef HAVE_SYS_TIMES_H
10625 #include <sys/times.h>
10636 if ac_fn_c_try_compile
"$LINENO"; then :
10637 ac_cv_struct_tms
=yes
10639 ac_cv_struct_tms
=no
10641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10644 $as_echo "$ac_cv_struct_tms" >&6; }
10645 if test $ac_cv_struct_tms = yes; then
10647 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10651 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10652 # revisit after autoconf 2.50.
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10654 $as_echo_n "checking for clock_t... " >&6; }
10655 if test "${gcc_cv_type_clock_t+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
10659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 #include "ansidecl.h"
10663 #include "system.h"
10673 if ac_fn_c_try_compile
"$LINENO"; then :
10674 gcc_cv_type_clock_t
=yes
10676 gcc_cv_type_clock_t
=no
10678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10681 $as_echo "$gcc_cv_type_clock_t" >&6; }
10682 if test $gcc_cv_type_clock_t = yes; then
10684 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10688 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10689 CFLAGS
="$saved_CFLAGS"
10691 # Check whether --enable-initfini-array was given.
10692 if test "${enable_initfini_array+set}" = set; then :
10693 enableval
=$enable_initfini_array;
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10697 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10698 if test "${gcc_cv_initfini_array+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10701 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10702 if test "$cross_compiling" = yes; then :
10703 gcc_cv_initfini_array
=no
10705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10709 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10710 if it can be used. */
10712 int main (void) { return x; }
10713 int foo (void) { x = 0; }
10714 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10716 extern void abort ();
10726 void (*const init_array1005) ()
10727 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10735 void (*const fini_array1005) ()
10736 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10746 void (*const ctors1007) ()
10747 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10756 void (*const dtors1007) ()
10757 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10767 void (*const init_array65530) ()
10768 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10773 if (count != 65530)
10777 void (*const fini_array65530) ()
10778 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10784 if (count != 65530)
10788 void (*const ctors65535) ()
10789 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10794 if (count != 65535)
10798 void (*const dtors65535) ()
10799 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10810 if ac_fn_c_try_run
"$LINENO"; then :
10811 gcc_cv_initfini_array
=yes
10813 gcc_cv_initfini_array
=no
10815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10821 $as_echo_n "checking cross compile... guessing... " >&6; }
10822 gcc_cv_initfini_array
=no
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10826 $as_echo "$gcc_cv_initfini_array" >&6; }
10827 enable_initfini_array
=$gcc_cv_initfini_array
10831 if test $enable_initfini_array = yes; then
10833 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10837 # mkdir takes a single argument on some systems.
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10839 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10840 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10846 #include <sys/types.h>
10847 #ifdef HAVE_SYS_STAT_H
10848 # include <sys/stat.h>
10850 #ifdef HAVE_UNISTD_H
10851 # include <unistd.h>
10853 #ifdef HAVE_DIRECT_H
10854 # include <direct.h>
10864 if ac_fn_c_try_compile
"$LINENO"; then :
10865 gcc_cv_mkdir_takes_one_arg
=no
10867 gcc_cv_mkdir_takes_one_arg
=yes
10869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10872 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10873 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10875 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10886 # With Setjmp/Longjmp based exception handling.
10887 # Check whether --enable-sjlj-exceptions was given.
10888 if test "${enable_sjlj_exceptions+set}" = set; then :
10889 enableval
=$enable_sjlj_exceptions; case $target in
10891 if test $enableval != yes; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10893 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10898 force_sjlj_exceptions
=yes
10902 force_sjlj_exceptions
=yes
10906 force_sjlj_exceptions
=no
10911 if test $force_sjlj_exceptions = yes; then
10912 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10914 cat >>confdefs.h
<<_ACEOF
10915 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10920 # --------------------------------------------------------
10921 # Build, host, and target specific configuration fragments
10922 # --------------------------------------------------------
10924 # Collect build-machine-specific information.
10925 .
${srcdir}/config.build
10927 # Collect host-machine-specific information.
10928 .
${srcdir}/config.
host
10932 # Collect target-machine-specific information.
10933 .
${srcdir}/config.gcc
10935 extra_objs
="${host_extra_objs} ${extra_objs}"
10936 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10938 # Default the target-machine variables that were not explicitly set.
10939 if test x
"$tm_file" = x
10940 then tm_file
=$cpu_type/$cpu_type.h
; fi
10942 if test x
"$extra_headers" = x
10943 then extra_headers
=; fi
10945 if test x
$md_file = x
10946 then md_file
=$cpu_type/$cpu_type.md
; fi
10948 if test x
$out_file = x
10949 then out_file
=$cpu_type/$cpu_type.c
; fi
10951 if test x
"$tmake_file" = x
10952 then tmake_file
=$cpu_type/t-
$cpu_type
10955 if test x
"$dwarf2" = xyes
10956 then tm_file
="$tm_file tm-dwarf2.h"
10959 # Say what files are being used for the output code and MD file.
10960 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10961 echo "Using \`$srcdir/config/$md_file' as machine description file."
10963 # If any of the xm_file variables contain nonexistent files, warn
10964 # about them and drop them.
10967 for x
in $build_xm_file; do
10968 if test -f $srcdir/config
/$x
10970 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10971 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10974 build_xm_file
="$bx"
10977 for x
in $host_xm_file; do
10978 if test -f $srcdir/config
/$x
10980 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10981 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10987 for x
in $xm_file; do
10988 if test -f $srcdir/config
/$x
10990 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10991 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10997 for f
in $tm_file; do
11000 if test $count = ax
; then
11001 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11003 echo "Using the following target machine macro files:"
11004 for f
in $tm_file; do
11005 echo " $srcdir/config/$f"
11009 if test x
$need_64bit_hwint = xyes
; then
11011 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11015 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11017 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11022 for f
in $host_xm_file; do
11025 if test $count = a
; then
11027 elif test $count = ax
; then
11028 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11030 echo "Using the following host machine macro files:"
11031 for f
in $host_xm_file; do
11032 echo " $srcdir/config/$f"
11035 echo "Using ${out_host_hook_obj} for host machine hooks."
11037 if test "$host_xm_file" != "$build_xm_file"; then
11039 for f
in $build_xm_file; do
11042 if test $count = a
; then
11044 elif test $count = ax
; then
11045 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11047 echo "Using the following build machine macro files:"
11048 for f
in $build_xm_file; do
11049 echo " $srcdir/config/$f"
11055 powerpc
*-*-darwin*)
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11057 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11058 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 #include <sys/cdefs.h>
11065 #include <sys/signal.h>
11066 #include <ucontext.h>
11067 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11070 if ac_fn_c_try_compile
"$LINENO"; then :
11071 gcc_cv_mcontext_underscores
=no
11073 gcc_cv_mcontext_underscores
=yes
11075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11078 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11079 if test $gcc_cv_mcontext_underscores = yes; then
11081 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11091 # Check if a valid thread package
11092 case ${enable_threads} in
11095 target_thread_file
='single'
11099 target_thread_file
='single'
11101 aix | dce | lynx | mipssde | posix | posix95 | rtems | \
11102 single | tpf | vxworks | win32
)
11103 target_thread_file
=${enable_threads}
11106 echo "${enable_threads} is an unknown thread package" 1>&2
11111 if test x
${thread_file} = x
; then
11112 # No thread file set by target-specific clauses in config.gcc,
11113 # so use file chosen by default logic above
11114 thread_file
=${target_thread_file}
11117 # Make gthr-default.h if we have a thread file.
11119 if test $thread_file != single
; then
11120 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11121 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
11122 rm -f gthr-default.h-t
11124 mv -f gthr-default.h-t gthr-default.h
11126 gthread_flags
=-DHAVE_GTHR_DEFAULT
11135 if test x
$enable___cxa_atexit = xyes || \
11136 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11137 if test x
$host = x
$target; then
11139 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11140 # keyed to flag_use_cxa_atexit
11145 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11146 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11149 echo "__cxa_atexit can't be enabled on this target"
11155 # We can't check for __cxa_atexit when building a cross, so assume
11159 if test x
$use_cxa_atexit = xyes
; then
11161 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11166 # Look for a file containing extra machine modes.
11167 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11168 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11171 cat >>confdefs.h
<<_ACEOF
11172 #define EXTRA_MODES_FILE "config/$extra_modes"
11177 # Convert extra_options into a form suitable for Makefile use.
11180 for f
in $extra_options; do
11181 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11182 all_opt_files
="$all_opt_files $srcdir/config/$f"
11186 # auto-host.h is the file containing items generated by autoconf and is
11187 # the first file included by config.h.
11188 # If host=build, it is correct to have bconfig include auto-host.h
11189 # as well. If host!=build, we are in error and need to do more
11190 # work to find out the build config parameters.
11191 if test x
$host = x
$build
11193 build_auto
=auto-host.h
11195 # We create a subdir, then run autoconf in the subdir.
11196 # To prevent recursion we set host and build for the new
11197 # invocation of configure to the build for this invocation
11204 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11205 *) realsrcdir
=..
/${srcdir};;
11207 saved_CFLAGS
="${CFLAGS}"
11208 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11209 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11210 ${realsrcdir}/configure \
11211 --enable-languages=${enable_languages-all} \
11212 --target=$target_alias --host=$build_alias --build=$build_alias
11213 CFLAGS
="${saved_CFLAGS}"
11215 # We just finished tests for the build machine, so rename
11216 # the file auto-build.h in the gcc directory.
11217 mv auto-host.h ..
/auto-build.h
11220 build_auto
=auto-build.h
11224 tm_file
="${tm_file} defaults.h"
11225 tm_p_file
="${tm_p_file} tm-preds.h"
11226 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11227 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11228 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11229 # put this back in temporarily.
11230 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11236 # Compile in configure arguments.
11237 if test -f configargs.h
; then
11238 # Being re-configured.
11239 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11240 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11242 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11245 # Double all backslashes and backslash all quotes to turn
11246 # gcc_config_arguments into a C string.
11247 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11248 $gcc_config_arguments
11250 gcc_config_arguments_str
=`cat conftest.out`
11253 cat > configargs.h
<<EOF
11254 /* Generated automatically. */
11255 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11256 static const char thread_model[] = "$thread_file";
11258 static const struct {
11259 const char *name, *value;
11260 } configure_default_options[] = $configure_default_options;
11263 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11264 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11265 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11266 if test -f $srcdir/REVISION
; then
11267 gcc_REVISION
=`cat $srcdir/REVISION`
11271 cat > plugin-version.h
<<EOF
11272 #include "configargs.h"
11274 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11275 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11276 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11277 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11279 static char basever[] = "$gcc_BASEVER";
11280 static char datestamp[] = "$gcc_DATESTAMP";
11281 static char devphase[] = "$gcc_DEVPHASE";
11282 static char revision[] = "$gcc_REVISION";
11284 /* FIXME plugins: We should make the version information more precise.
11285 One way to do is to add a checksum. */
11287 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11288 devphase, revision,
11289 configuration_arguments};
11292 # Internationalization
11293 # If we haven't got the data from the intl directory,
11294 # assume NLS is disabled.
11303 if test -f ..
/intl
/config.intl
; then
11304 . ..
/intl
/config.intl
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11307 $as_echo_n "checking whether NLS is requested... " >&6; }
11308 if test x
"$USE_NLS" != xyes
; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313 $as_echo "yes" >&6; }
11315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11319 $as_echo_n "checking for catalogs to be installed... " >&6; }
11320 # Look for .po and .gmo files in the source directory.
11323 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11324 # If there aren't any .gmo files the shell will give us the
11325 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11327 case "$cat" in *\
**)
11330 # The quadruple backslash is collapsed to a double backslash
11331 # by the backticks, then collapsed again by the double quotes,
11332 # leaving us with one backslash in the sed expression (right
11333 # before the dot that mustn't act as a wildcard).
11334 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11335 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11336 # The user is allowed to set LINGUAS to a list of languages to
11337 # install catalogs for. If it's empty that means "all of them."
11338 if test "x$LINGUAS" = x
; then
11339 CATALOGS
="$CATALOGS $cat"
11340 XLINGUAS
="$XLINGUAS $lang"
11342 case "$LINGUAS" in *$lang*)
11343 CATALOGS
="$CATALOGS $cat"
11344 XLINGUAS
="$XLINGUAS $lang"
11349 LINGUAS
="$XLINGUAS"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11351 $as_echo "$LINGUAS" >&6; }
11364 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11365 # -liconv on the link line twice.
11366 case "$LIBINTL" in *$LIBICONV*)
11370 # Check whether --enable-secureplt was given.
11371 if test "${enable_secureplt+set}" = set; then :
11372 enableval
=$enable_secureplt;
11376 # Check whether --enable-leading-mingw64-underscores was given.
11377 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11378 enableval
=$enable_leading_mingw64_underscores;
11381 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11383 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11387 # Check whether --enable-cld was given.
11388 if test "${enable_cld+set}" = set; then :
11389 enableval
=$enable_cld;
11395 # Check whether --enable-frame-pointer was given.
11396 if test "${enable_frame_pointer+set}" = set; then :
11397 enableval
=$enable_frame_pointer;
11401 linux
* | darwin
[8912]*)
11402 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11404 enable_frame_pointer
=no
11407 enable_frame_pointer
=yes
11414 # Windows32 Registry support for specifying GCC installation paths.
11415 # Check whether --enable-win32-registry was given.
11416 if test "${enable_win32_registry+set}" = set; then :
11417 enableval
=$enable_win32_registry;
11422 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11423 if test "x$enable_win32_registry" != xno
; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11425 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11426 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11429 ac_func_search_save_LIBS
=$LIBS
11430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11439 char RegOpenKeyExA ();
11443 return RegOpenKeyExA ();
11448 for ac_lib
in '' advapi32
; do
11449 if test -z "$ac_lib"; then
11450 ac_res
="none required"
11453 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11455 if ac_fn_c_try_link
"$LINENO"; then :
11456 ac_cv_search_RegOpenKeyExA
=$ac_res
11458 rm -f core conftest.err conftest.
$ac_objext \
11460 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11464 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11467 ac_cv_search_RegOpenKeyExA
=no
11469 rm conftest.
$ac_ext
11470 LIBS
=$ac_func_search_save_LIBS
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11473 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11474 ac_res
=$ac_cv_search_RegOpenKeyExA
11475 if test "$ac_res" != no
; then :
11476 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11479 enable_win32_registry
=no
11484 if test "x$enable_win32_registry" != xno
; then
11486 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11489 if test "x$enable_win32_registry" != xyes \
11490 && test "x$enable_win32_registry" != x
; then
11492 cat >>confdefs.h
<<_ACEOF
11493 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11501 # Get an absolute path to the GCC top-level source directory
11502 holddir
=`${PWDCMD-pwd}`
11504 topdir
=`${PWDCMD-pwd}`
11507 # Conditionalize the makefile for this host machine.
11509 for f
in ${host_xmake_file}
11511 if test -f ${srcdir}/config
/$f
11513 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11517 # Conditionalize the makefile for this target machine.
11519 for f
in ${tmake_file}
11521 if test -f ${srcdir}/config
/$f
11523 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11526 tmake_file
="${tmake_file_}"
11528 out_object_file
=`basename $out_file .c`.o
11529 common_out_object_file
=`basename $common_out_file .c`.o
11531 tm_file_list
="options.h"
11532 tm_include_list
="options.h insn-constants.h"
11533 for f
in $tm_file; do
11536 f
=`echo $f | sed 's/^..//'`
11537 tm_file_list
="${tm_file_list} $f"
11538 tm_include_list
="${tm_include_list} $f"
11541 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11542 tm_include_list
="${tm_include_list} $f"
11545 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11546 tm_include_list
="${tm_include_list} config/$f"
11551 libgcc_tm_file_list
=
11552 libgcc_tm_include_list
=
11553 for f
in $libgcc_tm_file; do
11554 libgcc_tm_file_list
="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11555 libgcc_tm_include_list
="${libgcc_tm_include_list} ../libgcc/config/$f"
11560 for f
in $tm_p_file; do
11563 tm_p_file_list
="${tm_p_file_list} $f"
11564 tm_p_include_list
="${tm_p_include_list} $f"
11567 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11568 tm_p_include_list
="${tm_p_include_list} config/$f"
11574 for f
in $xm_file; do
11577 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11578 xm_include_list
="${xm_include_list} $f"
11581 xm_file_list
="${xm_file_list} $f"
11582 xm_include_list
="${xm_include_list} $f"
11585 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11586 xm_include_list
="${xm_include_list} config/$f"
11592 host_xm_include_list
=
11593 for f
in $host_xm_file; do
11596 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11597 host_xm_include_list
="${host_xm_include_list} $f"
11600 host_xm_file_list
="${host_xm_file_list} $f"
11601 host_xm_include_list
="${host_xm_include_list} $f"
11604 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11605 host_xm_include_list
="${host_xm_include_list} config/$f"
11610 build_xm_file_list
=
11611 for f
in $build_xm_file; do
11614 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11615 build_xm_include_list
="${build_xm_include_list} $f"
11617 auto-build.h | auto-host.h
)
11618 build_xm_file_list
="${build_xm_file_list} $f"
11619 build_xm_include_list
="${build_xm_include_list} $f"
11622 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11623 build_xm_include_list
="${build_xm_include_list} config/$f"
11628 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11629 # cross-compiler which does not use the native headers and libraries.
11630 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11633 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11635 if test "x$with_build_sysroot" != x
; then
11636 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11638 # This value is used, even on a native system, because
11639 # CROSS_SYSTEM_HEADER_DIR is just
11640 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11641 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11644 if test x
$host != x
$target
11646 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11648 SYSTEM_HEADER_DIR
=$build_system_header_dir
11649 case "$host","$target" in
11650 # Darwin crosses can use the host system's libraries and headers,
11651 # because of the fat library support. Of course, it must be the
11652 # same version of Darwin on both sides. Allow the user to
11653 # just say --target=foo-darwin without a version number to mean
11654 # "the version on this system".
11655 *-*-darwin*,*-*-darwin*)
11656 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11657 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11658 if test $hostos = $targetos -o $targetos = darwin
; then
11660 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11665 i?
86-*-*,x86_64-
*-* \
11666 | powerpc
*-*-*,powerpc64
*-*-*)
11667 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11672 if test "x$with_headers" = x
; then
11679 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11680 SYSTEM_HEADER_DIR
=$build_system_header_dir
11683 # If this is a cross-compiler that does not
11684 # have its own set of headers then define
11687 # If this is using newlib, without having the headers available now,
11688 # then define inhibit_libc in LIBGCC2_CFLAGS.
11689 # This prevents libgcc2 from containing any code which requires libc
11691 : ${inhibit_libc=false}
11692 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11693 test x
$with_newlib = xyes
; } &&
11694 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11699 # When building gcc with a cross-compiler, we need to adjust things so
11700 # that the generator programs are still built with the native compiler.
11701 # Also, we cannot run fixincludes.
11703 # These are the normal (build=host) settings:
11704 CC_FOR_BUILD
='$(CC)'
11705 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11706 BUILD_LDFLAGS
='$(LDFLAGS)'
11707 STMP_FIXINC
=stmp-fixinc
11709 # And these apply if build != host, or we are generating coverage data
11710 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11712 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11713 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11716 # Expand extra_headers to include complete path.
11717 # This substitutes for lots of t-* files.
11718 extra_headers_list
=
11719 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11720 for file in ${extra_headers} ; do
11721 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11724 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11725 if test x
"$use_gcc_tgmath" = xyes
11726 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11729 # Define collect2 in Makefile.
11730 case $host_can_use_collect2 in
11732 *) collect2
='collect2$(exeext)' ;;
11736 # Add a definition of USE_COLLECT2 if system wants one.
11737 case $use_collect2 in
11738 no
) use_collect2
= ;;
11741 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11742 xm_defines
="${xm_defines} USE_COLLECT2"
11743 case $host_can_use_collect2 in
11745 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11752 cat >>confdefs.h
<<_ACEOF
11753 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11757 # ---------------------------
11758 # Assembler & linker features
11759 # ---------------------------
11761 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11762 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11763 # However when ld-new is first executed from the build tree, libtool will
11764 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11765 # to the build tree. While doing this we need to use the previous-stage
11766 # linker, or we have an infinite loop. The presence of a shell script as
11767 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11768 # the gcc/collect-ld script. So we need to know how libtool works, or
11769 # exec-tool will fail.
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11775 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11780 macro_version
='2.2.7a'
11781 macro_revision
='1.3134'
11795 ltmain
="$ac_aux_dir/ltmain.sh"
11797 # Backslashify metacharacters that are still active within
11798 # double-quoted strings.
11799 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11801 # Same as above, but do not quote variable references.
11802 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11804 # Sed substitution to delay expansion of an escaped shell variable in a
11805 # double_quote_subst'ed string.
11806 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11808 # Sed substitution to delay expansion of an escaped single quote.
11809 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11811 # Sed substitution to avoid accidental globbing in evaled expressions
11812 no_glob_subst
='s/\*/\\\*/g'
11814 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11819 $as_echo_n "checking how to print strings... " >&6; }
11820 # Test print first, because it will be a builtin if present.
11821 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11822 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11824 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11827 # Use this function as a fallback that always works.
11828 func_fallback_echo ()
11830 eval 'cat <<_LTECHO_EOF
11834 ECHO='func_fallback_echo
'
11837 # func_echo_all arg...
11838 # Invoke $ECHO with all args, space-separated.
11845 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11846 $as_echo "printf" >&6; } ;;
11847 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11848 $as_echo "print -r" >&6; } ;;
11849 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11850 $as_echo "cat" >&6; } ;;
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11867 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11868 if test "${ac_cv_path_SED+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11871 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11872 for ac_i in 1 2 3 4 5 6 7; do
11873 ac_script="$ac_script$as_nl$ac_script"
11875 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11876 { ac_script=; unset ac_script;}
11877 if test -z "$SED"; then
11878 ac_path_SED_found=false
11879 # Loop through the user's path and
test for each of PROGNAME-LIST
11880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11881 for as_dir
in $PATH
11884 test -z "$as_dir" && as_dir
=.
11885 for ac_prog
in sed gsed
; do
11886 for ac_exec_ext
in '' $ac_executable_extensions; do
11887 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11888 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11889 # Check for GNU ac_path_SED and select it if it is found.
11890 # Check for GNU $ac_path_SED
11891 case `"$ac_path_SED" --version 2>&1` in
11893 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11896 $as_echo_n 0123456789 >"conftest.in"
11899 cat "conftest.in" "conftest.in" >"conftest.tmp"
11900 mv "conftest.tmp" "conftest.in"
11901 cp "conftest.in" "conftest.nl"
11902 $as_echo '' >> "conftest.nl"
11903 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11904 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11905 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11906 if test $ac_count -gt ${ac_path_SED_max-0}; then
11907 # Best one so far, save it but keep looking for a better one
11908 ac_cv_path_SED
="$ac_path_SED"
11909 ac_path_SED_max
=$ac_count
11911 # 10*(2^10) chars as input seems more than enough
11912 test $ac_count -gt 10 && break
11914 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11917 $ac_path_SED_found && break 3
11922 if test -z "$ac_cv_path_SED"; then
11923 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11926 ac_cv_path_SED
=$SED
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11931 $as_echo "$ac_cv_path_SED" >&6; }
11932 SED
="$ac_cv_path_SED"
11935 test -z "$SED" && SED
=sed
11936 Xsed
="$SED -e 1s/^X//"
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11949 $as_echo_n "checking for fgrep... " >&6; }
11950 if test "${ac_cv_path_FGREP+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11953 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11954 then ac_cv_path_FGREP
="$GREP -F"
11956 if test -z "$FGREP"; then
11957 ac_path_FGREP_found
=false
11958 # Loop through the user's path and test for each of PROGNAME-LIST
11959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11960 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11963 test -z "$as_dir" && as_dir
=.
11964 for ac_prog
in fgrep
; do
11965 for ac_exec_ext
in '' $ac_executable_extensions; do
11966 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11967 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11968 # Check for GNU ac_path_FGREP and select it if it is found.
11969 # Check for GNU $ac_path_FGREP
11970 case `"$ac_path_FGREP" --version 2>&1` in
11972 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11975 $as_echo_n 0123456789 >"conftest.in"
11978 cat "conftest.in" "conftest.in" >"conftest.tmp"
11979 mv "conftest.tmp" "conftest.in"
11980 cp "conftest.in" "conftest.nl"
11981 $as_echo 'FGREP' >> "conftest.nl"
11982 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11983 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11984 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11985 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11986 # Best one so far, save it but keep looking for a better one
11987 ac_cv_path_FGREP
="$ac_path_FGREP"
11988 ac_path_FGREP_max
=$ac_count
11990 # 10*(2^10) chars as input seems more than enough
11991 test $ac_count -gt 10 && break
11993 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11996 $ac_path_FGREP_found && break 3
12001 if test -z "$ac_cv_path_FGREP"; then
12002 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12005 ac_cv_path_FGREP
=$FGREP
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12011 $as_echo "$ac_cv_path_FGREP" >&6; }
12012 FGREP
="$ac_cv_path_FGREP"
12015 test -z "$GREP" && GREP
=grep
12035 # Check whether --with-gnu-ld was given.
12036 if test "${with_gnu_ld+set}" = set; then :
12037 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12043 if test "$GCC" = yes; then
12044 # Check if gcc -print-prog-name=ld gives a path.
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12046 $as_echo_n "checking for ld used by $CC... " >&6; }
12049 # gcc leaves a trailing carriage return which upsets mingw
12050 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12052 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12055 # Accept absolute paths.
12057 re_direlt
='/[^/][^/]*/\.\./'
12058 # Canonicalize the pathname of ld
12059 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12060 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12061 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12063 test -z "$LD" && LD
="$ac_prog"
12066 # If it fails, then pretend we aren't using GCC.
12070 # If it is relative, then search for the first ld in PATH.
12071 with_gnu_ld
=unknown
12074 elif test "$with_gnu_ld" = yes; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12076 $as_echo_n "checking for GNU ld... " >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12079 $as_echo_n "checking for non-GNU ld... " >&6; }
12081 if test "${lt_cv_path_LD+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
12084 if test -z "$LD"; then
12085 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12086 for ac_dir
in $PATH; do
12088 test -z "$ac_dir" && ac_dir
=.
12089 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12090 lt_cv_path_LD
="$ac_dir/$ac_prog"
12091 # Check to see if the program is GNU ld. I'd rather use --version,
12092 # but apparently some variants of GNU ld only accept -v.
12093 # Break only if it was the GNU/non-GNU ld that we prefer.
12094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12095 *GNU
* |
*'with BFD'*)
12096 test "$with_gnu_ld" != no
&& break
12099 test "$with_gnu_ld" != yes && break
12106 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12110 LD
="$lt_cv_path_LD"
12111 if test -n "$LD"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12113 $as_echo "$LD" >&6; }
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12118 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12120 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12121 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12124 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12125 case `$LD -v 2>&1 </dev/null` in
12126 *GNU
* |
*'with BFD'*)
12127 lt_cv_prog_gnu_ld
=yes
12130 lt_cv_prog_gnu_ld
=no
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12135 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12136 with_gnu_ld
=$lt_cv_prog_gnu_ld
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12147 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12148 if test "${lt_cv_path_NM+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12151 if test -n "$NM"; then
12152 # Let the user override the test.
12153 lt_cv_path_NM
="$NM"
12155 lt_nm_to_check
="${ac_tool_prefix}nm"
12156 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12157 lt_nm_to_check
="$lt_nm_to_check nm"
12159 for lt_tmp_nm
in $lt_nm_to_check; do
12160 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12161 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12163 test -z "$ac_dir" && ac_dir
=.
12164 tmp_nm
="$ac_dir/$lt_tmp_nm"
12165 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12166 # Check to see if the nm accepts a BSD-compat flag.
12167 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12168 # nm: unknown option "B" ignored
12169 # Tru64's nm complains that /dev/null is an invalid object file
12170 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12171 */dev
/null
* |
*'Invalid file or object type'*)
12172 lt_cv_path_NM
="$tmp_nm -B"
12176 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12178 lt_cv_path_NM
="$tmp_nm -p"
12182 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12183 continue # so that we can try to find one that supports BSD flags
12192 : ${lt_cv_path_NM=no}
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12196 $as_echo "$lt_cv_path_NM" >&6; }
12197 if test "$lt_cv_path_NM" != "no"; then
12198 NM
="$lt_cv_path_NM"
12200 # Didn't find any BSD compatible name lister, look for dumpbin.
12201 if test -n "$DUMPBIN"; then :
12202 # Let the user override the test.
12204 if test -n "$ac_tool_prefix"; then
12205 for ac_prog
in dumpbin
"link -dump"
12207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12208 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12214 if test -n "$DUMPBIN"; then
12215 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12218 for as_dir
in $PATH
12221 test -z "$as_dir" && as_dir
=.
12222 for ac_exec_ext
in '' $ac_executable_extensions; do
12223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 DUMPBIN
=$ac_cv_prog_DUMPBIN
12235 if test -n "$DUMPBIN"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12237 $as_echo "$DUMPBIN" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12244 test -n "$DUMPBIN" && break
12247 if test -z "$DUMPBIN"; then
12248 ac_ct_DUMPBIN
=$DUMPBIN
12249 for ac_prog
in dumpbin
"link -dump"
12251 # Extract the first word of "$ac_prog", so it can be a program name with args.
12252 set dummy
$ac_prog; ac_word
=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 $as_echo_n "checking for $ac_word... " >&6; }
12255 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12258 if test -n "$ac_ct_DUMPBIN"; then
12259 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12262 for as_dir
in $PATH
12265 test -z "$as_dir" && as_dir
=.
12266 for ac_exec_ext
in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12279 if test -n "$ac_ct_DUMPBIN"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12281 $as_echo "$ac_ct_DUMPBIN" >&6; }
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12288 test -n "$ac_ct_DUMPBIN" && break
12291 if test "x$ac_ct_DUMPBIN" = x
; then
12294 case $cross_compiling:$ac_tool_warned in
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12298 ac_tool_warned
=yes ;;
12300 DUMPBIN
=$ac_ct_DUMPBIN
12304 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12306 DUMPBIN
="$DUMPBIN -symbols"
12314 if test "$DUMPBIN" != ":"; then
12318 test -z "$NM" && NM
=nm
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12326 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12327 if test "${lt_cv_nm_interface+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12330 lt_cv_nm_interface
="BSD nm"
12331 echo "int some_variable = 0;" > conftest.
$ac_ext
12332 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12333 (eval "$ac_compile" 2>conftest.err
)
12334 cat conftest.err
>&5
12335 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12336 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12337 cat conftest.err
>&5
12338 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12339 cat conftest.out
>&5
12340 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12341 lt_cv_nm_interface
="MS dumpbin"
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12346 $as_echo "$lt_cv_nm_interface" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12349 $as_echo_n "checking whether ln -s works... " >&6; }
12351 if test "$LN_S" = "ln -s"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353 $as_echo "yes" >&6; }
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12356 $as_echo "no, using $LN_S" >&6; }
12359 # find the maximum length of command line arguments
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12361 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12362 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12370 # On DJGPP, this test can blow up pretty badly due to problems in libc
12371 # (any single argument exceeding 2000 bytes causes a buffer overrun
12372 # during glob expansion). Even if it were fixed, the result of this
12373 # check would be larger than it should be.
12374 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12378 # Under GNU Hurd, this test is not required because there is
12379 # no limit to the length of command line arguments.
12380 # Libtool will interpret -1 as no limit whatsoever
12381 lt_cv_sys_max_cmd_len
=-1;
12384 cygwin
* | mingw
* | cegcc
*)
12385 # On Win9x/ME, this test blows up -- it succeeds, but takes
12386 # about 5 minutes as the teststring grows exponentially.
12387 # Worse, since 9x/ME are not pre-emptively multitasking,
12388 # you end up with a "frozen" computer, even though with patience
12389 # the test eventually succeeds (with a max line length of 256k).
12390 # Instead, let's just punt: use the minimum linelength reported by
12391 # all of the supported platforms: 8192 (on NT/2K/XP).
12392 lt_cv_sys_max_cmd_len
=8192;
12396 # On MiNT this can take a long time and run out of memory.
12397 lt_cv_sys_max_cmd_len
=8192;
12401 # On AmigaOS with pdksh, this test takes hours, literally.
12402 # So we just punt and use a minimum line length of 8192.
12403 lt_cv_sys_max_cmd_len
=8192;
12406 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12407 # This has been around since 386BSD, at least. Likely further.
12408 if test -x /sbin
/sysctl
; then
12409 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12410 elif test -x /usr
/sbin
/sysctl
; then
12411 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12413 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12415 # And add a safety zone
12416 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12417 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12421 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12422 lt_cv_sys_max_cmd_len
=196608
12426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12428 # nice to cause kernel panics so lets avoid the loop below.
12429 # First set a reasonable default.
12430 lt_cv_sys_max_cmd_len
=16384
12432 if test -x /sbin
/sysconfig
; then
12433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12434 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12439 lt_cv_sys_max_cmd_len
=102400
12441 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12442 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12443 if test -n "$kargmax"; then
12444 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12446 lt_cv_sys_max_cmd_len
=32768
12450 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12451 if test -n "$lt_cv_sys_max_cmd_len"; then
12452 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12453 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12455 # Make teststring a little bigger before we do anything with it.
12456 # a 1K string should be a reasonable start.
12457 for i
in 1 2 3 4 5 6 7 8 ; do
12458 teststring
=$teststring$teststring
12460 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12461 # If test is not a shell built-in, we'll probably end up computing a
12462 # maximum length that is only half of the actual maximum length, but
12464 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12465 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12466 test $i != 17 # 1/2 MB should be enough
12469 teststring
=$teststring$teststring
12471 # Only check the string length outside the loop.
12472 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12474 # Add a significant safety factor because C++ compilers can tack on
12475 # massive amounts of additional arguments before passing them to the
12476 # linker. It appears as though 1/2 is a usable value.
12477 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12484 if test -n $lt_cv_sys_max_cmd_len ; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12486 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12489 $as_echo "none" >&6; }
12491 max_cmd_len
=$lt_cv_sys_max_cmd_len
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12503 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12504 # Try some XSI features
12506 ( _lt_dummy
="a/b/c"
12507 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12509 && eval 'test $(( 1 + 1 )) -eq 2 \
12510 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12513 $as_echo "$xsi_shell" >&6; }
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12517 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12519 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12521 && lt_shell_append=yes
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12523 $as_echo "$lt_shell_append" >&6; }
12526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12536 # test EBCDIC or ASCII
12537 case `echo X|tr X '\101'` in
12538 A) # ASCII based system
12539 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12540 lt_SP2NL='tr \040 \012'
12541 lt_NL2SP='tr \015\012 \040\040'
12543 *) # EBCDIC based system
12544 lt_SP2NL='tr \100 \n'
12545 lt_NL2SP='tr \r\n \100\100'
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12558 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12559 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12560 $as_echo_n "(cached
) " >&6
12562 lt_cv_ld_reload_flag='-r'
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12566 reload_flag=$lt_cv_ld_reload_flag
12567 case $reload_flag in
12569 *) reload_flag=" $reload_flag" ;;
12571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12574 if test "$GCC" = yes; then
12575 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12590 if test -n "$ac_tool_prefix"; then
12591 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12592 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12594 $as_echo_n "checking
for $ac_word...
" >&6; }
12595 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12596 $as_echo_n "(cached
) " >&6
12598 if test -n "$OBJDUMP"; then
12599 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12618 OBJDUMP=$ac_cv_prog_OBJDUMP
12619 if test -n "$OBJDUMP"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12621 $as_echo "$OBJDUMP" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12624 $as_echo "no
" >&6; }
12629 if test -z "$ac_cv_prog_OBJDUMP"; then
12630 ac_ct_OBJDUMP=$OBJDUMP
12631 # Extract the first word of "objdump
", so it can be a program name with args.
12632 set dummy objdump; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12634 $as_echo_n "checking
for $ac_word...
" >&6; }
12635 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12636 $as_echo_n "(cached
) " >&6
12638 if test -n "$ac_ct_OBJDUMP"; then
12639 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12645 test -z "$as_dir" && as_dir=.
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12648 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12649 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12658 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12659 if test -n "$ac_ct_OBJDUMP"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12661 $as_echo "$ac_ct_OBJDUMP" >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12664 $as_echo "no
" >&6; }
12667 if test "x
$ac_ct_OBJDUMP" = x; then
12670 case $cross_compiling:$ac_tool_warned in
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12673 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12674 ac_tool_warned=yes ;;
12676 OBJDUMP=$ac_ct_OBJDUMP
12679 OBJDUMP="$ac_cv_prog_OBJDUMP"
12682 test -z "$OBJDUMP" && OBJDUMP=objdump
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12693 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12694 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12695 $as_echo_n "(cached
) " >&6
12697 lt_cv_file_magic_cmd='$MAGIC_CMD'
12698 lt_cv_file_magic_test_file=
12699 lt_cv_deplibs_check_method='unknown'
12700 # Need to set the preceding variable on all platforms that support
12701 # interlibrary dependencies.
12702 # 'none' -- dependencies not supported.
12703 # `unknown' -- same as none, but documents that we really don't know.
12704 # 'pass_all' -- all dependencies passed with no checks.
12705 # 'test_compile' -- check by making test program.
12706 # 'file_magic [[regex]]' -- check by looking for files in library path
12707 # which responds to the $file_magic_cmd with a given extended regex.
12708 # If you have `file' or equivalent on your system and you're not sure
12709 # whether `pass_all' will *always* work, you probably want this one.
12713 lt_cv_deplibs_check_method=pass_all
12717 lt_cv_deplibs_check_method=pass_all
12721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12722 lt_cv_file_magic_cmd='/usr/bin/file -L'
12723 lt_cv_file_magic_test_file=/shlib/libc.so
12727 # func_win32_libid is a shell function defined in ltmain.sh
12728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12729 lt_cv_file_magic_cmd='func_win32_libid'
12733 # Base MSYS/MinGW do not provide the 'file' command needed by
12734 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12735 # unless we find 'file', for example because we are cross-compiling.
12736 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12737 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12738 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12739 lt_cv_file_magic_cmd='func_win32_libid'
12741 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12742 lt_cv_file_magic_cmd='$OBJDUMP -f'
12747 # use the weaker test based on 'objdump'. See mingw*.
12748 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12749 lt_cv_file_magic_cmd='$OBJDUMP -f'
12752 darwin* | rhapsody*)
12753 lt_cv_deplibs_check_method=pass_all
12756 freebsd* | dragonfly*)
12757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12760 # Not sure whether the presence of OpenBSD here was a mistake.
12761 # Let's accept both of them until this is cleared up.
12762 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12763 lt_cv_file_magic_cmd=/usr/bin/file
12764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12768 lt_cv_deplibs_check_method=pass_all
12773 lt_cv_deplibs_check_method=pass_all
12777 lt_cv_deplibs_check_method=pass_all
12780 hpux10.20* | hpux11*)
12781 lt_cv_file_magic_cmd=/usr/bin/file
12784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12785 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12788 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]'
12789 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12793 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12799 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12803 irix5* | irix6* | nonstopux*)
12805 *-32|*"-32 ") libmagic=32-bit;;
12806 *-n32|*"-n32 ") libmagic=N32;;
12807 *-64|*"-64 ") libmagic=64-bit;;
12808 *) libmagic=never-match;;
12810 lt_cv_deplibs_check_method=pass_all
12813 # This must be Linux ELF.
12814 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12815 lt_cv_deplibs_check_method=pass_all
12819 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12828 lt_cv_file_magic_cmd=/usr/bin/file
12829 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12833 lt_cv_deplibs_check_method=pass_all
12837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12844 osf3* | osf4* | osf5*)
12845 lt_cv_deplibs_check_method=pass_all
12849 lt_cv_deplibs_check_method=pass_all
12853 lt_cv_deplibs_check_method=pass_all
12856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12857 lt_cv_deplibs_check_method=pass_all
12861 case $host_vendor in
12863 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]'
12864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12867 lt_cv_deplibs_check_method=pass_all
12870 lt_cv_file_magic_cmd='/bin/file'
12871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12874 lt_cv_file_magic_cmd='/bin/file'
12875 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12876 lt_cv_file_magic_test_file=/lib/libc.so
12879 lt_cv_deplibs_check_method=pass_all
12882 lt_cv_deplibs_check_method=pass_all
12888 lt_cv_deplibs_check_method=pass_all
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12894 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12895 file_magic_cmd=$lt_cv_file_magic_cmd
12896 deplibs_check_method=$lt_cv_deplibs_check_method
12897 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12910 if test -n "$ac_tool_prefix"; then
12911 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12912 set dummy ${ac_tool_prefix}ar; ac_word=$2
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12914 $as_echo_n "checking
for $ac_word...
" >&6; }
12915 if test "${ac_cv_prog_AR+set}" = set; then :
12916 $as_echo_n "(cached
) " >&6
12918 if test -n "$AR"; then
12919 ac_cv_prog_AR="$AR" # Let the user override the test.
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $PATH
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_prog_AR="${ac_tool_prefix}ar"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12939 if test -n "$AR"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12941 $as_echo "$AR" >&6; }
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12944 $as_echo "no
" >&6; }
12949 if test -z "$ac_cv_prog_AR"; then
12951 # Extract the first word of "ar", so it can be a program name with args.
12952 set dummy ar; ac_word=$2
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12954 $as_echo_n "checking
for $ac_word...
" >&6; }
12955 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12956 $as_echo_n "(cached
) " >&6
12958 if test -n "$ac_ct_AR"; then
12959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_prog_ac_ct_AR="ar"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12978 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12979 if test -n "$ac_ct_AR"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12981 $as_echo "$ac_ct_AR" >&6; }
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12984 $as_echo "no
" >&6; }
12987 if test "x
$ac_ct_AR" = x; then
12990 case $cross_compiling:$ac_tool_warned in
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12993 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12994 ac_tool_warned=yes ;;
12999 AR="$ac_cv_prog_AR"
13002 test -z "$AR" && AR=ar
13003 test -z "$AR_FLAGS" && AR_FLAGS=cru
13015 if test -n "$ac_tool_prefix"; then
13016 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13017 set dummy ${ac_tool_prefix}strip; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13019 $as_echo_n "checking
for $ac_word...
" >&6; }
13020 if test "${ac_cv_prog_STRIP+set}" = set; then :
13021 $as_echo_n "(cached
) " >&6
13023 if test -n "$STRIP"; then
13024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13043 STRIP=$ac_cv_prog_STRIP
13044 if test -n "$STRIP"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13046 $as_echo "$STRIP" >&6; }
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13049 $as_echo "no
" >&6; }
13054 if test -z "$ac_cv_prog_STRIP"; then
13056 # Extract the first word of "strip
", so it can be a program name with args.
13057 set dummy strip; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13059 $as_echo_n "checking
for $ac_word...
" >&6; }
13060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13061 $as_echo_n "(cached
) " >&6
13063 if test -n "$ac_ct_STRIP"; then
13064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13073 ac_cv_prog_ac_ct_STRIP="strip
"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13084 if test -n "$ac_ct_STRIP"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13086 $as_echo "$ac_ct_STRIP" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13089 $as_echo "no
" >&6; }
13092 if test "x
$ac_ct_STRIP" = x; then
13095 case $cross_compiling:$ac_tool_warned in
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13098 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13099 ac_tool_warned=yes ;;
13104 STRIP="$ac_cv_prog_STRIP"
13107 test -z "$STRIP" && STRIP=:
13114 if test -n "$ac_tool_prefix"; then
13115 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13116 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13118 $as_echo_n "checking
for $ac_word...
" >&6; }
13119 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13120 $as_echo_n "(cached
) " >&6
13122 if test -n "$RANLIB"; then
13123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13142 RANLIB=$ac_cv_prog_RANLIB
13143 if test -n "$RANLIB"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13145 $as_echo "$RANLIB" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13148 $as_echo "no
" >&6; }
13153 if test -z "$ac_cv_prog_RANLIB"; then
13154 ac_ct_RANLIB=$RANLIB
13155 # Extract the first word of "ranlib
", so it can be a program name with args.
13156 set dummy ranlib; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13158 $as_echo_n "checking
for $ac_word...
" >&6; }
13159 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13160 $as_echo_n "(cached
) " >&6
13162 if test -n "$ac_ct_RANLIB"; then
13163 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13182 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13183 if test -n "$ac_ct_RANLIB"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13185 $as_echo "$ac_ct_RANLIB" >&6; }
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13188 $as_echo "no
" >&6; }
13191 if test "x
$ac_ct_RANLIB" = x; then
13194 case $cross_compiling:$ac_tool_warned in
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13197 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13198 ac_tool_warned=yes ;;
13200 RANLIB=$ac_ct_RANLIB
13203 RANLIB="$ac_cv_prog_RANLIB"
13206 test -z "$RANLIB" && RANLIB=:
13213 # Determine commands to create old-style static archives.
13214 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13215 old_postinstall_cmds='chmod 644 $oldlib'
13216 old_postuninstall_cmds=
13218 if test -n "$RANLIB"; then
13221 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13224 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13227 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13232 lock_old_archive_extraction=yes ;;
13234 lock_old_archive_extraction=no ;;
13275 # If no C compiler was specified, use CC.
13278 # If no C compiler flags were specified, use CFLAGS.
13279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13281 # Allow CC to be a program name with arguments.
13285 # Check for command to grab the raw symbol name followed by C symbol from nm.
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13287 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13288 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13289 $as_echo_n "(cached
) " >&6
13292 # These are sane defaults that work on at least a few old systems.
13293 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13295 # Character class describing NM global symbol codes.
13296 symcode='[BCDEGRST]'
13298 # Regexp to match symbols that can be accessed directly from C.
13299 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13301 # Define system-specific variables.
13306 cygwin* | mingw* | pw32* | cegcc*)
13307 symcode='[ABCDGISTW]'
13310 if test "$host_cpu" = ia64; then
13311 symcode='[ABCDEGRST]'
13314 irix* | nonstopux*)
13315 symcode='[BCDEGRST]'
13318 symcode='[BCDEGQRST]'
13329 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13337 # If we're using GNU nm, then use its standard symbol codes.
13338 case `$NM -V 2>&1` in
13339 *GNU* | *'with BFD'*)
13340 symcode='[ABCDGIRSTW]' ;;
13343 # Transform an extracted symbol line into a proper C declaration.
13344 # Some systems (esp. on ia64) link data and code symbols differently,
13345 # so use this general approach.
13346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13348 # Transform an extracted symbol line into symbol name and symbol address
13349 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13350 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'"
13352 # Handle CRLF in mingw tool chain
13356 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13360 # Try without a prefix underscore, then with it.
13361 for ac_symprfx in "" "_
"; do
13363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13364 symxfrm="\\1 $ac_symprfx\\2 \\2"
13366 # Write the raw and C identifiers.
13367 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13368 # Fake it for dumpbin and say T for any non-static function
13369 # and D for any global variable.
13370 # Also find C++ and __fastcall symbols from MSVC++,
13371 # which start with @ or ?.
13372 lt_cv_sys_global_symbol_pipe="$AWK '"\
13373 " {last_section=section; section=\$ 3};"\
13374 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13375 " \$ 0!~/External *\|/{next};"\
13376 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13377 " {if(hide[section]) next};"\
13378 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13379 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13380 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13381 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13382 " ' prfx
=^
$ac_symprfx"
13384 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13387 # Check to see that the pipe works correctly.
13391 cat > conftest.$ac_ext <<_LT_EOF
13396 void nm_test_func(void);
13397 void nm_test_func(void){}
13401 int main(){nm_test_var='a';nm_test_func();return(0);}
13404 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13405 (eval $ac_compile) 2>&5
13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13408 test $ac_status = 0; }; then
13409 # Now try to grab the symbols.
13411 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13412 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13414 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13415 test $ac_status = 0; } && test -s "$nlist"; then
13416 # Try sorting and uniquifying the output.
13417 if sort "$nlist" | uniq > "$nlist"T; then
13418 mv -f "$nlist"T "$nlist"
13423 # Make sure that we snagged all the symbols we need.
13424 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13425 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13426 cat <<_LT_EOF > conftest.$ac_ext
13432 # Now generate the symbol file.
13433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13435 cat <<_LT_EOF >> conftest.$ac_ext
13437 /* The mapping between symbol names and symbols. */
13442 lt__PROGRAM__LTX_preloaded_symbols[] =
13444 { "@PROGRAM@
", (void *) 0 },
13446 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13447 cat <<\_LT_EOF >> conftest.$ac_ext
13451 /* This works around a problem in FreeBSD linker */
13452 #ifdef FREEBSD_WORKAROUND
13453 static const void *lt_preloaded_setup() {
13454 return lt__PROGRAM__LTX_preloaded_symbols;
13462 # Now try linking the two files.
13463 mv conftest.$ac_objext conftstm.$ac_objext
13464 lt_save_LIBS="$LIBS"
13465 lt_save_CFLAGS="$CFLAGS"
13466 LIBS="conftstm.
$ac_objext"
13467 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13468 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13469 (eval $ac_link) 2>&5
13471 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13472 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13475 LIBS="$lt_save_LIBS"
13476 CFLAGS="$lt_save_CFLAGS"
13478 echo "cannot
find nm_test_func
in $nlist" >&5
13481 echo "cannot
find nm_test_var
in $nlist" >&5
13484 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13487 echo "$progname: failed program was
:" >&5
13488 cat conftest.$ac_ext >&5
13490 rm -rf conftest* conftst*
13492 # Do not use the global_symbol_pipe unless it works.
13493 if test "$pipe_works" = yes; then
13496 lt_cv_sys_global_symbol_pipe=
13502 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13503 lt_cv_sys_global_symbol_to_cdecl=
13505 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13507 $as_echo "failed
" >&6; }
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13510 $as_echo "ok
" >&6; }
13534 # Check whether --enable-libtool-lock was given.
13535 if test "${enable_libtool_lock+set}" = set; then :
13536 enableval=$enable_libtool_lock;
13539 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13541 # Some flags need to be propagated to the compiler or linker for good
13545 # Find out which ABI we are using.
13546 echo 'int i;' > conftest.$ac_ext
13547 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13548 (eval $ac_compile) 2>&5
13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13551 test $ac_status = 0; }; then
13552 case `/usr/bin/file conftest.$ac_objext` in
13554 HPUX_IA64_MODE="32"
13557 HPUX_IA64_MODE="64"
13564 # Find out which ABI we are using.
13565 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13566 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13567 (eval $ac_compile) 2>&5
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13570 test $ac_status = 0; }; then
13571 if test "$lt_cv_prog_gnu_ld" = yes; then
13572 case `/usr/bin/file conftest.$ac_objext` in
13574 LD="${LD-ld} -melf32bsmip"
13577 LD="${LD-ld} -melf32bmipn32"
13580 LD="${LD-ld} -melf64bmip"
13584 case `/usr/bin/file conftest.$ac_objext` in
13600 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13601 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13602 # Find out which ABI we are using.
13603 echo 'int i;' > conftest.$ac_ext
13604 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13605 (eval $ac_compile) 2>&5
13607 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13608 test $ac_status = 0; }; then
13609 case `/usr/bin/file conftest.o` in
13612 x86_64-*kfreebsd*-gnu)
13613 LD="${LD-ld} -m elf_i386_fbsd
"
13616 LD="${LD-ld} -m elf_i386
"
13618 ppc64-*linux*|powerpc64-*linux*)
13619 LD="${LD-ld} -m elf32ppclinux
"
13622 LD="${LD-ld} -m elf_s390
"
13625 LD="${LD-ld} -m elf32_sparc
"
13631 x86_64-*kfreebsd*-gnu)
13632 LD="${LD-ld} -m elf_x86_64_fbsd
"
13635 LD="${LD-ld} -m elf_x86_64
"
13637 ppc*-*linux*|powerpc*-*linux*)
13638 LD="${LD-ld} -m elf64ppc
"
13640 s390*-*linux*|s390*-*tpf*)
13641 LD="${LD-ld} -m elf64_s390
"
13644 LD="${LD-ld} -m elf64_sparc
"
13654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13655 SAVE_CFLAGS="$CFLAGS"
13656 CFLAGS="$CFLAGS -belf"
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13658 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13659 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13660 $as_echo_n "(cached
) " >&6
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 lt_cv_cc_needs_belf=yes
13682 lt_cv_cc_needs_belf=no
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13687 ac_cpp='$CPP $CPPFLAGS'
13688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13694 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13695 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13697 CFLAGS="$SAVE_CFLAGS"
13701 # Find out which ABI we are using.
13702 echo 'int i;' > conftest.$ac_ext
13703 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704 (eval $ac_compile) 2>&5
13706 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13707 test $ac_status = 0; }; then
13708 case `/usr/bin/file conftest.o` in
13710 case $lt_cv_prog_gnu_ld in
13711 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13713 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13725 need_locks="$enable_libtool_lock"
13729 rhapsody* | darwin*)
13730 if test -n "$ac_tool_prefix"; then
13731 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13732 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13734 $as_echo_n "checking
for $ac_word...
" >&6; }
13735 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13736 $as_echo_n "(cached
) " >&6
13738 if test -n "$DSYMUTIL"; then
13739 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13758 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13759 if test -n "$DSYMUTIL"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13761 $as_echo "$DSYMUTIL" >&6; }
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13764 $as_echo "no
" >&6; }
13769 if test -z "$ac_cv_prog_DSYMUTIL"; then
13770 ac_ct_DSYMUTIL=$DSYMUTIL
13771 # Extract the first word of "dsymutil
", so it can be a program name with args.
13772 set dummy dsymutil; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13774 $as_echo_n "checking
for $ac_word...
" >&6; }
13775 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13776 $as_echo_n "(cached
) " >&6
13778 if test -n "$ac_ct_DSYMUTIL"; then
13779 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13788 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13798 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13799 if test -n "$ac_ct_DSYMUTIL"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13801 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13804 $as_echo "no
" >&6; }
13807 if test "x
$ac_ct_DSYMUTIL" = x; then
13810 case $cross_compiling:$ac_tool_warned in
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13813 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13814 ac_tool_warned=yes ;;
13816 DSYMUTIL=$ac_ct_DSYMUTIL
13819 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13822 if test -n "$ac_tool_prefix"; then
13823 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13824 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13826 $as_echo_n "checking
for $ac_word...
" >&6; }
13827 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13828 $as_echo_n "(cached
) " >&6
13830 if test -n "$NMEDIT"; then
13831 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13837 test -z "$as_dir" && as_dir=.
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13850 NMEDIT=$ac_cv_prog_NMEDIT
13851 if test -n "$NMEDIT"; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13853 $as_echo "$NMEDIT" >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13856 $as_echo "no
" >&6; }
13861 if test -z "$ac_cv_prog_NMEDIT"; then
13862 ac_ct_NMEDIT=$NMEDIT
13863 # Extract the first word of "nmedit
", so it can be a program name with args.
13864 set dummy nmedit; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13866 $as_echo_n "checking
for $ac_word...
" >&6; }
13867 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13868 $as_echo_n "(cached
) " >&6
13870 if test -n "$ac_ct_NMEDIT"; then
13871 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13880 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13890 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13891 if test -n "$ac_ct_NMEDIT"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13893 $as_echo "$ac_ct_NMEDIT" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13896 $as_echo "no
" >&6; }
13899 if test "x
$ac_ct_NMEDIT" = x; then
13902 case $cross_compiling:$ac_tool_warned in
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13905 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13906 ac_tool_warned=yes ;;
13908 NMEDIT=$ac_ct_NMEDIT
13911 NMEDIT="$ac_cv_prog_NMEDIT"
13914 if test -n "$ac_tool_prefix"; then
13915 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13916 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13918 $as_echo_n "checking
for $ac_word...
" >&6; }
13919 if test "${ac_cv_prog_LIPO+set}" = set; then :
13920 $as_echo_n "(cached
) " >&6
13922 if test -n "$LIPO"; then
13923 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13932 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13942 LIPO=$ac_cv_prog_LIPO
13943 if test -n "$LIPO"; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13945 $as_echo "$LIPO" >&6; }
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13948 $as_echo "no
" >&6; }
13953 if test -z "$ac_cv_prog_LIPO"; then
13955 # Extract the first word of "lipo
", so it can be a program name with args.
13956 set dummy lipo; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13958 $as_echo_n "checking
for $ac_word...
" >&6; }
13959 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13960 $as_echo_n "(cached
) " >&6
13962 if test -n "$ac_ct_LIPO"; then
13963 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972 ac_cv_prog_ac_ct_LIPO="lipo
"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13982 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13983 if test -n "$ac_ct_LIPO"; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13985 $as_echo "$ac_ct_LIPO" >&6; }
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13988 $as_echo "no
" >&6; }
13991 if test "x
$ac_ct_LIPO" = x; then
13994 case $cross_compiling:$ac_tool_warned in
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13997 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13998 ac_tool_warned=yes ;;
14003 LIPO="$ac_cv_prog_LIPO"
14006 if test -n "$ac_tool_prefix"; then
14007 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14008 set dummy ${ac_tool_prefix}otool; ac_word=$2
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14010 $as_echo_n "checking
for $ac_word...
" >&6; }
14011 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14012 $as_echo_n "(cached
) " >&6
14014 if test -n "$OTOOL"; then
14015 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 for as_dir in $PATH
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14024 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14034 OTOOL=$ac_cv_prog_OTOOL
14035 if test -n "$OTOOL"; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14037 $as_echo "$OTOOL" >&6; }
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14040 $as_echo "no
" >&6; }
14045 if test -z "$ac_cv_prog_OTOOL"; then
14047 # Extract the first word of "otool
", so it can be a program name with args.
14048 set dummy otool; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14050 $as_echo_n "checking
for $ac_word...
" >&6; }
14051 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14052 $as_echo_n "(cached
) " >&6
14054 if test -n "$ac_ct_OTOOL"; then
14055 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_prog_ac_ct_OTOOL="otool
"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14074 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14075 if test -n "$ac_ct_OTOOL"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14077 $as_echo "$ac_ct_OTOOL" >&6; }
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14080 $as_echo "no
" >&6; }
14083 if test "x
$ac_ct_OTOOL" = x; then
14086 case $cross_compiling:$ac_tool_warned in
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14089 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14090 ac_tool_warned=yes ;;
14095 OTOOL="$ac_cv_prog_OTOOL"
14098 if test -n "$ac_tool_prefix"; then
14099 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14100 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14102 $as_echo_n "checking
for $ac_word...
" >&6; }
14103 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14104 $as_echo_n "(cached
) " >&6
14106 if test -n "$OTOOL64"; then
14107 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14116 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14126 OTOOL64=$ac_cv_prog_OTOOL64
14127 if test -n "$OTOOL64"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14129 $as_echo "$OTOOL64" >&6; }
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14132 $as_echo "no
" >&6; }
14137 if test -z "$ac_cv_prog_OTOOL64"; then
14138 ac_ct_OTOOL64=$OTOOL64
14139 # Extract the first word of "otool64
", so it can be a program name with args.
14140 set dummy otool64; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14142 $as_echo_n "checking
for $ac_word...
" >&6; }
14143 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14144 $as_echo_n "(cached
) " >&6
14146 if test -n "$ac_ct_OTOOL64"; then
14147 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14166 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14167 if test -n "$ac_ct_OTOOL64"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14169 $as_echo "$ac_ct_OTOOL64" >&6; }
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14172 $as_echo "no
" >&6; }
14175 if test "x
$ac_ct_OTOOL64" = x; then
14178 case $cross_compiling:$ac_tool_warned in
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14182 ac_tool_warned=yes ;;
14184 OTOOL64=$ac_ct_OTOOL64
14187 OTOOL64="$ac_cv_prog_OTOOL64"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14217 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14218 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14219 $as_echo_n "(cached
) " >&6
14221 lt_cv_apple_cc_single_mod=no
14222 if test -z "${LT_MULTI_MODULE}"; then
14223 # By default we will add the -single_module flag. You can override
14224 # by either setting the environment variable LT_MULTI_MODULE
14225 # non-empty at configure time, or by adding -multi_module to the
14227 rm -rf libconftest.dylib*
14228 echo "int foo
(void
){return 1;}" > conftest.c
14229 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14230 -dynamiclib -Wl,-single_module conftest.c
" >&5
14231 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14232 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14234 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14235 lt_cv_apple_cc_single_mod=yes
14237 cat conftest.err >&5
14239 rm -rf libconftest.dylib*
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14244 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14246 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14247 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14248 $as_echo_n "(cached
) " >&6
14250 lt_cv_ld_exported_symbols_list=no
14251 save_LDFLAGS=$LDFLAGS
14252 echo "_main
" > conftest.sym
14253 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14265 if ac_fn_c_try_link "$LINENO"; then :
14266 lt_cv_ld_exported_symbols_list=yes
14268 lt_cv_ld_exported_symbols_list=no
14270 rm -f core conftest.err conftest.$ac_objext \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LDFLAGS="$save_LDFLAGS"
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14276 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14278 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14279 if test "${lt_cv_ld_force_load+set}" = set; then :
14280 $as_echo_n "(cached
) " >&6
14282 lt_cv_ld_force_load=no
14283 cat > conftest.c << _LT_EOF
14284 int forced_loaded() { return 2;}
14286 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14287 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14288 echo "$AR cru libconftest.a conftest.o
" >&5
14289 $AR cru libconftest.a conftest.o 2>&5
14290 cat > conftest.c << _LT_EOF
14291 int main() { return 0;}
14293 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14294 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14296 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14297 lt_cv_ld_force_load=yes
14299 cat conftest.err >&5
14301 rm -f conftest.err libconftest.a conftest conftest.c
14302 rm -rf conftest.dSYM
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14306 $as_echo "$lt_cv_ld_force_load" >&6; }
14308 rhapsody* | darwin1.[012])
14309 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14312 darwin*) # darwin 5.x on
14313 # if running on 10.5 or later, the deployment target defaults
14314 # to the OS version, if on x86, and 10.4, the deployment
14315 # target defaults to 10.4. Don't you love it?
14316 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14317 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14318 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14320 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14322 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14326 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14327 _lt_dar_single_mod='$single_module'
14329 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14330 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14332 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14334 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14335 _lt_dsymutil='~$DSYMUTIL $lib || :'
14342 for ac_header in dlfcn.h
14344 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14345 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_DLFCN_H 1
14364 enable_win32_dll=no
14367 # Check whether --enable-shared was given.
14368 if test "${enable_shared+set}" = set; then :
14369 enableval=$enable_shared; p=${PACKAGE-default}
14371 yes) enable_shared=yes ;;
14372 no) enable_shared=no ;;
14375 # Look at the argument we got. We use all the common list separators.
14376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14377 for pkg in $enableval; do
14379 if test "X
$pkg" = "X
$p"; then
14398 # Check whether --enable-static was given.
14399 if test "${enable_static+set}" = set; then :
14400 enableval=$enable_static; p=${PACKAGE-default}
14402 yes) enable_static=yes ;;
14403 no) enable_static=no ;;
14406 # Look at the argument we got. We use all the common list separators.
14407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14408 for pkg in $enableval; do
14410 if test "X
$pkg" = "X
$p"; then
14430 # Check whether --with-pic was given.
14431 if test "${with_pic+set}" = set; then :
14432 withval=$with_pic; pic_mode="$withval"
14438 test -z "$pic_mode" && pic_mode=default
14446 # Check whether --enable-fast-install was given.
14447 if test "${enable_fast_install+set}" = set; then :
14448 enableval=$enable_fast_install; p=${PACKAGE-default}
14450 yes) enable_fast_install=yes ;;
14451 no) enable_fast_install=no ;;
14453 enable_fast_install=no
14454 # Look at the argument we got. We use all the common list separators.
14455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14456 for pkg in $enableval; do
14458 if test "X
$pkg" = "X
$p"; then
14459 enable_fast_install=yes
14466 enable_fast_install=yes
14479 # This can be used to rebuild libtool when needed
14480 LIBTOOL_DEPS="$ltmain"
14482 # Always use our own libtool.
14483 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14510 test -z "$LN_S" && LN_S="ln -s"
14525 if test -n "${ZSH_VERSION+set}" ; then
14526 setopt NO_GLOB_SUBST
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14530 $as_echo_n "checking
for objdir...
" >&6; }
14531 if test "${lt_cv_objdir+set}" = set; then :
14532 $as_echo_n "(cached
) " >&6
14534 rm -f .libs 2>/dev/null
14535 mkdir .libs 2>/dev/null
14536 if test -d .libs; then
14539 # MS-DOS does not allow filenames that begin with a dot.
14542 rmdir .libs 2>/dev/null
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14545 $as_echo "$lt_cv_objdir" >&6; }
14546 objdir=$lt_cv_objdir
14552 cat >>confdefs.h <<_ACEOF
14553 #define LT_OBJDIR "$lt_cv_objdir/"
14561 # AIX sometimes has problems with the GCC collect2 program. For some
14562 # reason, if we set the COLLECT_NAMES environment variable, the problems
14563 # vanish in a puff of smoke.
14564 if test "X
${COLLECT_NAMES+set}" != Xset; then
14566 export COLLECT_NAMES
14571 # Global variables:
14573 can_build_shared=yes
14575 # All known linkers require a `.a' archive for static linking (except MSVC,
14576 # which needs '.lib').
14579 with_gnu_ld="$lt_cv_prog_gnu_ld"
14582 old_CFLAGS="$CFLAGS"
14584 # Set sane defaults for various variables
14585 test -z "$CC" && CC=cc
14586 test -z "$LTCC" && LTCC=$CC
14587 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14588 test -z "$LD" && LD=ld
14589 test -z "$ac_objext" && ac_objext=o
14591 for cc_temp in $compiler""; do
14593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14599 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14602 # Only perform the check for file, if the check method requires it
14603 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14604 case $deplibs_check_method in
14606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14608 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14610 $as_echo_n "(cached
) " >&6
14614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14617 lt_save_MAGIC_CMD="$MAGIC_CMD"
14618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14619 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14620 for ac_dir in $ac_dummy; do
14622 test -z "$ac_dir" && ac_dir=.
14623 if test -f $ac_dir/${ac_tool_prefix}file; then
14624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14625 if test -n "$file_magic_test_file"; then
14626 case $deplibs_check_method in
14628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14631 $EGREP "$file_magic_regex" > /dev/null; then
14636 *** Warning: the command libtool uses to detect shared libraries,
14637 *** $file_magic_cmd, produces output that libtool cannot recognize.
14638 *** The result is that libtool may fail to recognize shared libraries
14639 *** as such. This will affect the creation of libtool libraries that
14640 *** depend on shared libraries, but programs linked with such libtool
14641 *** libraries will work regardless of this problem. Nevertheless, you
14642 *** may want to report the problem to your system manager and/or to
14643 *** bug-libtool@gnu.org
14653 MAGIC_CMD="$lt_save_MAGIC_CMD"
14658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14659 if test -n "$MAGIC_CMD"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14661 $as_echo "$MAGIC_CMD" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14664 $as_echo "no
" >&6; }
14671 if test -z "$lt_cv_path_MAGIC_CMD"; then
14672 if test -n "$ac_tool_prefix"; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14674 $as_echo_n "checking
for file...
" >&6; }
14675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14676 $as_echo_n "(cached
) " >&6
14680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683 lt_save_MAGIC_CMD="$MAGIC_CMD"
14684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14685 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14686 for ac_dir in $ac_dummy; do
14688 test -z "$ac_dir" && ac_dir=.
14689 if test -f $ac_dir/file; then
14690 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14691 if test -n "$file_magic_test_file"; then
14692 case $deplibs_check_method in
14694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14697 $EGREP "$file_magic_regex" > /dev/null; then
14702 *** Warning: the command libtool uses to detect shared libraries,
14703 *** $file_magic_cmd, produces output that libtool cannot recognize.
14704 *** The result is that libtool may fail to recognize shared libraries
14705 *** as such. This will affect the creation of libtool libraries that
14706 *** depend on shared libraries, but programs linked with such libtool
14707 *** libraries will work regardless of this problem. Nevertheless, you
14708 *** may want to report the problem to your system manager and/or to
14709 *** bug-libtool@gnu.org
14719 MAGIC_CMD="$lt_save_MAGIC_CMD"
14724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14725 if test -n "$MAGIC_CMD"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14727 $as_echo "$MAGIC_CMD" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14730 $as_echo "no
" >&6; }
14743 # Use C for the default configuration in the libtool script
14747 ac_cpp='$CPP $CPPFLAGS'
14748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14753 # Source file extension for C test sources.
14756 # Object file extension for compiled C test sources.
14760 # Code to be used in simple compile tests
14761 lt_simple_compile_test_code="int some_variable
= 0;"
14763 # Code to be used in simple link tests
14764 lt_simple_link_test_code='int main(){return(0);}'
14772 # If no C compiler was specified, use CC.
14775 # If no C compiler flags were specified, use CFLAGS.
14776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14778 # Allow CC to be a program name with arguments.
14781 # Save the default compiler, since it gets overwritten when the other
14782 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14783 compiler_DEFAULT=$CC
14785 # save warnings/boilerplate of simple test code
14786 ac_outfile=conftest.$ac_objext
14787 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789 _lt_compiler_boilerplate=`cat conftest.err`
14792 ac_outfile=conftest.$ac_objext
14793 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14795 _lt_linker_boilerplate=`cat conftest.err`
14800 ## There is no encapsulation within the following macros, do not change
14801 ## the running order or otherwise move them around unless you know exactly
14802 ## what you are doing...
14803 if test -n "$compiler"; then
14805 lt_prog_compiler_no_builtin_flag=
14807 if test "$GCC" = yes; then
14808 case $cc_basename in
14810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14816 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14817 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14818 $as_echo_n "(cached
) " >&6
14820 lt_cv_prog_compiler_rtti_exceptions=no
14821 ac_outfile=conftest.$ac_objext
14822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14823 lt_compiler_flag="-fno-rtti -fno-exceptions"
14824 # Insert the option either (1) after the last *FLAGS variable, or
14825 # (2) before a word containing "conftest.
", or (3) at the end.
14826 # Note that $ac_compile itself does not contain backslashes and begins
14827 # with a dollar sign (not a hyphen), so the echo should work correctly.
14828 # The option is referenced via a variable to avoid confusing sed.
14829 lt_compile=`echo "$ac_compile" | $SED \
14830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832 -e 's:$: $lt_compiler_flag:'`
14833 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14834 (eval "$lt_compile" 2>conftest.err)
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14838 if (exit $ac_status) && test -s "$ac_outfile"; then
14839 # The compiler can only warn and ignore the option if not recognized
14840 # So say no if there are warnings other than the usual output.
14841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14844 lt_cv_prog_compiler_rtti_exceptions=yes
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14851 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14853 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14866 lt_prog_compiler_wl=
14867 lt_prog_compiler_pic=
14868 lt_prog_compiler_static=
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14871 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14873 if test "$GCC" = yes; then
14874 lt_prog_compiler_wl='-Wl,'
14875 lt_prog_compiler_static='-static'
14879 # All AIX code is PIC.
14880 if test "$host_cpu" = ia64; then
14881 # AIX 5 now supports IA64 processor
14882 lt_prog_compiler_static='-Bstatic'
14889 # see comment about AmigaOS4 .so support
14890 lt_prog_compiler_pic='-fPIC'
14893 # FIXME: we need at least 68020 code to build shared libraries, but
14894 # adding the `-m68020' flag to GCC prevents building anything better,
14896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14902 # PIC is the default for these OSes.
14905 mingw* | cygwin* | pw32* | os2* | cegcc*)
14906 # This hack is so that the source file can tell whether it is being
14907 # built for inclusion in a dll (and should export symbols for example).
14908 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14909 # (--disable-auto-import) libraries
14910 lt_prog_compiler_pic='-DDLL_EXPORT'
14913 darwin* | rhapsody*)
14914 # PIC is the default on this platform
14915 # Common symbols not allowed in MH_DYLIB files
14916 lt_prog_compiler_pic='-fno-common'
14920 # PIC is the default for Haiku.
14921 # The "-static" flag exists, but is broken.
14922 lt_prog_compiler_static=
14926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14928 # sets the default TLS model and affects inlining.
14934 lt_prog_compiler_pic='-fPIC'
14940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14941 # Instead, we relocate shared libraries at runtime.
14945 # Just because we use GCC doesn't mean we suddenly get shared libraries
14946 # on systems that don't support them.
14947 lt_prog_compiler_can_build_shared=no
14952 # QNX uses GNU C++, but need to define -shared option too, otherwise
14953 # it will coredump.
14954 lt_prog_compiler_pic='-fPIC -shared'
14958 if test -d /usr/nec; then
14959 lt_prog_compiler_pic=-Kconform_pic
14964 lt_prog_compiler_pic='-fPIC'
14968 case $cc_basename in
14969 nvcc*) # Cuda Compiler Driver 2.2
14970 lt_prog_compiler_wl='-Xlinker '
14971 lt_prog_compiler_pic='-Xcompiler -fPIC'
14975 # PORTME Check for flag to pass linker flags through the system compiler.
14978 lt_prog_compiler_wl='-Wl,'
14979 if test "$host_cpu" = ia64; then
14980 # AIX 5 now supports IA64 processor
14981 lt_prog_compiler_static='-Bstatic'
14983 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14987 mingw* | cygwin* | pw32* | os2* | cegcc*)
14988 # This hack is so that the source file can tell whether it is being
14989 # built for inclusion in a dll (and should export symbols for example).
14990 lt_prog_compiler_pic='-DDLL_EXPORT'
14993 hpux9* | hpux10* | hpux11*)
14994 lt_prog_compiler_wl='-Wl,'
14995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14996 # not for PA HP-UX.
15002 lt_prog_compiler_pic='+Z'
15005 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15006 lt_prog_compiler_static='${wl}-a ${wl}archive'
15009 irix5* | irix6* | nonstopux*)
15010 lt_prog_compiler_wl='-Wl,'
15011 # PIC (with -KPIC) is the default.
15012 lt_prog_compiler_static='-non_shared'
15015 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15016 case $cc_basename in
15017 # old Intel for x86_64 which still supported -KPIC.
15019 lt_prog_compiler_wl='-Wl,'
15020 lt_prog_compiler_pic='-KPIC'
15021 lt_prog_compiler_static='-static'
15023 # icc used to be incompatible with GCC.
15024 # ICC 10 doesn't accept -KPIC any more.
15026 lt_prog_compiler_wl='-Wl,'
15027 lt_prog_compiler_pic='-fPIC'
15028 lt_prog_compiler_static='-static'
15030 # Lahey Fortran 8.1.
15032 lt_prog_compiler_wl='-Wl,'
15033 lt_prog_compiler_pic='--shared'
15034 lt_prog_compiler_static='--static'
15036 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15037 # Portland Group compilers (*not* the Pentium gcc compiler,
15038 # which looks to be a dead project)
15039 lt_prog_compiler_wl='-Wl,'
15040 lt_prog_compiler_pic='-fpic'
15041 lt_prog_compiler_static='-Bstatic'
15044 lt_prog_compiler_wl='-Wl,'
15045 # All Alpha code is PIC.
15046 lt_prog_compiler_static='-non_shared'
15048 xl* | bgxl* | bgf* | mpixl*)
15049 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15050 lt_prog_compiler_wl='-Wl,'
15051 lt_prog_compiler_pic='-qpic'
15052 lt_prog_compiler_static='-qstaticlink'
15055 case `$CC -V 2>&1 | sed 5q` in
15056 *Sun\ F* | *Sun*Fortran*)
15057 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15058 lt_prog_compiler_pic='-KPIC'
15059 lt_prog_compiler_static='-Bstatic'
15060 lt_prog_compiler_wl=''
15064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-Bstatic'
15066 lt_prog_compiler_wl='-Wl,'
15074 lt_prog_compiler_pic='-KPIC'
15075 lt_prog_compiler_static='-Bstatic'
15079 # QNX uses GNU C++, but need to define -shared option too, otherwise
15080 # it will coredump.
15081 lt_prog_compiler_pic='-fPIC -shared'
15084 osf3* | osf4* | osf5*)
15085 lt_prog_compiler_wl='-Wl,'
15086 # All OSF/1 code is PIC.
15087 lt_prog_compiler_static='-non_shared'
15091 lt_prog_compiler_static='-non_shared'
15095 lt_prog_compiler_pic='-KPIC'
15096 lt_prog_compiler_static='-Bstatic'
15097 case $cc_basename in
15098 f77* | f90* | f95*)
15099 lt_prog_compiler_wl='-Qoption ld ';;
15101 lt_prog_compiler_wl='-Wl,';;
15106 lt_prog_compiler_wl='-Qoption ld '
15107 lt_prog_compiler_pic='-PIC'
15108 lt_prog_compiler_static='-Bstatic'
15111 sysv4 | sysv4.2uw2* | sysv4.3*)
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-KPIC'
15114 lt_prog_compiler_static='-Bstatic'
15118 if test -d /usr/nec ;then
15119 lt_prog_compiler_pic='-Kconform_pic'
15120 lt_prog_compiler_static='-Bstatic'
15124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-KPIC'
15127 lt_prog_compiler_static='-Bstatic'
15131 lt_prog_compiler_wl='-Wl,'
15132 lt_prog_compiler_can_build_shared=no
15136 lt_prog_compiler_pic='-pic'
15137 lt_prog_compiler_static='-Bstatic'
15141 lt_prog_compiler_can_build_shared=no
15147 # For platforms which do not support PIC, -DPIC is meaningless:
15149 lt_prog_compiler_pic=
15152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15156 $as_echo "$lt_prog_compiler_pic" >&6; }
15164 # Check to make sure the PIC flag actually works.
15166 if test -n "$lt_prog_compiler_pic"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15168 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15169 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15170 $as_echo_n "(cached
) " >&6
15172 lt_cv_prog_compiler_pic_works=no
15173 ac_outfile=conftest.$ac_objext
15174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15175 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15176 # Insert the option either (1) after the last *FLAGS variable, or
15177 # (2) before a word containing "conftest.
", or (3) at the end.
15178 # Note that $ac_compile itself does not contain backslashes and begins
15179 # with a dollar sign (not a hyphen), so the echo should work correctly.
15180 # The option is referenced via a variable to avoid confusing sed.
15181 lt_compile=`echo "$ac_compile" | $SED \
15182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15184 -e 's:$: $lt_compiler_flag:'`
15185 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15186 (eval "$lt_compile" 2>conftest.err)
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15190 if (exit $ac_status) && test -s "$ac_outfile"; then
15191 # The compiler can only warn and ignore the option if not recognized
15192 # So say no if there are warnings other than the usual output.
15193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15196 lt_cv_prog_compiler_pic_works=yes
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15203 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15205 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15206 case $lt_prog_compiler_pic in
15208 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15211 lt_prog_compiler_pic=
15212 lt_prog_compiler_can_build_shared=no
15223 # Check to make sure the static flag actually works.
15225 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15227 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15228 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15229 $as_echo_n "(cached
) " >&6
15231 lt_cv_prog_compiler_static_works=no
15232 save_LDFLAGS="$LDFLAGS"
15233 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15236 # The linker can only warn and ignore the option if not recognized
15237 # So say no if there are warnings
15238 if test -s conftest.err; then
15239 # Append any errors to the config.log.
15240 cat conftest.err 1>&5
15241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15243 if diff conftest.exp conftest.er2 >/dev/null; then
15244 lt_cv_prog_compiler_static_works=yes
15247 lt_cv_prog_compiler_static_works=yes
15251 LDFLAGS="$save_LDFLAGS"
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15255 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15257 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15260 lt_prog_compiler_static=
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15270 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15271 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15272 $as_echo_n "(cached
) " >&6
15274 lt_cv_prog_compiler_c_o=no
15275 $RM -r conftest 2>/dev/null
15279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15281 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15282 # Insert the option either (1) after the last *FLAGS variable, or
15283 # (2) before a word containing "conftest.
", or (3) at the end.
15284 # Note that $ac_compile itself does not contain backslashes and begins
15285 # with a dollar sign (not a hyphen), so the echo should work correctly.
15286 lt_compile=`echo "$ac_compile" | $SED \
15287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15289 -e 's:$: $lt_compiler_flag:'`
15290 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15291 (eval "$lt_compile" 2>out/conftest.err)
15293 cat out/conftest.err >&5
15294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15297 # The compiler can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15302 lt_cv_prog_compiler_c_o=yes
15307 # SGI C++ compiler will create directory out/ii_files/ for
15308 # template instantiation
15309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15310 $RM out/* && rmdir out
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15317 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15325 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15326 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15327 $as_echo_n "(cached
) " >&6
15329 lt_cv_prog_compiler_c_o=no
15330 $RM -r conftest 2>/dev/null
15334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15336 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.
", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 lt_compile=`echo "$ac_compile" | $SED \
15342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15344 -e 's:$: $lt_compiler_flag:'`
15345 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15346 (eval "$lt_compile" 2>out/conftest.err)
15348 cat out/conftest.err >&5
15349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings
15354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15357 lt_cv_prog_compiler_c_o=yes
15362 # SGI C++ compiler will create directory out/ii_files/ for
15363 # template instantiation
15364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15365 $RM out/* && rmdir out
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15372 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15377 hard_links="nottested
"
15378 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15379 # do not overwrite the value of need_locks provided by the user
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15381 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15386 ln conftest.a conftest.b 2>&5 || hard_links=no
15387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15389 $as_echo "$hard_links" >&6; }
15390 if test "$hard_links" = no; then
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15392 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15405 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15408 allow_undefined_flag=
15409 always_export_symbols=no
15411 archive_expsym_cmds=
15412 compiler_needs_object=no
15413 enable_shared_with_static_runtimes=no
15414 export_dynamic_flag_spec=
15415 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15416 hardcode_automatic=no
15418 hardcode_direct_absolute=no
15419 hardcode_libdir_flag_spec=
15420 hardcode_libdir_flag_spec_ld=
15421 hardcode_libdir_separator=
15422 hardcode_minus_L=no
15423 hardcode_shlibpath_var=unsupported
15425 link_all_deplibs=unknown
15427 module_expsym_cmds=
15428 old_archive_from_new_cmds=
15429 old_archive_from_expsyms_cmds=
15430 thread_safe_flag_spec=
15431 whole_archive_flag_spec=
15432 # include_expsyms should be a list of space-separated symbols to be *always*
15433 # included in the symbol list
15435 # exclude_expsyms can be an extended regexp of symbols to exclude
15436 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15437 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15438 # as well as any symbol that contains `d'.
15439 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15440 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15441 # platforms (ab)use it in PIC code, but their linkers get confused if
15442 # the symbol is explicitly referenced. Since portable code cannot
15443 # rely on this symbol name, it's probably fine to never include it in
15444 # preloaded symbol tables.
15445 # Exclude shared library initialization/finalization symbols.
15446 extract_expsyms_cmds=
15449 cygwin* | mingw* | pw32* | cegcc*)
15450 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15451 # When not using gcc, we currently assume that we are using
15452 # Microsoft Visual C++.
15453 if test "$GCC" != yes; then
15458 # we just hope/assume this is gcc and not c89 (= MSVC++)
15468 # On some targets, GNU ld is compatible enough with the native linker
15469 # that we're better off using the native interface for both.
15470 lt_use_gnu_ld_interface=no
15471 if test "$with_gnu_ld" = yes; then
15474 # The AIX port of GNU ld has always aspired to compatibility
15475 # with the native linker. However, as the warning in the GNU ld
15476 # block says, versions before 2.19.5* couldn't really create working
15477 # shared libraries, regardless of the interface used.
15478 case `$LD -v 2>&1` in
15479 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15480 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15481 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15483 lt_use_gnu_ld_interface=yes
15488 lt_use_gnu_ld_interface=yes
15493 if test "$lt_use_gnu_ld_interface" = yes; then
15494 # If archive_cmds runs LD, not CC, wlarc should be empty
15497 # Set some defaults for GNU ld with shared library support. These
15498 # are reset later if shared libraries are not supported. Putting them
15499 # here allows them to be overridden if necessary.
15500 runpath_var=LD_RUN_PATH
15501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15502 export_dynamic_flag_spec='${wl}--export-dynamic'
15503 # ancient GNU ld didn't support --whole-archive et. al.
15504 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15505 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15507 whole_archive_flag_spec=
15509 supports_anon_versioning=no
15510 case `$LD -v 2>&1` in
15511 *GNU\ gold*) supports_anon_versioning=yes ;;
15512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15515 *\ 2.11.*) ;; # other 2.11 versions
15516 *) supports_anon_versioning=yes ;;
15519 # See if GNU ld supports shared libraries.
15522 # On AIX/PPC, the GNU linker is very broken
15523 if test "$host_cpu" != ia64; then
15527 *** Warning: the GNU linker, at least up to release 2.19, is reported
15528 *** to be unable to reliably create shared libraries on AIX.
15529 *** Therefore, libtool is disabling shared libraries support. If you
15530 *** really care for shared libraries, you may want to install binutils
15531 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15532 *** You will then need to restart the configuration process.
15541 # see comment about AmigaOS4 .so support
15542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15543 archive_expsym_cmds=''
15546 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)'
15547 hardcode_libdir_flag_spec
='-L$libdir'
15548 hardcode_minus_L
=yes
15554 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15555 allow_undefined_flag
=unsupported
15556 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15557 # support --undefined. This deserves some investigation. FIXME
15558 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15564 cygwin
* | mingw
* | pw32
* | cegcc
*)
15565 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15566 # as there is no search path for DLLs.
15567 hardcode_libdir_flag_spec
='-L$libdir'
15568 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15569 allow_undefined_flag
=unsupported
15570 always_export_symbols
=no
15571 enable_shared_with_static_runtimes
=yes
15572 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15574 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15575 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15576 # If the export-symbols file already is a .def file (1st line
15577 # is EXPORTS), use it as is; otherwise, prepend...
15578 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15579 cp $export_symbols $output_objdir/$soname.def;
15581 echo EXPORTS > $output_objdir/$soname.def;
15582 cat $export_symbols >> $output_objdir/$soname.def;
15584 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15591 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15592 link_all_deplibs
=yes
15597 hardcode_shlibpath_var
=no
15598 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15599 export_dynamic_flag_spec
='${wl}-E'
15600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15601 # Instead, shared libraries are loaded at an image base (0x10000000 by
15602 # default) and relocated if they conflict, which is a slow very memory
15603 # consuming and fragmenting process. To avoid this, we pick a random,
15604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15606 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15607 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'
15610 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15612 if test "$host_os" = linux-dietlibc
; then
15613 case $cc_basename in
15614 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15617 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15618 && test "$tmp_diet" = no
15621 tmp_sharedflag
='-shared'
15622 case $cc_basename,$host_cpu in
15623 pgcc
*) # Portland Group C compiler
15624 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'
15625 tmp_addflag
=' $pic_flag'
15627 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15628 # Portland Group f77 and f90 compilers
15629 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'
15630 tmp_addflag
=' $pic_flag -Mnomain' ;;
15631 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15632 tmp_addflag
=' -i_dynamic' ;;
15633 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15634 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15635 ifc
* | ifort
*) # Intel Fortran compiler
15636 tmp_addflag
=' -nofor_main' ;;
15637 lf95
*) # Lahey Fortran 8.1
15638 whole_archive_flag_spec
=
15639 tmp_sharedflag
='--shared' ;;
15640 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15641 tmp_sharedflag
='-qmkshrobj'
15643 nvcc
*) # Cuda Compiler Driver 2.2
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 compiler_needs_object
=yes
15648 case `$CC -V 2>&1 | sed 5q` in
15649 *Sun\ C
*) # Sun C 5.9
15650 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'
15651 compiler_needs_object
=yes
15652 tmp_sharedflag
='-G' ;;
15653 *Sun\ F
*) # Sun Fortran 8.3
15654 tmp_sharedflag
='-G' ;;
15656 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658 if test "x$supports_anon_versioning" = xyes
; then
15659 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15660 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15661 echo "local: *; };" >> $output_objdir/$libname.ver~
15662 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15665 case $cc_basename in
15666 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15667 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15668 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15669 hardcode_libdir_flag_spec
=
15670 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15671 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15672 if test "x$supports_anon_versioning" = xyes
; then
15673 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15675 echo "local: *; };" >> $output_objdir/$libname.ver~
15676 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15686 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15687 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15690 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15696 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15701 *** create shared libraries on Solaris systems. Therefore, libtool
15702 *** is disabling shared libraries support. We urge you to upgrade GNU
15703 *** binutils to release 2.9.1 or newer. Another option is to modify
15704 *** your PATH or compiler configuration so that the native linker is
15705 *** used, and then restart.
15708 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15709 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15710 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15716 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15717 case `$LD -v 2>&1` in
15718 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15723 *** reliably create shared libraries on SCO systems. Therefore, libtool
15724 *** is disabling shared libraries support. We urge you to upgrade GNU
15725 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15726 *** your PATH or compiler configuration so that the native linker is
15727 *** used, and then restart.
15732 # For security reasons, it is highly recommended that you always
15733 # use absolute paths for naming shared libraries, and exclude the
15734 # DT_RUNPATH tag from executables and libraries. But doing so
15735 # requires that you compile everything twice, which is a pain.
15736 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15737 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15738 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15739 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15748 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_direct
=yes
15751 hardcode_shlibpath_var
=no
15755 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15756 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15764 if test "$ld_shlibs" = no
; then
15766 hardcode_libdir_flag_spec
=
15767 export_dynamic_flag_spec
=
15768 whole_archive_flag_spec
=
15771 # PORTME fill in a description of your system's linker (not GNU ld)
15774 allow_undefined_flag
=unsupported
15775 always_export_symbols
=yes
15776 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'
15777 # Note: this linker hardcodes the directories in LIBPATH if there
15778 # are no directories specified by -L.
15779 hardcode_minus_L
=yes
15780 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15781 # Neither direct hardcoding nor static linking is supported with a
15783 hardcode_direct
=unsupported
15788 if test "$host_cpu" = ia64
; then
15789 # On IA64, the linker does run time linking by default, so we don't
15790 # have to do anything special.
15791 aix_use_runtimelinking
=no
15792 exp_sym_flag
='-Bexport'
15795 # If we're using GNU nm, then we don't want the "-C" option.
15796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15797 # Also, AIX nm treats weak defined symbols like other global
15798 # defined symbols, whereas GNU nm marks them as "W".
15799 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15800 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'
15802 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'
15804 aix_use_runtimelinking
=no
15806 # Test if we are trying to use run time linking or normal
15807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15808 # need to do runtime linking.
15809 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15810 for ld_flag
in $LDFLAGS; do
15811 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15812 aix_use_runtimelinking
=yes
15819 exp_sym_flag
='-bexport'
15820 no_entry_flag
='-bnoentry'
15823 # When large executables or shared objects are built, AIX ld can
15824 # have problems creating the table of contents. If linking a library
15825 # or program results in "error TOC overflow" add -mminimal-toc to
15826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15830 hardcode_direct
=yes
15831 hardcode_direct_absolute
=yes
15832 hardcode_libdir_separator
=':'
15833 link_all_deplibs
=yes
15834 file_list_spec
='${wl}-f,'
15836 if test "$GCC" = yes; then
15837 case $host_os in aix4.
[012]|aix4.
[012].
*)
15838 # We only want to do this on AIX 4.2 and lower, the check
15839 # below for broken collect2 doesn't work under 4.3+
15840 collect2name
=`${CC} -print-prog-name=collect2`
15841 if test -f "$collect2name" &&
15842 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15844 # We have reworked collect2
15847 # We have old collect2
15848 hardcode_direct
=unsupported
15849 # It fails to find uninstalled libraries when the uninstalled
15850 # path is not listed in the libpath. Setting hardcode_minus_L
15851 # to unsupported forces relinking
15852 hardcode_minus_L
=yes
15853 hardcode_libdir_flag_spec
='-L$libdir'
15854 hardcode_libdir_separator
=
15858 shared_flag
='-shared'
15859 if test "$aix_use_runtimelinking" = yes; then
15860 shared_flag
="$shared_flag "'${wl}-G'
15864 if test "$host_cpu" = ia64
; then
15865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15866 # chokes on -Wl,-G. The following line is correct:
15869 if test "$aix_use_runtimelinking" = yes; then
15870 shared_flag
='${wl}-G'
15872 shared_flag
='${wl}-bM:SRE'
15877 export_dynamic_flag_spec
='${wl}-bexpall'
15878 # It seems that -bexpall does not export symbols beginning with
15879 # underscore (_), so it is better to generate a list of symbols to export.
15880 always_export_symbols
=yes
15881 if test "$aix_use_runtimelinking" = yes; then
15882 # Warning - without using the other runtime loading flags (-brtl),
15883 # -berok will link without error, but may produce a broken library.
15884 allow_undefined_flag
='-berok'
15885 # Determine the default libpath from the value encoded in an
15886 # empty executable.
15887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15898 if ac_fn_c_try_link
"$LINENO"; then :
15900 lt_aix_libpath_sed
='
15901 /Import File Strings/,/^$/ {
15907 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15908 # Check for a 64-bit object if we didn't find anything.
15909 if test -z "$aix_libpath"; then
15910 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15913 rm -f core conftest.err conftest.
$ac_objext \
15914 conftest
$ac_exeext conftest.
$ac_ext
15915 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15917 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15918 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"
15920 if test "$host_cpu" = ia64
; then
15921 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15922 allow_undefined_flag
="-z nodefs"
15923 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"
15925 # Determine the default libpath from the value encoded in an
15926 # empty executable.
15927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15938 if ac_fn_c_try_link
"$LINENO"; then :
15940 lt_aix_libpath_sed
='
15941 /Import File Strings/,/^$/ {
15947 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948 # Check for a 64-bit object if we didn't find anything.
15949 if test -z "$aix_libpath"; then
15950 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15953 rm -f core conftest.err conftest.
$ac_objext \
15954 conftest
$ac_exeext conftest.
$ac_ext
15955 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15957 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15958 # Warning - without using the other run time loading flags,
15959 # -berok will link without error, but may produce a broken library.
15960 no_undefined_flag
=' ${wl}-bernotok'
15961 allow_undefined_flag
=' ${wl}-berok'
15962 if test "$with_gnu_ld" = yes; then
15963 # We only use this code for GNU lds that support --whole-archive.
15964 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15966 # Exported symbols can be pulled into shared objects from archives
15967 whole_archive_flag_spec
='$convenience'
15969 archive_cmds_need_lc
=yes
15970 # This is similar to how AIX traditionally builds its shared libraries.
15971 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'
15979 # see comment about AmigaOS4 .so support
15980 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15981 archive_expsym_cmds
=''
15984 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)'
15985 hardcode_libdir_flag_spec
='-L$libdir'
15986 hardcode_minus_L
=yes
15992 export_dynamic_flag_spec
=-rdynamic
15995 cygwin
* | mingw
* | pw32
* | cegcc
*)
15996 # When not using gcc, we currently assume that we are using
15997 # Microsoft Visual C++.
15998 # hardcode_libdir_flag_spec is actually meaningless, as there is
15999 # no search path for DLLs.
16000 hardcode_libdir_flag_spec
=' '
16001 allow_undefined_flag
=unsupported
16002 # Tell ltmain to make .lib files, not .a files.
16004 # Tell ltmain to make .dll files, not .so files.
16006 # FIXME: Setting linknames here is a bad hack.
16007 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16008 # The linker will automatically build a .lib file if we build a DLL.
16009 old_archive_from_new_cmds
='true'
16010 # FIXME: Should let the user specify the lib program.
16011 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16012 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16013 enable_shared_with_static_runtimes
=yes
16016 darwin
* | rhapsody
*)
16019 archive_cmds_need_lc
=no
16021 hardcode_automatic
=yes
16022 hardcode_shlibpath_var
=unsupported
16023 if test "$lt_cv_ld_force_load" = "yes"; then
16024 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\"`'
16026 whole_archive_flag_spec
=''
16028 link_all_deplibs
=yes
16029 allow_undefined_flag
="$_lt_dar_allow_undefined"
16030 case $cc_basename in
16031 ifort
*) _lt_dar_can_shared
=yes ;;
16032 *) _lt_dar_can_shared
=$GCC ;;
16034 if test "$_lt_dar_can_shared" = "yes"; then
16035 output_verbose_link_cmd
=func_echo_all
16036 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16037 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16038 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}"
16039 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}"
16048 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_libdir_flag_spec
='-L$libdir'
16050 hardcode_shlibpath_var
=no
16053 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16054 # support. Future versions do this automatically, but an explicit c++rt0.o
16055 # does not break anything, and helps significantly (at the cost of a little
16058 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16059 hardcode_libdir_flag_spec
='-R$libdir'
16060 hardcode_direct
=yes
16061 hardcode_shlibpath_var
=no
16064 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16066 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16067 hardcode_direct
=yes
16068 hardcode_minus_L
=yes
16069 hardcode_shlibpath_var
=no
16072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16073 freebsd
* | dragonfly
*)
16074 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16075 hardcode_libdir_flag_spec
='-R$libdir'
16076 hardcode_direct
=yes
16077 hardcode_shlibpath_var
=no
16081 if test "$GCC" = yes; then
16082 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'
16084 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'
16086 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16087 hardcode_libdir_separator
=:
16088 hardcode_direct
=yes
16090 # hardcode_minus_L: Not really in the search PATH,
16091 # but as the default location of the library.
16092 hardcode_minus_L
=yes
16093 export_dynamic_flag_spec
='${wl}-E'
16097 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16098 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16100 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16102 if test "$with_gnu_ld" = no
; then
16103 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16104 hardcode_libdir_flag_spec_ld
='+b $libdir'
16105 hardcode_libdir_separator
=:
16106 hardcode_direct
=yes
16107 hardcode_direct_absolute
=yes
16108 export_dynamic_flag_spec
='${wl}-E'
16109 # hardcode_minus_L: Not really in the search PATH,
16110 # but as the default location of the library.
16111 hardcode_minus_L
=yes
16116 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16119 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16122 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16125 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16131 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16138 # Older versions of the 11.00 compiler do not understand -b yet
16139 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16141 $as_echo_n "checking if $CC understands -b... " >&6; }
16142 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16143 $as_echo_n "(cached) " >&6
16145 lt_cv_prog_compiler__b
=no
16146 save_LDFLAGS
="$LDFLAGS"
16147 LDFLAGS
="$LDFLAGS -b"
16148 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16149 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16150 # The linker can only warn and ignore the option if not recognized
16151 # So say no if there are warnings
16152 if test -s conftest.err
; then
16153 # Append any errors to the config.log.
16154 cat conftest.err
1>&5
16155 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16156 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16157 if diff conftest.exp conftest.er2
>/dev
/null
; then
16158 lt_cv_prog_compiler__b
=yes
16161 lt_cv_prog_compiler__b
=yes
16165 LDFLAGS
="$save_LDFLAGS"
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16169 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16171 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16172 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16174 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16180 if test "$with_gnu_ld" = no
; then
16181 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16182 hardcode_libdir_separator
=:
16187 hardcode_shlibpath_var
=no
16190 hardcode_direct
=yes
16191 hardcode_direct_absolute
=yes
16192 export_dynamic_flag_spec
='${wl}-E'
16194 # hardcode_minus_L: Not really in the search PATH,
16195 # but as the default location of the library.
16196 hardcode_minus_L
=yes
16202 irix5
* | irix6
* | nonstopux
*)
16203 if test "$GCC" = yes; then
16204 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'
16205 # Try to use the -exported_symbol ld option, if it does not
16206 # work, assume that -exports_file does not work either and
16207 # implicitly export all symbols.
16208 save_LDFLAGS
="$LDFLAGS"
16209 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16214 if ac_fn_c_try_link
"$LINENO"; then :
16215 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'
16218 rm -f core conftest.err conftest.
$ac_objext \
16219 conftest
$ac_exeext conftest.
$ac_ext
16220 LDFLAGS
="$save_LDFLAGS"
16222 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'
16223 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'
16225 archive_cmds_need_lc
='no'
16226 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16227 hardcode_libdir_separator
=:
16229 link_all_deplibs
=yes
16233 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16234 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16236 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16238 hardcode_libdir_flag_spec
='-R$libdir'
16239 hardcode_direct
=yes
16240 hardcode_shlibpath_var
=no
16244 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245 hardcode_direct
=yes
16246 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16247 hardcode_libdir_separator
=:
16248 hardcode_shlibpath_var
=no
16255 if test -f /usr
/libexec
/ld.so
; then
16256 hardcode_direct
=yes
16257 hardcode_shlibpath_var
=no
16258 hardcode_direct_absolute
=yes
16259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16260 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16261 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16262 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16263 export_dynamic_flag_spec
='${wl}-E'
16266 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16267 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_libdir_flag_spec
='-R$libdir'
16271 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16272 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16282 hardcode_libdir_flag_spec
='-L$libdir'
16283 hardcode_minus_L
=yes
16284 allow_undefined_flag
=unsupported
16285 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'
16286 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16290 if test "$GCC" = yes; then
16291 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16292 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'
16294 allow_undefined_flag
=' -expect_unresolved \*'
16295 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'
16297 archive_cmds_need_lc
='no'
16298 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16299 hardcode_libdir_separator
=:
16302 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16303 if test "$GCC" = yes; then
16304 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16305 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'
16306 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16308 allow_undefined_flag
=' -expect_unresolved \*'
16309 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'
16310 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~
16311 $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'
16313 # Both c and cxx compiler support -rpath directly
16314 hardcode_libdir_flag_spec
='-rpath $libdir'
16316 archive_cmds_need_lc
='no'
16317 hardcode_libdir_separator
=:
16321 no_undefined_flag
=' -z defs'
16322 if test "$GCC" = yes; then
16324 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16325 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16326 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16328 case `$CC -V 2>&1` in
16331 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16333 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16337 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16338 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16339 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16343 hardcode_libdir_flag_spec
='-R$libdir'
16344 hardcode_shlibpath_var
=no
16346 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16348 # The compiler driver will combine and reorder linker options,
16349 # but understands `-z linker_flag'. GCC discards it without `$wl',
16350 # but is careful enough not to reorder.
16351 # Supported since Solaris 2.6 (maybe 2.5.1?)
16352 if test "$GCC" = yes; then
16353 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16355 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16359 link_all_deplibs
=yes
16363 if test "x$host_vendor" = xsequent
; then
16364 # Use $CC to link under sequent, because it throws in some extra .o
16365 # files that make .init and .fini sections work.
16366 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16368 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_libdir_flag_spec
='-L$libdir'
16371 hardcode_direct
=yes
16372 hardcode_minus_L
=yes
16373 hardcode_shlibpath_var
=no
16377 case $host_vendor in
16379 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16380 hardcode_direct
=yes # is this really true???
16383 ## LD is ld it makes a PLAMLIB
16384 ## CC just makes a GrossModule.
16385 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16386 reload_cmds
='$CC -r -o $output$reload_objs'
16390 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16391 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16394 runpath_var
='LD_RUN_PATH'
16395 hardcode_shlibpath_var
=no
16399 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400 hardcode_shlibpath_var
=no
16401 export_dynamic_flag_spec
='-Bexport'
16405 if test -d /usr
/nec
; then
16406 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16407 hardcode_shlibpath_var
=no
16408 runpath_var
=LD_RUN_PATH
16409 hardcode_runpath_var
=yes
16414 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16415 no_undefined_flag
='${wl}-z,text'
16416 archive_cmds_need_lc
=no
16417 hardcode_shlibpath_var
=no
16418 runpath_var
='LD_RUN_PATH'
16420 if test "$GCC" = yes; then
16421 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16429 sysv5
* | sco3.2v5
* | sco5v6
*)
16430 # Note: We can NOT use -z defs as we might desire, because we do not
16431 # link with -lc, and that would cause any symbols used from libc to
16432 # always be unresolved, which means just about no library would
16433 # ever link correctly. If we're not using GNU ld we use -z text
16434 # though, which does catch some bad symbols but isn't as heavy-handed
16436 no_undefined_flag
='${wl}-z,text'
16437 allow_undefined_flag
='${wl}-z,nodefs'
16438 archive_cmds_need_lc
=no
16439 hardcode_shlibpath_var
=no
16440 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16441 hardcode_libdir_separator
=':'
16442 link_all_deplibs
=yes
16443 export_dynamic_flag_spec
='${wl}-Bexport'
16444 runpath_var
='LD_RUN_PATH'
16446 if test "$GCC" = yes; then
16447 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16450 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16456 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_libdir_flag_spec
='-L$libdir'
16458 hardcode_shlibpath_var
=no
16466 if test x
$host_vendor = xsni
; then
16468 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16469 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16476 $as_echo "$ld_shlibs" >&6; }
16477 test "$ld_shlibs" = no
&& can_build_shared
=no
16479 with_gnu_ld
=$with_gnu_ld
16496 # Do we need to explicitly link libc?
16498 case "x$archive_cmds_need_lc" in
16500 # Assume -lc should be added
16501 archive_cmds_need_lc
=yes
16503 if test "$enable_shared" = yes && test "$GCC" = yes; then
16504 case $archive_cmds in
16506 # FIXME: we may have to deal with multi-command sequences.
16509 # Test whether the compiler implicitly links with -lc since on some
16510 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16511 # to ld, don't add -lc before -lgcc.
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16513 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16514 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16515 $as_echo_n "(cached) " >&6
16518 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16521 (eval $ac_compile) 2>&5
16523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16524 test $ac_status = 0; } 2>conftest.err
; then
16527 libobjs
=conftest.
$ac_objext
16529 wl
=$lt_prog_compiler_wl
16530 pic_flag
=$lt_prog_compiler_pic
16536 lt_save_allow_undefined_flag
=$allow_undefined_flag
16537 allow_undefined_flag
=
16538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16539 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; }
16544 lt_cv_archive_cmds_need_lc
=no
16546 lt_cv_archive_cmds_need_lc
=yes
16548 allow_undefined_flag
=$lt_save_allow_undefined_flag
16550 cat conftest.err
1>&5
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16556 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16557 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16721 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16723 if test "$GCC" = yes; then
16725 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16726 *) lt_awk_arg
="/^libraries:/" ;;
16729 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16730 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16732 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16733 case $lt_search_path_spec in
16735 # if the path contains ";" then we assume it to be the separator
16736 # otherwise default to the standard path separator (i.e. ":") - it is
16737 # assumed that no part of a normal pathname contains ";" but that should
16738 # okay in the real world where ";" in dirpaths is itself problematic.
16739 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16742 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16745 # Ok, now we have the path, separated by spaces, we can step through it
16746 # and add multilib dir if necessary.
16747 lt_tmp_lt_search_path_spec
=
16748 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16749 for lt_sys_path
in $lt_search_path_spec; do
16750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16751 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16753 test -d "$lt_sys_path" && \
16754 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16757 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16758 BEGIN {RS=" "; FS="/|\n";} {
16761 for (lt_i = NF; lt_i > 0; lt_i--) {
16762 if ($lt_i != "" && $lt_i != ".") {
16763 if ($lt_i == "..") {
16766 if (lt_count == 0) {
16767 lt_foo="/" $lt_i lt_foo;
16774 if (lt_foo != "") { lt_freq[lt_foo]++; }
16775 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16777 # AWK program above erroneously prepends '/' to C:/dos/paths
16780 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16781 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16783 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16785 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16787 library_names_spec
=
16788 libname_spec
='lib$name'
16792 postuninstall_cmds
=
16796 shlibpath_overrides_runpath
=unknown
16798 dynamic_linker
="$host_os ld.so"
16799 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16800 need_lib_prefix
=unknown
16801 hardcode_into_libs
=no
16803 # when you set need_version to no, make sure it does not cause -set_version
16804 # flags to be left without arguments
16805 need_version
=unknown
16810 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16811 shlibpath_var
=LIBPATH
16813 # AIX 3 has no versioning support, so we append a major version to the name.
16814 soname_spec
='${libname}${release}${shared_ext}$major'
16821 hardcode_into_libs
=yes
16822 if test "$host_cpu" = ia64
; then
16823 # AIX 5 supports IA64
16824 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16825 shlibpath_var
=LD_LIBRARY_PATH
16827 # With GCC up to 2.95.x, collect2 would create an import file
16828 # for dependence libraries. The import file would start with
16829 # the line `#! .'. This would cause the generated library to
16830 # depend on `.', always an invalid library. This was fixed in
16831 # development snapshots of GCC prior to 3.0.
16833 aix4 | aix4.
[01] | aix4.
[01].
*)
16834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16836 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16839 can_build_shared
=no
16843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16844 # soname into executable. Probably we can add versioning support to
16845 # collect2, so additional links can be useful in future.
16846 if test "$aix_use_runtimelinking" = yes; then
16847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16848 # instead of lib<name>.a to let people know that these are not
16849 # typical AIX shared libraries.
16850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 # We preserve .a as extension for shared libraries through AIX4.2
16853 # and later when we are not doing run time linking.
16854 library_names_spec
='${libname}${release}.a $libname.a'
16855 soname_spec
='${libname}${release}${shared_ext}$major'
16857 shlibpath_var
=LIBPATH
16864 # Since July 2007 AmigaOS4 officially supports .so libraries.
16865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 library_names_spec
='$libname.ixlibrary $libname.a'
16870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16871 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'
16877 library_names_spec
='${libname}${shared_ext}'
16878 dynamic_linker
="$host_os ld.so"
16879 shlibpath_var
=LIBRARY_PATH
16885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec
='${libname}${release}${shared_ext}$major'
16887 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16888 shlibpath_var
=LD_LIBRARY_PATH
16889 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16890 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16891 # the default ld.so.conf also contains /usr/contrib/lib and
16892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16893 # libtool to hard-code these into programs
16896 cygwin
* | mingw
* | pw32
* | cegcc
*)
16897 version_type
=windows
16902 case $GCC,$host_os in
16903 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16904 library_names_spec
='$libname.dll.a'
16905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16906 postinstall_cmds
='base_file=`basename \${file}`~
16907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16908 dldir=$destdir/`dirname \$dlpath`~
16909 test -d \$dldir || mkdir -p \$dldir~
16910 $install_prog $dir/$dlname \$dldir/$dlname~
16911 chmod a+x \$dldir/$dlname~
16912 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16913 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16915 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916 dlpath=$dir/\$dldll~
16918 shlibpath_overrides_runpath
=yes
16922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16923 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16925 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16928 # MinGW DLLs use traditional 'lib' prefix
16929 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16932 # pw32 DLLs use 'pw' prefix rather than 'lib'
16933 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16939 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16942 dynamic_linker
='Win32 ld.exe'
16943 # FIXME: first we should search . and the directory the executable is in
16947 darwin
* | rhapsody
*)
16948 dynamic_linker
="$host_os dyld"
16949 version_type
=darwin
16952 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16953 soname_spec
='${libname}${release}${major}$shared_ext'
16954 shlibpath_overrides_runpath
=yes
16955 shlibpath_var
=DYLD_LIBRARY_PATH
16956 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16958 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16959 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16967 soname_spec
='${libname}${release}${shared_ext}$major'
16968 shlibpath_var
=LD_LIBRARY_PATH
16971 freebsd
* | dragonfly
*)
16972 # DragonFly does not have aout. When/if they implement a new
16973 # versioning mechanism, adjust this.
16974 if test -x /usr
/bin
/objformat
; then
16975 objformat
=`/usr/bin/objformat`
16978 freebsd
[123]*) objformat
=aout
;;
16979 *) objformat
=elf
;;
16982 version_type
=freebsd-
$objformat
16983 case $version_type in
16985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16990 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16994 shlibpath_var
=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath
=yes
16999 freebsd3.
[01]* | freebsdelf3.
[01]*)
17000 shlibpath_overrides_runpath
=yes
17001 hardcode_into_libs
=yes
17003 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17004 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17005 shlibpath_overrides_runpath
=no
17006 hardcode_into_libs
=yes
17008 *) # from 4.6 on, and DragonFly
17009 shlibpath_overrides_runpath
=yes
17010 hardcode_into_libs
=yes
17019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17020 soname_spec
='${libname}${release}${shared_ext}$major'
17021 shlibpath_var
=LD_LIBRARY_PATH
17022 hardcode_into_libs
=yes
17029 dynamic_linker
="$host_os runtime_loader"
17030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17031 soname_spec
='${libname}${release}${shared_ext}$major'
17032 shlibpath_var
=LIBRARY_PATH
17033 shlibpath_overrides_runpath
=yes
17034 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17035 hardcode_into_libs
=yes
17038 hpux9
* | hpux10
* | hpux11
*)
17039 # Give a soname corresponding to the major version so that dld.sl refuses to
17040 # link against other versions.
17047 hardcode_into_libs
=yes
17048 dynamic_linker
="$host_os dld.so"
17049 shlibpath_var
=LD_LIBRARY_PATH
17050 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 soname_spec
='${libname}${release}${shared_ext}$major'
17053 if test "X$HPUX_IA64_MODE" = X32
; then
17054 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17056 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17058 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17062 hardcode_into_libs
=yes
17063 dynamic_linker
="$host_os dld.sl"
17064 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17065 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 soname_spec
='${libname}${release}${shared_ext}$major'
17068 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17069 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17073 dynamic_linker
="$host_os dld.sl"
17074 shlibpath_var
=SHLIB_PATH
17075 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 soname_spec
='${libname}${release}${shared_ext}$major'
17080 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17081 postinstall_cmds
='chmod 555 $lib'
17082 # or fails outright, so override atomically:
17083 install_override_mode
=555
17090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17091 soname_spec
='${libname}${release}${shared_ext}$major'
17092 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17093 shlibpath_var
=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath
=no
17095 hardcode_into_libs
=yes
17098 irix5
* | irix6
* | nonstopux
*)
17100 nonstopux
*) version_type
=nonstopux
;;
17102 if test "$lt_cv_prog_gnu_ld" = yes; then
17110 soname_spec
='${libname}${release}${shared_ext}$major'
17111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17113 irix5
* | nonstopux
*)
17114 libsuff
= shlibsuff
=
17117 case $LD in # libtool.m4 will add one of these switches to LD
17118 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17119 libsuff
= shlibsuff
= libmagic
=32-bit;;
17120 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17121 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17122 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17123 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17124 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17128 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17129 shlibpath_overrides_runpath
=no
17130 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17131 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17132 hardcode_into_libs
=yes
17135 # No shared lib support for Linux oldld, aout, or coff.
17136 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17140 # This must be Linux ELF.
17141 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec
='${libname}${release}${shared_ext}$major'
17147 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17148 shlibpath_var
=LD_LIBRARY_PATH
17149 shlibpath_overrides_runpath
=no
17151 # Some binutils ld are patched to set DT_RUNPATH
17152 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17153 $as_echo_n "(cached) " >&6
17155 lt_cv_shlibpath_overrides_runpath
=no
17156 save_LDFLAGS
=$LDFLAGS
17157 save_libdir
=$libdir
17158 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17159 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17171 if ac_fn_c_try_link
"$LINENO"; then :
17172 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17173 lt_cv_shlibpath_overrides_runpath
=yes
17176 rm -f core conftest.err conftest.
$ac_objext \
17177 conftest
$ac_exeext conftest.
$ac_ext
17178 LDFLAGS
=$save_LDFLAGS
17179 libdir
=$save_libdir
17183 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17185 # This implies no fast_install, which is unacceptable.
17186 # Some rework will be needed to allow for fast_install
17187 # before this can be enabled.
17188 hardcode_into_libs
=yes
17190 # Append ld.so.conf contents to the search path
17191 if test -f /etc
/ld.so.conf
; then
17192 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' ' '`
17193 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17196 # We used to test for /lib/ld.so.1 and disable shared libraries on
17197 # powerpc, because MkLinux only supported shared libraries with the
17198 # GNU dynamic linker. Since this was broken with cross compilers,
17199 # most powerpc-linux boxes support dynamic linking these days and
17200 # people can always --disable-shared, the test was removed, and we
17201 # assume the GNU/Linux dynamic linker is in use.
17202 dynamic_linker
='GNU/Linux ld.so'
17209 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17211 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17212 dynamic_linker
='NetBSD (a.out) ld.so'
17214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17215 soname_spec
='${libname}${release}${shared_ext}$major'
17216 dynamic_linker
='NetBSD ld.elf_so'
17218 shlibpath_var
=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath
=yes
17220 hardcode_into_libs
=yes
17225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 shlibpath_var
=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath
=yes
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 shlibpath_var
=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath
=no
17238 hardcode_into_libs
=yes
17239 dynamic_linker
='ldqnx.so'
17244 sys_lib_dlsearch_path_spec
="/usr/lib"
17246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17248 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17249 *) need_version
=no
;;
17251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17252 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17253 shlibpath_var
=LD_LIBRARY_PATH
17254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17256 openbsd2.
[89] | openbsd2.
[89].
*)
17257 shlibpath_overrides_runpath
=no
17260 shlibpath_overrides_runpath
=yes
17264 shlibpath_overrides_runpath
=yes
17269 libname_spec
='$name'
17272 library_names_spec
='$libname${shared_ext} $libname.a'
17273 dynamic_linker
='OS/2 ld.exe'
17274 shlibpath_var
=LIBPATH
17277 osf3
* | osf4
* | osf5
*)
17281 soname_spec
='${libname}${release}${shared_ext}$major'
17282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 shlibpath_var
=LD_LIBRARY_PATH
17284 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17285 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 soname_spec
='${libname}${release}${shared_ext}$major'
17298 shlibpath_var
=LD_LIBRARY_PATH
17299 shlibpath_overrides_runpath
=yes
17300 hardcode_into_libs
=yes
17301 # ldd complains unless libraries are executable
17302 postinstall_cmds
='chmod +x $lib'
17307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17309 shlibpath_var
=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath
=yes
17311 if test "$with_gnu_ld" = yes; then
17319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 soname_spec
='${libname}${release}${shared_ext}$major'
17321 shlibpath_var
=LD_LIBRARY_PATH
17322 case $host_vendor in
17324 shlibpath_overrides_runpath
=no
17326 runpath_var
=LD_RUN_PATH
17334 shlibpath_overrides_runpath
=no
17335 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17341 if test -d /usr
/nec
;then
17343 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17344 soname_spec
='$libname${shared_ext}.$major'
17345 shlibpath_var
=LD_LIBRARY_PATH
17349 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17350 version_type
=freebsd-elf
17353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17354 soname_spec
='${libname}${release}${shared_ext}$major'
17355 shlibpath_var
=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath
=yes
17357 hardcode_into_libs
=yes
17358 if test "$with_gnu_ld" = yes; then
17359 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17361 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17364 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17368 sys_lib_dlsearch_path_spec
='/usr/lib'
17372 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 shlibpath_var
=LD_LIBRARY_PATH
17378 shlibpath_overrides_runpath
=no
17379 hardcode_into_libs
=yes
17384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385 soname_spec
='${libname}${release}${shared_ext}$major'
17386 shlibpath_var
=LD_LIBRARY_PATH
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17394 $as_echo "$dynamic_linker" >&6; }
17395 test "$dynamic_linker" = no
&& can_build_shared
=no
17397 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17398 if test "$GCC" = yes; then
17399 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17402 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17403 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17405 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17406 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17501 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17503 if test -n "$hardcode_libdir_flag_spec" ||
17504 test -n "$runpath_var" ||
17505 test "X$hardcode_automatic" = "Xyes" ; then
17507 # We can hardcode non-existent directories.
17508 if test "$hardcode_direct" != no
&&
17509 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17510 # have to relink, otherwise we might link with an installed library
17511 # when we should be linking with a yet-to-be-installed one
17512 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17513 test "$hardcode_minus_L" != no
; then
17514 # Linking always hardcodes the temporary library directory.
17515 hardcode_action
=relink
17517 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17518 hardcode_action
=immediate
17521 # We cannot hardcode anything, or else we can only hardcode existing
17523 hardcode_action
=unsupported
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17526 $as_echo "$hardcode_action" >&6; }
17528 if test "$hardcode_action" = relink ||
17529 test "$inherit_rpath" = yes; then
17530 # Fast installation is not supported
17531 enable_fast_install
=no
17532 elif test "$shlibpath_overrides_runpath" = yes ||
17533 test "$enable_shared" = no
; then
17534 # Fast installation is not necessary
17535 enable_fast_install
=needless
17543 if test "x$enable_dlopen" != xyes
; then
17544 enable_dlopen
=unknown
17545 enable_dlopen_self
=unknown
17546 enable_dlopen_self_static
=unknown
17553 lt_cv_dlopen
="load_add_on"
17555 lt_cv_dlopen_self
=yes
17558 mingw
* | pw32
* | cegcc
*)
17559 lt_cv_dlopen
="LoadLibrary"
17564 lt_cv_dlopen
="dlopen"
17569 # if libdl is installed we need to link against it
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17571 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17573 $as_echo_n "(cached) " >&6
17575 ac_check_lib_save_LIBS
=$LIBS
17577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17578 /* end confdefs.h. */
17580 /* Override any GCC internal prototype to avoid an error.
17581 Use char because int might match the return type of a GCC
17582 builtin and then its argument prototype would still apply. */
17595 if ac_fn_c_try_link
"$LINENO"; then :
17596 ac_cv_lib_dl_dlopen
=yes
17598 ac_cv_lib_dl_dlopen
=no
17600 rm -f core conftest.err conftest.
$ac_objext \
17601 conftest
$ac_exeext conftest.
$ac_ext
17602 LIBS
=$ac_check_lib_save_LIBS
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17605 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17606 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17607 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17610 lt_cv_dlopen
="dyld"
17612 lt_cv_dlopen_self
=yes
17619 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17620 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17621 lt_cv_dlopen
="shl_load"
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17624 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17625 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17626 $as_echo_n "(cached) " >&6
17628 ac_check_lib_save_LIBS
=$LIBS
17630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17633 /* Override any GCC internal prototype to avoid an error.
17634 Use char because int might match the return type of a GCC
17635 builtin and then its argument prototype would still apply. */
17643 return shl_load ();
17648 if ac_fn_c_try_link
"$LINENO"; then :
17649 ac_cv_lib_dld_shl_load
=yes
17651 ac_cv_lib_dld_shl_load
=no
17653 rm -f core conftest.err conftest.
$ac_objext \
17654 conftest
$ac_exeext conftest.
$ac_ext
17655 LIBS
=$ac_check_lib_save_LIBS
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17658 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17659 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17660 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17662 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17663 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17664 lt_cv_dlopen
="dlopen"
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17669 $as_echo_n "(cached) " >&6
17671 ac_check_lib_save_LIBS
=$LIBS
17673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17691 if ac_fn_c_try_link
"$LINENO"; then :
17692 ac_cv_lib_dl_dlopen
=yes
17694 ac_cv_lib_dl_dlopen
=no
17696 rm -f core conftest.err conftest.
$ac_objext \
17697 conftest
$ac_exeext conftest.
$ac_ext
17698 LIBS
=$ac_check_lib_save_LIBS
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17702 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17703 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17706 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17707 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17708 $as_echo_n "(cached) " >&6
17710 ac_check_lib_save_LIBS
=$LIBS
17711 LIBS
="-lsvld $LIBS"
17712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17730 if ac_fn_c_try_link
"$LINENO"; then :
17731 ac_cv_lib_svld_dlopen
=yes
17733 ac_cv_lib_svld_dlopen
=no
17735 rm -f core conftest.err conftest.
$ac_objext \
17736 conftest
$ac_exeext conftest.
$ac_ext
17737 LIBS
=$ac_check_lib_save_LIBS
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17740 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17741 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17742 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17745 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17746 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17749 ac_check_lib_save_LIBS
=$LIBS
17751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17754 /* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17764 return dld_link ();
17769 if ac_fn_c_try_link
"$LINENO"; then :
17770 ac_cv_lib_dld_dld_link
=yes
17772 ac_cv_lib_dld_dld_link
=no
17774 rm -f core conftest.err conftest.
$ac_objext \
17775 conftest
$ac_exeext conftest.
$ac_ext
17776 LIBS
=$ac_check_lib_save_LIBS
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17779 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17780 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17781 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17802 if test "x$lt_cv_dlopen" != xno
; then
17808 case $lt_cv_dlopen in
17810 save_CPPFLAGS
="$CPPFLAGS"
17811 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17813 save_LDFLAGS
="$LDFLAGS"
17814 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17817 LIBS
="$lt_cv_dlopen_libs $LIBS"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17820 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17821 if test "${lt_cv_dlopen_self+set}" = set; then :
17822 $as_echo_n "(cached) " >&6
17824 if test "$cross_compiling" = yes; then :
17825 lt_cv_dlopen_self
=cross
17827 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17828 lt_status
=$lt_dlunknown
17829 cat > conftest.
$ac_ext <<_LT_EOF
17830 #line 17830 "configure"
17831 #include "confdefs.h"
17840 # define LT_DLGLOBAL RTLD_GLOBAL
17843 # define LT_DLGLOBAL DL_GLOBAL
17845 # define LT_DLGLOBAL 0
17849 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17850 find out it does not work in some platform. */
17851 #ifndef LT_DLLAZY_OR_NOW
17853 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17856 # define LT_DLLAZY_OR_NOW DL_LAZY
17859 # define LT_DLLAZY_OR_NOW RTLD_NOW
17862 # define LT_DLLAZY_OR_NOW DL_NOW
17864 # define LT_DLLAZY_OR_NOW 0
17871 /* When -fvisbility=hidden is used, assume the code has been annotated
17872 correspondingly for the symbols needed. */
17873 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17874 void fnord () __attribute__((visibility("default")));
17877 void fnord () { int i=42; }
17880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17881 int status = $lt_dlunknown;
17885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17888 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17889 else puts (dlerror ());
17891 /* dlclose (self); */
17899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17900 (eval $ac_link) 2>&5
17902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17903 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17904 (.
/conftest
; exit; ) >&5 2>/dev
/null
17906 case x
$lt_status in
17907 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17908 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17909 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17912 # compilation failed
17913 lt_cv_dlopen_self
=no
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17921 $as_echo "$lt_cv_dlopen_self" >&6; }
17923 if test "x$lt_cv_dlopen_self" = xyes
; then
17924 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17926 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17927 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17928 $as_echo_n "(cached) " >&6
17930 if test "$cross_compiling" = yes; then :
17931 lt_cv_dlopen_self_static
=cross
17933 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17934 lt_status
=$lt_dlunknown
17935 cat > conftest.
$ac_ext <<_LT_EOF
17936 #line 17936 "configure"
17937 #include "confdefs.h"
17946 # define LT_DLGLOBAL RTLD_GLOBAL
17949 # define LT_DLGLOBAL DL_GLOBAL
17951 # define LT_DLGLOBAL 0
17955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17956 find out it does not work in some platform. */
17957 #ifndef LT_DLLAZY_OR_NOW
17959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17962 # define LT_DLLAZY_OR_NOW DL_LAZY
17965 # define LT_DLLAZY_OR_NOW RTLD_NOW
17968 # define LT_DLLAZY_OR_NOW DL_NOW
17970 # define LT_DLLAZY_OR_NOW 0
17977 /* When -fvisbility=hidden is used, assume the code has been annotated
17978 correspondingly for the symbols needed. */
17979 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17980 void fnord () __attribute__((visibility("default")));
17983 void fnord () { int i=42; }
17986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17987 int status = $lt_dlunknown;
17991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17994 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17995 else puts (dlerror ());
17997 /* dlclose (self); */
18005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18006 (eval $ac_link) 2>&5
18008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18009 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18010 (.
/conftest
; exit; ) >&5 2>/dev
/null
18012 case x
$lt_status in
18013 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18014 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18015 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18018 # compilation failed
18019 lt_cv_dlopen_self_static
=no
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18027 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18030 CPPFLAGS
="$save_CPPFLAGS"
18031 LDFLAGS
="$save_LDFLAGS"
18036 case $lt_cv_dlopen_self in
18037 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18038 *) enable_dlopen_self
=unknown
;;
18041 case $lt_cv_dlopen_self_static in
18042 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18043 *) enable_dlopen_self_static
=unknown
;;
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18066 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18067 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18068 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18069 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18071 $as_echo "yes" >&6; }
18073 # FIXME - insert some real tests, host_os isn't really good enough
18076 if test -n "$STRIP" ; then
18077 striplib
="$STRIP -x"
18078 old_striplib
="$STRIP -S"
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18080 $as_echo "yes" >&6; }
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18083 $as_echo "no" >&6; }
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18088 $as_echo "no" >&6; }
18104 # Report which library types will actually be built
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18106 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18108 $as_echo "$can_build_shared" >&6; }
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18111 $as_echo_n "checking whether to build shared libraries... " >&6; }
18112 test "$can_build_shared" = "no" && enable_shared
=no
18114 # On AIX, shared libraries and static libraries use the same namespace, and
18115 # are all built from PIC.
18118 test "$enable_shared" = yes && enable_static
=no
18119 if test -n "$RANLIB"; then
18120 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18121 postinstall_cmds
='$RANLIB $lib'
18126 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18127 test "$enable_shared" = yes && enable_static
=no
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18132 $as_echo "$enable_shared" >&6; }
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18135 $as_echo_n "checking whether to build static libraries... " >&6; }
18136 # Make sure either enable_shared or enable_static is yes.
18137 test "$enable_shared" = yes || enable_static
=yes
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18139 $as_echo "$enable_static" >&6; }
18146 ac_cpp
='$CPP $CPPFLAGS'
18147 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18148 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18149 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18153 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18154 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18155 (test "X$CXX" != "Xg++"))) ; then
18157 ac_cpp
='$CXXCPP $CPPFLAGS'
18158 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18159 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18160 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18162 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18163 if test -z "$CXXCPP"; then
18164 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18165 $as_echo_n "(cached) " >&6
18167 # Double quotes because CXXCPP needs to be expanded
18168 for CXXCPP
in "$CXX -E" "/lib/cpp"
18170 ac_preproc_ok
=false
18171 for ac_cxx_preproc_warn_flag
in '' yes
18173 # Use a header file that comes with gcc, so configuring glibc
18174 # with a fresh cross-compiler works.
18175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176 # <limits.h> exists even on freestanding compilers.
18177 # On the NeXT, cc -E runs the code through the compiler's parser,
18178 # not just through cpp. "Syntax error" is here to catch this case.
18179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18182 # include <limits.h>
18184 # include <assert.h>
18188 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18191 # Broken: fails on valid input.
18194 rm -f conftest.err conftest.
$ac_ext
18196 # OK, works on sane cases. Now check whether nonexistent headers
18197 # can be detected and how.
18198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18200 #include <ac_nonexistent.h>
18202 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18203 # Broken: success on invalid input.
18206 # Passes both tests.
18210 rm -f conftest.err conftest.
$ac_ext
18213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18214 rm -f conftest.err conftest.
$ac_ext
18215 if $ac_preproc_ok; then :
18220 ac_cv_prog_CXXCPP
=$CXXCPP
18223 CXXCPP
=$ac_cv_prog_CXXCPP
18225 ac_cv_prog_CXXCPP
=$CXXCPP
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18228 $as_echo "$CXXCPP" >&6; }
18229 ac_preproc_ok
=false
18230 for ac_cxx_preproc_warn_flag
in '' yes
18232 # Use a header file that comes with gcc, so configuring glibc
18233 # with a fresh cross-compiler works.
18234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18235 # <limits.h> exists even on freestanding compilers.
18236 # On the NeXT, cc -E runs the code through the compiler's parser,
18237 # not just through cpp. "Syntax error" is here to catch this case.
18238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18241 # include <limits.h>
18243 # include <assert.h>
18247 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18250 # Broken: fails on valid input.
18253 rm -f conftest.err conftest.
$ac_ext
18255 # OK, works on sane cases. Now check whether nonexistent headers
18256 # can be detected and how.
18257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18259 #include <ac_nonexistent.h>
18261 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18262 # Broken: success on invalid input.
18265 # Passes both tests.
18269 rm -f conftest.err conftest.
$ac_ext
18272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18273 rm -f conftest.err conftest.
$ac_ext
18274 if $ac_preproc_ok; then :
18277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18279 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18280 See \`config.log' for more details." "$LINENO" 5; }
18284 ac_cpp
='$CPP $CPPFLAGS'
18285 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18290 _lt_caught_CXX_error
=yes
18294 ac_cpp
='$CXXCPP $CPPFLAGS'
18295 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18296 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18297 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18299 archive_cmds_need_lc_CXX
=no
18300 allow_undefined_flag_CXX
=
18301 always_export_symbols_CXX
=no
18302 archive_expsym_cmds_CXX
=
18303 compiler_needs_object_CXX
=no
18304 export_dynamic_flag_spec_CXX
=
18305 hardcode_direct_CXX
=no
18306 hardcode_direct_absolute_CXX
=no
18307 hardcode_libdir_flag_spec_CXX
=
18308 hardcode_libdir_flag_spec_ld_CXX
=
18309 hardcode_libdir_separator_CXX
=
18310 hardcode_minus_L_CXX
=no
18311 hardcode_shlibpath_var_CXX
=unsupported
18312 hardcode_automatic_CXX
=no
18313 inherit_rpath_CXX
=no
18315 module_expsym_cmds_CXX
=
18316 link_all_deplibs_CXX
=unknown
18317 old_archive_cmds_CXX
=$old_archive_cmds
18318 reload_flag_CXX
=$reload_flag
18319 reload_cmds_CXX
=$reload_cmds
18320 no_undefined_flag_CXX
=
18321 whole_archive_flag_spec_CXX
=
18322 enable_shared_with_static_runtimes_CXX
=no
18324 # Source file extension for C++ test sources.
18327 # Object file extension for compiled C++ test sources.
18331 # No sense in running all these tests if we already determined that
18332 # the CXX compiler isn't working. Some variables (like enable_shared)
18333 # are currently assumed to apply to all compilers on this platform,
18334 # and will be corrupted by setting them based on a non-working compiler.
18335 if test "$_lt_caught_CXX_error" != yes; then
18336 # Code to be used in simple compile tests
18337 lt_simple_compile_test_code
="int some_variable = 0;"
18339 # Code to be used in simple link tests
18340 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18349 # If no C compiler was specified, use CC.
18352 # If no C compiler flags were specified, use CFLAGS.
18353 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18355 # Allow CC to be a program name with arguments.
18359 # save warnings/boilerplate of simple test code
18360 ac_outfile
=conftest.
$ac_objext
18361 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18362 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18363 _lt_compiler_boilerplate
=`cat conftest.err`
18366 ac_outfile
=conftest.
$ac_objext
18367 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18368 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18369 _lt_linker_boilerplate
=`cat conftest.err`
18373 # Allow CC to be a program name with arguments.
18378 lt_save_with_gnu_ld
=$with_gnu_ld
18379 lt_save_path_LD
=$lt_cv_path_LD
18380 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18381 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18383 $as_unset lt_cv_prog_gnu_ld
18385 if test -n "${lt_cv_path_LDCXX+set}"; then
18386 lt_cv_path_LD
=$lt_cv_path_LDCXX
18388 $as_unset lt_cv_path_LD
18390 test -z "${LDCXX+set}" || LD
=$LDCXX
18394 for cc_temp
in $compiler""; do
18396 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18397 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18402 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18405 if test -n "$compiler"; then
18406 # We don't want -fno-exception when compiling C++ code, so set the
18407 # no_builtin_flag separately
18408 if test "$GXX" = yes; then
18409 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18411 lt_prog_compiler_no_builtin_flag_CXX
=
18414 if test "$GXX" = yes; then
18415 # Set up default GNU C++ configuration
18419 # Check whether --with-gnu-ld was given.
18420 if test "${with_gnu_ld+set}" = set; then :
18421 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18427 if test "$GCC" = yes; then
18428 # Check if gcc -print-prog-name=ld gives a path.
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18430 $as_echo_n "checking for ld used by $CC... " >&6; }
18433 # gcc leaves a trailing carriage return which upsets mingw
18434 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18436 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18439 # Accept absolute paths.
18441 re_direlt
='/[^/][^/]*/\.\./'
18442 # Canonicalize the pathname of ld
18443 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18444 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18445 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18447 test -z "$LD" && LD
="$ac_prog"
18450 # If it fails, then pretend we aren't using GCC.
18454 # If it is relative, then search for the first ld in PATH.
18455 with_gnu_ld
=unknown
18458 elif test "$with_gnu_ld" = yes; then
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18460 $as_echo_n "checking for GNU ld... " >&6; }
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18463 $as_echo_n "checking for non-GNU ld... " >&6; }
18465 if test "${lt_cv_path_LD+set}" = set; then :
18466 $as_echo_n "(cached) " >&6
18468 if test -z "$LD"; then
18469 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18470 for ac_dir
in $PATH; do
18472 test -z "$ac_dir" && ac_dir
=.
18473 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18474 lt_cv_path_LD
="$ac_dir/$ac_prog"
18475 # Check to see if the program is GNU ld. I'd rather use --version,
18476 # but apparently some variants of GNU ld only accept -v.
18477 # Break only if it was the GNU/non-GNU ld that we prefer.
18478 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18479 *GNU
* |
*'with BFD'*)
18480 test "$with_gnu_ld" != no
&& break
18483 test "$with_gnu_ld" != yes && break
18490 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18494 LD
="$lt_cv_path_LD"
18495 if test -n "$LD"; then
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18497 $as_echo "$LD" >&6; }
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 $as_echo "no" >&6; }
18502 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18504 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18505 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18506 $as_echo_n "(cached) " >&6
18508 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18509 case `$LD -v 2>&1 </dev/null` in
18510 *GNU
* |
*'with BFD'*)
18511 lt_cv_prog_gnu_ld
=yes
18514 lt_cv_prog_gnu_ld
=no
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18519 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18520 with_gnu_ld
=$lt_cv_prog_gnu_ld
18528 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18529 # archiving commands below assume that GNU ld is being used.
18530 if test "$with_gnu_ld" = yes; then
18531 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18532 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'
18534 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18535 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18537 # If archive_cmds runs LD, not CC, wlarc should be empty
18538 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18539 # investigate it a little bit more. (MM)
18542 # ancient GNU ld didn't support --whole-archive et. al.
18543 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18544 $GREP 'no-whole-archive' > /dev
/null
; then
18545 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18547 whole_archive_flag_spec_CXX
=
18553 # A generic and very simple default shared library creation
18554 # command for GNU C++ for the case where it uses the native
18555 # linker, instead of GNU ld. If possible, this setting should
18556 # overridden to take advantage of the native linker features on
18557 # the platform it is being used on.
18558 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18561 # Commands to make compiler produce verbose output that lists
18562 # what "hidden" libraries, object files and flags are used when
18563 # linking a shared library.
18564 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18572 # PORTME: fill in a description of your system's C++ link characteristics
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18578 # FIXME: insert proper C++ library support
18582 if test "$host_cpu" = ia64
; then
18583 # On IA64, the linker does run time linking by default, so we don't
18584 # have to do anything special.
18585 aix_use_runtimelinking
=no
18586 exp_sym_flag
='-Bexport'
18589 aix_use_runtimelinking
=no
18591 # Test if we are trying to use run time linking or normal
18592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18593 # need to do runtime linking.
18594 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18595 for ld_flag
in $LDFLAGS; do
18598 aix_use_runtimelinking
=yes
18606 exp_sym_flag
='-bexport'
18607 no_entry_flag
='-bnoentry'
18610 # When large executables or shared objects are built, AIX ld can
18611 # have problems creating the table of contents. If linking a library
18612 # or program results in "error TOC overflow" add -mminimal-toc to
18613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18616 archive_cmds_CXX
=''
18617 hardcode_direct_CXX
=yes
18618 hardcode_direct_absolute_CXX
=yes
18619 hardcode_libdir_separator_CXX
=':'
18620 link_all_deplibs_CXX
=yes
18621 file_list_spec_CXX
='${wl}-f,'
18623 if test "$GXX" = yes; then
18624 case $host_os in aix4.
[012]|aix4.
[012].
*)
18625 # We only want to do this on AIX 4.2 and lower, the check
18626 # below for broken collect2 doesn't work under 4.3+
18627 collect2name
=`${CC} -print-prog-name=collect2`
18628 if test -f "$collect2name" &&
18629 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18631 # We have reworked collect2
18634 # We have old collect2
18635 hardcode_direct_CXX
=unsupported
18636 # It fails to find uninstalled libraries when the uninstalled
18637 # path is not listed in the libpath. Setting hardcode_minus_L
18638 # to unsupported forces relinking
18639 hardcode_minus_L_CXX
=yes
18640 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18641 hardcode_libdir_separator_CXX
=
18644 shared_flag
='-shared'
18645 if test "$aix_use_runtimelinking" = yes; then
18646 shared_flag
="$shared_flag "'${wl}-G'
18650 if test "$host_cpu" = ia64
; then
18651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18652 # chokes on -Wl,-G. The following line is correct:
18655 if test "$aix_use_runtimelinking" = yes; then
18656 shared_flag
='${wl}-G'
18658 shared_flag
='${wl}-bM:SRE'
18663 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18664 # It seems that -bexpall does not export symbols beginning with
18665 # underscore (_), so it is better to generate a list of symbols to
18667 always_export_symbols_CXX
=yes
18668 if test "$aix_use_runtimelinking" = yes; then
18669 # Warning - without using the other runtime loading flags (-brtl),
18670 # -berok will link without error, but may produce a broken library.
18671 allow_undefined_flag_CXX
='-berok'
18672 # Determine the default libpath from the value encoded in an empty
18674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18685 if ac_fn_cxx_try_link
"$LINENO"; then :
18687 lt_aix_libpath_sed
='
18688 /Import File Strings/,/^$/ {
18694 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18695 # Check for a 64-bit object if we didn't find anything.
18696 if test -z "$aix_libpath"; then
18697 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18700 rm -f core conftest.err conftest.
$ac_objext \
18701 conftest
$ac_exeext conftest.
$ac_ext
18702 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18704 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18706 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"
18708 if test "$host_cpu" = ia64
; then
18709 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18710 allow_undefined_flag_CXX
="-z nodefs"
18711 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"
18713 # Determine the default libpath from the value encoded in an
18714 # empty executable.
18715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18726 if ac_fn_cxx_try_link
"$LINENO"; then :
18728 lt_aix_libpath_sed
='
18729 /Import File Strings/,/^$/ {
18735 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18736 # Check for a 64-bit object if we didn't find anything.
18737 if test -z "$aix_libpath"; then
18738 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18741 rm -f core conftest.err conftest.
$ac_objext \
18742 conftest
$ac_exeext conftest.
$ac_ext
18743 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18745 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18746 # Warning - without using the other run time loading flags,
18747 # -berok will link without error, but may produce a broken library.
18748 no_undefined_flag_CXX
=' ${wl}-bernotok'
18749 allow_undefined_flag_CXX
=' ${wl}-berok'
18750 if test "$with_gnu_ld" = yes; then
18751 # We only use this code for GNU lds that support --whole-archive.
18752 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18754 # Exported symbols can be pulled into shared objects from archives
18755 whole_archive_flag_spec_CXX
='$convenience'
18757 archive_cmds_need_lc_CXX
=yes
18758 # This is similar to how AIX traditionally builds its shared
18760 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'
18766 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18767 allow_undefined_flag_CXX
=unsupported
18768 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18769 # support --undefined. This deserves some investigation. FIXME
18770 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18777 case $cc_basename in
18779 # FIXME: insert proper C++ library support
18785 cygwin
* | mingw
* | pw32
* | cegcc
*)
18786 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18787 # as there is no search path for DLLs.
18788 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18789 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18790 allow_undefined_flag_CXX
=unsupported
18791 always_export_symbols_CXX
=no
18792 enable_shared_with_static_runtimes_CXX
=yes
18794 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18795 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'
18796 # If the export-symbols file already is a .def file (1st line
18797 # is EXPORTS), use it as is; otherwise, prepend...
18798 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18799 cp $export_symbols $output_objdir/$soname.def;
18801 echo EXPORTS > $output_objdir/$soname.def;
18802 cat $export_symbols >> $output_objdir/$soname.def;
18804 $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'
18809 darwin
* | rhapsody
*)
18812 archive_cmds_need_lc_CXX
=no
18813 hardcode_direct_CXX
=no
18814 hardcode_automatic_CXX
=yes
18815 hardcode_shlibpath_var_CXX
=unsupported
18816 if test "$lt_cv_ld_force_load" = "yes"; then
18817 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\"`'
18819 whole_archive_flag_spec_CXX
=''
18821 link_all_deplibs_CXX
=yes
18822 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18823 case $cc_basename in
18824 ifort
*) _lt_dar_can_shared
=yes ;;
18825 *) _lt_dar_can_shared
=$GCC ;;
18827 if test "$_lt_dar_can_shared" = "yes"; then
18828 output_verbose_link_cmd
=func_echo_all
18829 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}"
18830 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18831 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}"
18832 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}"
18833 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18834 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}"
18835 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}"
18845 case $cc_basename in
18847 # FIXME: insert proper C++ library support
18851 # Green Hills C++ Compiler
18852 # FIXME: insert proper C++ library support
18856 # FIXME: insert proper C++ library support
18863 # C++ shared libraries reported to be fairly broken before
18869 archive_cmds_need_lc_CXX
=no
18872 freebsd
* | dragonfly
*)
18873 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18882 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18883 link_all_deplibs_CXX
=yes
18887 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18888 hardcode_libdir_separator_CXX
=:
18889 export_dynamic_flag_spec_CXX
='${wl}-E'
18890 hardcode_direct_CXX
=yes
18891 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18892 # but as the default
18893 # location of the library.
18895 case $cc_basename in
18897 # FIXME: insert proper C++ library support
18901 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'
18902 # Commands to make compiler produce verbose output that lists
18903 # what "hidden" libraries, object files and flags are used when
18904 # linking a shared library.
18906 # There doesn't appear to be a way to prevent this compiler from
18907 # explicitly linking system object files so we need to strip them
18908 # from the output so that they don't get included in the library
18910 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"'
18913 if test "$GXX" = yes; then
18914 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'
18916 # FIXME: insert proper C++ library support
18924 if test $with_gnu_ld = no
; then
18925 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18926 hardcode_libdir_separator_CXX
=:
18932 export_dynamic_flag_spec_CXX
='${wl}-E'
18938 hardcode_direct_CXX
=no
18939 hardcode_shlibpath_var_CXX
=no
18942 hardcode_direct_CXX
=yes
18943 hardcode_direct_absolute_CXX
=yes
18944 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18945 # but as the default
18946 # location of the library.
18950 case $cc_basename in
18952 # FIXME: insert proper C++ library support
18958 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18961 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18964 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18967 # Commands to make compiler produce verbose output that lists
18968 # what "hidden" libraries, object files and flags are used when
18969 # linking a shared library.
18971 # There doesn't appear to be a way to prevent this compiler from
18972 # explicitly linking system object files so we need to strip them
18973 # from the output so that they don't get included in the library
18975 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"'
18978 if test "$GXX" = yes; then
18979 if test $with_gnu_ld = no
; then
18982 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18985 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18988 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'
18993 # FIXME: insert proper C++ library support
19001 hardcode_direct_CXX
=no
19002 hardcode_shlibpath_var_CXX
=no
19003 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19004 export_dynamic_flag_spec_CXX
='${wl}-E'
19005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19006 # Instead, shared libraries are loaded at an image base (0x10000000 by
19007 # default) and relocated if they conflict, which is a slow very memory
19008 # consuming and fragmenting process. To avoid this, we pick a random,
19009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19011 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'
19012 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'
19015 case $cc_basename in
19018 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'
19020 # Archives containing C++ object files must be created using
19021 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19022 # necessary to make sure instantiated templates are included
19024 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19027 if test "$GXX" = yes; then
19028 if test "$with_gnu_ld" = no
; then
19029 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19031 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'
19034 link_all_deplibs_CXX
=yes
19037 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19038 hardcode_libdir_separator_CXX
=:
19039 inherit_rpath_CXX
=yes
19042 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19043 case $cc_basename in
19045 # Kuck and Associates, Inc. (KAI) C++ Compiler
19047 # KCC will only create a shared library if the output file
19048 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19049 # to its proper name (with version) after linking.
19050 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'
19051 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'
19052 # Commands to make compiler produce verbose output that lists
19053 # what "hidden" libraries, object files and flags are used when
19054 # linking a shared library.
19056 # There doesn't appear to be a way to prevent this compiler from
19057 # explicitly linking system object files so we need to strip them
19058 # from the output so that they don't get included in the library
19060 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"'
19062 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19063 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19065 # Archives containing C++ object files must be created using
19066 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19067 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19072 # version 8.0 and above of icpc choke on multiply defined symbols
19073 # if we add $predep_objects and $postdep_objects, however 7.1 and
19074 # earlier do not add the objects themselves.
19075 case `$CC -V 2>&1` in
19077 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078 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'
19080 *) # Version 8.0 or newer
19083 ia64
*) tmp_idyn
=' -i_dynamic';;
19085 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086 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'
19089 archive_cmds_need_lc_CXX
=no
19090 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19091 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19092 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19095 # Portland Group C++ compiler
19097 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19098 prelink_cmds_CXX
='tpldir=Template.dir~
19100 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19101 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19102 old_archive_cmds_CXX
='tpldir=Template.dir~
19104 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19105 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19107 archive_cmds_CXX
='tpldir=Template.dir~
19109 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19110 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19111 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19113 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19114 $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'
19116 *) # Version 6 and above use weak symbols
19117 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19118 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'
19122 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19123 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19124 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'
19128 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19129 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'
19131 runpath_var
=LD_RUN_PATH
19132 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19133 hardcode_libdir_separator_CXX
=:
19135 # Commands to make compiler produce verbose output that lists
19136 # what "hidden" libraries, object files and flags are used when
19137 # linking a shared library.
19139 # There doesn't appear to be a way to prevent this compiler from
19140 # explicitly linking system object files so we need to strip them
19141 # from the output so that they don't get included in the library
19143 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'
19145 xl
* | mpixl
* | bgxl
*)
19146 # IBM XL 8.0 on PPC, with GNU ld
19147 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19148 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19149 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150 if test "x$supports_anon_versioning" = xyes
; then
19151 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19153 echo "local: *; };" >> $output_objdir/$libname.ver~
19154 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19158 case `$CC -V 2>&1 | sed 5q` in
19161 no_undefined_flag_CXX
=' -zdefs'
19162 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19163 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'
19164 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19165 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'
19166 compiler_needs_object_CXX
=yes
19168 # Not sure whether something based on
19169 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19171 output_verbose_link_cmd
='func_echo_all'
19173 # Archives containing C++ object files must be created using
19174 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19175 # necessary to make sure instantiated templates are included
19177 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19185 # FIXME: insert proper C++ library support
19190 # FIXME: insert proper C++ library support
19195 case $cc_basename in
19197 # FIXME: insert proper C++ library support
19201 # FIXME: insert proper C++ library support
19208 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19209 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19211 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19212 hardcode_direct_CXX
=yes
19213 hardcode_shlibpath_var_CXX
=no
19215 # Workaround some broken pre-1.5 toolchains
19216 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19224 # C++ shared libraries are fairly broken
19229 if test -f /usr
/libexec
/ld.so
; then
19230 hardcode_direct_CXX
=yes
19231 hardcode_shlibpath_var_CXX
=no
19232 hardcode_direct_absolute_CXX
=yes
19233 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19234 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19236 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19237 export_dynamic_flag_spec_CXX
='${wl}-E'
19238 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19240 output_verbose_link_cmd
=func_echo_all
19246 osf3
* | osf4
* | osf5
*)
19247 case $cc_basename in
19249 # Kuck and Associates, Inc. (KAI) C++ Compiler
19251 # KCC will only create a shared library if the output file
19252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19253 # to its proper name (with version) after linking.
19254 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'
19256 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19257 hardcode_libdir_separator_CXX
=:
19259 # Archives containing C++ object files must be created using
19260 # the KAI C++ compiler.
19262 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19263 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19267 # Rational C++ 2.4.1
19268 # FIXME: insert proper C++ library support
19274 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19275 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'
19276 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19279 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19280 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'
19281 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19282 echo "-hidden">> $lib.exp~
19283 $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~
19285 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19289 hardcode_libdir_separator_CXX
=:
19291 # Commands to make compiler produce verbose output that lists
19292 # what "hidden" libraries, object files and flags are used when
19293 # linking a shared library.
19295 # There doesn't appear to be a way to prevent this compiler from
19296 # explicitly linking system object files so we need to strip them
19297 # from the output so that they don't get included in the library
19299 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"'
19302 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19303 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19306 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'
19309 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'
19313 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19314 hardcode_libdir_separator_CXX
=:
19316 # Commands to make compiler produce verbose output that lists
19317 # what "hidden" libraries, object files and flags are used when
19318 # linking a shared library.
19319 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19322 # FIXME: insert proper C++ library support
19330 # FIXME: insert proper C++ library support
19335 case $cc_basename in
19338 # FIXME: insert proper C++ library support
19343 # FIXME: insert proper C++ library support
19347 # FIXME: insert proper C++ library support
19354 case $cc_basename in
19356 # Sun C++ 4.2, 5.x and Centerline C++
19357 archive_cmds_need_lc_CXX
=yes
19358 no_undefined_flag_CXX
=' -zdefs'
19359 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19360 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19361 $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'
19363 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19364 hardcode_shlibpath_var_CXX
=no
19366 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19368 # The compiler driver will combine and reorder linker options,
19369 # but understands `-z linker_flag'.
19370 # Supported since Solaris 2.6 (maybe 2.5.1?)
19371 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19374 link_all_deplibs_CXX
=yes
19376 output_verbose_link_cmd
='func_echo_all'
19378 # Archives containing C++ object files must be created using
19379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19380 # necessary to make sure instantiated templates are included
19382 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19385 # Green Hills C++ Compiler
19386 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19388 # The C++ compiler must be used to create the archive.
19389 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19392 # GNU C++ compiler with Solaris linker
19393 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19394 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19395 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19396 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19397 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19398 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19400 # Commands to make compiler produce verbose output that lists
19401 # what "hidden" libraries, object files and flags are used when
19402 # linking a shared library.
19403 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19405 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19407 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19408 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19409 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19411 # Commands to make compiler produce verbose output that lists
19412 # what "hidden" libraries, object files and flags are used when
19413 # linking a shared library.
19414 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19417 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19419 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19421 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19429 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19430 no_undefined_flag_CXX
='${wl}-z,text'
19431 archive_cmds_need_lc_CXX
=no
19432 hardcode_shlibpath_var_CXX
=no
19433 runpath_var
='LD_RUN_PATH'
19435 case $cc_basename in
19437 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19438 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19441 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19442 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19447 sysv5
* | sco3.2v5
* | sco5v6
*)
19448 # Note: We can NOT use -z defs as we might desire, because we do not
19449 # link with -lc, and that would cause any symbols used from libc to
19450 # always be unresolved, which means just about no library would
19451 # ever link correctly. If we're not using GNU ld we use -z text
19452 # though, which does catch some bad symbols but isn't as heavy-handed
19454 no_undefined_flag_CXX
='${wl}-z,text'
19455 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19456 archive_cmds_need_lc_CXX
=no
19457 hardcode_shlibpath_var_CXX
=no
19458 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19459 hardcode_libdir_separator_CXX
=':'
19460 link_all_deplibs_CXX
=yes
19461 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19462 runpath_var
='LD_RUN_PATH'
19464 case $cc_basename in
19466 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19467 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19469 '"$old_archive_cmds_CXX"
19470 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19471 '"$reload_cmds_CXX"
19474 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19475 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19481 case $cc_basename in
19483 # NonStop-UX NCC 3.20
19484 # FIXME: insert proper C++ library support
19488 # FIXME: insert proper C++ library support
19495 # FIXME: insert proper C++ library support
19500 # FIXME: insert proper C++ library support
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19506 $as_echo "$ld_shlibs_CXX" >&6; }
19507 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19513 ## There is no encapsulation within the following macros, do not change
19514 ## the running order or otherwise move them around unless you know exactly
19515 ## what you are doing...
19516 # Dependencies to place before and after the object being linked:
19517 predep_objects_CXX
=
19518 postdep_objects_CXX
=
19521 compiler_lib_search_path_CXX
=
19523 cat > conftest.
$ac_ext <<_LT_EOF
19527 Foo (void) { a = 0; }
19533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19534 (eval $ac_compile) 2>&5
19536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19537 test $ac_status = 0; }; then
19538 # Parse the compiler output and extract the necessary
19539 # objects, libraries and library flags.
19541 # Sentinel used to keep track of whether or not we are before
19542 # the conftest object file.
19543 pre_test_object_deps_done
=no
19545 for p
in `eval "$output_verbose_link_cmd"`; do
19549 # Some compilers place space between "-{L,R}" and the path.
19550 # Remove the space.
19551 if test $p = "-L" ||
19552 test $p = "-R"; then
19559 if test "$pre_test_object_deps_done" = no
; then
19562 # Internal compiler library paths should come after those
19563 # provided the user. The postdeps already come after the
19564 # user supplied libs so there is no need to process them.
19565 if test -z "$compiler_lib_search_path_CXX"; then
19566 compiler_lib_search_path_CXX
="${prev}${p}"
19568 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19571 # The "-l" case would never come before the object being
19572 # linked, so don't bother handling this case.
19575 if test -z "$postdeps_CXX"; then
19576 postdeps_CXX
="${prev}${p}"
19578 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19584 # This assumes that the test object file only shows up
19585 # once in the compiler output.
19586 if test "$p" = "conftest.$objext"; then
19587 pre_test_object_deps_done
=yes
19591 if test "$pre_test_object_deps_done" = no
; then
19592 if test -z "$predep_objects_CXX"; then
19593 predep_objects_CXX
="$p"
19595 predep_objects_CXX
="$predep_objects_CXX $p"
19598 if test -z "$postdep_objects_CXX"; then
19599 postdep_objects_CXX
="$p"
19601 postdep_objects_CXX
="$postdep_objects_CXX $p"
19606 *) ;; # Ignore the rest.
19614 echo "libtool.m4: error: problem compiling CXX test program"
19617 $RM -f confest.
$objext
19619 # PORTME: override above test on systems where it is broken
19622 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19623 # hack all around it, let's just trust "g++" to DTRT.
19624 predep_objects_CXX
=
19625 postdep_objects_CXX
=
19630 case `$CC -V 2>&1 | sed 5q` in
19634 # The more standards-conforming stlport4 library is
19635 # incompatible with the Cstd library. Avoid specifying
19636 # it if it's in CXXFLAGS. Ignore libCrun as
19637 # -library=stlport4 depends on it.
19638 case " $CXX $CXXFLAGS " in
19639 *" -library=stlport4 "*)
19640 solaris_use_stlport4
=yes
19644 if test "$solaris_use_stlport4" != yes; then
19645 postdeps_CXX
='-library=Cstd -library=Crun'
19652 case $cc_basename 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 # Adding this requires a known-good setup of shared libraries for
19665 # Sun compiler versions before 5.6, else PIC objects from an old
19666 # archive will be linked into the output, leading to subtle bugs.
19667 if test "$solaris_use_stlport4" != yes; then
19668 postdeps_CXX
='-library=Cstd -library=Crun'
19676 case " $postdeps_CXX " in
19677 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19679 compiler_lib_search_dirs_CXX
=
19680 if test -n "${compiler_lib_search_path_CXX}"; then
19681 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19714 lt_prog_compiler_wl_CXX
=
19715 lt_prog_compiler_pic_CXX
=
19716 lt_prog_compiler_static_CXX
=
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19719 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19721 # C++ specific cases for pic, static, wl, etc.
19722 if test "$GXX" = yes; then
19723 lt_prog_compiler_wl_CXX
='-Wl,'
19724 lt_prog_compiler_static_CXX
='-static'
19728 # All AIX code is PIC.
19729 if test "$host_cpu" = ia64
; then
19730 # AIX 5 now supports IA64 processor
19731 lt_prog_compiler_static_CXX
='-Bstatic'
19738 # see comment about AmigaOS4 .so support
19739 lt_prog_compiler_pic_CXX
='-fPIC'
19742 # FIXME: we need at least 68020 code to build shared libraries, but
19743 # adding the `-m68020' flag to GCC prevents building anything better,
19745 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19750 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19751 # PIC is the default for these OSes.
19753 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19754 # This hack is so that the source file can tell whether it is being
19755 # built for inclusion in a dll (and should export symbols for example).
19756 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19757 # (--disable-auto-import) libraries
19758 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19760 darwin
* | rhapsody
*)
19761 # PIC is the default on this platform
19762 # Common symbols not allowed in MH_DYLIB files
19763 lt_prog_compiler_pic_CXX
='-fno-common'
19766 # DJGPP does not support shared libraries at all
19767 lt_prog_compiler_pic_CXX
=
19770 # PIC is the default for Haiku.
19771 # The "-static" flag exists, but is broken.
19772 lt_prog_compiler_static_CXX
=
19775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19776 # Instead, we relocate shared libraries at runtime.
19779 if test -d /usr
/nec
; then
19780 lt_prog_compiler_pic_CXX
=-Kconform_pic
19784 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19785 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19786 # sets the default TLS model and affects inlining.
19791 lt_prog_compiler_pic_CXX
='-fPIC'
19796 # QNX uses GNU C++, but need to define -shared option too, otherwise
19797 # it will coredump.
19798 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19801 lt_prog_compiler_pic_CXX
='-fPIC'
19807 # All AIX code is PIC.
19808 if test "$host_cpu" = ia64
; then
19809 # AIX 5 now supports IA64 processor
19810 lt_prog_compiler_static_CXX
='-Bstatic'
19812 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19816 case $cc_basename in
19818 # Green Hills C++ Compiler
19819 # _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"
19824 case $cc_basename in
19826 lt_prog_compiler_pic_CXX
='-KPIC'
19829 # Green Hills C++ Compiler
19830 lt_prog_compiler_pic_CXX
='-pic'
19836 freebsd
* | dragonfly
*)
19837 # FreeBSD uses GNU C++
19839 hpux9
* | hpux10
* | hpux11
*)
19840 case $cc_basename in
19842 lt_prog_compiler_wl_CXX
='-Wl,'
19843 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19844 if test "$host_cpu" != ia64
; then
19845 lt_prog_compiler_pic_CXX
='+Z'
19849 lt_prog_compiler_wl_CXX
='-Wl,'
19850 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19856 lt_prog_compiler_pic_CXX
='+Z'
19865 # This is c89, which is MS Visual C++ (no shared libs)
19866 # Anyone wants to do a port?
19868 irix5
* | irix6
* | nonstopux
*)
19869 case $cc_basename in
19871 lt_prog_compiler_wl_CXX
='-Wl,'
19872 lt_prog_compiler_static_CXX
='-non_shared'
19873 # CC pic flag -KPIC is the default.
19879 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19880 case $cc_basename in
19883 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19884 lt_prog_compiler_pic_CXX
='-fPIC'
19887 # old Intel C++ for x86_64 which still supported -KPIC.
19888 lt_prog_compiler_wl_CXX
='-Wl,'
19889 lt_prog_compiler_pic_CXX
='-KPIC'
19890 lt_prog_compiler_static_CXX
='-static'
19893 # Intel C++, used to be incompatible with GCC.
19894 # ICC 10 doesn't accept -KPIC any more.
19895 lt_prog_compiler_wl_CXX
='-Wl,'
19896 lt_prog_compiler_pic_CXX
='-fPIC'
19897 lt_prog_compiler_static_CXX
='-static'
19900 # Portland Group C++ compiler
19901 lt_prog_compiler_wl_CXX
='-Wl,'
19902 lt_prog_compiler_pic_CXX
='-fpic'
19903 lt_prog_compiler_static_CXX
='-Bstatic'
19907 # Make sure the PIC flag is empty. It appears that all Alpha
19908 # Linux and Compaq Tru64 Unix objects are PIC.
19909 lt_prog_compiler_pic_CXX
=
19910 lt_prog_compiler_static_CXX
='-non_shared'
19912 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19913 # IBM XL 8.0, 9.0 on PPC and BlueGene
19914 lt_prog_compiler_wl_CXX
='-Wl,'
19915 lt_prog_compiler_pic_CXX
='-qpic'
19916 lt_prog_compiler_static_CXX
='-qstaticlink'
19919 case `$CC -V 2>&1 | sed 5q` in
19922 lt_prog_compiler_pic_CXX
='-KPIC'
19923 lt_prog_compiler_static_CXX
='-Bstatic'
19924 lt_prog_compiler_wl_CXX
='-Qoption ld '
19935 case $cc_basename in
19937 lt_prog_compiler_pic_CXX
='-W c,exportall'
19946 # QNX uses GNU C++, but need to define -shared option too, otherwise
19947 # it will coredump.
19948 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19950 osf3
* | osf4
* | osf5
*)
19951 case $cc_basename in
19953 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19956 # Rational C++ 2.4.1
19957 lt_prog_compiler_pic_CXX
='-pic'
19960 # Digital/Compaq C++
19961 lt_prog_compiler_wl_CXX
='-Wl,'
19962 # Make sure the PIC flag is empty. It appears that all Alpha
19963 # Linux and Compaq Tru64 Unix objects are PIC.
19964 lt_prog_compiler_pic_CXX
=
19965 lt_prog_compiler_static_CXX
='-non_shared'
19974 case $cc_basename in
19976 # Sun C++ 4.2, 5.x and Centerline C++
19977 lt_prog_compiler_pic_CXX
='-KPIC'
19978 lt_prog_compiler_static_CXX
='-Bstatic'
19979 lt_prog_compiler_wl_CXX
='-Qoption ld '
19982 # Green Hills C++ Compiler
19983 lt_prog_compiler_pic_CXX
='-PIC'
19990 case $cc_basename in
19993 lt_prog_compiler_pic_CXX
='-pic'
19994 lt_prog_compiler_static_CXX
='-Bstatic'
19998 lt_prog_compiler_pic_CXX
='-pic'
20004 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20005 case $cc_basename in
20007 lt_prog_compiler_wl_CXX
='-Wl,'
20008 lt_prog_compiler_pic_CXX
='-KPIC'
20009 lt_prog_compiler_static_CXX
='-Bstatic'
20014 case $cc_basename in
20016 # NonStop-UX NCC 3.20
20017 lt_prog_compiler_pic_CXX
='-KPIC'
20026 lt_prog_compiler_can_build_shared_CXX
=no
20032 # For platforms which do not support PIC, -DPIC is meaningless:
20034 lt_prog_compiler_pic_CXX
=
20037 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20041 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20046 # Check to make sure the PIC flag actually works.
20048 if test -n "$lt_prog_compiler_pic_CXX"; then
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20050 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20051 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20052 $as_echo_n "(cached) " >&6
20054 lt_cv_prog_compiler_pic_works_CXX
=no
20055 ac_outfile
=conftest.
$ac_objext
20056 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20057 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20058 # Insert the option either (1) after the last *FLAGS variable, or
20059 # (2) before a word containing "conftest.", or (3) at the end.
20060 # Note that $ac_compile itself does not contain backslashes and begins
20061 # with a dollar sign (not a hyphen), so the echo should work correctly.
20062 # The option is referenced via a variable to avoid confusing sed.
20063 lt_compile
=`echo "$ac_compile" | $SED \
20064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20066 -e 's:$: $lt_compiler_flag:'`
20067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20068 (eval "$lt_compile" 2>conftest.err
)
20070 cat conftest.err
>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 if (exit $ac_status) && test -s "$ac_outfile"; then
20073 # The compiler can only warn and ignore the option if not recognized
20074 # So say no if there are warnings other than the usual output.
20075 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20076 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20077 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20078 lt_cv_prog_compiler_pic_works_CXX
=yes
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20085 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20087 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20088 case $lt_prog_compiler_pic_CXX in
20090 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20093 lt_prog_compiler_pic_CXX
=
20094 lt_prog_compiler_can_build_shared_CXX
=no
20102 # Check to make sure the static flag actually works.
20104 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20106 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20107 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20108 $as_echo_n "(cached) " >&6
20110 lt_cv_prog_compiler_static_works_CXX
=no
20111 save_LDFLAGS
="$LDFLAGS"
20112 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20113 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20114 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20115 # The linker can only warn and ignore the option if not recognized
20116 # So say no if there are warnings
20117 if test -s conftest.err
; then
20118 # Append any errors to the config.log.
20119 cat conftest.err
1>&5
20120 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20121 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20122 if diff conftest.exp conftest.er2
>/dev
/null
; then
20123 lt_cv_prog_compiler_static_works_CXX
=yes
20126 lt_cv_prog_compiler_static_works_CXX
=yes
20130 LDFLAGS
="$save_LDFLAGS"
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20134 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20136 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20139 lt_prog_compiler_static_CXX
=
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20147 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20148 $as_echo_n "(cached) " >&6
20150 lt_cv_prog_compiler_c_o_CXX
=no
20151 $RM -r conftest
2>/dev
/null
20155 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20157 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20158 # Insert the option either (1) after the last *FLAGS variable, or
20159 # (2) before a word containing "conftest.", or (3) at the end.
20160 # Note that $ac_compile itself does not contain backslashes and begins
20161 # with a dollar sign (not a hyphen), so the echo should work correctly.
20162 lt_compile
=`echo "$ac_compile" | $SED \
20163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20165 -e 's:$: $lt_compiler_flag:'`
20166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20167 (eval "$lt_compile" 2>out
/conftest.err
)
20169 cat out
/conftest.err
>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20173 # The compiler can only warn and ignore the option if not recognized
20174 # So say no if there are warnings
20175 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20176 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20177 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20178 lt_cv_prog_compiler_c_o_CXX
=yes
20183 # SGI C++ compiler will create directory out/ii_files/ for
20184 # template instantiation
20185 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20186 $RM out
/* && rmdir out
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20193 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20198 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20199 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20200 $as_echo_n "(cached) " >&6
20202 lt_cv_prog_compiler_c_o_CXX
=no
20203 $RM -r conftest
2>/dev
/null
20207 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20209 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20210 # Insert the option either (1) after the last *FLAGS variable, or
20211 # (2) before a word containing "conftest.", or (3) at the end.
20212 # Note that $ac_compile itself does not contain backslashes and begins
20213 # with a dollar sign (not a hyphen), so the echo should work correctly.
20214 lt_compile
=`echo "$ac_compile" | $SED \
20215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20217 -e 's:$: $lt_compiler_flag:'`
20218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20219 (eval "$lt_compile" 2>out
/conftest.err
)
20221 cat out
/conftest.err
>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20225 # The compiler can only warn and ignore the option if not recognized
20226 # So say no if there are warnings
20227 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20228 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20229 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20230 lt_cv_prog_compiler_c_o_CXX
=yes
20235 # SGI C++ compiler will create directory out/ii_files/ for
20236 # template instantiation
20237 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20238 $RM out
/* && rmdir out
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20245 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20250 hard_links
="nottested"
20251 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20252 # do not overwrite the value of need_locks provided by the user
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20254 $as_echo_n "checking if we can lock with hard links... " >&6; }
20257 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20259 ln conftest.a conftest.b
2>&5 || hard_links
=no
20260 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20262 $as_echo "$hard_links" >&6; }
20263 if test "$hard_links" = no
; then
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20275 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20277 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20280 # If we're using GNU nm, then we don't want the "-C" option.
20281 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20282 # Also, AIX nm treats weak defined symbols like other global defined
20283 # symbols, whereas GNU nm marks them as "W".
20284 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20285 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'
20287 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'
20291 export_symbols_cmds_CXX
="$ltdll_cmds"
20293 cygwin
* | mingw
* | cegcc
*)
20294 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'
20297 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20300 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20303 $as_echo "$ld_shlibs_CXX" >&6; }
20304 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20306 with_gnu_ld_CXX
=$with_gnu_ld
20314 # Do we need to explicitly link libc?
20316 case "x$archive_cmds_need_lc_CXX" in
20318 # Assume -lc should be added
20319 archive_cmds_need_lc_CXX
=yes
20321 if test "$enable_shared" = yes && test "$GCC" = yes; then
20322 case $archive_cmds_CXX in
20324 # FIXME: we may have to deal with multi-command sequences.
20327 # Test whether the compiler implicitly links with -lc since on some
20328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20329 # to ld, don't add -lc before -lgcc.
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20331 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20332 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20336 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20339 (eval $ac_compile) 2>&5
20341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20342 test $ac_status = 0; } 2>conftest.err
; then
20345 libobjs
=conftest.
$ac_objext
20347 wl
=$lt_prog_compiler_wl_CXX
20348 pic_flag
=$lt_prog_compiler_pic_CXX
20354 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20355 allow_undefined_flag_CXX
=
20356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20357 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20360 test $ac_status = 0; }
20362 lt_cv_archive_cmds_need_lc_CXX
=no
20364 lt_cv_archive_cmds_need_lc_CXX
=yes
20366 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20368 cat conftest.err
1>&5
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20374 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20375 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20448 library_names_spec
=
20449 libname_spec
='lib$name'
20453 postuninstall_cmds
=
20457 shlibpath_overrides_runpath
=unknown
20459 dynamic_linker
="$host_os ld.so"
20460 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20461 need_lib_prefix
=unknown
20462 hardcode_into_libs
=no
20464 # when you set need_version to no, make sure it does not cause -set_version
20465 # flags to be left without arguments
20466 need_version
=unknown
20471 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20472 shlibpath_var
=LIBPATH
20474 # AIX 3 has no versioning support, so we append a major version to the name.
20475 soname_spec
='${libname}${release}${shared_ext}$major'
20482 hardcode_into_libs
=yes
20483 if test "$host_cpu" = ia64
; then
20484 # AIX 5 supports IA64
20485 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20486 shlibpath_var
=LD_LIBRARY_PATH
20488 # With GCC up to 2.95.x, collect2 would create an import file
20489 # for dependence libraries. The import file would start with
20490 # the line `#! .'. This would cause the generated library to
20491 # depend on `.', always an invalid library. This was fixed in
20492 # development snapshots of GCC prior to 3.0.
20494 aix4 | aix4.
[01] | aix4.
[01].
*)
20495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20497 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20500 can_build_shared
=no
20504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20505 # soname into executable. Probably we can add versioning support to
20506 # collect2, so additional links can be useful in future.
20507 if test "$aix_use_runtimelinking" = yes; then
20508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20509 # instead of lib<name>.a to let people know that these are not
20510 # typical AIX shared libraries.
20511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 # We preserve .a as extension for shared libraries through AIX4.2
20514 # and later when we are not doing run time linking.
20515 library_names_spec
='${libname}${release}.a $libname.a'
20516 soname_spec
='${libname}${release}${shared_ext}$major'
20518 shlibpath_var
=LIBPATH
20525 # Since July 2007 AmigaOS4 officially supports .so libraries.
20526 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20530 library_names_spec
='$libname.ixlibrary $libname.a'
20531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20532 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'
20538 library_names_spec
='${libname}${shared_ext}'
20539 dynamic_linker
="$host_os ld.so"
20540 shlibpath_var
=LIBRARY_PATH
20546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547 soname_spec
='${libname}${release}${shared_ext}$major'
20548 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20549 shlibpath_var
=LD_LIBRARY_PATH
20550 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20551 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20552 # the default ld.so.conf also contains /usr/contrib/lib and
20553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20554 # libtool to hard-code these into programs
20557 cygwin
* | mingw
* | pw32
* | cegcc
*)
20558 version_type
=windows
20563 case $GCC,$host_os in
20564 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20565 library_names_spec
='$libname.dll.a'
20566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20567 postinstall_cmds
='base_file=`basename \${file}`~
20568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20569 dldir=$destdir/`dirname \$dlpath`~
20570 test -d \$dldir || mkdir -p \$dldir~
20571 $install_prog $dir/$dlname \$dldir/$dlname~
20572 chmod a+x \$dldir/$dlname~
20573 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20574 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20576 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20577 dlpath=$dir/\$dldll~
20579 shlibpath_overrides_runpath
=yes
20583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20584 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20588 # MinGW DLLs use traditional 'lib' prefix
20589 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20592 # pw32 DLLs use 'pw' prefix rather than 'lib'
20593 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20599 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20602 dynamic_linker
='Win32 ld.exe'
20603 # FIXME: first we should search . and the directory the executable is in
20607 darwin
* | rhapsody
*)
20608 dynamic_linker
="$host_os dyld"
20609 version_type
=darwin
20612 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20613 soname_spec
='${libname}${release}${major}$shared_ext'
20614 shlibpath_overrides_runpath
=yes
20615 shlibpath_var
=DYLD_LIBRARY_PATH
20616 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20618 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20626 soname_spec
='${libname}${release}${shared_ext}$major'
20627 shlibpath_var
=LD_LIBRARY_PATH
20630 freebsd
* | dragonfly
*)
20631 # DragonFly does not have aout. When/if they implement a new
20632 # versioning mechanism, adjust this.
20633 if test -x /usr
/bin
/objformat
; then
20634 objformat
=`/usr/bin/objformat`
20637 freebsd
[123]*) objformat
=aout
;;
20638 *) objformat
=elf
;;
20641 version_type
=freebsd-
$objformat
20642 case $version_type in
20644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20649 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20653 shlibpath_var
=LD_LIBRARY_PATH
20656 shlibpath_overrides_runpath
=yes
20658 freebsd3.
[01]* | freebsdelf3.
[01]*)
20659 shlibpath_overrides_runpath
=yes
20660 hardcode_into_libs
=yes
20662 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20663 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20664 shlibpath_overrides_runpath
=no
20665 hardcode_into_libs
=yes
20667 *) # from 4.6 on, and DragonFly
20668 shlibpath_overrides_runpath
=yes
20669 hardcode_into_libs
=yes
20678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20679 soname_spec
='${libname}${release}${shared_ext}$major'
20680 shlibpath_var
=LD_LIBRARY_PATH
20681 hardcode_into_libs
=yes
20688 dynamic_linker
="$host_os runtime_loader"
20689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20690 soname_spec
='${libname}${release}${shared_ext}$major'
20691 shlibpath_var
=LIBRARY_PATH
20692 shlibpath_overrides_runpath
=yes
20693 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20694 hardcode_into_libs
=yes
20697 hpux9
* | hpux10
* | hpux11
*)
20698 # Give a soname corresponding to the major version so that dld.sl refuses to
20699 # link against other versions.
20706 hardcode_into_libs
=yes
20707 dynamic_linker
="$host_os dld.so"
20708 shlibpath_var
=LD_LIBRARY_PATH
20709 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32
; then
20713 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20715 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20717 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20721 hardcode_into_libs
=yes
20722 dynamic_linker
="$host_os dld.sl"
20723 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20724 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20726 soname_spec
='${libname}${release}${shared_ext}$major'
20727 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20728 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20732 dynamic_linker
="$host_os dld.sl"
20733 shlibpath_var
=SHLIB_PATH
20734 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20736 soname_spec
='${libname}${release}${shared_ext}$major'
20739 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20740 postinstall_cmds
='chmod 555 $lib'
20741 # or fails outright, so override atomically:
20742 install_override_mode
=555
20749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20750 soname_spec
='${libname}${release}${shared_ext}$major'
20751 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20752 shlibpath_var
=LD_LIBRARY_PATH
20753 shlibpath_overrides_runpath
=no
20754 hardcode_into_libs
=yes
20757 irix5
* | irix6
* | nonstopux
*)
20759 nonstopux
*) version_type
=nonstopux
;;
20761 if test "$lt_cv_prog_gnu_ld" = yes; then
20769 soname_spec
='${libname}${release}${shared_ext}$major'
20770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20772 irix5
* | nonstopux
*)
20773 libsuff
= shlibsuff
=
20776 case $LD in # libtool.m4 will add one of these switches to LD
20777 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20778 libsuff
= shlibsuff
= libmagic
=32-bit;;
20779 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20780 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20781 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20782 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20783 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20787 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20788 shlibpath_overrides_runpath
=no
20789 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20790 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20791 hardcode_into_libs
=yes
20794 # No shared lib support for Linux oldld, aout, or coff.
20795 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20799 # This must be Linux ELF.
20800 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805 soname_spec
='${libname}${release}${shared_ext}$major'
20806 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20807 shlibpath_var
=LD_LIBRARY_PATH
20808 shlibpath_overrides_runpath
=no
20810 # Some binutils ld are patched to set DT_RUNPATH
20811 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20812 $as_echo_n "(cached) " >&6
20814 lt_cv_shlibpath_overrides_runpath
=no
20815 save_LDFLAGS
=$LDFLAGS
20816 save_libdir
=$libdir
20817 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20818 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20830 if ac_fn_cxx_try_link
"$LINENO"; then :
20831 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20832 lt_cv_shlibpath_overrides_runpath
=yes
20835 rm -f core conftest.err conftest.
$ac_objext \
20836 conftest
$ac_exeext conftest.
$ac_ext
20837 LDFLAGS
=$save_LDFLAGS
20838 libdir
=$save_libdir
20842 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20844 # This implies no fast_install, which is unacceptable.
20845 # Some rework will be needed to allow for fast_install
20846 # before this can be enabled.
20847 hardcode_into_libs
=yes
20849 # Append ld.so.conf contents to the search path
20850 if test -f /etc
/ld.so.conf
; then
20851 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' ' '`
20852 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20855 # We used to test for /lib/ld.so.1 and disable shared libraries on
20856 # powerpc, because MkLinux only supported shared libraries with the
20857 # GNU dynamic linker. Since this was broken with cross compilers,
20858 # most powerpc-linux boxes support dynamic linking these days and
20859 # people can always --disable-shared, the test was removed, and we
20860 # assume the GNU/Linux dynamic linker is in use.
20861 dynamic_linker
='GNU/Linux ld.so'
20868 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20870 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20871 dynamic_linker
='NetBSD (a.out) ld.so'
20873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20874 soname_spec
='${libname}${release}${shared_ext}$major'
20875 dynamic_linker
='NetBSD ld.elf_so'
20877 shlibpath_var
=LD_LIBRARY_PATH
20878 shlibpath_overrides_runpath
=yes
20879 hardcode_into_libs
=yes
20884 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20885 shlibpath_var
=LD_LIBRARY_PATH
20886 shlibpath_overrides_runpath
=yes
20893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec
='${libname}${release}${shared_ext}$major'
20895 shlibpath_var
=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath
=no
20897 hardcode_into_libs
=yes
20898 dynamic_linker
='ldqnx.so'
20903 sys_lib_dlsearch_path_spec
="/usr/lib"
20905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20907 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20908 *) need_version
=no
;;
20910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20912 shlibpath_var
=LD_LIBRARY_PATH
20913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20915 openbsd2.
[89] | openbsd2.
[89].
*)
20916 shlibpath_overrides_runpath
=no
20919 shlibpath_overrides_runpath
=yes
20923 shlibpath_overrides_runpath
=yes
20928 libname_spec
='$name'
20931 library_names_spec
='$libname${shared_ext} $libname.a'
20932 dynamic_linker
='OS/2 ld.exe'
20933 shlibpath_var
=LIBPATH
20936 osf3
* | osf4
* | osf5
*)
20940 soname_spec
='${libname}${release}${shared_ext}$major'
20941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942 shlibpath_var
=LD_LIBRARY_PATH
20943 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20944 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956 soname_spec
='${libname}${release}${shared_ext}$major'
20957 shlibpath_var
=LD_LIBRARY_PATH
20958 shlibpath_overrides_runpath
=yes
20959 hardcode_into_libs
=yes
20960 # ldd complains unless libraries are executable
20961 postinstall_cmds
='chmod +x $lib'
20966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20967 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20968 shlibpath_var
=LD_LIBRARY_PATH
20969 shlibpath_overrides_runpath
=yes
20970 if test "$with_gnu_ld" = yes; then
20978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec
='${libname}${release}${shared_ext}$major'
20980 shlibpath_var
=LD_LIBRARY_PATH
20981 case $host_vendor in
20983 shlibpath_overrides_runpath
=no
20985 runpath_var
=LD_RUN_PATH
20993 shlibpath_overrides_runpath
=no
20994 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21000 if test -d /usr
/nec
;then
21002 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21003 soname_spec
='$libname${shared_ext}.$major'
21004 shlibpath_var
=LD_LIBRARY_PATH
21008 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21009 version_type
=freebsd-elf
21012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21013 soname_spec
='${libname}${release}${shared_ext}$major'
21014 shlibpath_var
=LD_LIBRARY_PATH
21015 shlibpath_overrides_runpath
=yes
21016 hardcode_into_libs
=yes
21017 if test "$with_gnu_ld" = yes; then
21018 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21020 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21023 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21027 sys_lib_dlsearch_path_spec
='/usr/lib'
21031 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 shlibpath_var
=LD_LIBRARY_PATH
21037 shlibpath_overrides_runpath
=no
21038 hardcode_into_libs
=yes
21043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 soname_spec
='${libname}${release}${shared_ext}$major'
21045 shlibpath_var
=LD_LIBRARY_PATH
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21053 $as_echo "$dynamic_linker" >&6; }
21054 test "$dynamic_linker" = no
&& can_build_shared
=no
21056 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21057 if test "$GCC" = yes; then
21058 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21061 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21062 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21064 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21065 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21106 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21107 hardcode_action_CXX
=
21108 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21109 test -n "$runpath_var_CXX" ||
21110 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21112 # We can hardcode non-existent directories.
21113 if test "$hardcode_direct_CXX" != no
&&
21114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21115 # have to relink, otherwise we might link with an installed library
21116 # when we should be linking with a yet-to-be-installed one
21117 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21118 test "$hardcode_minus_L_CXX" != no
; then
21119 # Linking always hardcodes the temporary library directory.
21120 hardcode_action_CXX
=relink
21122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21123 hardcode_action_CXX
=immediate
21126 # We cannot hardcode anything, or else we can only hardcode existing
21128 hardcode_action_CXX
=unsupported
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21131 $as_echo "$hardcode_action_CXX" >&6; }
21133 if test "$hardcode_action_CXX" = relink ||
21134 test "$inherit_rpath_CXX" = yes; then
21135 # Fast installation is not supported
21136 enable_fast_install
=no
21137 elif test "$shlibpath_overrides_runpath" = yes ||
21138 test "$enable_shared" = no
; then
21139 # Fast installation is not necessary
21140 enable_fast_install
=needless
21149 fi # test -n "$compiler"
21155 with_gnu_ld
=$lt_save_with_gnu_ld
21156 lt_cv_path_LDCXX
=$lt_cv_path_LD
21157 lt_cv_path_LD
=$lt_save_path_LD
21158 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21159 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21160 fi # test "$_lt_caught_CXX_error" != yes
21163 ac_cpp
='$CPP $CPPFLAGS'
21164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21183 # Only expand once:
21189 # Identify the assembler which will work hand-in-glove with the newly
21190 # built GCC, so that we can examine its features. This is the assembler
21191 # which will be driven by the driver program.
21193 # If build != host, and we aren't building gas in-tree, we identify a
21194 # build->target assembler and hope that it will have the same features
21195 # as the host->target assembler we'll be using.
21196 gcc_cv_gas_major_version
=
21197 gcc_cv_gas_minor_version
=
21198 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21200 if test "${gcc_cv_as+set}" = set; then :
21204 if test -x "$DEFAULT_ASSEMBLER"; then
21205 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21206 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21207 && test -f ..
/gas
/Makefile \
21208 && test x
$build = x
$host; then
21209 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21210 elif test -x as
$build_exeext; then
21211 # Build using assembler in the current directory.
21212 gcc_cv_as
=.
/as
$build_exeext
21213 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21214 gcc_cv_as
="$AS_FOR_TARGET"
21216 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21217 set dummy
$AS_FOR_TARGET; ac_word
=$2
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21219 $as_echo_n "checking for $ac_word... " >&6; }
21220 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21221 $as_echo_n "(cached) " >&6
21225 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21229 for as_dir
in $PATH
21232 test -z "$as_dir" && as_dir
=.
21233 for ac_exec_ext
in '' $ac_executable_extensions; do
21234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21235 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21246 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21247 if test -n "$gcc_cv_as"; then
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21249 $as_echo "$gcc_cv_as" >&6; }
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21252 $as_echo "no" >&6; }
21259 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21261 case "$ORIGINAL_AS_FOR_TARGET" in
21262 .
/as | .
/as
$build_exeext) ;;
21263 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21268 $as_echo_n "checking what assembler to use... " >&6; }
21269 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21270 # Single tree build which includes gas. We want to prefer it
21271 # over whatever linker top-level may have detected, since
21272 # we'll use what we're building after installation anyway.
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21274 $as_echo "newly built gas" >&6; }
21276 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21277 for f
in $gcc_cv_as_bfd_srcdir/configure \
21278 $gcc_cv_as_gas_srcdir/configure \
21279 $gcc_cv_as_gas_srcdir/configure.
in \
21280 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21281 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21282 if test x
$gcc_cv_gas_version != x
; then
21286 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21287 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21288 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21289 case $gcc_cv_gas_patch_version in
21290 "") gcc_cv_gas_patch_version
="0" ;;
21292 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21293 + $gcc_cv_gas_minor_version \) \* 1000 \
21294 + $gcc_cv_gas_patch_version`
21296 in_tree_gas_is_elf
=no
21297 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21298 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21299 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21301 in_tree_gas_is_elf
=yes
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21305 $as_echo "$gcc_cv_as" >&6; }
21309 # Identify the linker which will work hand-in-glove with the newly
21310 # built GCC, so that we can examine its features. This is the linker
21311 # which will be driven by the driver program.
21313 # If build != host, and we aren't building gas in-tree, we identify a
21314 # build->target linker and hope that it will have the same features
21315 # as the host->target linker we'll be using.
21316 gcc_cv_gld_major_version
=
21317 gcc_cv_gld_minor_version
=
21318 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21319 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21321 if test "${gcc_cv_ld+set}" = set; then :
21325 if test -x "$DEFAULT_LINKER"; then
21326 gcc_cv_ld
="$DEFAULT_LINKER"
21327 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21328 && test -f ..
/ld
/Makefile \
21329 && test x
$build = x
$host; then
21330 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21331 elif test -x collect-ld
$build_exeext; then
21332 # Build using linker in the current directory.
21333 gcc_cv_ld
=.
/collect-ld
$build_exeext
21334 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21335 gcc_cv_ld
="$LD_FOR_TARGET"
21337 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21338 set dummy
$LD_FOR_TARGET; ac_word
=$2
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21340 $as_echo_n "checking for $ac_word... " >&6; }
21341 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21342 $as_echo_n "(cached) " >&6
21346 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21350 for as_dir
in $PATH
21353 test -z "$as_dir" && as_dir
=.
21354 for ac_exec_ext
in '' $ac_executable_extensions; do
21355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21356 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21367 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21368 if test -n "$gcc_cv_ld"; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21370 $as_echo "$gcc_cv_ld" >&6; }
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21373 $as_echo "no" >&6; }
21380 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21381 PLUGIN_LD
=`basename $gcc_cv_ld`
21383 # Check whether --with-plugin-ld was given.
21384 if test "${with_plugin_ld+set}" = set; then :
21385 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21386 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21387 PLUGIN_LD
="$withval"
21393 cat >>confdefs.h
<<_ACEOF
21394 #define PLUGIN_LD "$PLUGIN_LD"
21398 # Check to see if we are using gold instead of ld
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21400 $as_echo_n "checking whether we are using gold... " >&6; }
21402 if test x
$gcc_cv_ld != x
; then
21403 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21404 |
grep "GNU gold" > /dev
/null
; then
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21409 $as_echo "$ld_is_gold" >&6; }
21411 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21413 case "$ORIGINAL_LD_FOR_TARGET" in
21414 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21415 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21420 $as_echo_n "checking what linker to use... " >&6; }
21421 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21422 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21423 # Single tree build which includes ld. We want to prefer it
21424 # over whatever linker top-level may have detected, since
21425 # we'll use what we're building after installation anyway.
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21427 $as_echo "newly built ld" >&6; }
21429 in_tree_ld_is_elf
=no
21430 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21431 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21432 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21433 in_tree_ld_is_elf
=yes
21434 elif test "$ld_is_gold" = yes; then
21435 in_tree_ld_is_elf
=yes
21437 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
21439 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21440 if test x
$gcc_cv_gld_version != x
; then
21444 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21445 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21448 $as_echo "$gcc_cv_ld" >&6; }
21452 # Figure out what nm we will be using.
21453 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21454 if test "${gcc_cv_nm+set}" = set; then :
21458 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21459 && test -f ..
/binutils
/Makefile \
21460 && test x
$build = x
$host; then
21461 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21462 elif test -x nm
$build_exeext; then
21463 gcc_cv_nm
=.
/nm
$build_exeext
21464 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21465 gcc_cv_nm
="$NM_FOR_TARGET"
21467 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21468 set dummy
$NM_FOR_TARGET; ac_word
=$2
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21470 $as_echo_n "checking for $ac_word... " >&6; }
21471 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21472 $as_echo_n "(cached) " >&6
21476 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21480 for as_dir
in $PATH
21483 test -z "$as_dir" && as_dir
=.
21484 for ac_exec_ext
in '' $ac_executable_extensions; do
21485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21486 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21497 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21498 if test -n "$gcc_cv_nm"; then
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21500 $as_echo "$gcc_cv_nm" >&6; }
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21503 $as_echo "no" >&6; }
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21511 $as_echo_n "checking what nm to use... " >&6; }
21512 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21513 # Single tree build which includes binutils.
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21515 $as_echo "newly built nm" >&6; }
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21519 $as_echo "$gcc_cv_nm" >&6; }
21523 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21525 case "$ORIGINAL_NM_FOR_TARGET" in
21526 .
/nm | .
/nm
$build_exeext) ;;
21527 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21532 # Figure out what objdump we will be using.
21533 if test "${gcc_cv_objdump+set}" = set; then :
21537 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21538 && test -f ..
/binutils
/Makefile \
21539 && test x
$build = x
$host; then
21540 # Single tree build which includes binutils.
21541 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21542 elif test -x objdump
$build_exeext; then
21543 gcc_cv_objdump
=.
/objdump
$build_exeext
21544 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21545 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21547 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21548 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21550 $as_echo_n "checking for $ac_word... " >&6; }
21551 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21552 $as_echo_n "(cached) " >&6
21554 case $gcc_cv_objdump in
21556 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21560 for as_dir
in $PATH
21563 test -z "$as_dir" && as_dir
=.
21564 for ac_exec_ext
in '' $ac_executable_extensions; do
21565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21566 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21577 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21578 if test -n "$gcc_cv_objdump"; then
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21580 $as_echo "$gcc_cv_objdump" >&6; }
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21583 $as_echo "no" >&6; }
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21591 $as_echo_n "checking what objdump to use... " >&6; }
21592 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21593 # Single tree build which includes binutils.
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21595 $as_echo "newly built objdump" >&6; }
21596 elif test x
$gcc_cv_objdump = x
; then
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21598 $as_echo "not found" >&6; }
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21601 $as_echo "$gcc_cv_objdump" >&6; }
21604 # Figure out what readelf we will be using.
21605 if test "${gcc_cv_readelf+set}" = set; then :
21609 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21610 && test -f ..
/binutils
/Makefile \
21611 && test x
$build = x
$host; then
21612 # Single tree build which includes binutils.
21613 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21614 elif test -x readelf
$build_exeext; then
21615 gcc_cv_readelf
=.
/readelf
$build_exeext
21617 # Extract the first word of "readelf", so it can be a program name with args.
21618 set dummy readelf
; ac_word
=$2
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21620 $as_echo_n "checking for $ac_word... " >&6; }
21621 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21622 $as_echo_n "(cached) " >&6
21624 case $gcc_cv_readelf in
21626 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21630 for as_dir
in $PATH
21633 test -z "$as_dir" && as_dir
=.
21634 for ac_exec_ext
in '' $ac_executable_extensions; do
21635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21636 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21647 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21648 if test -n "$gcc_cv_readelf"; then
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21650 $as_echo "$gcc_cv_readelf" >&6; }
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21653 $as_echo "no" >&6; }
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21661 $as_echo_n "checking what readelf to use... " >&6; }
21662 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21663 # Single tree build which includes binutils.
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21665 $as_echo "newly built readelf" >&6; }
21666 elif test x
$gcc_cv_readelf = x
; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21668 $as_echo "not found" >&6; }
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21671 $as_echo "$gcc_cv_readelf" >&6; }
21674 # Figure out what assembler alignment features are present.
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21676 $as_echo_n "checking assembler flags... " >&6; }
21677 if test "${gcc_cv_as_flags+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21681 i
[34567]86-*-linux*)
21682 gcc_cv_as_flags
="--32"
21684 powerpc
*-*-darwin*)
21685 gcc_cv_as_flags
="-arch ppc"
21688 gcc_cv_as_flags
=" "
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21693 $as_echo "$gcc_cv_as_flags" >&6; }
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21696 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21697 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21698 $as_echo_n "(cached) " >&6
21700 gcc_cv_as_balign_and_p2align
=no
21701 if test $in_tree_gas = yes; then
21702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21703 then gcc_cv_as_balign_and_p2align
=yes
21705 elif test x
$gcc_cv_as != x
; then
21706 $as_echo '.balign 4
21707 .p2align 2' > conftest.s
21708 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21710 (eval $ac_try) 2>&5
21712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21713 test $ac_status = 0; }; }
21715 gcc_cv_as_balign_and_p2align
=yes
21717 echo "configure: failed program was" >&5
21720 rm -f conftest.o conftest.s
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21724 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21725 if test $gcc_cv_as_balign_and_p2align = yes; then
21727 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21732 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21733 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21734 $as_echo_n "(cached) " >&6
21736 gcc_cv_as_max_skip_p2align
=no
21737 if test $in_tree_gas = yes; then
21738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21739 then gcc_cv_as_max_skip_p2align
=yes
21741 elif test x
$gcc_cv_as != x
; then
21742 $as_echo '.p2align 4,,7' > 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_max_skip_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_max_skip_p2align" >&5
21759 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21760 if test $gcc_cv_as_max_skip_p2align = yes; then
21762 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21767 $as_echo_n "checking assembler for .literal16... " >&6; }
21768 if test "${gcc_cv_as_literal16+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21771 gcc_cv_as_literal16
=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_literal16
=yes
21776 elif test x
$gcc_cv_as != x
; then
21777 $as_echo '.literal16' > 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_literal16
=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_literal16" >&5
21794 $as_echo "$gcc_cv_as_literal16" >&6; }
21795 if test $gcc_cv_as_literal16 = yes; then
21797 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21802 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21803 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21804 $as_echo_n "(cached) " >&6
21806 gcc_cv_as_subsection_m1
=no
21807 if test $in_tree_gas = yes; then
21808 if test $in_tree_gas_is_elf = yes \
21809 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21810 then gcc_cv_as_subsection_m1
=yes
21812 elif test x
$gcc_cv_as != x
; then
21813 $as_echo 'conftest_label1: .word 0
21815 conftest_label2: .word 0
21816 .previous' > conftest.s
21817 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21819 (eval $ac_try) 2>&5
21821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21822 test $ac_status = 0; }; }
21824 if test x
$gcc_cv_nm != x
; then
21825 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21826 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21827 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21829 else gcc_cv_as_subsection_m1
=yes
21831 rm -f conftest.nm1 conftest.nm2
21834 echo "configure: failed program was" >&5
21837 rm -f conftest.o conftest.s
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21841 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21842 if test $gcc_cv_as_subsection_m1 = yes; then
21844 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21849 $as_echo_n "checking assembler for .weak... " >&6; }
21850 if test "${gcc_cv_as_weak+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21854 if test $in_tree_gas = yes; then
21855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21856 then gcc_cv_as_weak
=yes
21858 elif test x
$gcc_cv_as != x
; then
21859 $as_echo ' .weak foobar' > conftest.s
21860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21862 (eval $ac_try) 2>&5
21864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21865 test $ac_status = 0; }; }
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_weak" >&5
21876 $as_echo "$gcc_cv_as_weak" >&6; }
21877 if test $gcc_cv_as_weak = yes; then
21879 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21884 $as_echo_n "checking assembler for .weakref... " >&6; }
21885 if test "${gcc_cv_as_weakref+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21888 gcc_cv_as_weakref
=no
21889 if test $in_tree_gas = yes; then
21890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21891 then gcc_cv_as_weakref
=yes
21893 elif test x
$gcc_cv_as != x
; then
21894 $as_echo ' .weakref foobar, barfnot' > 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; }; }
21902 gcc_cv_as_weakref
=yes
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_weakref" >&5
21911 $as_echo "$gcc_cv_as_weakref" >&6; }
21912 if test $gcc_cv_as_weakref = yes; then
21914 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21919 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21920 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21921 $as_echo_n "(cached) " >&6
21923 gcc_cv_as_nsubspa_comdat
=no
21924 if test $in_tree_gas = yes; then
21925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21926 then gcc_cv_as_nsubspa_comdat
=yes
21928 elif test x
$gcc_cv_as != x
; then
21929 $as_echo ' .SPACE $TEXT$
21930 .NSUBSPA $CODE$,COMDAT' > conftest.s
21931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21933 (eval $ac_try) 2>&5
21935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21936 test $ac_status = 0; }; }
21938 gcc_cv_as_nsubspa_comdat
=yes
21940 echo "configure: failed program was" >&5
21943 rm -f conftest.o conftest.s
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21947 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21948 if test $gcc_cv_as_nsubspa_comdat = yes; then
21950 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21954 # .hidden needs to be supported in both the assembler and the linker,
21955 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21956 # This is irritatingly difficult to feature test for; we have to check the
21957 # date string after the version number. If we've got an in-tree
21958 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21960 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21962 $as_echo_n "checking assembler for .hidden... " >&6; }
21963 if test "${gcc_cv_as_hidden+set}" = set; then :
21964 $as_echo_n "(cached) " >&6
21966 gcc_cv_as_hidden
=no
21967 if test $in_tree_gas = yes; then
21968 if test $in_tree_gas_is_elf = yes \
21969 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21970 then gcc_cv_as_hidden
=yes
21972 elif test x
$gcc_cv_as != x
; then
21973 $as_echo ' .hidden foobar
21974 foobar:' > conftest.s
21975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21977 (eval $ac_try) 2>&5
21979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21980 test $ac_status = 0; }; }
21983 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21984 # STV_HIDDEN, so disable .hidden support if so.
21985 case "${target}" in
21986 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
21987 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21988 cat > conftest.s
<<EOF
21993 .set default,hidden
21995 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21996 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21997 grep '\.hidden default' > /dev
/null
; then
21998 gcc_cv_as_hidden
=no
22000 gcc_cv_as_hidden
=yes
22003 # Assume bug is present if objdump is missing.
22004 gcc_cv_as_hidden
=no
22008 gcc_cv_as_hidden
=yes
22012 echo "configure: failed program was" >&5
22015 rm -f conftest.o conftest.s
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22019 $as_echo "$gcc_cv_as_hidden" >&6; }
22021 case "${target}" in
22023 # Darwin as has some visibility support, though with a different syntax.
22024 gcc_cv_as_hidden
=yes
22028 # gnu_indirect_function type is an extension proposed at
22029 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22030 # selection of function implementation
22031 # Check whether --enable-gnu-indirect-function was given.
22032 if test "${enable_gnu_indirect_function+set}" = set; then :
22033 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22035 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22036 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22039 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22042 if test x
$enable_gnu_indirect_function = xyes
; then
22044 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22048 if test $in_tree_ld != yes ; then
22049 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22050 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22051 if test x
"$ld_is_gold" = xyes
; then
22052 # GNU gold --version looks like this:
22054 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22056 # We extract the binutils version which is more familiar and specific
22057 # than the gold version.
22058 ld_vers
=`echo $ld_ver | sed -n \
22059 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22061 # GNU ld --version looks like this:
22063 # GNU ld (GNU Binutils) 2.21.51.20110225
22064 ld_vers
=`echo $ld_ver | sed -n \
22065 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22067 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'`
22068 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22069 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22070 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22072 case "${target}" in
22075 # Solaris 2 ld -V output looks like this for a regular version:
22077 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22079 # but test versions add stuff at the end:
22081 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22083 ld_ver
=`$gcc_cv_ld -V 2>&1`
22084 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22085 ld_vers
=`echo $ld_ver | sed -n \
22086 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22087 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22088 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22096 $as_echo_n "checking linker for .hidden support... " >&6; }
22097 if test "${gcc_cv_ld_hidden+set}" = set; then :
22098 $as_echo_n "(cached) " >&6
22100 if test $in_tree_ld = yes ; then
22101 gcc_cv_ld_hidden
=no
22102 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 \
22103 && test $in_tree_ld_is_elf = yes; then
22104 gcc_cv_ld_hidden
=yes
22107 gcc_cv_ld_hidden
=yes
22108 if test x
"$ld_is_gold" = xyes
; then
22110 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22111 if test 0"$ld_date" -lt 20020404; then
22112 if test -n "$ld_date"; then
22113 # If there was date string, but was earlier than 2002-04-04, fail
22114 gcc_cv_ld_hidden
=no
22115 elif test -z "$ld_vers"; then
22116 # If there was no date string nor ld version number, something is wrong
22117 gcc_cv_ld_hidden
=no
22119 test -z "$ld_vers_patch" && ld_vers_patch
=0
22120 if test "$ld_vers_major" -lt 2; then
22121 gcc_cv_ld_hidden
=no
22122 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22123 gcc_cv_ld_hidden
="no"
22124 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22125 gcc_cv_ld_hidden
=no
22130 case "${target}" in
22132 # Darwin ld has some visibility support.
22133 gcc_cv_ld_hidden
=yes
22135 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22136 gcc_cv_ld_hidden
=yes
22139 # .hidden support was backported to Solaris 8, starting with ld
22141 if test "$ld_vers_minor" -ge 276; then
22142 gcc_cv_ld_hidden
=yes
22144 gcc_cv_ld_hidden
=no
22147 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22148 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22149 # .symbolic was only added in Solaris 9 12/02.
22150 gcc_cv_ld_hidden
=yes
22153 gcc_cv_ld_hidden
=no
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22160 $as_echo "$gcc_cv_ld_hidden" >&6; }
22161 libgcc_visibility
=no
22164 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22165 libgcc_visibility
=yes
22167 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22172 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22173 gcc_cv_ld_ro_rw_mix
=unknown
22174 if test $in_tree_ld = yes ; then
22175 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 \
22176 && test $in_tree_ld_is_elf = yes; then
22177 gcc_cv_ld_ro_rw_mix
=read-write
22179 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22180 echo '.section myfoosect, "a"' > conftest1.s
22181 echo '.section myfoosect, "aw"' > conftest2.s
22182 echo '.byte 1' >> conftest2.s
22183 echo '.section myfoosect, "a"' > conftest3.s
22184 echo '.byte 0' >> conftest3.s
22185 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22186 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22187 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22188 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22189 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22190 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22191 | sed -e '/myfoosect/!d' -e N`
22192 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22193 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22194 gcc_cv_ld_ro_rw_mix
=read-only
22196 gcc_cv_ld_ro_rw_mix
=read-write
22200 rm -f conftest.
* conftest
[123].
*
22202 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22204 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22208 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22210 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22212 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22213 if test "${gcc_cv_as_leb128+set}" = set; then :
22214 $as_echo_n "(cached) " >&6
22216 gcc_cv_as_leb128
=no
22217 if test $in_tree_gas = yes; then
22218 if test $in_tree_gas_is_elf = yes \
22219 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22220 then gcc_cv_as_leb128
=yes
22222 elif test x
$gcc_cv_as != x
; then
22229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22231 (eval $ac_try) 2>&5
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; }
22236 # GAS versions before 2.11 do not support uleb128,
22237 # despite appearing to.
22238 # ??? There exists an elf-specific test that will crash
22239 # the assembler. Perhaps it's better to figure out whether
22240 # arbitrary sections are supported and try the test.
22241 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22242 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22243 as_vers
=`echo $as_ver | sed -n \
22244 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22245 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22246 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22247 if test $as_major -eq 2 && test $as_minor -lt 11
22249 else gcc_cv_as_leb128
=yes
22253 echo "configure: failed program was" >&5
22256 rm -f conftest.o conftest.s
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22260 $as_echo "$gcc_cv_as_leb128" >&6; }
22261 if test $gcc_cv_as_leb128 = yes; then
22263 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22267 # Check if we have assembler support for unwind directives.
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22269 $as_echo_n "checking assembler for cfi directives... " >&6; }
22270 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22273 gcc_cv_as_cfi_directive
=no
22274 if test x
$gcc_cv_as != x
; then
22280 .cfi_escape 1, 2, 3, 4, 5
22281 .cfi_endproc' > conftest.s
22282 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22284 (eval $ac_try) 2>&5
22286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22287 test $ac_status = 0; }; }
22291 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22292 # read-only and read-write sections, we need to make sure that the
22293 # assembler used emits read-write .eh_frame sections.
22294 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22295 if test "x$gcc_cv_objdump" != x
; then
22296 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22297 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22298 gcc_cv_as_cfi_directive
=no
22301 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22302 # On Solaris/x86, make sure that GCC and gas agree on using
22303 # read-only .eh_frame sections for 64-bit.
22304 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22305 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22306 sed -e /.eh_frame
/!d
-e N | \
22307 grep READONLY
> /dev
/null
; then
22308 gcc_cv_as_cfi_directive
=yes
22310 gcc_cv_as_cfi_directive
=no
22314 gcc_cv_as_cfi_directive
=yes
22319 # no objdump, err on the side of caution
22320 gcc_cv_as_cfi_directive
=no
22323 gcc_cv_as_cfi_directive
=yes
22327 gcc_cv_as_cfi_directive
=yes
22331 echo "configure: failed program was" >&5
22334 rm -f conftest.o conftest.s
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22338 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22340 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22342 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22343 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22346 gcc_cv_as_cfi_advance_working
=no
22347 if test x
$gcc_cv_as != x
; then
22350 .cfi_adjust_cfa_offset 64
22352 .cfi_adjust_cfa_offset 128
22353 .cfi_endproc' > conftest.s
22354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22356 (eval $ac_try) 2>&5
22358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22359 test $ac_status = 0; }; }
22362 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22363 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22364 gcc_cv_as_cfi_advance_working
=yes
22368 echo "configure: failed program was" >&5
22371 rm -f conftest.o conftest.s
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22375 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22378 # no objdump, err on the side of caution
22379 gcc_cv_as_cfi_advance_working
=no
22383 cat >>confdefs.h
<<_ACEOF
22384 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22385 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22391 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22392 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22395 gcc_cv_as_cfi_personality_directive
=no
22396 if test x
$gcc_cv_as != x
; then
22399 .cfi_personality 0, symbol
22400 .cfi_endproc' > conftest.s
22401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; }
22408 gcc_cv_as_cfi_personality_directive
=yes
22410 echo "configure: failed program was" >&5
22413 rm -f conftest.o conftest.s
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22417 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22420 cat >>confdefs.h
<<_ACEOF
22421 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22422 then echo 1; else echo 0; fi`
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22427 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22428 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22431 gcc_cv_as_cfi_sections_directive
=no
22432 if test x
$gcc_cv_as != x
; then
22434 .cfi_sections .debug_frame, .eh_frame
22436 .cfi_endproc' > conftest.s
22437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22439 (eval $ac_try) 2>&5
22441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442 test $ac_status = 0; }; }
22445 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22446 # Need to check that we generated the correct relocation for the
22447 # .debug_frame section. This was fixed for binutils 2.21.
22448 gcc_cv_as_cfi_sections_directive
=no
22449 if test "x$gcc_cv_objdump" != x
; then
22450 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22451 grep secrel
> /dev
/null
; then
22452 gcc_cv_as_cfi_sections_directive
=yes
22457 gcc_cv_as_cfi_sections_directive
=yes
22461 echo "configure: failed program was" >&5
22464 rm -f conftest.o conftest.s
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22468 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22472 cat >>confdefs.h
<<_ACEOF
22473 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22474 then echo 1; else echo 0; fi`
22478 # GAS versions up to and including 2.11.0 may mis-optimize
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22481 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22482 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22485 gcc_cv_as_eh_frame
=no
22486 if test $in_tree_gas = yes; then
22487 if test $in_tree_gas_is_elf = yes \
22488 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22489 then gcc_cv_as_eh_frame
=yes
22491 elif test x
$gcc_cv_as != x
; then
22498 .section .eh_frame,"aw",@progbits
22500 .4byte .LECIE1-.LSCIE1
22514 .4byte .LEFDE1-.LASFDE1
22516 .4byte .LASFDE1-__FRAME_BEGIN__
22523 .LEFDE1:' > conftest.s
22524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22526 (eval $ac_try) 2>&5
22528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22529 test $ac_status = 0; }; }
22531 cat > conftest.lit
<<EOF
22532 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22533 0010 01000000 12000000 18000000 00000000 ................
22534 0020 08000000 04080000 0044 .........D
22536 cat > conftest.big
<<EOF
22537 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22538 0010 00000001 00000012 00000018 00000000 ................
22539 0020 00000008 04000000 0844 .........D
22541 # If the assembler didn't choke, and we can objdump,
22542 # and we got the correct data, then succeed.
22543 # The text in the here-document typically retains its unix-style line
22544 # endings, while the output of objdump will use host line endings.
22545 # Therefore, use diff -b for the comparisons.
22546 if test x
$gcc_cv_objdump != x \
22547 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22548 |
tail -3 > conftest.got \
22549 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22550 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22552 gcc_cv_as_eh_frame
=yes
22553 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22555 (eval $ac_try) 2>&5
22557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22558 test $ac_status = 0; }; }; then
22559 gcc_cv_as_eh_frame
=buggy
22561 # Uh oh, what do we do now?
22562 gcc_cv_as_eh_frame
=no
22565 echo "configure: failed program was" >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22572 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22575 if test $gcc_cv_as_eh_frame = buggy
; then
22577 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22582 $as_echo_n "checking assembler for section merging support... " >&6; }
22583 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22584 $as_echo_n "(cached) " >&6
22586 gcc_cv_as_shf_merge
=no
22587 if test $in_tree_gas = yes; then
22588 if test $in_tree_gas_is_elf = yes \
22589 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22590 then gcc_cv_as_shf_merge
=yes
22592 elif test x
$gcc_cv_as != x
; then
22593 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22594 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596 (eval $ac_try) 2>&5
22598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599 test $ac_status = 0; }; }
22601 gcc_cv_as_shf_merge
=yes
22603 echo "configure: failed program was" >&5
22606 rm -f conftest.o conftest.s
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22610 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22612 if test $gcc_cv_as_shf_merge = no
; then
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22614 $as_echo_n "checking assembler for section merging support... " >&6; }
22615 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22616 $as_echo_n "(cached) " >&6
22618 gcc_cv_as_shf_merge
=no
22619 if test $in_tree_gas = yes; then
22620 if test $in_tree_gas_is_elf = yes \
22621 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22622 then gcc_cv_as_shf_merge
=yes
22624 elif test x
$gcc_cv_as != x
; then
22625 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22628 (eval $ac_try) 2>&5
22630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22631 test $ac_status = 0; }; }
22633 gcc_cv_as_shf_merge
=yes
22635 echo "configure: failed program was" >&5
22638 rm -f conftest.o conftest.s
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22642 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22646 cat >>confdefs.h
<<_ACEOF
22647 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22652 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22653 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22654 $as_echo_n "(cached) " >&6
22656 gcc_cv_as_comdat_group
=no
22657 if test $in_tree_gas = yes; then
22658 if test $in_tree_gas_is_elf = yes \
22659 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22660 then gcc_cv_as_comdat_group
=yes
22662 elif test x
$gcc_cv_as != x
; then
22663 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }
22671 gcc_cv_as_comdat_group
=yes
22673 echo "configure: failed program was" >&5
22676 rm -f conftest.o conftest.s
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22680 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22682 if test $gcc_cv_as_comdat_group = yes; then
22683 gcc_cv_as_comdat_group_percent
=no
22684 gcc_cv_as_comdat_group_group
=no
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22687 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22688 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22691 gcc_cv_as_comdat_group_percent
=no
22692 if test $in_tree_gas = yes; then
22693 if test $in_tree_gas_is_elf = yes \
22694 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22695 then gcc_cv_as_comdat_group_percent
=yes
22697 elif test x
$gcc_cv_as != x
; then
22698 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22699 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22701 (eval $ac_try) 2>&5
22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22704 test $ac_status = 0; }; }
22706 gcc_cv_as_comdat_group_percent
=yes
22708 echo "configure: failed program was" >&5
22711 rm -f conftest.o conftest.s
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22715 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22717 if test $gcc_cv_as_comdat_group_percent = yes; then
22718 gcc_cv_as_comdat_group_group
=no
22720 case "${target}" in
22721 # Sun as uses a completely different syntax.
22723 case "${target}" in
22724 sparc
*-*-solaris2*)
22726 .group foo,".text%foo",#comdat
22727 .section ".text%foo", #alloc,#execinstr,#progbits
22732 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22734 .group foo,.text%foo,#comdat
22735 .section .text%foo, "ax", @progbits
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22742 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22743 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22744 $as_echo_n "(cached) " >&6
22746 gcc_cv_as_comdat_group_group
=no
22747 if test x
$gcc_cv_as != x
; then
22748 $as_echo "$conftest_s" > conftest.s
22749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; }
22756 gcc_cv_as_comdat_group_group
=yes
22758 echo "configure: failed program was" >&5
22761 rm -f conftest.o conftest.s
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22765 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22771 if test x
"$ld_is_gold" = xyes
; then
22773 elif test $in_tree_ld = yes ; then
22775 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 \
22776 && test $in_tree_ld_is_elf = yes; then
22779 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22781 if test 0"$ld_date" -lt 20050308; then
22782 if test -n "$ld_date"; then
22783 # If there was date string, but was earlier than 2005-03-08, fail
22785 elif test "$ld_vers_major" -lt 2; then
22787 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22792 case "${target}" in
22793 *-*-solaris2.1
[1-9]*)
22795 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22796 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22799 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22800 # least ld version 1.2267.
22801 if test "$ld_vers_major" -gt 1; then
22803 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22805 elif test "$ld_vers_minor" -ge 2267; then
22810 # Assume linkers other than GNU ld don't support COMDAT group.
22815 # Allow overriding the automatic COMDAT group tests above.
22816 # Check whether --enable-comdat was given.
22817 if test "${enable_comdat+set}" = set; then :
22818 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22821 if test $comdat_group = no
; then
22822 gcc_cv_as_comdat_group
=no
22823 gcc_cv_as_comdat_group_percent
=no
22824 gcc_cv_as_comdat_group_group
=no
22827 cat >>confdefs.h
<<_ACEOF
22828 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22829 || test $gcc_cv_as_comdat_group_percent = yes \
22830 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22835 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22836 if test "${gcc_cv_as_discriminator+set}" = set; then :
22837 $as_echo_n "(cached) " >&6
22839 gcc_cv_as_discriminator
=no
22840 if test $in_tree_gas = yes; then
22841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22842 then gcc_cv_as_discriminator
=yes
22844 elif test x
$gcc_cv_as != x
; then
22847 .loc 1 1 0 discriminator 1' > conftest.s
22848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22850 (eval $ac_try) 2>&5
22852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22853 test $ac_status = 0; }; }
22855 gcc_cv_as_discriminator
=yes
22857 echo "configure: failed program was" >&5
22860 rm -f conftest.o conftest.s
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22864 $as_echo "$gcc_cv_as_discriminator" >&6; }
22865 if test $gcc_cv_as_discriminator = yes; then
22867 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22871 # Thread-local storage - the check is heavily parameterized.
22879 .section ".tdata","awT",@progbits
22882 ldq $27,__tls_get_addr($29) !literal!1
22883 lda $16,foo($29) !tlsgd!1
22884 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22885 ldq $27,__tls_get_addr($29) !literal!2
22886 lda $16,foo($29) !tlsldm!2
22887 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22888 ldq $1,foo($29) !gotdtprel
22889 ldah $2,foo($29) !dtprelhi
22890 lda $3,foo($2) !dtprello
22891 lda $4,foo($29) !dtprel
22892 ldq $1,foo($29) !gottprel
22893 ldah $2,foo($29) !tprelhi
22894 lda $3,foo($2) !tprello
22895 lda $4,foo($29) !tprel'
22898 tls_as_opt
=--fatal-warnings
22900 cris-
*-*|crisv32-
*-*)
22902 .section ".tdata","awT",@progbits
22909 tls_as_opt
=--fatal-warnings
22913 .section ".tdata","awT",@progbits
22916 call #gettlsoff(x)'
22925 .section ".tdata","awT",@progbits
22929 addil LT%foo-$tls_gdidx$,gp
22930 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22933 addil LT%foo-$tls_ldidx$,gp
22935 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22936 addil LR%foo-$tls_dtpoff$,%ret0
22937 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22939 addil LT%foo-$tls_ieoff$,gp
22940 ldw RT%foo-$tls_ieoff$(%r1),%t2
22943 addil LR%foo-$tls_leoff$,%t1
22944 ldo RR%foo-$tls_leoff$(%r1),%t2'
22947 tls_as_opt
=--fatal-warnings
22951 .section ".tdata","awT",%progbits
22954 .word foo(gottpoff)
22962 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
22964 i
[34567]86-*-solaris2.
*)
22966 tga_func
=___tls_get_addr
22968 x86_64-
*-solaris2.1
[0-9]*)
22970 tga_func
=__tls_get_addr
22976 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22978 .section .tdata,"awt",@progbits'
22982 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22986 .section ".tdata","awT",@progbits'
22989 tls_as_opt
="--fatal-warnings"
22991 conftest_s
="$conftest_s
22995 leal foo@tlsgd(,%ebx,1), %eax
22996 leal foo@tlsldm(%ebx), %eax
22997 leal foo@dtpoff(%eax), %edx
22998 movl foo@gottpoff(%ebx), %eax
22999 subl foo@gottpoff(%ebx), %eax
23000 addl foo@gotntpoff(%ebx), %eax
23001 movl foo@indntpoff, %eax
23002 movl \$foo@tpoff, %eax
23003 subl \$foo@tpoff, %eax
23004 leal foo@ntpoff(%ecx), %eax"
23008 .section ".tdata","awT",@progbits
23012 leaq foo@TLSGD(%rip), %rdi
23013 leaq foo@TLSLD(%rip), %rdi
23014 leaq foo@DTPOFF(%rax), %rdx
23015 movq foo@GOTTPOFF(%rip), %rax
23016 movq $foo@TPOFF, %rax'
23019 tls_as_opt
=--fatal-warnings
23023 .section ".tdata","awT",@progbits
23026 addl r16 = @ltoff(@dtpmod(foo#)), gp
23027 addl r17 = @ltoff(@dtprel(foo#)), gp
23028 addl r18 = @ltoff(@tprel(foo#)), gp
23029 addl r19 = @dtprel(foo#), gp
23030 adds r21 = @dtprel(foo#), r13
23031 movl r23 = @dtprel(foo#)
23032 addl r20 = @tprel(foo#), gp
23033 adds r22 = @tprel(foo#), r13
23034 movl r24 = @tprel(foo#)'
23037 tls_as_opt
=--fatal-warnings
23041 .section .tdata,"awT",@progbits
23045 addiu $4, $28, %tlsgd(x)
23046 addiu $4, $28, %tlsldm(x)
23047 lui $4, %dtprel_hi(x)
23048 addiu $4, $4, %dtprel_lo(x)
23049 lw $4, %gottprel(x)($28)
23050 lui $4, %tprel_hi(x)
23051 addiu $4, $4, %tprel_lo(x)'
23054 tls_as_opt
='-32 --fatal-warnings'
23058 .section .tdata,"awT",@progbits
23063 move.l x@TLSGD(%a5),%a0
23064 move.l x@TLSLDM(%a5),%a0
23065 move.l x@TLSLDO(%a5),%a0
23066 move.l x@TLSIE(%a5),%a0
23067 move.l x@TLSLE(%a5),%a0'
23070 tls_as_opt
='--fatal-warnings'
23074 .section ".tdata","awT",@progbits
23082 addi 3,31,ld0@got@tlsgd
23084 addi 3,31,x1@got@tlsld
23087 addis 9,3,x2@dtprel@ha
23088 addi 9,9,x2@dtprel@l
23089 lwz 9,x3@got@tprel(31)
23092 addis 9,2,x2@tprel@ha
23093 addi 9,9,x2@tprel@l'
23096 tls_as_opt
="-a32 --fatal-warnings"
23100 .section ".tdata","awT",@progbits
23108 addi 3,2,ld0@got@tlsgd
23114 addi 3,2,x1@got@tlsld
23120 addis 9,3,x2@dtprel@ha
23121 addi 9,9,x2@dtprel@l
23124 ld 9,x3@got@dtprel(2)
23130 tls_as_opt
="-a64 --fatal-warnings"
23134 .section ".tdata","awT",@progbits
23141 .long foo@GOTNTPOFF
23142 .long foo@INDNTPOFF
23143 l %r1,foo@GOTNTPOFF(%r12)
23144 l %r1,0(%r1):tls_load:foo
23145 bas %r14,0(%r1,%r13):tls_gdcall:foo
23146 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23149 tls_as_opt
="-m31 --fatal-warnings"
23153 .section ".tdata","awT",@progbits
23160 .quad foo@GOTNTPOFF
23161 lg %r1,foo@GOTNTPOFF(%r12)
23162 larl %r1,foo@INDNTPOFF
23163 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23164 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23167 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23169 sh-
*-* | sh
[34]-*-*)
23171 .section ".tdata","awT",@progbits
23181 tls_as_opt
=--fatal-warnings
23185 sparc
*-sun-solaris2.
*)
23187 tga_func
=__tls_get_addr
23193 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23195 .section ".tdata",#alloc,#write,#tls'
23200 .section ".tdata","awT",@progbits'
23203 tls_as_opt
="-32 --fatal-warnings"
23205 conftest_s
="$conftest_s
23208 sethi %tgd_hi22(foo), %o0
23209 add %o0, %tgd_lo10(foo), %o1
23210 add %l7, %o1, %o0, %tgd_add(foo)
23211 call __tls_get_addr, %tgd_call(foo)
23212 sethi %tldm_hi22(foo), %l1
23213 add %l1, %tldm_lo10(foo), %l2
23214 add %l7, %l2, %o0, %tldm_add(foo)
23215 call __tls_get_addr, %tldm_call(foo)
23216 sethi %tldo_hix22(foo), %l3
23217 xor %l3, %tldo_lox10(foo), %l4
23218 add %o0, %l4, %l5, %tldo_add(foo)
23219 sethi %tie_hi22(foo), %o3
23220 add %o3, %tie_lo10(foo), %o3
23221 ld [%l7 + %o3], %o2, %tie_ld(foo)
23222 add %g7, %o2, %o4, %tie_add(foo)
23223 sethi %tle_hix22(foo), %l1
23224 xor %l1, %tle_lox10(foo), %o5
23225 ld [%g7 + %o5], %o1"
23229 .section ".tdata","awT",@progbits
23232 movi a8, foo@TLSFUNC
23233 movi a10, foo@TLSARG
23234 callx8.tls a8, foo@TLSCALL'
23240 if test "x$enable_tls" = xno
; then
23241 : # TLS explicitly disabled.
23242 elif test "x$enable_tls" = xyes
; then
23243 set_have_as_tls
=yes # TLS explicitly enabled.
23244 elif test -z "$tls_first_major"; then
23245 : # If we don't have a check, assume no support.
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23248 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23249 if test "${gcc_cv_as_tls+set}" = set; then :
23250 $as_echo_n "(cached) " >&6
23253 if test $in_tree_gas = yes; then
23254 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23255 then gcc_cv_as_tls
=yes
23257 elif test x
$gcc_cv_as != x
; then
23258 $as_echo "$conftest_s" > conftest.s
23259 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23261 (eval $ac_try) 2>&5
23263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23264 test $ac_status = 0; }; }
23268 echo "configure: failed program was" >&5
23271 rm -f conftest.o conftest.s
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23275 $as_echo "$gcc_cv_as_tls" >&6; }
23276 if test $gcc_cv_as_tls = yes; then
23277 set_have_as_tls
=yes
23282 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23283 # with TLS support are in use, native TLS cannot work.
23287 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23288 # gld with TLS support are in use, native TLS cannot work.
23291 # TLS was introduced in the Solaris 9 FCS release and backported to
23292 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23293 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23294 # ld and GCC don't support any longer.
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23297 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23299 # Check ld and ld.so.1 TLS support.
23300 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23301 # Assume all interesting versions of GNU ld have TLS support.
23302 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23306 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23308 min_tls_ld_vers_minor
=280
23310 # Solaris 8/SPARC ld has TLS support since version 1.272.
23311 sparc
*-*-solaris2.8
)
23312 min_tls_ld_vers_minor
=272
23314 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23316 min_tls_ld_vers_minor
=374
23318 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23319 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23320 min_tls_ld_vers_minor
=343
23323 if test "$ld_vers_major" -gt 1 || \
23324 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23331 $as_echo "$ld_tls_support" >&6; }
23334 save_LDFLAGS
="$LDFLAGS"
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23339 $as_echo_n "checking alternate thread library... " >&6; }
23341 # TLS support was backported to Solaris 8 patches, but only lives in
23342 # the alternate thread library which became the default in Solaris 9.
23343 # We want to always use that, irrespective of TLS support.
23345 # Take multilib subdir into account. There's no spec to handle
23346 # this. The 64 symlink exists since Solaris 8.
23347 lwp_dir
=/usr
/lib
/lwp
23348 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23349 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23356 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23358 cat >>confdefs.h
<<_ACEOF
23359 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23363 $as_echo "$lwp_dir" >&6; }
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23366 $as_echo_n "checking library containing $tga_func... " >&6; }
23367 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23368 # (32-bit x86) only lived in libthread, so check for that. Keep
23369 # set_have_as_tls if found, disable if not.
23370 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23372 $as_echo_n "checking for library containing $tga_func... " >&6; }
23373 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23374 $as_echo_n "(cached) " >&6
23376 ac_func_search_save_LIBS
=$LIBS
23377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23378 /* end confdefs.h. */
23380 /* Override any GCC internal prototype to avoid an error.
23381 Use char because int might match the return type of a GCC
23382 builtin and then its argument prototype would still apply. */
23390 return $tga_func ();
23395 for ac_lib
in '' thread
; do
23396 if test -z "$ac_lib"; then
23397 ac_res
="none required"
23400 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23402 if ac_fn_c_try_link
"$LINENO"; then :
23403 eval "$as_ac_Search=\$ac_res"
23405 rm -f core conftest.err conftest.
$ac_objext \
23407 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23411 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23414 eval "$as_ac_Search=no"
23416 rm conftest.
$ac_ext
23417 LIBS
=$ac_func_search_save_LIBS
23419 eval ac_res
=\$
$as_ac_Search
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23421 $as_echo "$ac_res" >&6; }
23422 eval ac_res
=\$
$as_ac_Search
23423 if test "$ac_res" != no
; then :
23424 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23430 # Clear LIBS if we cannot support TLS.
23431 if test $set_have_as_tls = no
; then
23434 # Always define LIB_TLS_SPEC, even without TLS support.
23436 cat >>confdefs.h
<<_ACEOF
23437 #define LIB_TLS_SPEC "$LIBS"
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23441 $as_echo "$LIBS" >&6; }
23444 LDFLAGS
="$save_LDFLAGS"
23447 if test $set_have_as_tls = yes ; then
23449 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23453 # Target-specific assembler checks.
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23456 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23457 gcc_cv_ld_static_dynamic
=no
23458 gcc_cv_ld_static_option
='-Bstatic'
23459 gcc_cv_ld_dynamic_option
='-Bdynamic'
23460 if test $in_tree_ld = yes ; then
23461 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
23462 gcc_cv_ld_static_dynamic
=yes
23464 elif test x
$gcc_cv_ld != x
; then
23465 # Check if linker supports -Bstatic/-Bdynamic option
23466 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23467 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23468 gcc_cv_ld_static_dynamic
=yes
23471 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23473 gcc_cv_ld_static_dynamic
=yes
23474 gcc_cv_ld_static_option
="-noso"
23475 gcc_cv_ld_dynamic_option
="-so_archive"
23477 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23479 gcc_cv_ld_static_dynamic
=yes
23481 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23483 gcc_cv_ld_static_dynamic
=yes
23488 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23490 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23493 cat >>confdefs.h
<<_ACEOF
23494 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23498 cat >>confdefs.h
<<_ACEOF
23499 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23504 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23506 if test x
"$demangler_in_ld" = xyes
; then
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23508 $as_echo_n "checking linker --demangle support... " >&6; }
23509 gcc_cv_ld_demangle
=no
23510 if test $in_tree_ld = yes; then
23511 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 \
23512 gcc_cv_ld_demangle
=yes
23514 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23515 # Check if the GNU linker supports --demangle option
23516 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23517 gcc_cv_ld_demangle
=yes
23520 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23522 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23526 $as_echo "$gcc_cv_ld_demangle" >&6; }
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23530 $as_echo_n "checking linker plugin support... " >&6; }
23531 gcc_cv_lto_plugin
=0
23532 if test -f liblto_plugin.la
; then
23533 save_ld_ver
="$ld_ver"
23534 save_ld_vers_major
="$ld_vers_major"
23535 save_ld_vers_minor
="$ld_vers_minor"
23536 save_ld_is_gold
="$ld_is_gold"
23540 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23542 # FIXME: ld_is_gold?
23543 ld_vers_major
="$gcc_cv_gld_major_version"
23544 ld_vers_minor
="$gcc_cv_gld_minor_version"
23546 # Determine plugin linker version.
23547 # FIXME: Partial duplicate from above, generalize.
23548 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23549 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23550 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23552 ld_vers
=`echo $ld_ver | sed -n \
23553 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23555 ld_vers
=`echo $ld_ver | sed -n \
23556 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23558 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23559 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23563 # Determine plugin support.
23564 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23565 # Require GNU ld or gold 2.21+ for plugin support by default.
23566 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23567 gcc_cv_lto_plugin
=2
23568 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23569 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23570 gcc_cv_lto_plugin
=1
23574 ld_ver
="$save_ld_ver"
23575 ld_vers_major
="$save_ld_vers_major"
23576 ld_vers_minor
="$save_ld_vers_minor"
23577 ld_is_gold
="$save_ld_is_gold"
23580 cat >>confdefs.h
<<_ACEOF
23581 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23585 $as_echo "$gcc_cv_lto_plugin" >&6; }
23588 # All TARGET_ABI_OSF targets.
23589 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23591 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23592 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23593 $as_echo_n "(cached) " >&6
23595 gcc_cv_as_alpha_explicit_relocs
=no
23596 if test $in_tree_gas = yes; then
23597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23598 then gcc_cv_as_alpha_explicit_relocs
=yes
23600 elif test x
$gcc_cv_as != x
; then
23601 $as_echo ' .set nomacro
23603 extbl $3, $2, $3 !lituse_bytoff!1
23604 ldq $2, a($29) !literal!1
23605 ldq $4, b($29) !literal!2
23606 ldq_u $3, 0($2) !lituse_base!1
23607 ldq $27, f($29) !literal!5
23608 jsr $26, ($27), f !lituse_jsr!5
23609 ldah $29, 0($26) !gpdisp!3
23610 lda $0, c($29) !gprel
23611 ldah $1, d($29) !gprelhigh
23612 lda $1, d($1) !gprellow
23613 lda $29, 0($29) !gpdisp!3' > conftest.s
23614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23621 gcc_cv_as_alpha_explicit_relocs
=yes
23623 echo "configure: failed program was" >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23630 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23631 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23633 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23637 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23638 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23639 $as_echo_n "(cached) " >&6
23641 gcc_cv_as_alpha_jsrdirect_relocs
=no
23642 if test $in_tree_gas = yes; then
23643 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23644 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23646 elif test x
$gcc_cv_as != x
; then
23647 $as_echo ' .set nomacro
23649 ldq $27, a($29) !literal!1
23650 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23653 (eval $ac_try) 2>&5
23655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23656 test $ac_status = 0; }; }
23658 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23660 echo "configure: failed program was" >&5
23663 rm -f conftest.o conftest.s
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23667 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23668 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23670 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23677 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23678 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23681 gcc_cv_as_cris_no_mul_bug
=no
23682 if test $in_tree_gas = yes; then
23683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23684 then gcc_cv_as_cris_no_mul_bug
=yes
23686 elif test x
$gcc_cv_as != x
; then
23687 $as_echo '.text' > conftest.s
23688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23695 gcc_cv_as_cris_no_mul_bug
=yes
23697 echo "configure: failed program was" >&5
23700 rm -f conftest.o conftest.s
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23704 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23705 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23707 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23714 $as_echo_n "checking assembler for .register... " >&6; }
23715 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23716 $as_echo_n "(cached) " >&6
23718 gcc_cv_as_sparc_register_op
=no
23719 if test x
$gcc_cv_as != x
; then
23720 $as_echo '.register %g2, #scratch' > conftest.s
23721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723 (eval $ac_try) 2>&5
23725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726 test $ac_status = 0; }; }
23728 gcc_cv_as_sparc_register_op
=yes
23730 echo "configure: failed program was" >&5
23733 rm -f conftest.o conftest.s
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23737 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23738 if test $gcc_cv_as_sparc_register_op = yes; then
23740 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23745 $as_echo_n "checking assembler for -relax option... " >&6; }
23746 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23749 gcc_cv_as_sparc_relax
=no
23750 if test x
$gcc_cv_as != x
; then
23751 $as_echo '.text' > conftest.s
23752 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23754 (eval $ac_try) 2>&5
23756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757 test $ac_status = 0; }; }
23759 gcc_cv_as_sparc_relax
=yes
23761 echo "configure: failed program was" >&5
23764 rm -f conftest.o conftest.s
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23768 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23769 if test $gcc_cv_as_sparc_relax = yes; then
23771 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23776 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23777 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23778 $as_echo_n "(cached) " >&6
23780 gcc_cv_as_sparc_gotdata_op
=no
23781 if test x
$gcc_cv_as != x
; then
23787 sethi %gdop_hix22(foo), %g1
23788 xor %g1, %gdop_lox10(foo), %g1
23789 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23792 (eval $ac_try) 2>&5
23794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23795 test $ac_status = 0; }; }
23797 if test x
$gcc_cv_ld != x \
23798 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23799 if test x
$gcc_cv_objdump != x
; then
23800 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23801 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23802 gcc_cv_as_sparc_gotdata_op
=no
23804 gcc_cv_as_sparc_gotdata_op
=yes
23810 echo "configure: failed program was" >&5
23813 rm -f conftest.o conftest.s
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23817 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23818 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23820 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23825 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23826 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23827 $as_echo_n "(cached) " >&6
23829 gcc_cv_as_sparc_ua_pcrel
=no
23830 if test x
$gcc_cv_as != x
; then
23837 .uaword %r_disp32(foo)' > conftest.s
23838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23845 if test x
$gcc_cv_ld != x \
23846 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23847 gcc_cv_as_sparc_ua_pcrel
=yes
23851 echo "configure: failed program was" >&5
23854 rm -f conftest.o conftest.s
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23858 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23859 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23861 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23865 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23866 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23867 $as_echo_n "(cached) " >&6
23869 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23870 if test x
$gcc_cv_as != x
; then
23874 .uaword %r_disp32(foo)
23875 .byte 0x32, 0x33, 0x34
23879 .skip 4' > conftest.s
23880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23887 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23888 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23889 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23890 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23891 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23892 |
grep 'DISP32' > /dev
/null
2>&1; then
23895 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23900 echo "configure: failed program was" >&5
23903 rm -f conftest.o conftest.s
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23907 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23908 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23910 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23914 fi # unaligned pcrel relocs
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23917 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23918 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23919 $as_echo_n "(cached) " >&6
23921 gcc_cv_as_sparc_offsetable_lo10
=no
23922 if test x
$gcc_cv_as != x
; then
23924 or %g1, %lo(ab) + 12, %g1
23925 or %g1, %lo(ab + 12), %g1' > conftest.s
23926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }
23933 if test x
$gcc_cv_objdump != x \
23934 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23935 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23936 gcc_cv_as_sparc_offsetable_lo10
=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_sparc_offsetable_lo10" >&5
23946 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23947 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23949 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23954 i
[34567]86-*-* | x86_64-
*-*)
23957 # Full C++ conformance when using a shared libstdc++-v3 requires some
23958 # support from the Cygwin DLL, which in more recent versions exports
23959 # wrappers to aid in interposing and redirecting operators new, delete,
23960 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23961 # are configuring for a version of Cygwin that exports the wrappers.
23962 if test x
$host = x
$target; then
23963 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23964 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23965 gcc_ac_cygwin_dll_wrappers
=yes
23967 gcc_ac_cygwin_dll_wrappers
=no
23971 # Can't check presence of libc functions during cross-compile, so
23972 # we just have to assume we're building for an up-to-date target.
23973 gcc_ac_cygwin_dll_wrappers
=yes
23976 cat >>confdefs.h
<<_ACEOF
23977 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23982 cygwin
* | pe | mingw32
*)
23983 # Recent binutils allows the three-operand form of ".comm" on PE. This
23984 # definition is used unconditionally to initialise the default state of
23985 # the target option variable that governs usage of the feature.
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23987 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23988 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23989 $as_echo_n "(cached) " >&6
23991 gcc_cv_as_comm_has_align
=no
23992 if test $in_tree_gas = yes; then
23993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23994 then gcc_cv_as_comm_has_align
=yes
23996 elif test x
$gcc_cv_as != x
; then
23997 $as_echo '.comm foo,1,32' > conftest.s
23998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24000 (eval $ac_try) 2>&5
24002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003 test $ac_status = 0; }; }
24005 gcc_cv_as_comm_has_align
=yes
24007 echo "configure: failed program was" >&5
24010 rm -f conftest.o conftest.s
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24014 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24017 cat >>confdefs.h
<<_ACEOF
24018 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24021 # Used for DWARF 2 in PE
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24023 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24024 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24025 $as_echo_n "(cached) " >&6
24027 gcc_cv_as_ix86_pe_secrel32
=no
24028 if test $in_tree_gas = yes; then
24029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24030 then gcc_cv_as_ix86_pe_secrel32
=yes
24032 elif test x
$gcc_cv_as != x
; then
24036 .secrel32 foo' > conftest.s
24037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24039 (eval $ac_try) 2>&5
24041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24042 test $ac_status = 0; }; }
24044 if test x
$gcc_cv_ld != x \
24045 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24046 gcc_cv_as_ix86_pe_secrel32
=yes
24050 echo "configure: failed program was" >&5
24053 rm -f conftest.o conftest.s
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24057 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24058 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24060 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24063 # Test if the assembler supports the extended form of the .section
24064 # directive that specifies section alignment. LTO support uses this,
24065 # but normally only after installation, so we warn but don't fail the
24066 # configure if LTO is enabled but the assembler does not support it.
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24068 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24069 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24070 $as_echo_n "(cached) " >&6
24072 gcc_cv_as_section_has_align
=no
24073 if test $in_tree_gas = yes; then
24074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24075 then gcc_cv_as_section_has_align
=yes
24077 elif test x
$gcc_cv_as != x
; then
24078 $as_echo '.section lto_test,"dr0"' > conftest.s
24079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24086 gcc_cv_as_section_has_align
=yes
24088 echo "configure: failed program was" >&5
24091 rm -f conftest.o conftest.s
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24095 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24097 if test x
$gcc_cv_as_section_has_align != xyes
; then
24098 case ",$enable_languages," in
24100 { $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
24101 $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;}
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24109 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24110 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24111 $as_echo_n "(cached) " >&6
24113 gcc_cv_as_ix86_filds
=no
24114 if test x
$gcc_cv_as != x
; then
24115 $as_echo 'filds mem; fists mem' > conftest.s
24116 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24118 (eval $ac_try) 2>&5
24120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24121 test $ac_status = 0; }; }
24123 gcc_cv_as_ix86_filds
=yes
24125 echo "configure: failed program was" >&5
24128 rm -f conftest.o conftest.s
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24132 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24133 if test $gcc_cv_as_ix86_filds = yes; then
24135 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24140 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24141 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24142 $as_echo_n "(cached) " >&6
24144 gcc_cv_as_ix86_fildq
=no
24145 if test x
$gcc_cv_as != x
; then
24146 $as_echo 'fildq mem; fistpq mem' > conftest.s
24147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24149 (eval $ac_try) 2>&5
24151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24152 test $ac_status = 0; }; }
24154 gcc_cv_as_ix86_fildq
=yes
24156 echo "configure: failed program was" >&5
24159 rm -f conftest.o conftest.s
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24163 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24164 if test $gcc_cv_as_ix86_fildq = yes; then
24166 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24171 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24172 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24175 gcc_cv_as_ix86_cmov_sun_syntax
=no
24176 if test x
$gcc_cv_as != x
; then
24177 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24178 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180 (eval $ac_try) 2>&5
24182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183 test $ac_status = 0; }; }
24185 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24187 echo "configure: failed program was" >&5
24190 rm -f conftest.o conftest.s
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24194 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24195 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24197 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24202 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24203 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24204 $as_echo_n "(cached) " >&6
24206 gcc_cv_as_ix86_ffreep
=no
24207 if test x
$gcc_cv_as != x
; then
24208 $as_echo 'ffreep %st(1)' > conftest.s
24209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24216 gcc_cv_as_ix86_ffreep
=yes
24218 echo "configure: failed program was" >&5
24221 rm -f conftest.o conftest.s
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24225 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24226 if test $gcc_cv_as_ix86_ffreep = yes; then
24228 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24233 $as_echo_n "checking assembler for .quad directive... " >&6; }
24234 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24237 gcc_cv_as_ix86_quad
=no
24238 if test x
$gcc_cv_as != x
; then
24239 $as_echo '.quad 0' > conftest.s
24240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24247 gcc_cv_as_ix86_quad
=yes
24249 echo "configure: failed program was" >&5
24252 rm -f conftest.o conftest.s
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24256 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24257 if test $gcc_cv_as_ix86_quad = yes; then
24259 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24264 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24265 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24266 $as_echo_n "(cached) " >&6
24268 gcc_cv_as_ix86_sahf
=no
24269 if test x
$gcc_cv_as != x
; then
24272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24279 gcc_cv_as_ix86_sahf
=yes
24281 echo "configure: failed program was" >&5
24284 rm -f conftest.o conftest.s
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24288 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24289 if test $gcc_cv_as_ix86_sahf = yes; then
24291 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24296 $as_echo_n "checking assembler for swap suffix... " >&6; }
24297 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24300 gcc_cv_as_ix86_swap
=no
24301 if test x
$gcc_cv_as != x
; then
24302 $as_echo 'movl.s %esp, %ebp' > conftest.s
24303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }
24310 gcc_cv_as_ix86_swap
=yes
24312 echo "configure: failed program was" >&5
24315 rm -f conftest.o conftest.s
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24319 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24320 if test $gcc_cv_as_ix86_swap = yes; then
24322 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24327 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24328 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24329 $as_echo_n "(cached) " >&6
24331 gcc_cv_as_ix86_diff_sect_delta
=no
24332 if test x
$gcc_cv_as != x
; then
24333 $as_echo '.section .rodata
24339 .L2: nop' > conftest.s
24340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24342 (eval $ac_try) 2>&5
24344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24345 test $ac_status = 0; }; }
24347 gcc_cv_as_ix86_diff_sect_delta
=yes
24349 echo "configure: failed program was" >&5
24352 rm -f conftest.o conftest.s
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24356 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24357 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24359 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24363 # These two are used unconditionally by i386.[ch]; it is to be defined
24364 # to 1 if the feature is present, 0 otherwise.
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24366 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24367 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24368 $as_echo_n "(cached) " >&6
24370 gcc_cv_as_ix86_gotoff_in_data
=no
24371 if test $in_tree_gas = yes; then
24372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24373 then gcc_cv_as_ix86_gotoff_in_data
=yes
24375 elif test x
$gcc_cv_as != x
; then
24380 .long .L0@GOTOFF' > conftest.s
24381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24383 (eval $ac_try) 2>&5
24385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24386 test $ac_status = 0; }; }
24388 gcc_cv_as_ix86_gotoff_in_data
=yes
24390 echo "configure: failed program was" >&5
24393 rm -f conftest.o conftest.s
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24397 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24400 cat >>confdefs.h
<<_ACEOF
24401 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24406 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24407 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24410 gcc_cv_as_ix86_rep_lock_prefix
=no
24411 if test x
$gcc_cv_as != x
; then
24412 $as_echo 'rep movsl
24413 lock addl %edi, (%eax,%esi)
24414 lock orl $0, (%esp)' > conftest.s
24415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24422 gcc_cv_as_ix86_rep_lock_prefix
=yes
24424 echo "configure: failed program was" >&5
24427 rm -f conftest.o conftest.s
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24431 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24432 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24434 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24439 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24440 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24441 $as_echo_n "(cached) " >&6
24443 gcc_cv_as_ix86_tlsgdplt
=no
24444 if test x
$gcc_cv_as != x
; then
24445 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24446 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448 (eval $ac_try) 2>&5
24450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451 test $ac_status = 0; }; }
24453 gcc_cv_as_ix86_tlsgdplt
=yes
24455 echo "configure: failed program was" >&5
24458 rm -f conftest.o conftest.s
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24462 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24463 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24465 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24470 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24471 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24472 $as_echo_n "(cached) " >&6
24474 gcc_cv_as_ix86_tlsldmplt
=no
24475 if test x
$gcc_cv_as != x
; then
24476 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24479 (eval $ac_try) 2>&5
24481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24482 test $ac_status = 0; }; }
24484 gcc_cv_as_ix86_tlsldmplt
=yes
24486 echo "configure: failed program was" >&5
24489 rm -f conftest.o conftest.s
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24493 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24494 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24496 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24504 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24505 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24508 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24509 if test $in_tree_gas = yes; then
24510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24511 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24513 elif test x
$gcc_cv_as != x
; then
24515 addl r15 = @ltoffx(x#), gp
24517 ld8.mov r16 = [r15], x#' > conftest.s
24518 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24520 (eval $ac_try) 2>&5
24522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24523 test $ac_status = 0; }; }
24525 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24527 echo "configure: failed program was" >&5
24530 rm -f conftest.o conftest.s
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24534 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24535 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24537 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24545 *-*-aix*) conftest_s
=' .machine "pwr5"
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24550 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24551 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24552 $as_echo_n "(cached) " >&6
24554 gcc_cv_as_machine_directive
=no
24555 if test x
$gcc_cv_as != x
; then
24556 $as_echo ' .machine ppc7400' > conftest.s
24557 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559 (eval $ac_try) 2>&5
24561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562 test $ac_status = 0; }; }
24564 gcc_cv_as_machine_directive
=yes
24566 echo "configure: failed program was" >&5
24569 rm -f conftest.o conftest.s
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24573 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24575 if test x
$gcc_cv_as_machine_directive != xyes
; then
24576 echo "*** This target requires an assembler supporting \".machine\"" >&2
24577 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24578 test x
$build = x
$target && exit 1
24582 *) conftest_s
=' .machine power4
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24588 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24589 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24590 $as_echo_n "(cached) " >&6
24592 gcc_cv_as_powerpc_mfcrf
=no
24593 if test $in_tree_gas = yes; then
24594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24595 then gcc_cv_as_powerpc_mfcrf
=yes
24597 elif test x
$gcc_cv_as != x
; then
24598 $as_echo "$conftest_s" > conftest.s
24599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24606 gcc_cv_as_powerpc_mfcrf
=yes
24608 echo "configure: failed program was" >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24615 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24616 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24618 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24623 *-*-aix*) conftest_s
=' .machine "pwr5"
24626 *) conftest_s
=' .machine power5
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24632 $as_echo_n "checking assembler for popcntb support... " >&6; }
24633 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24636 gcc_cv_as_powerpc_popcntb
=no
24637 if test $in_tree_gas = yes; then
24638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24639 then gcc_cv_as_powerpc_popcntb
=yes
24641 elif test x
$gcc_cv_as != x
; then
24642 $as_echo "$conftest_s" > conftest.s
24643 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24645 (eval $ac_try) 2>&5
24647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24648 test $ac_status = 0; }; }
24650 gcc_cv_as_powerpc_popcntb
=yes
24652 echo "configure: failed program was" >&5
24655 rm -f conftest.o conftest.s
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24659 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24660 if test $gcc_cv_as_powerpc_popcntb = yes; then
24662 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24667 *-*-aix*) conftest_s
=' .machine "pwr5x"
24670 *) conftest_s
=' .machine power5
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24676 $as_echo_n "checking assembler for fp round support... " >&6; }
24677 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24680 gcc_cv_as_powerpc_fprnd
=no
24681 if test $in_tree_gas = yes; then
24682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24683 then gcc_cv_as_powerpc_fprnd
=yes
24685 elif test x
$gcc_cv_as != x
; then
24686 $as_echo "$conftest_s" > conftest.s
24687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }
24694 gcc_cv_as_powerpc_fprnd
=yes
24696 echo "configure: failed program was" >&5
24699 rm -f conftest.o conftest.s
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24703 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24704 if test $gcc_cv_as_powerpc_fprnd = yes; then
24706 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24711 *-*-aix*) conftest_s
=' .machine "pwr6"
24714 *) conftest_s
=' .machine power6
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24720 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24721 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24724 gcc_cv_as_powerpc_mfpgpr
=no
24725 if test $in_tree_gas = yes; then
24726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24727 then gcc_cv_as_powerpc_mfpgpr
=yes
24729 elif test x
$gcc_cv_as != x
; then
24730 $as_echo "$conftest_s" > conftest.s
24731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24738 gcc_cv_as_powerpc_mfpgpr
=yes
24740 echo "configure: failed program was" >&5
24743 rm -f conftest.o conftest.s
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24747 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24748 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24750 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24755 *-*-aix*) conftest_s
=' .csect .text[PR]
24757 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24761 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24762 *) conftest_s
=' .text
24764 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24768 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24769 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24770 $as_echo_n "(cached) " >&6
24772 gcc_cv_as_powerpc_rel16
=no
24773 if test $in_tree_gas = yes; then
24774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24775 then gcc_cv_as_powerpc_rel16
=yes
24777 elif test x
$gcc_cv_as != x
; then
24778 $as_echo "$conftest_s" > conftest.s
24779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24786 gcc_cv_as_powerpc_rel16
=yes
24788 echo "configure: failed program was" >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24795 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24796 if test $gcc_cv_as_powerpc_rel16 = yes; then
24798 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24803 *-*-aix*) conftest_s
=' .machine "pwr6"
24806 *) conftest_s
=' .machine power6
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24812 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24813 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24816 gcc_cv_as_powerpc_cmpb
=no
24817 if test $in_tree_gas = yes; then
24818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24819 then gcc_cv_as_powerpc_cmpb
=yes
24821 elif test x
$gcc_cv_as != x
; then
24822 $as_echo "$conftest_s" > conftest.s
24823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24825 (eval $ac_try) 2>&5
24827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24828 test $ac_status = 0; }; }
24830 gcc_cv_as_powerpc_cmpb
=yes
24832 echo "configure: failed program was" >&5
24835 rm -f conftest.o conftest.s
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24839 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24840 if test $gcc_cv_as_powerpc_cmpb = yes; then
24842 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24847 *-*-aix*) conftest_s
=' .machine "pwr6"
24850 *) conftest_s
=' .machine power6
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24856 $as_echo_n "checking assembler for decimal float support... " >&6; }
24857 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24860 gcc_cv_as_powerpc_dfp
=no
24861 if test $in_tree_gas = yes; then
24862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24863 then gcc_cv_as_powerpc_dfp
=yes
24865 elif test x
$gcc_cv_as != x
; then
24866 $as_echo "$conftest_s" > conftest.s
24867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24874 gcc_cv_as_powerpc_dfp
=yes
24876 echo "configure: failed program was" >&5
24879 rm -f conftest.o conftest.s
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24883 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24884 if test $gcc_cv_as_powerpc_dfp = yes; then
24886 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24891 *-*-aix*) conftest_s
=' .machine "pwr7"
24894 *) conftest_s
=' .machine power7
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24900 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24901 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24904 gcc_cv_as_powerpc_vsx
=no
24905 if test $in_tree_gas = yes; then
24906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24907 then gcc_cv_as_powerpc_vsx
=yes
24909 elif test x
$gcc_cv_as != x
; then
24910 $as_echo "$conftest_s" > conftest.s
24911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24918 gcc_cv_as_powerpc_vsx
=yes
24920 echo "configure: failed program was" >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24927 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24928 if test $gcc_cv_as_powerpc_vsx = yes; then
24930 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24935 *-*-aix*) conftest_s
=' .machine "pwr7"
24938 *) conftest_s
=' .machine power7
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24944 $as_echo_n "checking assembler for popcntd support... " >&6; }
24945 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24948 gcc_cv_as_powerpc_popcntd
=no
24949 if test $in_tree_gas = yes; then
24950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24951 then gcc_cv_as_powerpc_popcntd
=yes
24953 elif test x
$gcc_cv_as != x
; then
24954 $as_echo "$conftest_s" > conftest.s
24955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24957 (eval $ac_try) 2>&5
24959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24960 test $ac_status = 0; }; }
24962 gcc_cv_as_powerpc_popcntd
=yes
24964 echo "configure: failed program was" >&5
24967 rm -f conftest.o conftest.s
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24971 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24972 if test $gcc_cv_as_powerpc_popcntd = yes; then
24974 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24979 *-*-aix*) conftest_s
=' .csect .text[PR]
24981 *) conftest_s
=' .text
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24986 $as_echo_n "checking assembler for lwsync support... " >&6; }
24987 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24988 $as_echo_n "(cached) " >&6
24990 gcc_cv_as_powerpc_lwsync
=no
24991 if test $in_tree_gas = yes; then
24992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24993 then gcc_cv_as_powerpc_lwsync
=yes
24995 elif test x
$gcc_cv_as != x
; then
24996 $as_echo "$conftest_s" > conftest.s
24997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }
25004 gcc_cv_as_powerpc_lwsync
=yes
25006 echo "configure: failed program was" >&5
25009 rm -f conftest.o conftest.s
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25013 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25014 if test $gcc_cv_as_powerpc_lwsync = yes; then
25016 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25021 *-*-aix*) conftest_s
=' .machine "476"
25024 *) conftest_s
=' .machine "476"
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25030 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25031 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25032 $as_echo_n "(cached) " >&6
25034 gcc_cv_as_powerpc_dci
=no
25035 if test $in_tree_gas = yes; then
25036 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25037 then gcc_cv_as_powerpc_dci
=yes
25039 elif test x
$gcc_cv_as != x
; then
25040 $as_echo "$conftest_s" > conftest.s
25041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25043 (eval $ac_try) 2>&5
25045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25046 test $ac_status = 0; }; }
25048 gcc_cv_as_powerpc_dci
=yes
25050 echo "configure: failed program was" >&5
25053 rm -f conftest.o conftest.s
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25057 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25058 if test $gcc_cv_as_powerpc_dci = yes; then
25060 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25065 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25066 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25067 $as_echo_n "(cached) " >&6
25069 gcc_cv_as_powerpc_gnu_attribute
=no
25070 if test $in_tree_gas = yes; then
25071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25072 then gcc_cv_as_powerpc_gnu_attribute
=yes
25074 elif test x
$gcc_cv_as != x
; then
25075 $as_echo '.gnu_attribute 4,1' > conftest.s
25076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25078 (eval $ac_try) 2>&5
25080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25081 test $ac_status = 0; }; }
25083 gcc_cv_as_powerpc_gnu_attribute
=yes
25085 echo "configure: failed program was" >&5
25088 rm -f conftest.o conftest.s
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25092 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25093 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25095 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25100 $as_echo_n "checking assembler for tls marker support... " >&6; }
25101 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25104 gcc_cv_as_powerpc_tls_markers
=no
25105 if test $in_tree_gas = yes; then
25106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25107 then gcc_cv_as_powerpc_tls_markers
=yes
25109 elif test x
$gcc_cv_as != x
; then
25110 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25113 (eval $ac_try) 2>&5
25115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25116 test $ac_status = 0; }; }
25118 gcc_cv_as_powerpc_tls_markers
=yes
25120 echo "configure: failed program was" >&5
25123 rm -f conftest.o conftest.s
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25127 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25128 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25130 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25137 $as_echo_n "checking assembler for .ref support... " >&6; }
25138 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25141 gcc_cv_as_aix_ref
=no
25142 if test $in_tree_gas = yes; then
25143 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25146 elif test x
$gcc_cv_as != x
; then
25147 $as_echo ' .csect stuff[rw]
25153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; }
25160 gcc_cv_as_aix_ref
=yes
25162 echo "configure: failed program was" >&5
25165 rm -f conftest.o conftest.s
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25169 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25170 if test $gcc_cv_as_aix_ref = yes; then
25172 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25181 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25182 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25183 $as_echo_n "(cached) " >&6
25185 gcc_cv_as_mips_explicit_relocs
=no
25186 if test $in_tree_gas = yes; then
25187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25188 then gcc_cv_as_mips_explicit_relocs
=yes
25190 elif test x
$gcc_cv_as != x
; then
25191 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194 (eval $ac_try) 2>&5
25196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197 test $ac_status = 0; }; }
25199 gcc_cv_as_mips_explicit_relocs
=yes
25201 echo "configure: failed program was" >&5
25204 rm -f conftest.o conftest.s
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25208 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25209 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25210 if test x
$target_cpu_default = x
25211 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25212 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25216 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25217 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25218 $as_echo_n "(cached) " >&6
25220 gcc_cv_as_mips_no_shared
=no
25221 if test $in_tree_gas = yes; then
25222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25223 then gcc_cv_as_mips_no_shared
=yes
25225 elif test x
$gcc_cv_as != x
; then
25226 $as_echo 'nop' > conftest.s
25227 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25234 gcc_cv_as_mips_no_shared
=yes
25236 echo "configure: failed program was" >&5
25239 rm -f conftest.o conftest.s
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25243 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25244 if test $gcc_cv_as_mips_no_shared = yes; then
25246 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25251 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25252 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25253 $as_echo_n "(cached) " >&6
25255 gcc_cv_as_mips_gnu_attribute
=no
25256 if test $in_tree_gas = yes; then
25257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25258 then gcc_cv_as_mips_gnu_attribute
=yes
25260 elif test x
$gcc_cv_as != x
; then
25261 $as_echo '.gnu_attribute 4,1' > conftest.s
25262 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25264 (eval $ac_try) 2>&5
25266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25267 test $ac_status = 0; }; }
25269 gcc_cv_as_mips_gnu_attribute
=yes
25271 echo "configure: failed program was" >&5
25274 rm -f conftest.o conftest.s
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25278 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25279 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25281 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25286 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25287 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25290 gcc_cv_as_mips_dtprelword
=no
25291 if test $in_tree_gas = yes; then
25292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25293 then gcc_cv_as_mips_dtprelword
=yes
25295 elif test x
$gcc_cv_as != x
; then
25296 $as_echo '.section .tdata,"awT",@progbits
25300 .dtprelword x+0x8000' > conftest.s
25301 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25303 (eval $ac_try) 2>&5
25305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25306 test $ac_status = 0; }; }
25308 gcc_cv_as_mips_dtprelword
=yes
25310 echo "configure: failed program was" >&5
25313 rm -f conftest.o conftest.s
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25317 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25318 if test $gcc_cv_as_mips_dtprelword = yes; then
25320 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25325 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25326 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
25329 gcc_cv_as_mips_dspr1_mult
=no
25330 if test x
$gcc_cv_as != x
; then
25331 $as_echo ' .set mips32r2
25339 multu $ac3,$4,$5' > conftest.s
25340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25347 gcc_cv_as_mips_dspr1_mult
=yes
25349 echo "configure: failed program was" >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25356 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25357 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25359 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25364 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25365 gcc_cv_as_ld_jalr_reloc
=no
25366 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25367 if test $in_tree_ld = yes ; then
25368 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 \
25369 && test $in_tree_ld_is_elf = yes; then
25370 gcc_cv_as_ld_jalr_reloc
=yes
25372 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25373 echo ' .ent x' > conftest.s
25374 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25375 echo ' ld $25,%call16(y)($28)' >> conftest.s
25376 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25377 echo '1: jalr $25' >> conftest.s
25378 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25379 echo '1: jalr $25' >> conftest.s
25380 echo ' .end x' >> conftest.s
25381 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25382 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25383 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25384 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25385 gcc_cv_as_ld_jalr_reloc
=yes
25391 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25392 if test x
$target_cpu_default = x
; then
25393 target_cpu_default
=MASK_RELAX_PIC_CALLS
25395 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25399 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25402 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25403 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25404 $as_echo_n "(cached) " >&6
25406 gcc_cv_ld_mips_personality_relaxation
=no
25407 if test $in_tree_ld = yes ; then
25408 if test "$gcc_cv_gld_major_version" -eq 2 \
25409 -a "$gcc_cv_gld_minor_version" -ge 21 \
25410 -o "$gcc_cv_gld_major_version" -gt 2; then
25411 gcc_cv_ld_mips_personality_relaxation
=yes
25413 elif test x
$gcc_cv_as != x \
25414 -a x
$gcc_cv_ld != x \
25415 -a x
$gcc_cv_readelf != x
; then
25416 cat > conftest.s
<<EOF
25418 .cfi_personality 0x80,indirect_ptr
25425 .section .data,"aw",@progbits
25429 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25430 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25431 if $gcc_cv_readelf -d conftest
2>&1 \
25432 |
grep TEXTREL
> /dev
/null
2>&1; then
25434 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25435 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25438 gcc_cv_ld_mips_personality_relaxation
=yes
25442 rm -f conftest.s conftest.o conftest
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25445 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25446 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25448 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25454 # Mips and HP-UX need the GNU assembler.
25455 # Linux on IA64 might be able to use the Intel assembler.
25458 mips
*-*-* |
*-*-hpux* )
25459 if test x
$gas_flag = xyes \
25460 ||
test x
"$host" != x
"$build" \
25461 ||
test ! -x "$gcc_cv_as" \
25462 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25465 echo "*** This configuration requires the GNU assembler" >&2
25471 # ??? Not all targets support dwarf2 debug_line, even within a version
25472 # of gas. Moreover, we need to emit a valid instruction to trigger any
25473 # info to the output file. So, as supported targets are added to gas 2.11,
25474 # add some instruction here to (also) show we expect this might work.
25475 # ??? Once 2.11 is released, probably need to add first known working
25476 # version to the per-target configury.
25477 case "$cpu_type" in
25478 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25479 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25489 if test x
"$insn" != x
; then
25491 .file 1 \"conftest.s\"
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25495 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25496 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25499 gcc_cv_as_dwarf2_debug_line
=no
25500 if test $in_tree_gas = yes; then
25501 if test $in_tree_gas_is_elf = yes \
25502 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25503 then gcc_cv_as_dwarf2_debug_line
=yes
25505 elif test x
$gcc_cv_as != x
; then
25506 $as_echo "$conftest_s" > conftest.s
25507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25514 if test x
$gcc_cv_objdump != x \
25515 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25516 |
grep debug_line
> /dev
/null
2>&1; then
25517 gcc_cv_as_dwarf2_debug_line
=yes
25520 echo "configure: failed program was" >&5
25523 rm -f conftest.o conftest.s
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25527 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25530 # The .debug_line file table must be in the exact order that
25531 # we specified the files, since these indices are also used
25532 # by DW_AT_decl_file. Approximate this test by testing if
25533 # the assembler bitches if the same index is assigned twice.
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25535 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25536 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25537 $as_echo_n "(cached) " >&6
25539 gcc_cv_as_dwarf2_file_buggy
=no
25540 if test x
$gcc_cv_as != x
; then
25541 $as_echo ' .file 1 "foo.s"
25542 .file 1 "bar.s"' > conftest.s
25543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25550 gcc_cv_as_dwarf2_file_buggy
=yes
25552 echo "configure: failed program was" >&5
25555 rm -f conftest.o conftest.s
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25559 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25562 if test $gcc_cv_as_dwarf2_debug_line = yes \
25563 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25565 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25570 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25571 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25572 $as_echo_n "(cached) " >&6
25574 gcc_cv_as_gdwarf2_flag
=no
25575 if test $in_tree_gas = yes; then
25576 if test $in_tree_gas_is_elf = yes \
25577 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25578 then gcc_cv_as_gdwarf2_flag
=yes
25580 elif test x
$gcc_cv_as != x
; then
25581 $as_echo "$insn" > conftest.s
25582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25589 gcc_cv_as_gdwarf2_flag
=yes
25591 echo "configure: failed program was" >&5
25594 rm -f conftest.o conftest.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25598 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25599 if test $gcc_cv_as_gdwarf2_flag = yes; then
25601 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25606 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25607 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25610 gcc_cv_as_gstabs_flag
=no
25611 if test $in_tree_gas = yes; then
25612 if test $in_tree_gas_is_elf = yes \
25613 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25614 then gcc_cv_as_gstabs_flag
=yes
25616 elif test x
$gcc_cv_as != x
; then
25617 $as_echo "$insn" > conftest.s
25618 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25620 (eval $ac_try) 2>&5
25622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25623 test $ac_status = 0; }; }
25625 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25626 # and warns about it, but still exits successfully. So check for
25628 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25635 else gcc_cv_as_gstabs_flag
=yes
25638 echo "configure: failed program was" >&5
25641 rm -f conftest.o conftest.s
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25645 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25646 if test $gcc_cv_as_gstabs_flag = yes; then
25648 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25653 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25654 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25655 $as_echo_n "(cached) " >&6
25657 gcc_cv_as_debug_prefix_map_flag
=no
25658 if test $in_tree_gas = yes; then
25659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25660 then gcc_cv_as_debug_prefix_map_flag
=yes
25662 elif test x
$gcc_cv_as != x
; then
25663 $as_echo "$insn" > conftest.s
25664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25671 gcc_cv_as_debug_prefix_map_flag
=yes
25673 echo "configure: failed program was" >&5
25676 rm -f conftest.o conftest.s
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25680 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25681 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25683 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25689 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25690 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25693 gcc_cv_as_lcomm_with_alignment
=no
25694 if test x
$gcc_cv_as != x
; then
25695 $as_echo '.lcomm bar,4,16' > conftest.s
25696 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25703 gcc_cv_as_lcomm_with_alignment
=yes
25705 echo "configure: failed program was" >&5
25708 rm -f conftest.o conftest.s
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25712 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25713 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25715 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25719 # Check whether --enable-gnu-unique-object was given.
25720 if test "${enable_gnu_unique_object+set}" = set; then :
25721 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25723 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25724 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25728 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25729 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25730 $as_echo_n "(cached) " >&6
25732 gcc_cv_as_gnu_unique_object
=no
25733 if test $in_tree_gas = yes; then
25734 if test $in_tree_gas_is_elf = yes \
25735 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25736 then gcc_cv_as_gnu_unique_object
=yes
25738 elif test x
$gcc_cv_as != x
; then
25739 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25742 (eval $ac_try) 2>&5
25744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25745 test $ac_status = 0; }; }
25747 gcc_cv_as_gnu_unique_object
=yes
25749 echo "configure: failed program was" >&5
25752 rm -f conftest.o conftest.s
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25756 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25757 if test $gcc_cv_as_gnu_unique_object = yes; then
25758 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25759 if test x
$host = x
$build -a x
$host = x
$target &&
25760 ldd
--version 2>/dev
/null
&&
25761 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25762 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25763 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25764 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25765 if test "$glibcnum" -ge 2011 ; then
25766 enable_gnu_unique_object
=yes
25772 if test x
$enable_gnu_unique_object = xyes
; then
25774 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25779 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25780 if test "${gcc_cv_as_line_zero+set}" = set; then :
25781 $as_echo_n "(cached) " >&6
25783 gcc_cv_as_line_zero
=no
25784 if test $in_tree_gas = yes; then
25785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25786 then gcc_cv_as_line_zero
=yes
25788 elif test "x$gcc_cv_as" != x
; then
25789 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25790 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25792 (eval $ac_try) 2>&5
25794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25795 test $ac_status = 0; }; } &&
25796 test "x`cat conftest.out`" = x
25798 gcc_cv_as_line_zero
=yes
25800 echo "configure: failed program was" >&5
25802 echo "configure: error output was" >&5
25803 cat conftest.out
>&5
25805 rm -f conftest.o conftest.s conftest.out
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25809 $as_echo "$gcc_cv_as_line_zero" >&6; }
25810 if test "x$gcc_cv_as_line_zero" = xyes
; then
25812 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25817 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25818 gcc_cv_ld_eh_frame_hdr
=no
25819 if test $in_tree_ld = yes ; then
25820 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 \
25821 && test $in_tree_ld_is_elf = yes; then
25822 gcc_cv_ld_eh_frame_hdr
=yes
25824 elif test x
$gcc_cv_ld != x
; then
25825 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25826 # Check if linker supports --eh-frame-hdr option
25827 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25828 gcc_cv_ld_eh_frame_hdr
=yes
25833 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25834 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
25835 gcc_cv_ld_eh_frame_hdr
=yes
25842 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25844 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25848 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25851 $as_echo_n "checking linker position independent executable support... " >&6; }
25853 if test $in_tree_ld = yes ; then
25854 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 \
25855 && test $in_tree_ld_is_elf = yes; then
25858 elif test x
$gcc_cv_ld != x
; then
25859 # Check if linker supports -pie option
25860 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25864 if test x
"$gcc_cv_ld_pie" = xyes
; then
25866 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25870 $as_echo "$gcc_cv_ld_pie" >&6; }
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25873 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25874 gcc_cv_ld_eh_gc_sections
=no
25875 if test $in_tree_ld = yes ; then
25876 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 \
25877 && test $in_tree_ld_is_elf = yes; then
25878 gcc_cv_ld_eh_gc_sections
=yes
25880 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25881 cat > conftest.s
<<EOF
25884 .type _start, @function
25887 .size _start, .-_start
25888 .section .text.foo,"ax",@progbits
25889 .type foo, @function
25893 .section .gcc_except_table.foo,"a",@progbits
25896 .section .eh_frame,"a",@progbits
25899 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25900 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25901 |
grep "gc-sections option ignored" > /dev
/null
; then
25902 gcc_cv_ld_eh_gc_sections
=no
25903 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25904 |
grep gcc_except_table
> /dev
/null
; then
25905 gcc_cv_ld_eh_gc_sections
=yes
25906 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25907 if test x
$gcc_cv_as_comdat_group != xyes
; then
25908 gcc_cv_ld_eh_gc_sections
=no
25909 cat > conftest.s
<<EOF
25912 .type _start, @function
25915 .size _start, .-_start
25916 .section .gnu.linkonce.t.foo,"ax",@progbits
25917 .type foo, @function
25921 .section .gcc_except_table.foo,"a",@progbits
25924 .section .eh_frame,"a",@progbits
25927 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25928 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25929 |
grep "gc-sections option ignored" > /dev
/null
; then
25930 gcc_cv_ld_eh_gc_sections
=no
25931 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25932 |
grep gcc_except_table
> /dev
/null
; then
25933 gcc_cv_ld_eh_gc_sections
=yes
25939 rm -f conftest.s conftest.o conftest
25943 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25944 gcc_cv_ld_eh_gc_sections
=no
25947 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
25949 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25953 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25956 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25957 gcc_cv_ld_eh_gc_sections_bug
=no
25958 if test $in_tree_ld = yes ; then
25959 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 \
25960 && test $in_tree_ld_is_elf = yes; then
25961 gcc_cv_ld_eh_gc_sections_bug
=yes
25963 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
25964 gcc_cv_ld_eh_gc_sections_bug
=yes
25965 cat > conftest.s
<<EOF
25968 .type _start, @function
25971 .size _start, .-_start
25972 .section .text.startup.foo,"ax",@progbits
25973 .type foo, @function
25977 .section .gcc_except_table.foo,"a",@progbits
25980 .section .eh_frame,"a",@progbits
25983 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25984 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25985 |
grep "gc-sections option ignored" > /dev
/null
; then
25987 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25988 |
grep gcc_except_table
> /dev
/null
; then
25989 gcc_cv_ld_eh_gc_sections_bug
=no
25992 rm -f conftest.s conftest.o conftest
25994 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
25996 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26000 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26007 $as_echo_n "checking linker --as-needed support... " >&6; }
26008 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26011 gcc_cv_ld_as_needed
=no
26012 if test $in_tree_ld = yes ; then
26013 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 \
26014 && test $in_tree_ld_is_elf = yes; then
26015 gcc_cv_ld_as_needed
=yes
26017 elif test x
$gcc_cv_ld != x
; then
26018 # Check if linker supports --as-needed and --no-as-needed options
26019 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26020 gcc_cv_ld_as_needed
=yes
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26026 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26027 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26029 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26033 case "$target:$tm_file" in
26034 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26036 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26037 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26038 $as_echo_n "(cached) " >&6
26040 gcc_cv_ld_no_dot_syms
=no
26041 if test $in_tree_ld = yes ; then
26042 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
26043 gcc_cv_ld_no_dot_syms
=yes
26045 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26046 cat > conftest1.s
<<EOF
26050 cat > conftest2.s
<<EOF
26051 .section ".opd","aw"
26054 .type foo,@function
26056 .quad .LEfoo,.TOC.@tocbase,0
26062 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26063 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26064 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26065 gcc_cv_ld_no_dot_syms
=yes
26067 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26072 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26073 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26075 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26080 $as_echo_n "checking linker large toc support... " >&6; }
26081 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26082 $as_echo_n "(cached) " >&6
26084 gcc_cv_ld_large_toc
=no
26085 if test $in_tree_ld = yes ; then
26086 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
26087 gcc_cv_ld_large_toc
=yes
26089 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26090 cat > conftest.s
<<EOF
26091 .section ".tbss","awT",@nobits
26097 addis 9,13,ie0@got@tprel@ha
26098 ld 9,ie0@got@tprel@l(9)
26100 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26101 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26102 gcc_cv_ld_large_toc
=yes
26104 rm -f conftest conftest.o conftest.s
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26109 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26110 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26112 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26119 $as_echo_n "checking linker --build-id support... " >&6; }
26120 if test "${gcc_cv_ld_buildid+set}" = set; then :
26121 $as_echo_n "(cached) " >&6
26123 gcc_cv_ld_buildid
=no
26124 if test $in_tree_ld = yes ; then
26125 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26126 "$gcc_cv_gld_minor_version" -ge 18 -o \
26127 "$gcc_cv_gld_major_version" -gt 2 \
26128 && test $in_tree_ld_is_elf = yes; then
26129 gcc_cv_ld_buildid
=yes
26131 elif test x
$gcc_cv_ld != x
; then
26132 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26133 gcc_cv_ld_buildid
=yes
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26138 $as_echo "$gcc_cv_ld_buildid" >&6; }
26139 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26141 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26145 # Check whether --enable-linker-build-id was given.
26146 if test "${enable_linker_build_id+set}" = set; then :
26147 enableval
=$enable_linker_build_id;
26149 enable_linker_build_id
=no
26153 if test x
"$enable_linker_build_id" = xyes
; then
26154 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26156 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26160 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26164 # In binutils 2.21, GNU ld gained support for new emulations fully
26165 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26167 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26168 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
26171 gcc_cv_ld_sol2_emulation
=no
26172 if test $in_tree_ld = yes ; then
26173 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26174 "$gcc_cv_gld_minor_version" -ge 21 -o \
26175 "$gcc_cv_gld_major_version" -gt 2 \
26176 && test $in_tree_ld_is_elf = yes; then
26177 gcc_cv_ld_sol2_emulation
=yes
26179 elif test x
$gcc_cv_ld != x
; then
26180 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26181 grep _sol2
> /dev
/null
; then
26182 gcc_cv_ld_sol2_emulation
=yes
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26187 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26188 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26190 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26195 $as_echo_n "checking linker --sysroot support... " >&6; }
26196 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26197 $as_echo_n "(cached) " >&6
26199 gcc_cv_ld_sysroot
=no
26200 if test $in_tree_ld = yes ; then
26201 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
26202 gcc_cv_ld_sysroot
=yes
26204 elif test x
$gcc_cv_ld != x
; then
26205 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26206 gcc_cv_ld_sysroot
=yes
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26211 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26212 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26214 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26218 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26219 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26220 && test "$prefix" != "NONE"; then
26222 cat >>confdefs.h
<<_ACEOF
26223 #define PREFIX_INCLUDE_DIR "$prefix/include"
26228 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26229 if test "x$with_headers" != x
; then
26230 target_header_dir
=$with_headers
26231 elif test "x$with_sysroot" = x
; then
26232 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26233 elif test "x$with_build_sysroot" != "x"; then
26234 target_header_dir
="${with_build_sysroot}/usr/include"
26235 elif test "x$with_sysroot" = xyes
; then
26236 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26238 target_header_dir
="${with_sysroot}/usr/include"
26241 target_header_dir
=/usr
/include
26244 # Test for stack protector support in target C library.
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26246 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26247 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26248 $as_echo_n "(cached) " >&6
26250 gcc_cv_libc_provides_ssp
=no
26252 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26253 # glibc 2.4 and later provides __stack_chk_fail and
26254 # either __stack_chk_guard, or TLS access to stack guard canary.
26255 if test -f $target_header_dir/features.h \
26256 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26257 $target_header_dir/features.h
> /dev
/null
; then
26258 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26259 $target_header_dir/features.h
> /dev
/null
; then
26260 gcc_cv_libc_provides_ssp
=yes
26261 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26262 $target_header_dir/features.h
> /dev
/null \
26263 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26264 $target_header_dir/features.h
> /dev
/null
; then
26265 gcc_cv_libc_provides_ssp
=yes
26266 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26267 $target_header_dir/features.h
> /dev
/null
&& \
26268 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26269 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26270 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26271 gcc_cv_libc_provides_ssp
=yes
26276 # Avoid complicated tests (see
26277 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26278 # simply assert that glibc does provide this, which is true for all
26279 # realistically usable GNU/Hurd configurations.
26280 gcc_cv_libc_provides_ssp
=yes;;
26281 *-*-darwin* |
*-*-freebsd*)
26282 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26283 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26284 gcc_cv_libc_provides_ssp
=yes
26286 echo "no __stack_chk_fail on this target"
26290 *) gcc_cv_libc_provides_ssp
=no
;;
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26294 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26296 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26298 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26302 # Test for <sys/sdt.h> on the target.
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26305 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26307 if test -f $target_header_dir/sys
/sdt.h
; then
26309 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26313 $as_echo "$have_sys_sdt_h" >&6; }
26315 # Check if TFmode long double should be used by default or not.
26316 # Some glibc targets used DFmode long double, but with glibc 2.4
26317 # and later they can use TFmode.
26319 powerpc
*-*-linux* | \
26320 sparc
*-*-linux* | \
26324 # Check whether --with-long-double-128 was given.
26325 if test "${with_long_double_128+set}" = set; then :
26326 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26328 gcc_cv_target_ldbl128
=no
26329 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26330 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26331 && gcc_cv_target_ldbl128
=yes
26337 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26339 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26344 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26345 gcc_cv_target_dl_iterate_phdr
=unknown
26348 # <link.h> needs both a dl_iterate_phdr declaration and support for
26349 # compilation with largefile support.
26350 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26351 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26352 gcc_cv_target_dl_iterate_phdr
=yes
26354 gcc_cv_target_dl_iterate_phdr
=no
26359 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26361 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26365 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26367 # Find out what GC implementation we want, or may, use.
26369 # Check whether --with-gc was given.
26370 if test "${with_gc+set}" = set; then :
26371 withval
=$with_gc; case "$withval" in
26378 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26382 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26390 echo "Using $GGC for garbage collection."
26392 # Libraries to use on the host. This will normally be set by the top
26393 # level Makefile. Here we simply capture the value for our Makefile.
26394 if test -z "${HOST_LIBS+set}"; then
26399 # Use the system's zlib library.
26401 zlibinc
="-I\$(srcdir)/../zlib"
26403 # Check whether --with-system-zlib was given.
26404 if test "${with_system_zlib+set}" = set; then :
26405 withval
=$with_system_zlib; zlibdir
=
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26415 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26416 # Check whether --enable-maintainer-mode was given.
26417 if test "${enable_maintainer_mode+set}" = set; then :
26418 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26425 $as_echo "$maintainer_mode" >&6; }
26427 if test "$maintainer_mode" = "yes"; then
26437 # Make empty files to contain the specs and options for each language.
26438 # Then add #include lines to for a compiler that has specs and/or options.
26444 # These (without "all_") are set in each config-lang.in.
26445 # `language' must be a single word so is spelled singularly.
26448 all_outputs
='Makefile'
26449 # List of language makefile fragments.
26450 all_lang_makefrags
=
26451 # Additional files for gengtype
26452 all_gtfiles
="$target_gtfiles"
26454 # These are the languages that are set in --enable-languages,
26455 # and are available in the GCC tree.
26456 all_selected_languages
=
26458 # Add the language fragments.
26459 # Languages are added via two mechanisms. Some information must be
26460 # recorded in makefile variables, these are defined in config-lang.in.
26461 # We accumulate them and plug them into the main Makefile.
26462 # The other mechanism is a set of hooks for each of the main targets
26463 # like `clean', `install', etc.
26465 language_hooks
="Make-hooks"
26467 for lang
in ${srcdir}/*/config-lang.
in
26469 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26471 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26472 if test "x$lang_alias" = x
26474 echo "$lang doesn't set \$language." 1>&2
26477 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26478 subdirs
="$subdirs $subdir"
26480 # $gcc_subdir is where the gcc integration files are to be found
26481 # for a language, both for internal compiler purposes (compiler
26482 # sources implementing front-end to GCC tree converters), and for
26483 # build infrastructure purposes (Make-lang.in, etc.)
26485 # This will be <subdir> (relative to $srcdir) if a line like
26486 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26487 # is found in <langdir>/config-lang.in, and will remain <langdir>
26490 # Except for the language alias (fetched above), the regular
26491 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26492 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26493 # only this and the language alias.
26495 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26496 if [ "$gcc_subdir" = "" ]; then
26497 gcc_subdir
="$subdir"
26500 case ",$enable_languages," in
26502 all_selected_languages
="$all_selected_languages $lang_alias"
26503 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26504 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26515 .
${srcdir}/$gcc_subdir/config-lang.
in
26516 if test "x$language" = x
26518 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26523 case ",$enable_languages," in
26524 *,$lang_alias,*) ;;
26526 for i
in $subdir_requires; do
26527 test -f "${srcdir}/$i/config-lang.in" && continue
26535 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26536 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26537 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26538 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26540 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26541 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26543 all_languages
="$all_languages $language"
26544 all_compilers
="$all_compilers $compilers"
26545 all_outputs
="$all_outputs $outputs"
26546 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26547 case ",$enable_languages," in
26550 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26559 # Pick up gtfiles for c
26561 .
${srcdir}/c-config-lang.
in
26562 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26565 for language
in $all_selected_languages
26567 check_languages
="$check_languages check-$language"
26570 # We link each language in with a set of hooks, reached indirectly via
26571 # lang.${target}. Only do so for selected languages.
26575 target_list
="all.cross start.encap rest.encap tags \
26576 install-common install-man install-info install-pdf install-html dvi \
26577 pdf html uninstall info man srcextra srcman srcinfo \
26578 mostlyclean clean distclean maintainer-clean install-plugin"
26580 for t
in $target_list
26583 for lang
in $all_selected_languages
26587 echo "lang.$t: $x" >> Make-hooks
26591 # Option include files
26594 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26595 option_includes
="option-includes.mk"
26604 echo "dir ." > .gdbinit
26605 echo "dir ${srcdir}" >> .gdbinit
26606 if test x
$gdb_needs_out_file_path = xyes
26608 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26610 if test "x$subdirs" != x
; then
26613 echo "dir ${srcdir}/$s" >> .gdbinit
26616 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26618 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26622 # Find a directory in which to install a shared libgcc.
26624 # Check whether --enable-version-specific-runtime-libs was given.
26625 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26626 enableval
=$enable_version_specific_runtime_libs;
26631 # Check whether --with-slibdir was given.
26632 if test "${with_slibdir+set}" = set; then :
26633 withval
=$with_slibdir; slibdir
="$with_slibdir"
26635 if test "${enable_version_specific_runtime_libs+set}" = set; then
26636 slibdir
='$(libsubdir)'
26637 elif test "$host" != "$target"; then
26638 slibdir
='$(build_tooldir)/lib'
26640 slibdir
='$(libdir)'
26646 # Substitute configuration variables
26714 if test x
${build} = x
${host} ; then
26715 if test x
${host} = x
${target} ; then
26716 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26718 echo "Links are now set up to build a cross-compiler" 1>&2
26719 echo " from ${host} to ${target}." 1>&2
26722 if test x
${host} = x
${target} ; then
26723 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26724 echo " for ${target}." 1>&2
26726 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26727 echo " from ${host} to ${target}." 1>&2
26739 if test "x${CLOOGLIBS}" != "x" ; then
26741 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26745 # Check for plugin support
26746 # Check whether --enable-plugin was given.
26747 if test "${enable_plugin+set}" = set; then :
26748 enableval
=$enable_plugin; enable_plugin
=$enableval
26750 enable_plugin
=yes; default_plugin
=yes
26758 if test x
$build = x
$host; then
26759 export_sym_check
="nm${exeext} -g"
26760 elif test x
$host = x
$target; then
26761 export_sym_check
="$gcc_cv_nm -g"
26767 if test x
$build = x
$host; then
26768 export_sym_check
="objdump${exeext} -T"
26769 elif test x
$host = x
$target; then
26770 export_sym_check
="$gcc_cv_objdump -T"
26777 if test x
"$enable_plugin" = x
"yes"; then
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26780 $as_echo_n "checking for exported symbols... " >&6; }
26781 if test "x$export_sym_check" != x
; then
26782 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26783 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26784 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26785 : # No need to use a flag
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26787 $as_echo "yes" >&6; }
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26790 $as_echo "yes" >&6; }
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26792 $as_echo_n "checking for -rdynamic... " >&6; }
26793 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26794 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26795 plugin_rdynamic
=yes
26796 pluginlibs
="-rdynamic"
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26802 $as_echo "$plugin_rdynamic" >&6; }
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26806 $as_echo "unable to check" >&6; }
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26812 $as_echo_n "checking for library containing dlopen... " >&6; }
26813 if test "${ac_cv_search_dlopen+set}" = set; then :
26814 $as_echo_n "(cached) " >&6
26816 ac_func_search_save_LIBS
=$LIBS
26817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26818 /* end confdefs.h. */
26820 /* Override any GCC internal prototype to avoid an error.
26821 Use char because int might match the return type of a GCC
26822 builtin and then its argument prototype would still apply. */
26835 for ac_lib
in '' dl
; do
26836 if test -z "$ac_lib"; then
26837 ac_res
="none required"
26840 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26842 if ac_fn_c_try_link
"$LINENO"; then :
26843 ac_cv_search_dlopen
=$ac_res
26845 rm -f core conftest.err conftest.
$ac_objext \
26847 if test "${ac_cv_search_dlopen+set}" = set; then :
26851 if test "${ac_cv_search_dlopen+set}" = set; then :
26854 ac_cv_search_dlopen
=no
26856 rm conftest.
$ac_ext
26857 LIBS
=$ac_func_search_save_LIBS
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26860 $as_echo "$ac_cv_search_dlopen" >&6; }
26861 ac_res
=$ac_cv_search_dlopen
26862 if test "$ac_res" != no
; then :
26863 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26867 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
26868 pluginlibs
="$pluginlibs -ldl"
26872 # Check that we can build shared objects with -fPIC -shared
26873 saved_LDFLAGS
="$LDFLAGS"
26874 saved_CFLAGS
="$CFLAGS"
26877 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26878 CFLAGS
="$CFLAGS -fPIC"
26879 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
26882 CFLAGS
="$CFLAGS -fPIC"
26883 LDFLAGS
="$LDFLAGS -fPIC -shared"
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26887 $as_echo_n "checking for -fPIC -shared... " >&6; }
26888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26889 /* end confdefs.h. */
26899 if ac_fn_c_try_link
"$LINENO"; then :
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26901 $as_echo "yes" >&6; }; have_pic_shared
=yes
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26904 $as_echo "no" >&6; }; have_pic_shared
=no
26906 rm -f core conftest.err conftest.
$ac_objext \
26907 conftest
$ac_exeext conftest.
$ac_ext
26908 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
26912 LDFLAGS
="$saved_LDFLAGS"
26913 CFLAGS
="$saved_CFLAGS"
26915 # If plugin support had been requested but not available, fail.
26916 if test x
"$enable_plugin" = x
"no" ; then
26917 if test x
"$default_plugin" != x
"yes"; then
26919 Building GCC with plugin support requires a host that supports
26920 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26927 if test x
"$enable_plugin" = x
"yes"; then
26929 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26934 # Check whether --enable-libquadmath-support was given.
26935 if test "${enable_libquadmath_support+set}" = set; then :
26936 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
26938 ENABLE_LIBQUADMATH_SUPPORT
=yes
26941 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26943 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26948 # Specify what hash style to use by default.
26950 # Check whether --with-linker-hash-style was given.
26951 if test "${with_linker_hash_style+set}" = set; then :
26952 withval
=$with_linker_hash_style; case x
"$withval" in
26954 LINKER_HASH_STYLE
=sysv
26957 LINKER_HASH_STYLE
=gnu
26960 LINKER_HASH_STYLE
=both
26963 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26967 LINKER_HASH_STYLE
=''
26970 if test x
"${LINKER_HASH_STYLE}" != x
; then
26972 cat >>confdefs.h
<<_ACEOF
26973 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26978 # Configure the subdirectories
26979 # AC_CONFIG_SUBDIRS($subdirs)
26981 # Create the Makefile
26982 # and configure language subdirectories
26983 ac_config_files
="$ac_config_files $all_outputs"
26986 ac_config_commands
="$ac_config_commands default"
26988 cat >confcache
<<\_ACEOF
26989 # This file is a shell script that caches the results of configure
26990 # tests run on this system so they can be shared between configure
26991 # scripts and configure runs, see configure's option --config-cache.
26992 # It is not useful on other systems. If it contains results you don't
26993 # want to keep, you may remove or edit it.
26995 # config.status only pays attention to the cache file if you give it
26996 # the --recheck option to rerun configure.
26998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27000 # following values.
27004 # The following way of writing the cache mishandles newlines in values,
27005 # but we know of no workaround that is simple, portable, and efficient.
27006 # So, we kill variables containing newlines.
27007 # Ultrix sh set writes to stderr and can't be redirected directly,
27008 # and sets the high bit in the cache file unless we assign to the vars.
27010 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27011 eval ac_val
=\$
$ac_var
27015 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27019 _ | IFS | as_nl
) ;; #(
27020 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27021 *) { eval $ac_var=; unset $ac_var;} ;;
27027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27028 *${as_nl}ac_space
=\
*)
27029 # `set' does not quote correctly, so add quotes: double-quote
27030 # substitution turns \\\\ into \\, and sed turns \\ into \.
27033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27036 # `set' quotes correctly as required by POSIX, so do not add quotes.
27037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27050 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27051 if test -w "$cache_file"; then
27052 test "x$cache_file" != "x/dev/null" &&
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27054 $as_echo "$as_me: updating cache $cache_file" >&6;}
27055 cat confcache
>$cache_file
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27058 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27063 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27064 # Let make expand exec_prefix.
27065 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27067 DEFS
=-DHAVE_CONFIG_H
27071 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27072 # 1. Remove the extension, and $U if already installed.
27073 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27074 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27076 # will be set to the directory where LIBOBJS objects are built.
27077 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27078 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27080 LIBOBJS
=$ac_libobjs
27082 LTLIBOBJS
=$ac_ltlibobjs
27087 : ${CONFIG_STATUS=./config.status}
27089 ac_clean_files_save
=$ac_clean_files
27090 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27096 # Generated by $as_me.
27097 # Run this file to recreate the current configuration.
27098 # Compiler output produced by configure, useful for debugging
27099 # configure, is in config.log if it exists.
27102 ac_cs_recheck=false
27105 SHELL=\${CONFIG_SHELL-$SHELL}
27108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27109 ## -------------------- ##
27110 ## M4sh Initialization. ##
27111 ## -------------------- ##
27113 # Be more Bourne compatible
27114 DUALCASE
=1; export DUALCASE
# for MKS sh
27115 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27119 # is contrary to our usage. Disable this feature.
27120 alias -g '${1+"$@"}'='"$@"'
27121 setopt NO_GLOB_SUBST
27123 case `(set -o) 2>/dev/null` in #(
27135 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27136 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27139 # Prefer a ksh shell builtin over an external printf program on Solaris,
27140 # but without wasting forks for bash or zsh.
27141 if test -z "$BASH_VERSION$ZSH_VERSION" \
27142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27143 as_echo='print
-r --'
27144 as_echo_n='print
-rn --'
27145 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27146 as_echo='printf %s
\n'
27147 as_echo_n='printf %s
'
27149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27150 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27151 as_echo_n='/usr
/ucb
/echo -n'
27153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27154 as_echo_n_body='eval
27158 expr "X$arg" : "X\\(.*\\)$as_nl";
27159 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27161 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27163 export as_echo_n_body
27164 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27166 export as_echo_body
27167 as_echo='sh
-c $as_echo_body as_echo
'
27170 # The user is always right.
27171 if test "${PATH_SEPARATOR+set}" != set; then
27173 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27174 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27181 # We need space, tab and new line, in precisely that order. Quoting is
27182 # there to prevent editors from complaining about space-tab.
27183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27184 # splitting by setting IFS to empty value.)
27187 # Find who we are. Look in the path if we contain no directory separator.
27189 *[\\/]* ) as_myself=$0 ;;
27190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27191 for as_dir in $PATH
27194 test -z "$as_dir" && as_dir=.
27195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27201 # We did not find ourselves, most probably we were run as `sh COMMAND'
27202 # in which case we are not to be found in the path.
27203 if test "x$as_myself" = x
; then
27206 if test ! -f "$as_myself"; then
27207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27211 # Unset variables that we do not need and which cause bugs (e.g. in
27212 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27213 # suppresses any "Segmentation fault" message there. '((' could
27214 # trigger a bug in pdksh 5.2.14.
27215 for as_var
in BASH_ENV ENV MAIL MAILPATH
27216 do eval test x\
${$as_var+set} = xset \
27217 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27230 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27233 # as_fn_error ERROR [LINENO LOG_FD]
27234 # ---------------------------------
27235 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27236 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27237 # script with status $?, using 1 if that was 0.
27240 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27242 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27245 $as_echo "$as_me: error: $1" >&2
27246 as_fn_exit
$as_status
27250 # as_fn_set_status STATUS
27251 # -----------------------
27252 # Set $? to STATUS, without forking.
27253 as_fn_set_status
()
27256 } # as_fn_set_status
27258 # as_fn_exit STATUS
27259 # -----------------
27260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27264 as_fn_set_status
$1
27270 # Portably unset VAR.
27273 { eval $1=; unset $1;}
27275 as_unset
=as_fn_unset
27276 # as_fn_append VAR VALUE
27277 # ----------------------
27278 # Append the text in VALUE to the end of the definition contained in VAR. Take
27279 # advantage of any shell optimizations that allow amortized linear growth over
27280 # repeated appends, instead of the typical quadratic growth present in naive
27282 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27283 eval 'as_fn_append ()
27294 # as_fn_arith ARG...
27295 # ------------------
27296 # Perform arithmetic evaluation on the ARGs, and store the result in the
27297 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27298 # must be portable across $(()) and expr.
27299 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27300 eval 'as_fn_arith ()
27307 as_val
=`expr "$@" || test $? -eq 1`
27312 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27313 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27319 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27320 as_basename
=basename
27325 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27331 as_me
=`$as_basename -- "$0" ||
27332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27333 X"$0" : 'X\(//\)$' \| \
27334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27336 sed '/^.*\/\([^/][^/]*\)\/*$/{
27350 # Avoid depending upon Character Ranges.
27351 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27352 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27353 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27354 as_cr_digits
='0123456789'
27355 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27357 ECHO_C
= ECHO_N
= ECHO_T
=
27358 case `echo -n x` in #(((((
27360 case `echo 'xy\c'` in
27361 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27363 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27370 rm -f conf$$ conf$$.exe conf$$.
file
27371 if test -d conf$$.dir
; then
27372 rm -f conf$$.dir
/conf$$.
file
27375 mkdir conf$$.dir
2>/dev
/null
27377 if (echo >conf$$.
file) 2>/dev
/null
; then
27378 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27380 # ... but there are two gotchas:
27381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27383 # In both cases, we have to default to `cp -p'.
27384 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27386 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27394 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27395 rmdir conf$$.dir
2>/dev
/null
27400 # Create "$as_dir" as a directory, including parents if necessary.
27405 -*) as_dir
=.
/$as_dir;;
27407 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27411 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27412 *) as_qdir
=$as_dir;;
27414 as_dirs
="'$as_qdir' $as_dirs"
27415 as_dir
=`$as_dirname -- "$as_dir" ||
27416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27417 X"$as_dir" : 'X\(//\)[^/]' \| \
27418 X"$as_dir" : 'X\(//\)$' \| \
27419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27420 $as_echo X"$as_dir" |
27421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27425 /^X\(\/\/\)[^/].*/{
27438 test -d "$as_dir" && break
27440 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27441 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27445 if mkdir
-p .
2>/dev
/null
; then
27446 as_mkdir_p
='mkdir -p "$as_dir"'
27448 test -d .
/-p && rmdir .
/-p
27452 if test -x / >/dev
/null
2>&1; then
27453 as_test_x
='test -x'
27455 if ls -dL / >/dev
/null
2>&1; then
27462 if test -d "$1"; then
27468 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27469 ???[sx]*):;;*)false;;esac;fi
27473 as_executable_p
=$as_test_x
27475 # Sed expression to map a string onto a valid CPP name.
27476 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27478 # Sed expression to map a string onto a valid variable name.
27479 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27483 ## ----------------------------------- ##
27484 ## Main body of $CONFIG_STATUS script. ##
27485 ## ----------------------------------- ##
27487 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27490 # Save the log message, to keep $0 and so on meaningful, and to
27491 # report actual input values of CONFIG_FILES etc. instead of their
27492 # values after options handling.
27494 This file was extended by $as_me, which was
27495 generated by GNU Autoconf 2.64. Invocation command line was
27497 CONFIG_FILES = $CONFIG_FILES
27498 CONFIG_HEADERS = $CONFIG_HEADERS
27499 CONFIG_LINKS = $CONFIG_LINKS
27500 CONFIG_COMMANDS = $CONFIG_COMMANDS
27503 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27508 case $ac_config_files in *"
27509 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27512 case $ac_config_headers in *"
27513 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27518 # Files that config.status was made for.
27519 config_files="$ac_config_files"
27520 config_headers="$ac_config_headers"
27521 config_commands="$ac_config_commands"
27525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27527 \`$as_me' instantiates files and other configuration actions
27528 from templates according to the current configuration. Unless the files
27529 and actions are specified as TAGs, all are instantiated by default.
27531 Usage: $0 [OPTION]... [TAG]...
27533 -h, --help print this help, then exit
27534 -V, --version print version number and configuration settings, then exit
27535 -q, --quiet, --silent
27536 do not print progress messages
27537 -d, --debug don't remove temporary files
27538 --recheck update $as_me by reconfiguring in the same conditions
27539 --file=FILE[:TEMPLATE]
27540 instantiate the configuration file FILE
27541 --header=FILE[:TEMPLATE]
27542 instantiate the configuration header FILE
27544 Configuration files:
27547 Configuration headers:
27550 Configuration commands:
27553 Report bugs to the package provider."
27556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27559 configured by $0, generated by GNU Autoconf 2.64,
27560 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27562 Copyright (C) 2009 Free Software Foundation, Inc.
27563 This config.status script is free software; the Free Software Foundation
27564 gives unlimited permission to copy, distribute and modify it."
27569 test -n "\$AWK" || AWK=awk
27572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27573 # The default lists apply if the user does not specify any file.
27579 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27580 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27591 # Handling of the options.
27592 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27594 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27595 $as_echo "$ac_cs_version"; exit ;;
27596 --debug |
--debu |
--deb |
--de |
--d |
-d )
27598 --file |
--fil |
--fi |
--f )
27601 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27603 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27604 ac_need_defaults
=false
;;
27605 --header |
--heade |
--head |
--hea )
27608 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27610 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27611 ac_need_defaults
=false
;;
27613 # Conflict between --help and --header
27614 as_fn_error
"ambiguous option: \`$1'
27615 Try \`$0 --help' for more information.";;
27616 --help |
--hel |
-h )
27617 $as_echo "$ac_cs_usage"; exit ;;
27618 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27619 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27622 # This is an error.
27623 -*) as_fn_error
"unrecognized option: \`$1'
27624 Try \`$0 --help' for more information." ;;
27626 *) as_fn_append ac_config_targets
" $1"
27627 ac_need_defaults
=false
;;
27633 ac_configure_extra_args
=
27635 if $ac_cs_silent; then
27637 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27642 if \$ac_cs_recheck; then
27643 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27646 CONFIG_SHELL='$SHELL'
27647 export CONFIG_SHELL
27652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27657 ## Running $as_me. ##
27663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27673 # Handling of arguments.
27674 for ac_config_target
in $ac_config_targets
27676 case $ac_config_target in
27677 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27678 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27679 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27680 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27681 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27682 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27684 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27689 # If the user did not use the arguments to specify the items to instantiate,
27690 # then the envvar interface is used. Set only those that are not.
27691 # We use the long form for the default assignment because of an extremely
27692 # bizarre bug on SunOS 4.1.3.
27693 if $ac_need_defaults; then
27694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27699 # Have a temporary directory for convenience. Make it in the build tree
27700 # simply because there is no reason against having it here, and in addition,
27701 # creating and moving files from /tmp can sometimes cause problems.
27702 # Hook for its removal unless debugging.
27703 # Note that there is a small window in which the directory will not be cleaned:
27704 # after its creation but before its name has been assigned to `$tmp'.
27708 trap 'exit_status=$?
27709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27711 trap 'as_fn_exit 1' 1 2 13 15
27713 # Create a (secure) tmp directory for tmp files.
27716 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27717 test -n "$tmp" && test -d "$tmp"
27720 tmp
=.
/conf$$
-$RANDOM
27721 (umask 077 && mkdir
"$tmp")
27722 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27724 # Set up the scripts for CONFIG_FILES section.
27725 # No need to generate them if there are no CONFIG_FILES.
27726 # This happens for instance with `./config.status config.h'.
27727 if test -n "$CONFIG_FILES"; then
27729 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27730 ac_cs_awk_getline
=:
27731 ac_cs_awk_pipe_init
=
27732 ac_cs_awk_read_file
='
27733 while ((getline aline < (F[key])) > 0)
27736 ac_cs_awk_pipe_fini
=
27738 ac_cs_awk_getline
=false
27739 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27740 ac_cs_awk_read_file
='
27742 print "cat " F[key] " &&"
27743 '$ac_cs_awk_pipe_init
27744 # The final `:' finishes the AND list.
27745 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27747 ac_cr
=`echo X | tr X '\015'`
27748 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27749 # But we know of no other shell where ac_cr would be empty at this
27750 # point, so we can use a bashism as a fallback.
27751 if test "x$ac_cr" = x
; then
27752 eval ac_cr
=\$
\'\\r
\'
27754 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27755 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27758 ac_cs_awk_cr
=$ac_cr
27761 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27764 # Create commands to substitute file output variables.
27766 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27767 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27768 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27771 } >conf$
$files.sh
&&
27772 . .
/conf$
$files.sh ||
27773 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27774 rm -f conf$
$files.sh
27777 echo "cat >conf$$subs.awk <<_ACEOF" &&
27778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27780 } >conf$$subs.sh ||
27781 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27784 for ac_last_try in false false false false false :; do
27785 . ./conf$$subs.sh ||
27786 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27788 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27789 if test $ac_delim_n = $ac_delim_num; then
27791 elif $ac_last_try; then
27792 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27794 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27797 rm -f conf$$subs.sh
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27804 s/^/S["/; s
/!.
*/"]=/
27814 s/\(.\{148\}\).*/\1/
27816 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27821 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27828 s/\(.\{148\}\).*/\1/
27830 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27834 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27839 ' <conf$$subs.awk | sed '
27844 ' >>$CONFIG_STATUS || ac_write_fail=1
27845 rm -f conf$$subs.awk
27846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27848 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27849 for (key in S) S_is_set[key] = 1
27851 \$ac_cs_awk_pipe_init
27855 nfields = split(line, field, "@
")
27857 len = length(field[1])
27858 for (i = 2; i < nfields; i++) {
27860 keylen = length(key)
27861 if (S_is_set[key]) {
27863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27864 len += length(value) + length(field[++i])
27869 if (nfields == 3 && !substed) {
27871 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27872 \$ac_cs_awk_read_file
27878 \$ac_cs_awk_pipe_fini
27881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27882 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27883 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27886 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27887 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27890 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27891 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27892 # trailing colons and then remove the whole line if VPATH becomes empty
27893 # (actually we leave an empty line to preserve line numbers).
27894 if test "x
$srcdir" = x.; then
27895 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27896 s/:*\$(srcdir):*/:/
27897 s/:*\${srcdir}:*/:/
27899 s/^\([^=]*=[ ]*\):*/\1/
27905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27906 fi # test -n "$CONFIG_FILES"
27908 # Set up the scripts for CONFIG_HEADERS section.
27909 # No need to generate them if there are no CONFIG_HEADERS.
27910 # This happens for instance with `./config.status Makefile'.
27911 if test -n "$CONFIG_HEADERS"; then
27912 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27916 # Transform confdefs.h into an awk script `defines.awk', embedded as
27917 # here-document in config.status, that substitutes the proper values into
27918 # config.h.in to produce config.h.
27920 # Create a delimiter string that does not exist in confdefs.h, to ease
27921 # handling of long lines.
27923 for ac_last_try in false false :; do
27924 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27925 if test -z "$ac_t"; then
27927 elif $ac_last_try; then
27928 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
27930 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27934 # For the awk script, D is an array of macro values keyed by name,
27935 # likewise P contains macro parameters if any. Preserve backslash
27936 # newline sequences.
27938 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27940 s/.\{148\}/&'"$ac_delim"'/g
27943 s/^[ ]*#[ ]*define[ ][ ]*/ /
27950 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27952 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27956 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27957 D["\
1"]=" \
3\\\\\\n
"\\/p
27959 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27964 s/.\{148\}/&'"$ac_delim"'/g
27969 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27972 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27974 ' <confdefs.h | sed '
27975 s/'"$ac_delim"'/"\\\
27976 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27979 for (key in D) D_is_set[key] = 1
27982 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27984 split(line, arg, " ")
27985 if (arg[1] == "#") {
27989 defundef
= substr
(arg
[1], 2)
27992 split(mac1
, mac2
, "(") #)
27994 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27995 if (D_is_set
[macro
]) {
27996 # Preserve the white space surrounding the "#".
27997 print prefix
"define", macro P
[macro
] D
[macro
]
28000 # Replace #undef with comments. This is necessary, for example,
28001 # in the case of _POSIX_SOURCE, which is predefined and required
28002 # on some systems where configure will not decide to define it.
28003 if (defundef
== "undef") {
28004 print
"/*", prefix defundef
, macro
, "*/"
28012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28013 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28014 fi # test -n "$CONFIG_HEADERS"
28017 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28022 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28024 case $ac_mode$ac_tag in
28026 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28027 :[FH
]-) ac_tag
=-:-;;
28028 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28045 -) ac_f
="$tmp/stdin";;
28046 *) # Look for the file first in the build tree, then in the source tree
28047 # (if the path is not absolute). The absolute path cannot be DOS-style,
28048 # because $ac_f cannot contain `:'.
28052 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28054 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28056 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28057 as_fn_append ac_file_inputs
" '$ac_f'"
28060 # Let's still pretend it is `configure' which instantiates (i.e., don't
28061 # use $as_me), people would be surprised to read:
28062 # /* config.h. Generated by config.status. */
28063 configure_input
='Generated from '`
28064 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28066 if test x
"$ac_file" != x-
; then
28067 configure_input
="$ac_file. $configure_input"
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28069 $as_echo "$as_me: creating $ac_file" >&6;}
28071 # Neutralize special characters interpreted by sed in replacement strings.
28072 case $configure_input in #(
28073 *\
&* |
*\|
* |
*\\* )
28074 ac_sed_conf_input
=`$as_echo "$configure_input" |
28075 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28076 *) ac_sed_conf_input
=$configure_input;;
28080 *:-:* |
*:-) cat >"$tmp/stdin" \
28081 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28086 ac_dir
=`$as_dirname -- "$ac_file" ||
28087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28088 X"$ac_file" : 'X\(//\)[^/]' \| \
28089 X"$ac_file" : 'X\(//\)$' \| \
28090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28091 $as_echo X"$ac_file" |
28092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28096 /^X\(\/\/\)[^/].*/{
28109 as_dir
="$ac_dir"; as_fn_mkdir_p
28113 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28115 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28116 # A ".." for each directory in $ac_dir_suffix.
28117 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28118 case $ac_top_builddir_sub in
28119 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28120 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28123 ac_abs_top_builddir
=$ac_pwd
28124 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28125 # for backward compatibility:
28126 ac_top_builddir
=$ac_top_build_prefix
28129 .
) # We are building in place.
28131 ac_top_srcdir
=$ac_top_builddir_sub
28132 ac_abs_top_srcdir
=$ac_pwd ;;
28133 [\\/]* | ?
:[\\/]* ) # Absolute name.
28134 ac_srcdir
=$srcdir$ac_dir_suffix;
28135 ac_top_srcdir
=$srcdir
28136 ac_abs_top_srcdir
=$srcdir ;;
28137 *) # Relative name.
28138 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28139 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28140 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28142 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28154 # If the template does not know about datarootdir, expand it.
28155 # FIXME: This hack should be removed a few years after 2.60.
28156 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28167 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28168 *datarootdir
*) ac_datarootdir_seen
=yes;;
28169 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28171 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28174 ac_datarootdir_hack='
28175 s&@datadir@&$datadir&g
28176 s&@docdir@&$docdir&g
28177 s&@infodir@&$infodir&g
28178 s&@localedir@&$localedir&g
28179 s&@mandir@&$mandir&g
28180 s&\\\${datarootdir}&$datarootdir&g' ;;
28184 # Neutralize VPATH when `$srcdir' = `.'.
28185 # Shell code in configure.ac might set extrasub.
28186 # FIXME: do we really want to maintain this feature?
28187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28188 ac_sed_extra="$ac_vpsub
28191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28193 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28194 s|@configure_input@|
$ac_sed_conf_input|
;t t
28195 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28196 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28197 s
&@srcdir@
&$ac_srcdir&;t t
28198 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28199 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28200 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28201 s
&@builddir@
&$ac_builddir&;t t
28202 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28203 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28204 $ac_datarootdir_hack
28206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28207 if $ac_cs_awk_getline; then
28208 $AWK -f "$tmp/subs.
awk"
28210 $AWK -f "$tmp/subs.
awk" | $SHELL
28212 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28218 which seems to be undefined. Please make sure it is defined." >&5
28219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28220 which seems to be undefined. Please make sure it is defined." >&2;}
28224 -) cat "$tmp/out" && rm -f "$tmp/out";;
28225 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28227 || as_fn_error "could not create $ac_file" "$LINENO" 5
28233 if test x"$ac_file" != x-; then
28235 $as_echo "/* $configure_input */" \
28236 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28237 } >"$tmp/config.h" \
28238 || as_fn_error "could not create $ac_file" "$LINENO" 5
28239 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28244 mv "$tmp/config.h" "$ac_file" \
28245 || as_fn_error "could not create $ac_file" "$LINENO" 5
28248 $as_echo "/* $configure_input */" \
28249 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28250 || as_fn_error "could not create -" "$LINENO" 5
28254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28255 $as_echo "$as_me: executing $ac_file commands" >&6;}
28260 case $ac_file$ac_mode in
28261 "as":F) chmod +x as ;;
28262 "collect-ld":F) chmod +x collect-ld ;;
28263 "nm":F) chmod +x nm ;;
28265 case ${CONFIG_HEADERS} in
28266 *auto-host.h:config.in*)
28269 # Make sure all the subdirs exist.
28270 for d in $subdirs doc build common c-family
28272 test -d $d || mkdir $d
28282 ac_clean_files=$ac_clean_files_save
28284 test $ac_write_fail = 0 ||
28285 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28288 # configure is writing to config.log, and then calls config.status.
28289 # config.status does its own redirection, appending to config.log.
28290 # Unfortunately, on DOS this fails, as config.log is still kept open
28291 # by configure, so config.status won't be able to
write to it
; its
28292 # output is simply discarded. So we exec the FD to /dev/null,
28293 # effectively closing config.log, so it can be properly (re)opened and
28294 # appended to by config.status. When coming back to configure, we
28295 # need to make the FD available again.
28296 if test "$no_create" != yes; then
28298 ac_config_status_args
=
28299 test "$silent" = yes &&
28300 ac_config_status_args
="$ac_config_status_args --quiet"
28302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28305 # would make configure fail if this is the last instruction.
28306 $ac_cs_success || as_fn_exit $?
28308 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28310 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}