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
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
766 ENABLE_BUILD_WITH_CXX
769 valgrind_path_defines
841 program_transform_name
852 ac_subst_files
='language_hooks'
854 enable_option_checking
859 enable_generated_files_in_srcdir
869 enable_gather_detailed_mem_stats
870 enable_build_with_cxx
890 enable_initfini_array
891 enable_sjlj_exceptions
892 with_system_libunwind
894 enable_leading_mingw64_underscores
897 enable_win32_registry
903 enable_gnu_indirect_function
905 enable_gnu_unique_object
906 enable_linker_build_id
910 enable_maintainer_mode
911 enable_version_specific_runtime_libs
915 ac_precious_vars
='build_alias
936 # Initialize some variables set by options.
938 ac_init_version
=false
939 ac_unrecognized_opts
=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
950 program_transform_name
=s
,x
,x
,
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir
='${exec_prefix}/bin'
965 sbindir
='${exec_prefix}/sbin'
966 libexecdir
='${exec_prefix}/libexec'
967 datarootdir
='${prefix}/share'
968 datadir
='${datarootdir}'
969 sysconfdir
='${prefix}/etc'
970 sharedstatedir
='${prefix}/com'
971 localstatedir
='${prefix}/var'
972 includedir
='${prefix}/include'
973 oldincludedir
='/usr/include'
974 docdir
='${datarootdir}/doc/${PACKAGE}'
975 infodir
='${datarootdir}/info'
980 libdir
='${exec_prefix}/lib'
981 localedir
='${datarootdir}/locale'
982 mandir
='${datarootdir}/man'
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\
$ac_option
996 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1006 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1008 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1009 bindir
=$ac_optarg ;;
1011 -build |
--build |
--buil |
--bui |
--bu)
1012 ac_prev
=build_alias
;;
1013 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1014 build_alias
=$ac_optarg ;;
1016 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1017 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1018 ac_prev
=cache_file
;;
1019 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1020 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1021 cache_file
=$ac_optarg ;;
1023 --config-cache |
-C)
1024 cache_file
=config.cache
;;
1026 -datadir |
--datadir |
--datadi |
--datad)
1028 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1029 datadir
=$ac_optarg ;;
1031 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1032 |
--dataroo |
--dataro |
--datar)
1033 ac_prev
=datarootdir
;;
1034 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1035 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1036 datarootdir
=$ac_optarg ;;
1038 -disable-* |
--disable-*)
1039 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1042 as_fn_error
"invalid feature name: $ac_useropt"
1043 ac_useropt_orig
=$ac_useropt
1044 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_
$ac_useropt"
1049 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep
=', ';;
1052 eval enable_
$ac_useropt=no
;;
1054 -docdir |
--docdir |
--docdi |
--doc |
--do)
1056 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1057 docdir
=$ac_optarg ;;
1059 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1061 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1062 dvidir
=$ac_optarg ;;
1064 -enable-* |
--enable-*)
1065 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1068 as_fn_error
"invalid feature name: $ac_useropt"
1069 ac_useropt_orig
=$ac_useropt
1070 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_
$ac_useropt"
1075 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep
=', ';;
1078 eval enable_
$ac_useropt=\
$ac_optarg ;;
1080 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1081 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1082 |
--exec |
--exe |
--ex)
1083 ac_prev
=exec_prefix
;;
1084 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1085 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1086 |
--exec=* |
--exe=* |
--ex=*)
1087 exec_prefix
=$ac_optarg ;;
1089 -gas |
--gas |
--ga |
--g)
1090 # Obsolete; use --with-gas.
1093 -help |
--help |
--hel |
--he |
-h)
1094 ac_init_help
=long
;;
1095 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1096 ac_init_help
=recursive
;;
1097 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1098 ac_init_help
=short
;;
1100 -host |
--host |
--hos |
--ho)
1101 ac_prev
=host_alias
;;
1102 -host=* |
--host=* |
--hos=* |
--ho=*)
1103 host_alias
=$ac_optarg ;;
1105 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1107 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1109 htmldir
=$ac_optarg ;;
1111 -includedir |
--includedir |
--includedi |
--included |
--include \
1112 |
--includ |
--inclu |
--incl |
--inc)
1113 ac_prev
=includedir
;;
1114 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1115 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1116 includedir
=$ac_optarg ;;
1118 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1120 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1121 infodir
=$ac_optarg ;;
1123 -libdir |
--libdir |
--libdi |
--libd)
1125 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1126 libdir
=$ac_optarg ;;
1128 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1129 |
--libexe |
--libex |
--libe)
1130 ac_prev
=libexecdir
;;
1131 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1132 |
--libexe=* |
--libex=* |
--libe=*)
1133 libexecdir
=$ac_optarg ;;
1135 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1136 ac_prev
=localedir
;;
1137 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1138 localedir
=$ac_optarg ;;
1140 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1141 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1142 ac_prev
=localstatedir
;;
1143 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1144 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1145 localstatedir
=$ac_optarg ;;
1147 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1149 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1150 mandir
=$ac_optarg ;;
1152 -nfp |
--nfp |
--nf)
1153 # Obsolete; use --without-fp.
1156 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1157 |
--no-cr |
--no-c |
-n)
1160 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1161 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1164 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1165 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1166 |
--oldin |
--oldi |
--old |
--ol |
--o)
1167 ac_prev
=oldincludedir
;;
1168 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1169 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1170 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1171 oldincludedir
=$ac_optarg ;;
1173 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1175 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1176 prefix
=$ac_optarg ;;
1178 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1179 |
--program-pre |
--program-pr |
--program-p)
1180 ac_prev
=program_prefix
;;
1181 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1182 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1183 program_prefix
=$ac_optarg ;;
1185 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1186 |
--program-suf |
--program-su |
--program-s)
1187 ac_prev
=program_suffix
;;
1188 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1189 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1190 program_suffix
=$ac_optarg ;;
1192 -program-transform-name |
--program-transform-name \
1193 |
--program-transform-nam |
--program-transform-na \
1194 |
--program-transform-n |
--program-transform- \
1195 |
--program-transform |
--program-transfor \
1196 |
--program-transfo |
--program-transf \
1197 |
--program-trans |
--program-tran \
1198 |
--progr-tra |
--program-tr |
--program-t)
1199 ac_prev
=program_transform_name
;;
1200 -program-transform-name=* |
--program-transform-name=* \
1201 |
--program-transform-nam=* |
--program-transform-na=* \
1202 |
--program-transform-n=* |
--program-transform-=* \
1203 |
--program-transform=* |
--program-transfor=* \
1204 |
--program-transfo=* |
--program-transf=* \
1205 |
--program-trans=* |
--program-tran=* \
1206 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1207 program_transform_name
=$ac_optarg ;;
1209 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1211 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1212 pdfdir
=$ac_optarg ;;
1214 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1216 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1219 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1220 |
-silent |
--silent |
--silen |
--sile |
--sil)
1223 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1225 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1227 sbindir
=$ac_optarg ;;
1229 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1230 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1231 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1233 ac_prev
=sharedstatedir
;;
1234 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1235 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1236 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1238 sharedstatedir
=$ac_optarg ;;
1240 -site |
--site |
--sit)
1242 -site=* |
--site=* |
--sit=*)
1245 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1247 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1248 srcdir
=$ac_optarg ;;
1250 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1251 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1252 ac_prev
=sysconfdir
;;
1253 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1254 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1255 sysconfdir
=$ac_optarg ;;
1257 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1258 ac_prev
=target_alias
;;
1259 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1260 target_alias
=$ac_optarg ;;
1262 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1265 -version |
--version |
--versio |
--versi |
--vers |
-V)
1266 ac_init_version
=: ;;
1269 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1272 as_fn_error
"invalid package name: $ac_useropt"
1273 ac_useropt_orig
=$ac_useropt
1274 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1279 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep
=', ';;
1282 eval with_
$ac_useropt=\
$ac_optarg ;;
1284 -without-* |
--without-*)
1285 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1288 as_fn_error
"invalid package name: $ac_useropt"
1289 ac_useropt_orig
=$ac_useropt
1290 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1295 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296 ac_unrecognized_sep
=', ';;
1298 eval with_
$ac_useropt=no
;;
1301 # Obsolete; use --with-x.
1304 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1305 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1306 ac_prev
=x_includes
;;
1307 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1308 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1309 x_includes
=$ac_optarg ;;
1311 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1312 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1313 ac_prev
=x_libraries
;;
1314 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1315 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1316 x_libraries
=$ac_optarg ;;
1318 -*) as_fn_error
"unrecognized option: \`$ac_option'
1319 Try \`$0 --help' for more information."
1323 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 case $ac_envvar in #(
1326 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1327 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1329 eval $ac_envvar=\
$ac_optarg
1330 export $ac_envvar ;;
1333 # FIXME: should be removed in autoconf 3.0.
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 if test -n "$ac_prev"; then
1344 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1345 as_fn_error
"missing argument to $ac_option"
1348 if test -n "$ac_unrecognized_opts"; then
1349 case $enable_option_checking in
1351 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1352 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 # Check all directory arguments for consistency.
1357 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val
=\$
$ac_var
1363 # Remove trailing slashes.
1366 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367 eval $ac_var=\
$ac_val;;
1369 # Be sure to have absolute directory names.
1371 [\\/$
]* | ?
:[\\/]* ) continue;;
1372 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1374 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1382 target
=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x
; then
1386 if test "x$build_alias" = x
; then
1387 cross_compiling
=maybe
1388 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1396 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1398 test "$silent" = yes && exec 6>/dev
/null
1401 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di
=`ls -di .` &&
1403 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error
"working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error
"pwd does not report name of working directory"
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted
=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir
=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1441 ac_srcdir_defaulted
=no
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1445 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1447 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1459 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 for ac_var
in $ac_precious_vars; do
1462 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1464 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1469 # Report the --help message.
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1475 \`configure' configures this package to adapt to many kinds of systems.
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1482 Defaults for the options are specified in brackets.
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1506 For better control, use the options below.
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1538 --build=BUILD configure
for building on BUILD
[guessed
]
1539 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1540 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1544 if test -n "$ac_init_help"; then
1549 --disable-option-checking ignore unrecognized
--enable/--with options
1550 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1551 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1552 --enable-generated-files-in-srcdir
1553 put copies of generated files
in source dir
1554 intended
for creating
source tarballs
for users
1555 without texinfo bison or flex.
1556 --disable-largefile omit support
for large files
1557 --enable-werror-always enable -Werror despite compiler version
1558 --enable-checking=LIST
1559 enable expensive run-time checks. With LIST
,
1560 enable only specific categories of checks.
1561 Categories are
: yes,no
,all
,none
,release.
1562 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1563 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1564 --enable-coverage=LEVEL
1565 enable compiler
's code coverage collection.
1566 Use to measure compiler performance and locate
1567 unused parts of the compiler. With LEVEL, specify
1568 optimization. Values are opt, noopt,
1570 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1571 --enable-build-with-cxx build with C++ compiler instead of C compiler
1572 --enable-multilib enable library support for multiple ABIs
1573 --enable-__cxa_atexit enable __cxa_atexit for C++
1574 --enable-decimal-float={no,yes,bid,dpd}
1575 enable decimal float extension to C. Selecting 'bid
'
1576 or 'dpd
' choses which decimal floating point format
1578 --enable-fixed-point enable fixed-point arithmetic extension to C
1579 --enable-threads enable thread usage for target GCC
1580 --enable-threads=LIB use LIB thread package for target GCC
1581 --enable-tls enable or disable generation of tls code
1582 overriding the assembler check for tls support
1583 --enable-objc-gc enable the use of Boehm's garbage collector with
1584 the GNU Objective-C runtime
1585 --disable-shared don
't provide a shared libgcc
1586 --enable-languages=LIST specify which front-ends to build
1587 --disable-rpath do not hardcode runtime library paths
1588 --enable-initfini-array use .init_array/.fini_array sections
1589 --enable-sjlj-exceptions
1590 arrange to use setjmp/longjmp exception handling
1591 --enable-secureplt enable -msecure-plt by default for PowerPC
1592 --enable-leading-mingw64-underscores
1593 Enable leading underscores on 64 bit mingw targets
1594 --enable-cld enable -mcld by default for 32bit x86
1595 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1596 --disable-win32-registry
1597 disable lookup of installation paths in the
1598 Registry on Windows hosts
1599 --enable-win32-registry enable registry lookup (default)
1600 --enable-win32-registry=KEY
1601 use KEY instead of GCC version as the last portion
1603 --enable-shared[=PKGS] build shared libraries [default=yes]
1604 --enable-static[=PKGS] build static libraries [default=yes]
1605 --enable-fast-install[=PKGS]
1606 optimize for fast installation [default=yes]
1607 --disable-libtool-lock avoid locking (might break parallel builds)
1608 --enable-gnu-indirect-function
1609 enable the use of the @gnu_indirect_function to
1611 --enable-comdat enable COMDAT group support
1612 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1614 --enable-linker-build-id
1615 compiler will always pass --build-id to linker
1616 --enable-maintainer-mode
1617 enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
1619 --enable-version-specific-runtime-libs
1620 specify that runtime libraries should be
1621 installed in a compiler-specific directory
1622 --enable-plugin enable plugin support
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1627 --with-build-libsubdir=DIR Directory where to find libraries for build system
1628 --with-local-prefix=DIR specifies directory to put local include
1629 --with-gxx-include-dir=DIR
1630 specifies directory to put g++ header files
1631 --with-cpp-install-dir=DIR
1632 install the user visible C preprocessor in DIR
1633 (relative to PREFIX) as well as PREFIX/bin
1634 --with-gnu-ld arrange to work with GNU ld.
1635 --with-ld arrange to use the specified ld (full pathname)
1636 --with-demangler-in-ld try to use demangler in GNU ld.
1637 --with-gnu-as arrange to work with GNU as
1638 --with-as arrange to use the specified as (full pathname)
1639 --with-stabs arrange to use stabs instead of host debug format
1640 --with-dwarf2 force the default debug format to be DWARF 2
1641 --with-build-sysroot=sysroot
1642 use sysroot as the system root during the build
1643 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1644 --with-specs=SPECS add SPECS to driver command-line processing
1645 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1646 --with-bugurl=URL Direct users to URL to report a bug
1647 --with-multilib-list Select multilibs (SH only)
1648 --with-gnu-ld assume the C compiler uses GNU ld default=no
1649 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1650 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1651 --with-system-libunwind use installed libunwind
1652 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1654 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1655 --with-plugin-ld=[ARG
] specify the plugin linker
1656 --with-long-double-128 Use
128-bit long double by default.
1657 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1659 --with-system-zlib use installed libz
1660 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1662 Some influential environment variables
:
1663 CC C compiler
command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1666 nonstandard directory
<lib dir
>
1667 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1668 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1669 you have headers
in a nonstandard directory
<include dir
>
1670 CXX C
++ compiler
command
1671 CXXFLAGS C
++ compiler flags
1673 CXXCPP C
++ preprocessor
1674 GMPLIBS How to link GMP
1675 GMPINC How to
find GMP include files
1676 PPLLIBS How to link PPL
1677 PPLINC How to
find PPL include files
1678 CLOOGLIBS How to link CLOOG
1679 CLOOGINC How to
find CLOOG include files
1681 Use these variables to override the choices made by
`configure' or to help
1682 it to find libraries and programs with nonstandard names/locations.
1684 Report bugs to the package provider.
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1714 .) # We are building in place.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1736 $SHELL "$ac_srcdir/configure" --help=recursive
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 cd "$ac_pwd" || { ac_status=$?; break; }
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1748 generated by GNU Autoconf 2.64
1750 Copyright (C) 2009 Free Software Foundation, Inc.
1751 This configure script is free software; the Free Software Foundation
1752 gives unlimited permission to copy, distribute and modify it.
1757 ## ------------------------ ##
1758 ## Autoconf initialization. ##
1759 ## ------------------------ ##
1761 # ac_fn_c_try_compile LINENO
1762 # --------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_compile ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1771 *) ac_try_echo
=$ac_try;;
1773 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1777 if test -s conftest.err
; then
1778 grep -v '^ *+' conftest.err
>conftest.er1
1779 cat conftest.er1
>&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.
$ac_objext; then :
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.
$ac_ext >&5
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1797 } # ac_fn_c_try_compile
1799 # ac_fn_cxx_try_compile LINENO
1800 # ----------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_compile
()
1804 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1805 rm -f conftest.
$ac_objext
1806 if { { ac_try
="$ac_compile"
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 } # ac_fn_cxx_try_compile
1837 # ac_fn_c_try_cpp LINENO
1838 # ----------------------
1839 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1846 *) ac_try_echo
=$ac_try;;
1848 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 if test -s conftest.err
; then
1853 grep -v '^ *+' conftest.err
>conftest.er1
1854 cat conftest.er1
>&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } >/dev
/null
&& {
1859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.
$ac_ext >&5
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1874 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1875 # -------------------------------------------------------
1876 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1877 # the include files in INCLUDES and setting the cache variable VAR
1879 ac_fn_c_check_header_mongrel
()
1881 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1882 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1892 # Is the header compilable?
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1894 $as_echo_n "checking $2 usability... " >&6; }
1895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1900 if ac_fn_c_try_compile
"$LINENO"; then :
1901 ac_header_compiler
=yes
1903 ac_header_compiler
=no
1905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1907 $as_echo "$ac_header_compiler" >&6; }
1909 # Is the header present?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1911 $as_echo_n "checking $2 presence... " >&6; }
1912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1916 if ac_fn_c_try_cpp
"$LINENO"; then :
1917 ac_header_preproc
=yes
1919 ac_header_preproc
=no
1921 rm -f conftest.err conftest.
$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1923 $as_echo "$ac_header_preproc" >&6; }
1925 # So? What about this header?
1926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1929 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1935 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1937 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1939 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1941 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1951 eval "$3=\$ac_header_compiler"
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1959 } # ac_fn_c_check_header_mongrel
1961 # ac_fn_c_try_run LINENO
1962 # ----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1964 # that executables *can* be run.
1967 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1968 if { { ac_try
="$ac_link"
1970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>&5
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1979 { { case "(($ac_try" in
1980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1981 *) ac_try_echo
=$ac_try;;
1983 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_try") 2>&5
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; }; }; then :
1991 $as_echo "$as_me: program exited with status $ac_status" >&5
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.
$ac_ext >&5
1995 ac_retval
=$ac_status
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2003 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists and can be compiled using the include files in
2006 # INCLUDES, setting the cache variable VAR accordingly.
2007 ac_fn_c_check_header_compile
()
2009 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013 $as_echo_n "(cached) " >&6
2015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2020 if ac_fn_c_try_compile
"$LINENO"; then :
2025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2032 } # ac_fn_c_check_header_compile
2034 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2035 # --------------------------------------------
2036 # Tries to find the compile-time value of EXPR in a program that includes
2037 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2039 ac_fn_c_compute_int
()
2041 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2042 if test "$cross_compiling" = yes; then
2043 # Depending upon the size, compute the lo and hi bounds.
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2050 static int test_array [1 - 2 * !(($2) >= 0)];
2057 if ac_fn_c_try_compile
"$LINENO"; then :
2060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073 if ac_fn_c_try_compile
"$LINENO"; then :
2074 ac_hi
=$ac_mid; break
2076 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2077 if test $ac_lo -le $ac_mid; then
2081 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) < 0)];
2099 if ac_fn_c_try_compile
"$LINENO"; then :
2102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2115 if ac_fn_c_try_compile
"$LINENO"; then :
2116 ac_lo
=$ac_mid; break
2118 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2119 if test $ac_mid -le $ac_hi; then
2123 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2133 # Binary search between lo and hi bounds.
2134 while test "x$ac_lo" != "x$ac_hi"; do
2135 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 if ac_fn_c_try_compile
"$LINENO"; then :
2152 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2157 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2164 static long int longval () { return $2; }
2165 static unsigned long int ulongval () { return $2; }
2172 FILE *f = fopen ("conftest.val", "w");
2177 long int i = longval ();
2180 fprintf (f, "%ld", i);
2184 unsigned long int i = ulongval ();
2187 fprintf (f, "%lu", i);
2189 /* Do not output a trailing newline, as this causes \r\n confusion
2190 on some platforms. */
2191 return ferror (f) || fclose (f) != 0;
2197 if ac_fn_c_try_run
"$LINENO"; then :
2198 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2202 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2203 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2210 } # ac_fn_c_compute_int
2212 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2213 # -------------------------------------------
2214 # Tests whether TYPE exists after having included INCLUDES, setting cache
2215 # variable VAR accordingly.
2216 ac_fn_c_check_type
()
2218 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2222 $as_echo_n "(cached) " >&6
2225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2237 if ac_fn_c_try_compile
"$LINENO"; then :
2238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2250 if ac_fn_c_try_compile
"$LINENO"; then :
2255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2264 } # ac_fn_c_check_type
2266 # ac_fn_c_find_intX_t LINENO BITS VAR
2267 # -----------------------------------
2268 # Finds a signed integer type with width BITS, setting cache variable VAR
2270 ac_fn_c_find_intX_t
()
2272 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2274 $as_echo_n "checking for int$2_t... " >&6; }
2275 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2279 for ac_type
in int
$2_t 'int' 'long int' \
2280 'long long int' 'short int' 'signed char'; do
2281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 $ac_includes_default
2287 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2294 if ac_fn_c_try_compile
"$LINENO"; then :
2295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $ac_includes_default
2301 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2302 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2309 if ac_fn_c_try_compile
"$LINENO"; then :
2316 eval "$3=\$ac_type" ;;
2319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2323 if test "x$as_val" = x
""no
; then :
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2335 } # ac_fn_c_find_intX_t
2337 # ac_fn_c_try_link LINENO
2338 # -----------------------
2339 # Try to link conftest.$ac_ext, and return whether this succeeded.
2342 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2343 rm -f conftest.
$ac_objext conftest
$ac_exeext
2344 if { { ac_try
="$ac_link"
2346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_link") 2>conftest.err
2353 if test -s conftest.err; then
2354 grep -v '^ *+' conftest.err >conftest.er1
2355 cat conftest.er1 >&5
2356 mv -f conftest.er1 conftest.err
2358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359 test $ac_status = 0; } && {
2360 test -z "$ac_c_werror_flag" ||
2361 test ! -s conftest.err
2362 } && test -s conftest$ac_exeext && {
2363 test "$cross_compiling" = yes ||
2364 $as_test_x conftest$ac_exeext
2368 $as_echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2373 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2374 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2375 # interfere with the next link command; also delete a directory that is
2376 # left behind by Apple's compiler. We do this before executing the actions.
2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2381 } # ac_fn_c_try_link
2383 # ac_fn_c_find_uintX_t LINENO BITS VAR
2384 # ------------------------------------
2385 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2387 ac_fn_c_find_uintX_t ()
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2391 $as_echo_n "checking for uint$2_t... " >&6; }
2392 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2393 $as_echo_n "(cached) " >&6
2396 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2397 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400 $ac_includes_default
2404 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2411 if ac_fn_c_try_compile "$LINENO"; then :
2416 eval "$3=\$ac_type" ;;
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 if test "x$as_val" = x""no; then :
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430 $as_echo "$ac_res" >&6; }
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 } # ac_fn_c_find_uintX_t
2435 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2436 # ----------------------------------------------
2437 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2438 ac_fn_c_check_header_preproc ()
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2442 $as_echo_n "checking for $2... " >&6; }
2443 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2444 $as_echo_n "(cached) " >&6
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2450 if ac_fn_c_try_cpp "$LINENO"; then :
2455 rm -f conftest.err conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_check_header_preproc
2464 # ac_fn_c_check_func LINENO FUNC VAR
2465 # ----------------------------------
2466 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2467 ac_fn_c_check_func ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2479 #define $2 innocuous_$2
2481 /* System header to define __stub macros and hopefully few prototypes,
2482 which can conflict with char $2 (); below.
2483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2484 <limits.h> exists even on freestanding compilers. */
2487 # include <limits.h>
2489 # include <assert.h>
2494 /* Override any GCC internal prototype to avoid an error.
2495 Use char because int might match the return type of a GCC
2496 builtin and then its argument prototype would still apply. */
2501 /* The GNU C library defines this for functions which it implements
2502 to always fail with ENOSYS. Some functions are actually named
2503 something starting with __ and the normal name is an alias. */
2504 #if defined __stub_$2 || defined __stub___$2
2516 if ac_fn_c_try_link "$LINENO"; then :
2521 rm -f core conftest.err conftest.$ac_objext \
2522 conftest$ac_exeext conftest.$ac_ext
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529 } # ac_fn_c_check_func
2531 # ac_fn_cxx_try_cpp LINENO
2532 # ------------------------
2533 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2534 ac_fn_cxx_try_cpp ()
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 if { { ac_try="$ac_cpp conftest.$ac_ext"
2539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2540 *) ac_try_echo
=$ac_try;;
2542 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2543 $as_echo "$ac_try_echo"; } >&5
2544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2546 if test -s conftest.err
; then
2547 grep -v '^ *+' conftest.err
>conftest.er1
2548 cat conftest.er1
>&5
2549 mv -f conftest.er1 conftest.err
2551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2552 test $ac_status = 0; } >/dev
/null
&& {
2553 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2554 test ! -s conftest.err
2558 $as_echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.
$ac_ext >&5
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2566 } # ac_fn_cxx_try_cpp
2568 # ac_fn_cxx_try_link LINENO
2569 # -------------------------
2570 # Try to link conftest.$ac_ext, and return whether this succeeded.
2571 ac_fn_cxx_try_link
()
2573 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2574 rm -f conftest.
$ac_objext conftest
$ac_exeext
2575 if { { ac_try
="$ac_link"
2577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581 $as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_link") 2>conftest.err
2584 if test -s conftest.err; then
2585 grep -v '^ *+' conftest.err >conftest.er1
2586 cat conftest.er1 >&5
2587 mv -f conftest.er1 conftest.err
2589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590 test $ac_status = 0; } && {
2591 test -z "$ac_cxx_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest$ac_exeext && {
2594 test "$cross_compiling" = yes ||
2595 $as_test_x conftest$ac_exeext
2599 $as_echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2606 # interfere with the next link command; also delete a directory that is
2607 # left behind by Apple's compiler. We do this before executing the actions.
2608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 } # ac_fn_cxx_try_link
2613 cat >config.log <<_ACEOF
2614 This file contains any messages produced by compilers while
2615 running configure, to aid debugging if configure makes a mistake.
2617 It was created by $as_me, which was
2618 generated by GNU Autoconf 2.64. Invocation command line was
2630 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2631 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2632 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2633 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2634 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2636 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2637 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2639 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2640 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2641 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2642 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2643 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2644 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2645 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 $as_echo "PATH: $as_dir"
2670 # Keep a trace of the command line.
2671 # Strip out --no-create and --no-recursion so they do not pile up.
2672 # Strip out --silent because we don't want to record it for future runs.
2673 # Also quote any args containing shell meta-characters.
2674 # Make two passes to allow for proper duplicate-argument suppression.
2678 ac_must_keep_next=false
2684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2686 | -silent | --silent | --silen | --sile | --sil)
2689 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2692 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694 as_fn_append ac_configure_args1 " '$ac_arg'"
2695 if test $ac_must_keep_next = true; then
2696 ac_must_keep_next=false # Got value, back to normal.
2699 *=* | --config-cache | -C | -disable-* | --disable-* \
2700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2702 | -with-* | --with-* | -without-* | --without-* | --x)
2703 case "$ac_configure_args0 " in
2704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2707 -* ) ac_must_keep_next=true ;;
2710 as_fn_append ac_configure_args " '$ac_arg'"
2715 { ac_configure_args0=; unset ac_configure_args0;}
2716 { ac_configure_args1=; unset ac_configure_args1;}
2718 # When interrupted or exit'd, cleanup temporary files, and complete
2719 # config.log. We remove comments because anyway the quotes in there
2720 # would cause problems or look ugly.
2721 # WARNING: Use '\'' to represent an apostrophe within the trap.
2722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2723 trap 'exit_status=$?
2724 # Save into config.log some information that might help in debugging.
2729 ## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##
2734 # The following way of writing the cache mishandles newlines in values,
2736 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2737 eval ac_val=\$$ac_var
2741 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2745 _ | IFS | as_nl) ;; #(
2746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2747 *) { eval $ac_var=; unset $ac_var;} ;;
2752 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2753 *${as_nl}ac_space=\ *)
2755 "s/'\''/'\''\\\\'\'''\''/g;
2756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2767 ## ----------------- ##
2768 ## Output variables. ##
2769 ## ----------------- ##
2772 for ac_var in $ac_subst_vars
2774 eval ac_val=\$$ac_var
2776 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2778 $as_echo "$ac_var='\''$ac_val'\''"
2782 if test -n "$ac_subst_files"; then
2784 ## ------------------- ##
2785 ## File substitutions. ##
2786 ## ------------------- ##
2789 for ac_var in $ac_subst_files
2791 eval ac_val=\$$ac_var
2793 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795 $as_echo "$ac_var='\''$ac_val'\''"
2800 if test -s confdefs.h; then
2810 test "$ac_signal" != 0 &&
2811 $as_echo "$as_me: caught signal $ac_signal"
2812 $as_echo "$as_me: exit $exit_status"
2814 rm -f core *.core core.conftest.* &&
2815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2818 for ac_signal in 1 2 13 15; do
2819 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2826 $as_echo "/* confdefs.h */" > confdefs.h
2828 # Predefined preprocessor variables.
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2859 if test -n "$CONFIG_SITE"; then
2860 ac_site_file1=$CONFIG_SITE
2861 elif test "x$prefix" != xNONE; then
2862 ac_site_file1=$prefix/share/config.site
2863 ac_site_file2=$prefix/etc/config.site
2865 ac_site_file1=$ac_default_prefix/share/config.site
2866 ac_site_file2=$ac_default_prefix/etc/config.site
2868 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2870 test "x$ac_site_file" = xNONE && continue
2871 if test -r "$ac_site_file"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2873 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2874 sed 's/^/| /' "$ac_site_file" >&5
2879 if test -r "$cache_file"; then
2880 # Some versions of bash will fail to source /dev/null (special
2881 # files actually), so we avoid doing that.
2882 if test -f "$cache_file"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 $as_echo "$as_me: loading cache $cache_file" >&6;}
2886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887 *) . "./$cache_file";;
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 $as_echo "$as_me: creating cache $cache_file" >&6;}
2896 # Check that the precious variables saved in the cache have kept the same
2898 ac_cache_corrupted=false
2899 for ac_var in $ac_precious_vars; do
2900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2901 eval ac_new_set=\$ac_env_${ac_var}_set
2902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2903 eval ac_new_val=\$ac_env_${ac_var}_value
2904 case $ac_old_set,$ac_new_set in
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2907 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2908 ac_cache_corrupted=: ;;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2911 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2912 ac_cache_corrupted=: ;;
2915 if test "x$ac_old_val" != "x$ac_new_val"; then
2916 # differences in whitespace do not lead to failure.
2917 ac_old_val_w=`echo x
$ac_old_val`
2918 ac_new_val_w=`echo x
$ac_new_val`
2919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2922 ac_cache_corrupted=:
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2926 eval $ac_var=\$ac_old_val
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2929 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2931 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2934 # Pass precious variables to config.status.
2935 if test "$ac_new_set" = set; then
2937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2938 *) ac_arg=$ac_var=$ac_new_val ;;
2940 case " $ac_configure_args " in
2941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2942 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2946 if $ac_cache_corrupted; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2951 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2953 ## -------------------- ##
2954 ## Main body of script. ##
2955 ## -------------------- ##
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2971 gcc_version=`cat $srcdir/BASE-VER
`
2973 # Determine the host, build, and target systems
2975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2976 for ac_t in install-sh install.sh shtool; do
2977 if test -f "$ac_dir/$ac_t"; then
2979 ac_install_sh="$ac_aux_dir/$ac_t -c"
2984 if test -z "$ac_aux_dir"; then
2985 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2988 # These three variables are undocumented and unsupported,
2989 # and are intended to be withdrawn in a future Autoconf release.
2990 # They can cause serious problems if a builder's source tree is in a directory
2991 # whose full name contains unusual characters.
2992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2997 # Make sure we can run config.sub.
2998 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2999 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3002 $as_echo_n "checking build system type... " >&6; }
3003 if test "${ac_cv_build+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3006 ac_build_alias=$build_alias
3007 test "x$ac_build_alias" = x &&
3008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3009 test "x$ac_build_alias" = x &&
3010 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3011 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3012 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3016 $as_echo "$ac_cv_build" >&6; }
3017 case $ac_cv_build in
3019 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3022 ac_save_IFS=$IFS; IFS='-'
3028 # Remember, the first character of IFS is used to create $*,
3029 # except with old shells:
3032 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3036 $as_echo_n "checking host system type... " >&6; }
3037 if test "${ac_cv_host+set}" = set; then :
3038 $as_echo_n "(cached) " >&6
3040 if test "x$host_alias" = x; then
3041 ac_cv_host=$ac_cv_build
3043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3044 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3049 $as_echo "$ac_cv_host" >&6; }
3052 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3055 ac_save_IFS=$IFS; IFS='-'
3061 # Remember, the first character of IFS is used to create $*,
3062 # except with old shells:
3065 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3069 $as_echo_n "checking target system type... " >&6; }
3070 if test "${ac_cv_target+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3073 if test "x$target_alias" = x; then
3074 ac_cv_target=$ac_cv_host
3076 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3077 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3082 $as_echo "$ac_cv_target" >&6; }
3083 case $ac_cv_target in
3085 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3087 target=$ac_cv_target
3088 ac_save_IFS=$IFS; IFS='-'
3094 # Remember, the first character of IFS is used to create $*,
3095 # except with old shells:
3098 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3101 # The aliases save the names the user supplied, while $host etc.
3102 # will get canonicalized.
3103 test -n "$target_alias" &&
3104 test "$program_prefix$program_suffix$program_transform_name" = \
3106 program_prefix=${target_alias}-
3108 # Determine the noncanonical target name, for directory use.
3109 case ${build_alias} in
3110 "") build_noncanonical=${build} ;;
3111 *) build_noncanonical=${build_alias} ;;
3114 case ${host_alias} in
3115 "") host_noncanonical=${build_noncanonical} ;;
3116 *) host_noncanonical=${host_alias} ;;
3119 case ${target_alias} in
3120 "") target_noncanonical=${host_noncanonical} ;;
3121 *) target_noncanonical=${target_alias} ;;
3127 # Determine the target- and build-specific subdirectories
3129 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3130 # have matching libraries, they should use host libraries: Makefile.tpl
3131 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3132 # However, they still use the build modules, because the corresponding
3133 # host modules (e.g. bison) are only built for the host when bootstrap
3135 # - build_subdir is where we find build modules, and never changes.
3136 # - build_libsubdir is where we find build libraries, and can be overridden.
3138 # Prefix 'build-' so this never conflicts with target_subdir.
3139 build_subdir="build-${build_noncanonical}"
3141 # Check whether --with-build-libsubdir was given.
3142 if test "${with_build_libsubdir+set}" = set; then :
3143 withval=$with_build_libsubdir; build_libsubdir="$withval"
3145 build_libsubdir="$build_subdir"
3148 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3149 if ( test $srcdir = . && test -d gcc ) \
3150 || test -d $srcdir/../host-${host_noncanonical}; then
3151 host_subdir="host-${host_noncanonical}"
3156 target_subdir=${target_noncanonical}
3159 # Set program_transform_name
3160 test "$program_prefix" != NONE &&
3161 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3162 # Use a double $ so make ignores it.
3163 test "$program_suffix" != NONE &&
3164 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3165 # Double any \ or $.
3166 # By default was `s
,x
,x
', remove it if useless.
3167 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3168 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3171 # Check for bogus environment variables.
3172 # Test if LIBRARY_PATH contains the notation for the current directory
3173 # since this would lead to problems installing/building glibc.
3174 # LIBRARY_PATH contains the current directory if one of the following
3176 # - one of the terminals (":" and ";") is the first or last sign
3177 # - two terminals occur directly after each other
3178 # - the path contains an element with a dot in it
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3180 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3181 case ${LIBRARY_PATH} in
3182 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3183 library_path_setting="contains current directory"
3186 library_path_setting="ok"
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3190 $as_echo "$library_path_setting" >&6; }
3191 if test "$library_path_setting" != "ok"; then
3193 *** LIBRARY_PATH shouldn't contain the current directory when
3194 *** building gcc. Please change the environment variable
3195 *** and run configure again.
" "$LINENO" 5
3198 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3199 # since this would lead to problems installing/building glibc.
3200 # GCC_EXEC_PREFIX contains the current directory if one of the following
3202 # - one of the terminals (":" and ";") is the first or last sign
3203 # - two terminals occur directly after each other
3204 # - the path contains an element with a dot in it
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3206 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3207 case ${GCC_EXEC_PREFIX} in
3208 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3209 gcc_exec_prefix_setting="contains current directory
"
3212 gcc_exec_prefix_setting="ok
"
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3216 $as_echo "$gcc_exec_prefix_setting" >&6; }
3217 if test "$gcc_exec_prefix_setting" != "ok
"; then
3219 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3220 *** building gcc. Please change the environment variable
3221 *** and run configure again." "$LINENO" 5
3228 # Specify the local prefix
3231 # Check whether --with-local-prefix was given.
3232 if test "${with_local_prefix+set}" = set; then :
3233 withval=$with_local_prefix; case "${withval}" in
3234 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3236 *) local_prefix=$with_local_prefix ;;
3241 # Default local prefix if it is empty
3242 if test x$local_prefix = x; then
3243 local_prefix=/usr/local
3246 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3247 # passed in by the toplevel make and thus we'd get different behavior
3248 # depending on where we built the sources.
3249 gcc_gxx_include_dir
=
3250 # Specify the g++ header file directory
3252 # Check whether --with-gxx-include-dir was given.
3253 if test "${with_gxx_include_dir+set}" = set; then :
3254 withval
=$with_gxx_include_dir; case "${withval}" in
3255 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3257 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3262 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3263 if test x
${gcc_gxx_include_dir} = x
; then
3264 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3265 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3267 libstdcxx_incdir
='include/c++/$(version)'
3268 if test x
$host != x
$target; then
3269 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3271 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3276 # Check whether --with-cpp_install_dir was given.
3277 if test "${with_cpp_install_dir+set}" = set; then :
3278 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3279 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3280 elif test x
$withval != xno
; then
3281 cpp_install_dir
=$withval
3286 # We would like to our source tree to be readonly. However when releases or
3287 # pre-releases are generated, the flex/bison generated files as well as the
3288 # various formats of manuals need to be included along with the rest of the
3289 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3293 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3294 # Check whether --enable-generated-files-in-srcdir was given.
3295 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3296 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3298 generated_files_in_srcdir
=no
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3303 $as_echo "$generated_files_in_srcdir" >&6; }
3305 if test "$generated_files_in_srcdir" = "yes"; then
3312 # -------------------
3313 # Find default linker
3314 # -------------------
3318 # Check whether --with-gnu-ld was given.
3319 if test "${with_gnu_ld+set}" = set; then :
3320 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3326 # With pre-defined ld
3328 # Check whether --with-ld was given.
3329 if test "${with_ld+set}" = set; then :
3330 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3333 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3334 if test ! -x "$DEFAULT_LINKER"; then
3335 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3336 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3340 cat >>confdefs.h
<<_ACEOF
3341 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3346 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3348 cat >>confdefs.h
<<_ACEOF
3349 #define HAVE_GNU_LD $gnu_ld
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3354 $as_echo_n "checking whether a default linker was specified... " >&6; }
3355 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3356 if test x
"$gnu_ld_flag" = x
"no"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3358 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3361 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3368 # With demangler in GNU ld
3370 # Check whether --with-demangler-in-ld was given.
3371 if test "${with_demangler_in_ld+set}" = set; then :
3372 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3378 # ----------------------
3379 # Find default assembler
3380 # ----------------------
3384 # Check whether --with-gnu-as was given.
3385 if test "${with_gnu_as+set}" = set; then :
3386 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3393 # Check whether --with-as was given.
3394 if test "${with_as+set}" = set; then :
3395 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3398 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3399 if test ! -x "$DEFAULT_ASSEMBLER"; then
3400 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3401 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3405 cat >>confdefs.h
<<_ACEOF
3406 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3411 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3413 cat >>confdefs.h
<<_ACEOF
3414 #define HAVE_GNU_AS $gnu_as
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3419 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3420 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3421 if test x
"$gas_flag" = x
"no"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3423 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3426 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3437 # If a non-executable a.out is present (e.g. created by GNU as above even if
3438 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3439 # file, even when creating an executable, so an execution test fails.
3440 # Remove possible default executable files to avoid this.
3442 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3443 # Autoconf includes it.
3444 rm -f a.out a.exe b.out
3446 # Find the native compiler
3448 ac_cpp
='$CPP $CPPFLAGS'
3449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3452 if test -n "$ac_tool_prefix"; then
3453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3454 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC
="$CC" # Let the user override the test.
3463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir
=.
3468 for ac_exec_ext
in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3491 if test -z "$ac_cv_prog_CC"; then
3493 # Extract the first word of "gcc", so it can be a program name with args.
3494 set dummy gcc
; ac_word
=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir
=.
3508 for ac_exec_ext
in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CC
="gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 $as_echo "$ac_ct_CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3529 if test "x$ac_ct_CC" = x
; then
3532 case $cross_compiling:$ac_tool_warned in
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3536 ac_tool_warned
=yes ;;
3544 if test -z "$CC"; then
3545 if test -n "$ac_tool_prefix"; then
3546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3547 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC
="$CC" # Let the user override the test.
3556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir
=.
3561 for ac_exec_ext
in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3585 if test -z "$CC"; then
3586 # Extract the first word of "cc", so it can be a program name with args.
3587 set dummy cc
; ac_word
=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$CC"; then
3594 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3605 ac_prog_rejected
=yes
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test $ac_prog_rejected = yes; then
3617 # We found a bogon in the path, so make sure we never use it.
3618 set dummy
$ac_cv_prog_CC
3620 if test $# != 0; then
3621 # We chose a different compiler from the bogus one.
3622 # However, it has the same basename, so the bogon will be chosen
3623 # first if we set CC to just the basename; use the full file name.
3625 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3641 if test -z "$CC"; then
3642 if test -n "$ac_tool_prefix"; then
3643 for ac_prog
in cl.exe
3645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3646 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC
="$CC" # Let the user override the test.
3655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir
=.
3660 for ac_exec_ext
in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3682 test -n "$CC" && break
3685 if test -z "$CC"; then
3687 for ac_prog
in cl.exe
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy
$ac_prog; ac_word
=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3696 if test -n "$ac_ct_CC"; then
3697 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir
=.
3704 for ac_exec_ext
in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_ac_ct_CC
="$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3717 if test -n "$ac_ct_CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3719 $as_echo "$ac_ct_CC" >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3726 test -n "$ac_ct_CC" && break
3729 if test "x$ac_ct_CC" = x
; then
3732 case $cross_compiling:$ac_tool_warned in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736 ac_tool_warned
=yes ;;
3745 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error
"no acceptable C compiler found in \$PATH
3748 See \`config.log' for more details." "$LINENO" 5; }
3750 # Provide some information about the compiler.
3751 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3754 for ac_option
in --version -v -V -qversion; do
3755 { { ac_try
="$ac_compiler $ac_option >&5"
3757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3764 if test -s conftest.err; then
3766 ... rest of stderr output deleted ...
3767 10q' conftest.err >conftest.er1
3768 cat conftest.er1 >&5
3769 rm -f conftest.er1 conftest.err
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3786 ac_clean_files_save=$ac_clean_files
3787 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3788 # Try to create an executable without -o first, disregard a.out.
3789 # It will help us diagnose broken compilers, and finding out an intuition
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3792 $as_echo_n "checking for C compiler default output file name... " >&6; }
3793 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3795 # The possible output files:
3796 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3799 for ac_file in $ac_files
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3803 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3808 if { { ac_try="$ac_link_default"
3810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3811 *) ac_try_echo
=$ac_try;;
3813 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_link_default") 2>&5
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; then :
3819 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3820 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3821 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3822 # so that the user can short-circuit this test for compilers unknown to
3824 for ac_file
in $ac_files ''
3826 test -f "$ac_file" ||
continue
3828 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3831 # We found the default executable, but exeext='' is most
3835 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3837 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3839 # We set ac_cv_exeext here because the later test for it is not
3840 # safe: cross compilers may not add the suffix if given an `-o'
3841 # argument, so we may need to know it at that point already.
3842 # Even if this section looks crufty: it has the advantage of
3849 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3855 $as_echo "$ac_file" >&6; }
3856 if test -z "$ac_file"; then :
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.
$ac_ext >&5
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 { as_fn_set_status
77
3863 as_fn_error
"C compiler cannot create executables
3864 See \`config.log' for more details." "$LINENO" 5; }; }
3866 ac_exeext
=$ac_cv_exeext
3868 # Check that the compiler produces executables we can run. If not, either
3869 # the compiler is broken, or we cross compile.
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3871 $as_echo_n "checking whether the C compiler works... " >&6; }
3872 # If not cross compiling, check that we can run a simple program.
3873 if test "$cross_compiling" != yes; then
3874 if { ac_try
='./$ac_file'
3875 { { case "(($ac_try" in
3876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_try") 2>&5
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; }; then
3887 if test "$cross_compiling" = maybe; then
3890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error "cannot run C compiled programs.
3893 If you meant to cross compile
, use \
`--host'.
3894 See \`config.log
' for more details." "$LINENO" 5; }
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3899 $as_echo "yes" >&6; }
3901 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3902 ac_clean_files=$ac_clean_files_save
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906 $as_echo_n "checking whether we are cross compiling... " >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 $as_echo "$cross_compiling" >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3911 $as_echo_n "checking for suffix of executables... " >&6; }
3912 if { { ac_try="$ac_link"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_link") 2>&5
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; then :
3923 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3924 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3925 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3927 for ac_file
in conftest.exe conftest conftest.
*; do
3928 test -f "$ac_file" ||
continue
3930 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3931 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3940 See \`config.log' for more details." "$LINENO" 5; }
3942 rm -f conftest
$ac_cv_exeext
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3944 $as_echo "$ac_cv_exeext" >&6; }
3946 rm -f conftest.
$ac_ext
3947 EXEEXT
=$ac_cv_exeext
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3950 $as_echo_n "checking for suffix of object files... " >&6; }
3951 if test "${ac_cv_objext+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3965 rm -f conftest.o conftest.obj
3966 if { { ac_try
="$ac_compile"
3968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_compile") 2>&5
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 for ac_file in conftest.o conftest.obj conftest.*; do
3978 test -f "$ac_file" || continue;
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error "cannot compute suffix of object files
: cannot compile
3992 See \
`config.log' for more details." "$LINENO" 5; }
3994 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3997 $as_echo "$ac_cv_objext" >&6; }
3998 OBJEXT=$ac_cv_objext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4001 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4002 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4019 if ac_fn_c_try_compile "$LINENO"; then :
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4029 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4030 if test $ac_compiler_gnu = yes; then
4035 ac_test_CFLAGS=${CFLAGS+set}
4036 ac_save_CFLAGS=$CFLAGS
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4038 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4039 if test "${ac_cv_prog_cc_g+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4042 ac_save_c_werror_flag=$ac_c_werror_flag
4043 ac_c_werror_flag=yes
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4057 if ac_fn_c_try_compile "$LINENO"; then :
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4072 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_c_werror_flag=$ac_save_c_werror_flag
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4099 $as_echo "$ac_cv_prog_cc_g" >&6; }
4100 if test "$ac_test_CFLAGS" = set; then
4101 CFLAGS=$ac_save_CFLAGS
4102 elif test $ac_cv_prog_cc_g = yes; then
4103 if test "$GCC" = yes; then
4109 if test "$GCC" = yes; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4117 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4120 ac_cv_prog_cc_c89=no
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 #include <sys/types.h>
4127 #include <sys/stat.h>
4128 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4129 struct buf { int x; };
4130 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4131 static char *e (p, i)
4137 static char *f (char * (*g) (char **, int), char **p, ...)
4142 s = g (p, va_arg (v,int));
4147 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4148 function prototypes and stuff, but not '\xHH' hex character constants.
4149 These don't provoke an error unfortunately, instead are silently treated
4150 as 'x'. The following induces an error, until -std is added to get
4151 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4152 array size at least. It's necessary to write '\x00'==0 to get something
4153 that's true only with -std. */
4154 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4156 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4157 inside strings and character constants. */
4159 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4161 int test (int i, double x);
4162 struct s1 {int (*f) (int a);};
4163 struct s2 {int (*f) (double a);};
4164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4175 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4176 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178 CC="$ac_save_CC $ac_arg"
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_c89=$ac_arg
4182 rm -f core conftest.err conftest.$ac_objext
4183 test "x$ac_cv_prog_cc_c89" != "xno" && break
4185 rm -f conftest.$ac_ext
4190 case "x$ac_cv_prog_cc_c89" in
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4193 $as_echo "none needed" >&6; } ;;
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4196 $as_echo "unsupported" >&6; } ;;
4198 CC="$CC $ac_cv_prog_cc_c89"
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4200 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202 if test "x$ac_cv_prog_cc_c89" != xno; then :
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 if test "x$CC" != xcc; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4214 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4217 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4219 set dummy $CC; ac_cc=`$as_echo "$2" |
4220 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4221 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4222 $as_echo_n "(cached) " >&6
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4235 # Make sure it works both with $CC and with simple cc.
4236 # We do the test twice because some compilers refuse to overwrite an
4237 # existing .o file with -o, though they will create one.
4238 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4240 if { { case "(($ac_try" in
4241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4242 *) ac_try_echo
=$ac_try;;
4244 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_try") 2>&5
4248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249 test $ac_status = 0; } &&
4250 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256 (eval "$ac_try") 2>&5
4258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; };
4261 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4262 if test "x$CC" != xcc; then
4263 # Test first that cc exists at all.
4264 if { ac_try='cc -c conftest.$ac_ext >&5'
4265 { { case "(($ac_try" in
4266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4267 *) ac_try_echo
=$ac_try;;
4269 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270 $as_echo "$ac_try_echo"; } >&5
4271 (eval "$ac_try") 2>&5
4273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; }; }; then
4275 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277 if { { case "(($ac_try" in
4278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_try") 2>&5
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; } &&
4287 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4289 *) ac_try_echo
=$ac_try;;
4291 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 $as_echo "$ac_try_echo"; } >&5
4293 (eval "$ac_try") 2>&5
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; };
4301 # cc exists but doesn't like -o.
4302 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4307 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4309 rm -f core conftest
*
4312 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4314 $as_echo "yes" >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4319 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4323 # expand $ac_aux_dir to an absolute path
4324 am_aux_dir
=`cd $ac_aux_dir && pwd`
4326 # FIXME: we rely on the cache variable name because
4327 # there is no other way.
4329 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4330 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4331 if test "$am_t" != yes; then
4332 # Losing compiler, so override with the script.
4333 # FIXME: It is wrong to rewrite CC.
4334 # But if we don't then we get into trouble of one sort or another.
4335 # A longer-term fix would be to have automake use am__CC in this case,
4336 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4337 CC
="$am_aux_dir/compile $CC"
4342 ac_cpp
='$CXXCPP $CPPFLAGS'
4343 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4346 if test -z "$CXX"; then
4347 if test -n "$CCC"; then
4350 if test -n "$ac_tool_prefix"; then
4351 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4354 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if test "${ac_cv_prog_CXX+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4360 if test -n "$CXX"; then
4361 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir
=.
4368 for ac_exec_ext
in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 if test -n "$CXX"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4383 $as_echo "$CXX" >&6; }
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4390 test -n "$CXX" && break
4393 if test -z "$CXX"; then
4395 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4397 # Extract the first word of "$ac_prog", so it can be a program name with args.
4398 set dummy
$ac_prog; ac_word
=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4404 if test -n "$ac_ct_CXX"; then
4405 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir
=.
4412 for ac_exec_ext
in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4425 if test -n "$ac_ct_CXX"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4427 $as_echo "$ac_ct_CXX" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4434 test -n "$ac_ct_CXX" && break
4437 if test "x$ac_ct_CXX" = x
; then
4440 case $cross_compiling:$ac_tool_warned in
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444 ac_tool_warned
=yes ;;
4452 # Provide some information about the compiler.
4453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4456 for ac_option
in --version -v -V -qversion; do
4457 { { ac_try
="$ac_compiler $ac_option >&5"
4459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4466 if test -s conftest.err; then
4468 ... rest of stderr output deleted ...
4469 10q' conftest.err >conftest.er1
4470 cat conftest.er1 >&5
4471 rm -f conftest.er1 conftest.err
4473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474 test $ac_status = 0; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4478 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4479 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4496 if ac_fn_cxx_try_compile "$LINENO"; then :
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4506 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4507 if test $ac_compiler_gnu = yes; then
4512 ac_test_CXXFLAGS=${CXXFLAGS+set}
4513 ac_save_CXXFLAGS=$CXXFLAGS
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4515 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4516 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4519 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4520 ac_cxx_werror_flag=yes
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4534 if ac_fn_cxx_try_compile "$LINENO"; then :
4535 ac_cv_prog_cxx_g=yes
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4549 if ac_fn_cxx_try_compile "$LINENO"; then :
4552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4565 if ac_fn_cxx_try_compile "$LINENO"; then :
4566 ac_cv_prog_cxx_g=yes
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4576 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4577 if test "$ac_test_CXXFLAGS" = set; then
4578 CXXFLAGS=$ac_save_CXXFLAGS
4579 elif test $ac_cv_prog_cxx_g = yes; then
4580 if test "$GXX" = yes; then
4586 if test "$GXX" = yes; then
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4609 if test -n "$GNATBIND"; then
4610 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 GNATBIND=$ac_cv_prog_GNATBIND
4630 if test -n "$GNATBIND"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4632 $as_echo "$GNATBIND" >&6; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4640 if test -z "$ac_cv_prog_GNATBIND"; then
4641 ac_ct_GNATBIND=$GNATBIND
4642 # Extract the first word of "gnatbind", so it can be a program name with args.
4643 set dummy gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$ac_ct_GNATBIND"; then
4650 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4670 if test -n "$ac_ct_GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4672 $as_echo "$ac_ct_GNATBIND" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4678 if test "x$ac_ct_GNATBIND" = x; then
4681 case $cross_compiling:$ac_tool_warned in
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4687 GNATBIND=$ac_ct_GNATBIND
4690 GNATBIND="$ac_cv_prog_GNATBIND"
4693 if test -n "$ac_tool_prefix"; then
4694 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4695 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4701 if test -n "$GNATMAKE"; then
4702 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 GNATMAKE=$ac_cv_prog_GNATMAKE
4722 if test -n "$GNATMAKE"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4724 $as_echo "$GNATMAKE" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4732 if test -z "$ac_cv_prog_GNATMAKE"; then
4733 ac_ct_GNATMAKE=$GNATMAKE
4734 # Extract the first word of "gnatmake", so it can be a program name with args.
4735 set dummy gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$ac_ct_GNATMAKE"; then
4742 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4762 if test -n "$ac_ct_GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4764 $as_echo "$ac_ct_GNATMAKE" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4770 if test "x$ac_ct_GNATMAKE" = x; then
4773 case $cross_compiling:$ac_tool_warned in
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4779 GNATMAKE=$ac_ct_GNATMAKE
4782 GNATMAKE="$ac_cv_prog_GNATMAKE"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4786 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4787 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 cat >conftest.adb <<EOF
4791 procedure conftest is begin null; end conftest;
4793 acx_cv_cc_gcc_supports_ada=no
4794 # There is a bug in old released versions of GCC which causes the
4795 # driver to exit successfully when the appropriate language module
4796 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4797 # Therefore we must check for the error message as well as an
4798 # unsuccessful exit.
4799 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4800 # given a .adb file, but produce no object file. So we must check
4801 # if an object file was really produced to guard against this.
4802 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4803 if test x"$errors" = x && test -f conftest.$ac_objext; then
4804 acx_cv_cc_gcc_supports_ada=yes
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4809 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4811 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4818 # autoconf is lame and doesn't give us any substitution variable for this.
4819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4820 NO_MINUS_C_MINUS_O=yes
4822 OUTPUT_OPTION='-o $@'
4827 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4828 # optimizations to be activated explicitly by the toplevel.
4830 */prev-gcc/xgcc*) ;;
4831 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4835 # -------------------------
4836 # Check C compiler features
4837 # -------------------------
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4846 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4847 # On Suns, sometimes $CPP names a directory.
4848 if test -n "$CPP" && test -d "$CPP"; then
4851 if test -z "$CPP"; then
4852 if test "${ac_cv_prog_CPP+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 # Double quotes because CPP needs to be expanded
4856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4859 for ac_c_preproc_warn_flag in '' yes
4861 # Use a header file that comes with gcc, so configuring glibc
4862 # with a fresh cross-compiler works.
4863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4864 # <limits.h> exists even on freestanding compilers.
4865 # On the NeXT, cc -E runs the code through the compiler's parser,
4866 # not just through cpp. "Syntax error" is here to catch this case.
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4870 # include <limits.h>
4872 # include <assert.h>
4876 if ac_fn_c_try_cpp "$LINENO"; then :
4879 # Broken: fails on valid input.
4882 rm -f conftest.err conftest.$ac_ext
4884 # OK, works on sane cases. Now check whether nonexistent headers
4885 # can be detected and how.
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <ac_nonexistent.h>
4890 if ac_fn_c_try_cpp "$LINENO"; then :
4891 # Broken: success on invalid input.
4894 # Passes both tests.
4898 rm -f conftest.err conftest.$ac_ext
4901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902 rm -f conftest.err conftest.
$ac_ext
4903 if $ac_preproc_ok; then :
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4916 $as_echo "$CPP" >&6; }
4918 for ac_c_preproc_warn_flag
in '' yes
4920 # Use a header file that comes with gcc, so configuring glibc
4921 # with a fresh cross-compiler works.
4922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923 # <limits.h> exists even on freestanding compilers.
4924 # On the NeXT, cc -E runs the code through the compiler's parser,
4925 # not just through cpp. "Syntax error" is here to catch this case.
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4929 # include <limits.h>
4931 # include <assert.h>
4935 if ac_fn_c_try_cpp
"$LINENO"; then :
4938 # Broken: fails on valid input.
4941 rm -f conftest.err conftest.
$ac_ext
4943 # OK, works on sane cases. Now check whether nonexistent headers
4944 # can be detected and how.
4945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 #include <ac_nonexistent.h>
4949 if ac_fn_c_try_cpp
"$LINENO"; then :
4950 # Broken: success on invalid input.
4953 # Passes both tests.
4957 rm -f conftest.err conftest.
$ac_ext
4960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4961 rm -f conftest.err conftest.
$ac_ext
4962 if $ac_preproc_ok; then :
4965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4967 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4968 See \`config.log' for more details." "$LINENO" 5; }
4972 ac_cpp
='$CPP $CPPFLAGS'
4973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4979 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4980 if test "${ac_cv_path_GREP+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 if test -z "$GREP"; then
4984 ac_path_GREP_found
=false
4985 # Loop through the user's path and test for each of PROGNAME-LIST
4986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4987 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4990 test -z "$as_dir" && as_dir
=.
4991 for ac_prog
in grep ggrep
; do
4992 for ac_exec_ext
in '' $ac_executable_extensions; do
4993 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4995 # Check for GNU ac_path_GREP and select it if it is found.
4996 # Check for GNU $ac_path_GREP
4997 case `"$ac_path_GREP" --version 2>&1` in
4999 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5002 $as_echo_n 0123456789 >"conftest.in"
5005 cat "conftest.in" "conftest.in" >"conftest.tmp"
5006 mv "conftest.tmp" "conftest.in"
5007 cp "conftest.in" "conftest.nl"
5008 $as_echo 'GREP' >> "conftest.nl"
5009 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5010 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5011 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5012 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5013 # Best one so far, save it but keep looking for a better one
5014 ac_cv_path_GREP
="$ac_path_GREP"
5015 ac_path_GREP_max
=$ac_count
5017 # 10*(2^10) chars as input seems more than enough
5018 test $ac_count -gt 10 && break
5020 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5023 $ac_path_GREP_found && break 3
5028 if test -z "$ac_cv_path_GREP"; then
5029 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5032 ac_cv_path_GREP
=$GREP
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5037 $as_echo "$ac_cv_path_GREP" >&6; }
5038 GREP
="$ac_cv_path_GREP"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5042 $as_echo_n "checking for egrep... " >&6; }
5043 if test "${ac_cv_path_EGREP+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5046 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5047 then ac_cv_path_EGREP
="$GREP -E"
5049 if test -z "$EGREP"; then
5050 ac_path_EGREP_found
=false
5051 # Loop through the user's path and test for each of PROGNAME-LIST
5052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5053 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5056 test -z "$as_dir" && as_dir
=.
5057 for ac_prog
in egrep; do
5058 for ac_exec_ext
in '' $ac_executable_extensions; do
5059 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5060 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5061 # Check for GNU ac_path_EGREP and select it if it is found.
5062 # Check for GNU $ac_path_EGREP
5063 case `"$ac_path_EGREP" --version 2>&1` in
5065 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5068 $as_echo_n 0123456789 >"conftest.in"
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 $as_echo 'EGREP' >> "conftest.nl"
5075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5076 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5077 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_EGREP
="$ac_path_EGREP"
5081 ac_path_EGREP_max
=$ac_count
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5086 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5089 $ac_path_EGREP_found && break 3
5094 if test -z "$ac_cv_path_EGREP"; then
5095 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5098 ac_cv_path_EGREP
=$EGREP
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5104 $as_echo "$ac_cv_path_EGREP" >&6; }
5105 EGREP
="$ac_cv_path_EGREP"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5109 $as_echo_n "checking for ANSI C header files... " >&6; }
5110 if test "${ac_cv_header_stdc+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5128 if ac_fn_c_try_compile
"$LINENO"; then :
5129 ac_cv_header_stdc
=yes
5131 ac_cv_header_stdc
=no
5133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5135 if test $ac_cv_header_stdc = yes; then
5136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5143 $EGREP "memchr" >/dev
/null
2>&1; then :
5146 ac_cv_header_stdc
=no
5152 if test $ac_cv_header_stdc = yes; then
5153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5160 $EGREP "free" >/dev
/null
2>&1; then :
5163 ac_cv_header_stdc
=no
5169 if test $ac_cv_header_stdc = yes; then
5170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5171 if test "$cross_compiling" = yes; then :
5174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5178 #if ((' ' & 0x0FF) == 0x020)
5179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5182 # define ISLOWER(c) \
5183 (('a' <= (c) && (c) <= 'i') \
5184 || ('j' <= (c) && (c) <= 'r') \
5185 || ('s' <= (c) && (c) <= 'z'))
5186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5194 for (i = 0; i < 256; i++)
5195 if (XOR (islower (i), ISLOWER (i))
5196 || toupper (i) != TOUPPER (i))
5201 if ac_fn_c_try_run
"$LINENO"; then :
5204 ac_cv_header_stdc
=no
5206 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5207 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5213 $as_echo "$ac_cv_header_stdc" >&6; }
5214 if test $ac_cv_header_stdc = yes; then
5216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5221 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5222 inttypes.h stdint.h unistd.h
5224 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5225 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5227 eval as_val
=\$
$as_ac_Header
5228 if test "x$as_val" = x
""yes; then :
5229 cat >>confdefs.h
<<_ACEOF
5230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5239 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5240 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5247 if test "$MINIX" = yes; then
5249 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5252 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5255 $as_echo "#define _MINIX 1" >>confdefs.h
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5261 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5262 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5268 # define __EXTENSIONS__ 1
5269 $ac_includes_default
5278 if ac_fn_c_try_compile
"$LINENO"; then :
5279 ac_cv_safe_to_define___extensions__
=yes
5281 ac_cv_safe_to_define___extensions__
=no
5283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5286 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5287 test $ac_cv_safe_to_define___extensions__ = yes &&
5288 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5290 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5292 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5294 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5296 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5300 ac_cpp
='$CPP $CPPFLAGS'
5301 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5305 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5306 # On Suns, sometimes $CPP names a directory.
5307 if test -n "$CPP" && test -d "$CPP"; then
5310 if test -z "$CPP"; then
5311 if test "${ac_cv_prog_CPP+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 # Double quotes because CPP needs to be expanded
5315 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5318 for ac_c_preproc_warn_flag
in '' yes
5320 # Use a header file that comes with gcc, so configuring glibc
5321 # with a fresh cross-compiler works.
5322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323 # <limits.h> exists even on freestanding compilers.
5324 # On the NeXT, cc -E runs the code through the compiler's parser,
5325 # not just through cpp. "Syntax error" is here to catch this case.
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5329 # include <limits.h>
5331 # include <assert.h>
5335 if ac_fn_c_try_cpp
"$LINENO"; then :
5338 # Broken: fails on valid input.
5341 rm -f conftest.err conftest.
$ac_ext
5343 # OK, works on sane cases. Now check whether nonexistent headers
5344 # can be detected and how.
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #include <ac_nonexistent.h>
5349 if ac_fn_c_try_cpp
"$LINENO"; then :
5350 # Broken: success on invalid input.
5353 # Passes both tests.
5357 rm -f conftest.err conftest.
$ac_ext
5360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5361 rm -f conftest.err conftest.
$ac_ext
5362 if $ac_preproc_ok; then :
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5375 $as_echo "$CPP" >&6; }
5377 for ac_c_preproc_warn_flag
in '' yes
5379 # Use a header file that comes with gcc, so configuring glibc
5380 # with a fresh cross-compiler works.
5381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5382 # <limits.h> exists even on freestanding compilers.
5383 # On the NeXT, cc -E runs the code through the compiler's parser,
5384 # not just through cpp. "Syntax error" is here to catch this case.
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5388 # include <limits.h>
5390 # include <assert.h>
5394 if ac_fn_c_try_cpp
"$LINENO"; then :
5397 # Broken: fails on valid input.
5400 rm -f conftest.err conftest.
$ac_ext
5402 # OK, works on sane cases. Now check whether nonexistent headers
5403 # can be detected and how.
5404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 #include <ac_nonexistent.h>
5408 if ac_fn_c_try_cpp
"$LINENO"; then :
5409 # Broken: success on invalid input.
5412 # Passes both tests.
5416 rm -f conftest.err conftest.
$ac_ext
5419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5420 rm -f conftest.err conftest.
$ac_ext
5421 if $ac_preproc_ok; then :
5424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5426 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5427 See \`config.log' for more details." "$LINENO" 5; }
5431 ac_cpp
='$CPP $CPPFLAGS'
5432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5437 $as_echo_n "checking for inline... " >&6; }
5438 if test "${ac_cv_c_inline+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5442 for ac_kw
in inline __inline__ __inline
; do
5443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5447 static $ac_kw foo_t static_foo () {return 0; }
5448 $ac_kw foo_t foo () {return 0; }
5452 if ac_fn_c_try_compile
"$LINENO"; then :
5453 ac_cv_c_inline
=$ac_kw
5455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5456 test "$ac_cv_c_inline" != no
&& break
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5461 $as_echo "$ac_cv_c_inline" >&6; }
5463 case $ac_cv_c_inline in
5466 case $ac_cv_c_inline in
5468 *) ac_val
=$ac_cv_c_inline;;
5470 cat >>confdefs.h
<<_ACEOF
5472 #define inline $ac_val
5479 # Check whether --enable-largefile was given.
5480 if test "${enable_largefile+set}" = set; then :
5481 enableval
=$enable_largefile;
5484 if test "$enable_largefile" != no
; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5487 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5488 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5491 ac_cv_sys_largefile_CC
=no
5492 if test "$GCC" != yes; then
5495 # IRIX 6.2 and later do not support large files by default,
5496 # so use the C compiler's -n32 option if that helps.
5497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5516 if ac_fn_c_try_compile
"$LINENO"; then :
5519 rm -f core conftest.err conftest.
$ac_objext
5521 if ac_fn_c_try_compile
"$LINENO"; then :
5522 ac_cv_sys_largefile_CC
=' -n32'; break
5524 rm -f core conftest.err conftest.
$ac_objext
5528 rm -f conftest.
$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5532 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5533 if test "$ac_cv_sys_largefile_CC" != no
; then
5534 CC
=$CC$ac_cv_sys_largefile_CC
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5538 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5539 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include <sys/types.h>
5546 /* Check that off_t can represent 2**63 - 1 correctly.
5547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5548 since some C++ compilers masquerading as C compilers
5549 incorrectly reject 9223372036854775807. */
5550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5552 && LARGE_OFF_T % 2147483647 == 1)
5562 if ac_fn_c_try_compile
"$LINENO"; then :
5563 ac_cv_sys_file_offset_bits
=no
; break
5565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #define _FILE_OFFSET_BITS 64
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5586 if ac_fn_c_try_compile
"$LINENO"; then :
5587 ac_cv_sys_file_offset_bits
=64; break
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5590 ac_cv_sys_file_offset_bits
=unknown
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5595 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5596 case $ac_cv_sys_file_offset_bits in #(
5599 cat >>confdefs.h
<<_ACEOF
5600 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5605 if test $ac_cv_sys_file_offset_bits = unknown
; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5607 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5608 if test "${ac_cv_sys_large_files+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <sys/types.h>
5615 /* Check that off_t can represent 2**63 - 1 correctly.
5616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5617 since some C++ compilers masquerading as C compilers
5618 incorrectly reject 9223372036854775807. */
5619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5621 && LARGE_OFF_T % 2147483647 == 1)
5631 if ac_fn_c_try_compile
"$LINENO"; then :
5632 ac_cv_sys_large_files
=no
; break
5634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #define _LARGE_FILES 1
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5655 if ac_fn_c_try_compile
"$LINENO"; then :
5656 ac_cv_sys_large_files
=1; break
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5659 ac_cv_sys_large_files
=unknown
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5664 $as_echo "$ac_cv_sys_large_files" >&6; }
5665 case $ac_cv_sys_large_files in #(
5668 cat >>confdefs.h
<<_ACEOF
5669 #define _LARGE_FILES $ac_cv_sys_large_files
5678 # sizeof(char) is 1 by definition.
5679 # The cast to long int works around a bug in the HP C Compiler
5680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5682 # This bug is HP SR number 8606223364.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5684 $as_echo_n "checking size of void *... " >&6; }
5685 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5691 if test "$ac_cv_type_void_p" = yes; then
5692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5694 { as_fn_set_status
77
5695 as_fn_error
"cannot compute sizeof (void *)
5696 See \`config.log' for more details." "$LINENO" 5; }; }
5698 ac_cv_sizeof_void_p
=0
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5704 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5708 cat >>confdefs.h
<<_ACEOF
5709 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5713 # The cast to long int works around a bug in the HP C Compiler
5714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5716 # This bug is HP SR number 8606223364.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5718 $as_echo_n "checking size of short... " >&6; }
5719 if test "${ac_cv_sizeof_short+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5725 if test "$ac_cv_type_short" = yes; then
5726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5728 { as_fn_set_status
77
5729 as_fn_error
"cannot compute sizeof (short)
5730 See \`config.log' for more details." "$LINENO" 5; }; }
5732 ac_cv_sizeof_short
=0
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5738 $as_echo "$ac_cv_sizeof_short" >&6; }
5742 cat >>confdefs.h
<<_ACEOF
5743 #define SIZEOF_SHORT $ac_cv_sizeof_short
5747 # The cast to long int works around a bug in the HP C Compiler
5748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5750 # This bug is HP SR number 8606223364.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5752 $as_echo_n "checking size of int... " >&6; }
5753 if test "${ac_cv_sizeof_int+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5756 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5759 if test "$ac_cv_type_int" = yes; then
5760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5762 { as_fn_set_status
77
5763 as_fn_error
"cannot compute sizeof (int)
5764 See \`config.log' for more details." "$LINENO" 5; }; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5772 $as_echo "$ac_cv_sizeof_int" >&6; }
5776 cat >>confdefs.h
<<_ACEOF
5777 #define SIZEOF_INT $ac_cv_sizeof_int
5781 # The cast to long int works around a bug in the HP C Compiler
5782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5784 # This bug is HP SR number 8606223364.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5786 $as_echo_n "checking size of long... " >&6; }
5787 if test "${ac_cv_sizeof_long+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5790 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5793 if test "$ac_cv_type_long" = yes; then
5794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5796 { as_fn_set_status
77
5797 as_fn_error
"cannot compute sizeof (long)
5798 See \`config.log' for more details." "$LINENO" 5; }; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5806 $as_echo "$ac_cv_sizeof_long" >&6; }
5810 cat >>confdefs.h
<<_ACEOF
5811 #define SIZEOF_LONG $ac_cv_sizeof_long
5815 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5816 if test "x$ac_cv_type_long_long" = x
""yes; then :
5818 cat >>confdefs.h
<<_ACEOF
5819 #define HAVE_LONG_LONG 1
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 long" >&5
5827 $as_echo_n "checking size of long long... " >&6; }
5828 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5834 if test "$ac_cv_type_long_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 long)
5839 See \`config.log' for more details." "$LINENO" 5; }; }
5841 ac_cv_sizeof_long_long
=0
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5847 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5851 cat >>confdefs.h
<<_ACEOF
5852 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5858 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5859 if test "x$ac_cv_type___int64" = x
""yes; then :
5861 cat >>confdefs.h
<<_ACEOF
5862 #define HAVE___INT64 1
5865 # The cast to long int works around a bug in the HP C Compiler
5866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5868 # This bug is HP SR number 8606223364.
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5870 $as_echo_n "checking size of __int64... " >&6; }
5871 if test "${ac_cv_sizeof___int64+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5874 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5877 if test "$ac_cv_type___int64" = yes; then
5878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5880 { as_fn_set_status
77
5881 as_fn_error
"cannot compute sizeof (__int64)
5882 See \`config.log' for more details." "$LINENO" 5; }; }
5884 ac_cv_sizeof___int64
=0
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5890 $as_echo "$ac_cv_sizeof___int64" >&6; }
5894 cat >>confdefs.h
<<_ACEOF
5895 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5901 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5902 case $ac_cv_c_int8_t in #(
5906 cat >>confdefs.h
<<_ACEOF
5907 #define int8_t $ac_cv_c_int8_t
5912 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5913 case $ac_cv_c_int16_t in #(
5917 cat >>confdefs.h
<<_ACEOF
5918 #define int16_t $ac_cv_c_int16_t
5923 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5924 case $ac_cv_c_int32_t in #(
5928 cat >>confdefs.h
<<_ACEOF
5929 #define int32_t $ac_cv_c_int32_t
5934 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5935 case $ac_cv_c_int64_t in #(
5939 cat >>confdefs.h
<<_ACEOF
5940 #define int64_t $ac_cv_c_int64_t
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5947 $as_echo_n "checking for long long int... " >&6; }
5948 if test "${ac_cv_type_long_long_int+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5954 /* For now, do not test the preprocessor; as of 2007 there are too many
5955 implementations with broken preprocessors. Perhaps this can
5956 be revisited in 2012. In the meantime, code should not expect
5957 #if to work with literals wider than 32 bits. */
5958 /* Test literals. */
5959 long long int ll = 9223372036854775807ll;
5960 long long int nll = -9223372036854775807LL;
5961 unsigned long long int ull = 18446744073709551615ULL;
5962 /* Test constant expressions. */
5963 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5965 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5971 /* Test availability of runtime routines for shift and division. */
5972 long long int llmax = 9223372036854775807ll;
5973 unsigned long long int ullmax = 18446744073709551615ull;
5974 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5975 | (llmax / ll) | (llmax % ll)
5976 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5977 | (ullmax / ull) | (ullmax % ull));
5983 if ac_fn_c_try_link
"$LINENO"; then :
5984 if test "$cross_compiling" = yes; then :
5985 ac_cv_type_long_long_int
=yes
5987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5992 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5993 # define LLONG_MAX (HALF - 1 + HALF)
5998 long long int n = 1;
6002 long long int m = n << i;
6005 if (LLONG_MAX / 2 < m)
6013 if ac_fn_c_try_run
"$LINENO"; then :
6014 ac_cv_type_long_long_int
=yes
6016 ac_cv_type_long_long_int
=no
6018 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6019 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6023 ac_cv_type_long_long_int
=no
6025 rm -f core conftest.err conftest.
$ac_objext \
6026 conftest
$ac_exeext conftest.
$ac_ext
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6029 $as_echo "$ac_cv_type_long_long_int" >&6; }
6030 if test $ac_cv_type_long_long_int = yes; then
6032 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6038 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6039 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6041 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6044 test $ac_cv_type_long_long_int = yes \
6045 && ac_type
='long long int' \
6046 || ac_type
='long int'
6048 cat >>confdefs.h
<<_ACEOF
6049 #define intmax_t $ac_type
6056 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6057 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6059 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6062 for ac_type
in 'int' 'long int' 'long long int'; do
6063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 $ac_includes_default
6069 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6076 if ac_fn_c_try_compile
"$LINENO"; then :
6078 cat >>confdefs.h
<<_ACEOF
6079 #define intptr_t $ac_type
6084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6085 test -z "$ac_type" && break
6090 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6091 case $ac_cv_c_uint8_t in #(
6095 $as_echo "#define _UINT8_T 1" >>confdefs.h
6098 cat >>confdefs.h
<<_ACEOF
6099 #define uint8_t $ac_cv_c_uint8_t
6104 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6105 case $ac_cv_c_uint16_t in #(
6110 cat >>confdefs.h
<<_ACEOF
6111 #define uint16_t $ac_cv_c_uint16_t
6116 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6117 case $ac_cv_c_uint32_t in #(
6121 $as_echo "#define _UINT32_T 1" >>confdefs.h
6124 cat >>confdefs.h
<<_ACEOF
6125 #define uint32_t $ac_cv_c_uint32_t
6130 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6131 case $ac_cv_c_uint64_t in #(
6135 $as_echo "#define _UINT64_T 1" >>confdefs.h
6138 cat >>confdefs.h
<<_ACEOF
6139 #define uint64_t $ac_cv_c_uint64_t
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6146 $as_echo_n "checking for unsigned long long int... " >&6; }
6147 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 /* For now, do not test the preprocessor; as of 2007 there are too many
6154 implementations with broken preprocessors. Perhaps this can
6155 be revisited in 2012. In the meantime, code should not expect
6156 #if to work with literals wider than 32 bits. */
6157 /* Test literals. */
6158 long long int ll = 9223372036854775807ll;
6159 long long int nll = -9223372036854775807LL;
6160 unsigned long long int ull = 18446744073709551615ULL;
6161 /* Test constant expressions. */
6162 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6164 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6170 /* Test availability of runtime routines for shift and division. */
6171 long long int llmax = 9223372036854775807ll;
6172 unsigned long long int ullmax = 18446744073709551615ull;
6173 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6174 | (llmax / ll) | (llmax % ll)
6175 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6176 | (ullmax / ull) | (ullmax % ull));
6182 if ac_fn_c_try_link
"$LINENO"; then :
6183 ac_cv_type_unsigned_long_long_int
=yes
6185 ac_cv_type_unsigned_long_long_int
=no
6187 rm -f core conftest.err conftest.
$ac_objext \
6188 conftest
$ac_exeext conftest.
$ac_ext
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6191 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6192 if test $ac_cv_type_unsigned_long_long_int = yes; then
6194 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6200 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6201 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6203 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6206 test $ac_cv_type_unsigned_long_long_int = yes \
6207 && ac_type
='unsigned long long int' \
6208 || ac_type
='unsigned long int'
6210 cat >>confdefs.h
<<_ACEOF
6211 #define uintmax_t $ac_type
6218 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6219 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6221 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6224 for ac_type
in 'unsigned int' 'unsigned long int' \
6225 'unsigned long long int'; do
6226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 $ac_includes_default
6232 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6239 if ac_fn_c_try_compile
"$LINENO"; then :
6241 cat >>confdefs.h
<<_ACEOF
6242 #define uintptr_t $ac_type
6247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6248 test -z "$ac_type" && break
6266 # ---------------------
6267 # Warnings and checking
6268 # ---------------------
6270 # Check $CC warning features (if it's GCC).
6271 # We want to use -pedantic, but we don't want warnings about
6274 # * overlong strings
6275 # So, we only use -pedantic if we can disable those warnings.
6278 save_CFLAGS
="$CFLAGS"
6279 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6280 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6283 $as_echo_n "checking whether $CC supports $option... " >&6; }
6284 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6285 $as_echo_n "(cached) " >&6
6288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6299 if ac_fn_c_try_compile
"$LINENO"; then :
6300 eval "$as_acx_Woption=yes"
6302 eval "$as_acx_Woption=no"
6304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 eval ac_res
=\$
$as_acx_Woption
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6309 $as_echo "$ac_res" >&6; }
6310 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6311 loose_warn
="$loose_warn${loose_warn:+ }$option"
6314 CFLAGS
="$save_CFLAGS"
6317 save_CFLAGS
="$CFLAGS"
6318 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6319 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6322 $as_echo_n "checking whether $CC supports $option... " >&6; }
6323 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6324 $as_echo_n "(cached) " >&6
6327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6338 if ac_fn_c_try_compile
"$LINENO"; then :
6339 eval "$as_acx_Woption=yes"
6341 eval "$as_acx_Woption=no"
6343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6346 eval ac_res
=\$
$as_acx_Woption
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6348 $as_echo "$ac_res" >&6; }
6349 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6350 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6353 CFLAGS
="$save_CFLAGS"
6356 save_CFLAGS
="$CFLAGS"
6357 for option
in -Wmissing-format-attribute; do
6358 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6361 $as_echo_n "checking whether $CC supports $option... " >&6; }
6362 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6363 $as_echo_n "(cached) " >&6
6366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6377 if ac_fn_c_try_compile
"$LINENO"; then :
6378 eval "$as_acx_Woption=yes"
6380 eval "$as_acx_Woption=no"
6382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6385 eval ac_res
=\$
$as_acx_Woption
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6387 $as_echo "$ac_res" >&6; }
6388 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6389 strict_warn
="$strict_warn${strict_warn:+ }$option"
6392 CFLAGS
="$save_CFLAGS"
6395 save_CFLAGS
="$CFLAGS"
6396 for option
in -Wold-style-definition -Wc++-compat; do
6397 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6400 $as_echo_n "checking whether $CC supports $option... " >&6; }
6401 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6416 if ac_fn_c_try_compile
"$LINENO"; then :
6417 eval "$as_acx_Woption=yes"
6419 eval "$as_acx_Woption=no"
6421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6424 eval ac_res
=\$
$as_acx_Woption
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6428 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6431 CFLAGS
="$save_CFLAGS"
6433 if test "$GCC" = yes; then :
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6435 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6436 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6439 save_CFLAGS
="$CFLAGS"
6440 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6452 if ac_fn_c_try_compile
"$LINENO"; then :
6453 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6455 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 CFLAGS
="$save_CFLAGS"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6461 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6462 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6463 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6468 # Check whether --enable-werror-always was given.
6469 if test "${enable_werror_always+set}" = set; then :
6470 enableval
=$enable_werror_always;
6472 enable_werror_always
=no
6475 if test $enable_werror_always = yes; then :
6476 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6481 # The above macros do nothing if the compiler is not GCC. However, the
6482 # Makefile has more goo to add other flags, so these variables are used
6483 # to enable warnings only for GCC.
6486 if test "x$GCC" = "xyes"; then
6487 warn_cflags
='$(GCC_WARN_CFLAGS)'
6488 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6493 # Enable expensive internal checks
6495 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6499 # Check whether --enable-checking was given.
6500 if test "${enable_checking+set}" = set; then :
6501 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6504 # Determine the default checks.
6505 if test x
$is_release = x
; then
6506 ac_checking_flags
=yes
6508 ac_checking_flags
=release
6512 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6513 for check
in release
$ac_checking_flags
6516 # these set all the flags to specific states
6517 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6518 ac_fold_checking
= ; ac_gc_checking
=1 ;
6519 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6520 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6521 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6522 ac_types_checking
=1 ;;
6523 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6524 ac_fold_checking
= ; ac_gc_checking
= ;
6525 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6526 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6527 ac_tree_checking
= ; ac_valgrind_checking
= ;
6528 ac_types_checking
= ;;
6529 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6530 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6531 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6532 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6533 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6534 ac_types_checking
=1 ;;
6535 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6536 ac_fold_checking
= ; ac_gc_checking
= ;
6537 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6538 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6539 ac_tree_checking
= ; ac_valgrind_checking
= ;
6540 ac_types_checking
= ;;
6541 # these enable particular checks
6542 assert
) ac_assert_checking
=1 ;;
6543 df
) ac_df_checking
=1 ;;
6544 fold) ac_fold_checking
=1 ;;
6545 gc
) ac_gc_checking
=1 ;;
6546 gcac
) ac_gc_always_collect
=1 ;;
6547 gimple
) ac_gimple_checking
=1 ;;
6548 misc
) ac_checking
=1 ;;
6549 rtl
) ac_rtl_checking
=1 ;;
6550 rtlflag
) ac_rtlflag_checking
=1 ;;
6551 runtime
) ac_runtime_checking
=1 ;;
6552 tree
) ac_tree_checking
=1 ;;
6553 types
) ac_types_checking
=1 ;;
6554 valgrind
) ac_valgrind_checking
=1 ;;
6555 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6561 if test x
$ac_checking != x
; then
6563 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6565 nocommon_flag
=-fno-common
6568 if test x
$ac_df_checking != x
; then
6570 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6573 if test x
$ac_assert_checking != x
; then
6575 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6578 if test x
$ac_gimple_checking != x
; then
6580 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6584 if test x
$ac_runtime_checking != x
; then
6586 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6589 if test x
$ac_tree_checking != x
; then
6591 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6593 TREEBROWSER
=tree-browser.o
6595 if test x
$ac_types_checking != x
; then
6597 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6601 if test x
$ac_rtl_checking != x
; then
6603 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6606 if test x
$ac_rtlflag_checking != x
; then
6608 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6611 if test x
$ac_gc_checking != x
; then
6613 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6616 if test x
$ac_gc_always_collect != x
; then
6618 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6621 if test x
$ac_fold_checking != x
; then
6623 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6626 valgrind_path_defines
=
6629 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6630 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6638 if test x
$ac_valgrind_checking != x
; then
6639 # It is certainly possible that there's valgrind but no valgrind.h.
6640 # GCC relies on making annotations so we must have both.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6642 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 #include <valgrind/memcheck.h>
6646 #ifndef VALGRIND_DISCARD
6647 #error VALGRIND_DISCARD not defined
6650 if ac_fn_c_try_cpp
"$LINENO"; then :
6651 gcc_cv_header_valgrind_memcheck_h
=yes
6653 gcc_cv_header_valgrind_memcheck_h
=no
6655 rm -f conftest.err conftest.
$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6657 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6659 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 #include <memcheck.h>
6663 #ifndef VALGRIND_DISCARD
6664 #error VALGRIND_DISCARD not defined
6667 if ac_fn_c_try_cpp
"$LINENO"; then :
6668 gcc_cv_header_memcheck_h
=yes
6670 gcc_cv_header_memcheck_h
=no
6672 rm -f conftest.err conftest.
$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6674 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6676 # Prepare PATH_SEPARATOR.
6677 # The user is always right.
6678 if test "${PATH_SEPARATOR+set}" != set; then
6679 echo "#! /bin/sh" >conf$$.sh
6680 echo "exit 0" >>conf$$.sh
6682 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6690 # Find out how to test for executable files. Don't use a zero-byte file,
6691 # as systems may use methods other than mode bits to determine executability.
6692 cat >conf$$.
file <<_ASEOF
6696 chmod +x conf$$.
file
6697 if test -x conf$$.
file >/dev
/null
2>&1; then
6698 ac_executable_p
="test -x"
6700 ac_executable_p
="test -f"
6704 # Extract the first word of "valgrind", so it can be a program name with args.
6705 set dummy valgrind
; ac_word
=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6711 case "$valgrind_path" in
6713 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6716 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6717 for ac_dir
in $PATH; do
6719 test -z "$ac_dir" && ac_dir
=.
6720 for ac_exec_ext
in '' $ac_executable_extensions; do
6721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6722 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6723 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6733 valgrind_path
="$ac_cv_path_valgrind_path"
6734 if test -n "$valgrind_path"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6736 $as_echo "$valgrind_path" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6742 if test "x$valgrind_path" = "x" \
6743 ||
(test $have_valgrind_h = no \
6744 && test $gcc_cv_header_memcheck_h = no \
6745 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6746 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6748 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6749 valgrind_command
="$valgrind_path -q"
6751 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6753 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6755 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6758 if test $gcc_cv_header_memcheck_h = yes; then
6760 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6767 # Enable code coverage collection
6768 # Check whether --enable-coverage was given.
6769 if test "${enable_coverage+set}" = set; then :
6770 enableval
=$enable_coverage; case "${enableval}" in
6772 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6775 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6778 # a.k.a. --disable-coverage
6782 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6791 # Check whether --enable-gather-detailed-mem-stats was given.
6792 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6793 enableval
=$enable_gather_detailed_mem_stats;
6795 enable_gather_detailed_mem_stats
=no
6798 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6800 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6804 # -------------------------------
6805 # Miscenalleous configure options
6806 # -------------------------------
6808 # See if we are building gcc with C++.
6809 # Check whether --enable-build-with-cxx was given.
6810 if test "${enable_build_with_cxx+set}" = set; then :
6811 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6813 ENABLE_BUILD_WITH_CXX
=no
6820 # Check whether --with-stabs was given.
6821 if test "${with_stabs+set}" = set; then :
6822 withval
=$with_stabs; stabs
="$with_stabs"
6828 # Determine whether or not multilibs are enabled.
6829 # Check whether --enable-multilib was given.
6830 if test "${enable_multilib+set}" = set; then :
6831 enableval
=$enable_multilib;
6838 # Enable __cxa_atexit for C++.
6839 # Check whether --enable-__cxa_atexit was given.
6840 if test "${enable___cxa_atexit+set}" = set; then :
6841 enableval
=$enable___cxa_atexit;
6845 # Enable C extension for decimal float if target supports it.
6847 # Check whether --enable-decimal-float was given.
6848 if test "${enable_decimal_float+set}" = set; then :
6849 enableval
=$enable_decimal_float;
6850 case $enable_decimal_float in
6851 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6852 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6853 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6859 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6860 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6862 enable_decimal_float
=yes
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6866 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6867 enable_decimal_float
=no
6874 # x86's use BID format instead of DPD
6875 case x
$enable_decimal_float in
6878 i?
86*-*-* | x86_64
*-*-*)
6879 enable_decimal_float
=bid
6882 enable_decimal_float
=dpd
6885 default_decimal_float
=$enable_decimal_float
6888 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6889 # dependency on libdecnumber.
6890 default_decimal_float
=dpd
6897 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6899 cat >>confdefs.h
<<_ACEOF
6900 #define ENABLE_DECIMAL_FLOAT $dfp
6904 # Use default_decimal_float for dependency.
6905 enable_decimal_float
=$default_decimal_float
6907 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6909 cat >>confdefs.h
<<_ACEOF
6910 #define ENABLE_DECIMAL_BID_FORMAT $bid
6914 # Enable C extension for fixed-point arithmetic.
6915 # Check whether --enable-fixed-point was given.
6916 if test "${enable_fixed_point+set}" = set; then :
6917 enableval
=$enable_fixed_point;
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6926 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6927 enable_fixed_point
=no
6930 enable_fixed_point
=yes
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6936 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6937 enable_fixed_point
=no
6945 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6947 cat >>confdefs.h
<<_ACEOF
6948 #define ENABLE_FIXED_POINT $fixedpoint
6953 # Pass with no value to take the default
6954 # Pass with a value to specify a thread package
6955 # Check whether --enable-threads was given.
6956 if test "${enable_threads+set}" = set; then :
6957 enableval
=$enable_threads;
6963 # Check whether --enable-tls was given.
6964 if test "${enable_tls+set}" = set; then :
6965 enableval
=$enable_tls;
6968 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6969 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6977 # Check whether --enable-objc-gc was given.
6978 if test "${enable_objc_gc+set}" = set; then :
6979 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6990 # Check whether --with-dwarf2 was given.
6991 if test "${with_dwarf2+set}" = set; then :
6992 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6998 # Check whether --enable-shared was given.
6999 if test "${enable_shared+set}" = set; then :
7000 enableval
=$enable_shared;
7001 case $enable_shared in
7005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7006 for pkg
in $enableval; do
7007 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7022 # Check whether --with-build-sysroot was given.
7023 if test "${with_build_sysroot+set}" = set; then :
7024 withval
=$with_build_sysroot;
7029 # Check whether --with-sysroot was given.
7030 if test "${with_sysroot+set}" = set; then :
7031 withval
=$with_sysroot;
7032 case ${with_sysroot} in
7033 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7034 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7037 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7038 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7040 if test "x$prefix" = xNONE
; then
7041 test_prefix
=/usr
/local
7045 if test "x$exec_prefix" = xNONE
; then
7046 test_exec_prefix
=$test_prefix
7048 test_exec_prefix
=$exec_prefix
7050 case ${TARGET_SYSTEM_ROOT} in
7051 "${test_prefix}"|
"${test_prefix}/"*|\
7052 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7053 '${prefix}'|
'${prefix}/'*|\
7054 '${exec_prefix}'|
'${exec_prefix}/'*)
7055 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7056 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7063 TARGET_SYSTEM_ROOT_DEFINE
=
7064 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7073 # Check whether --with-specs was given.
7074 if test "${with_specs+set}" = set; then :
7075 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7085 # Check whether --with-pkgversion was given.
7086 if test "${with_pkgversion+set}" = set; then :
7087 withval
=$with_pkgversion; case "$withval" in
7088 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7090 *) PKGVERSION
="($withval) " ;;
7101 # Check whether --with-bugurl was given.
7102 if test "${with_bugurl+set}" = set; then :
7103 withval
=$with_bugurl; case "$withval" in
7104 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7107 *) BUGURL
="$withval"
7111 BUGURL
="http://gcc.gnu.org/bugs.html"
7121 REPORT_BUGS_TO
="<$BUGURL>"
7122 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7129 # Sanity check enable_languages in case someone does not run the toplevel
7130 # configure # script.
7131 # Check whether --enable-languages was given.
7132 if test "${enable_languages+set}" = set; then :
7133 enableval
=$enable_languages; case ,${enable_languages}, in
7135 # go safe -- we cannot be much sure without the toplevel
7137 # analysis of which target libs are present and usable
7141 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7146 enable_languages
=c
,${enable_languages}
7155 # Check whether --with-multilib-list was given.
7156 if test "${with_multilib_list+set}" = set; then :
7157 withval
=$with_multilib_list; :
7159 with_multilib_list
=default
7163 # -------------------------
7164 # Checks for other programs
7165 # -------------------------
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7168 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7170 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7171 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7172 $as_echo_n "(cached) " >&6
7174 cat >conftest.
make <<\_ACEOF
7177 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7180 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7182 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7184 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7188 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7190 $as_echo "yes" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 SET_MAKE
="MAKE=${MAKE-make}"
7199 # Find some useful tools
7200 for ac_prog
in gawk mawk nawk
awk
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy
$ac_prog; ac_word
=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_AWK+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$AWK"; then
7210 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir
=.
7217 for ac_exec_ext
in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_AWK
="$ac_prog"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 if test -n "$AWK"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7232 $as_echo "$AWK" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7239 test -n "$AWK" && break
7242 # We need awk to create options.c and options.h.
7243 # Bail out if it's missing.
7245 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7249 $as_echo_n "checking whether ln -s works... " >&6; }
7250 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7253 rm -f conftestdata_t
7254 echo >conftestdata_f
7255 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7257 gcc_cv_prog_LN_S
="ln -s"
7259 if ln conftestdata_f conftestdata_t
2>/dev
/null
7263 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7265 gcc_cv_prog_LN_S
="cp -p"
7271 rm -f conftestdata_f conftestdata_t
7274 LN_S
="$gcc_cv_prog_LN_S"
7275 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277 $as_echo "yes" >&6; }
7279 if test "$gcc_cv_prog_LN_S" = "ln"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7281 $as_echo "no, using ln" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7284 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7289 $as_echo_n "checking whether ln works... " >&6; }
7290 if test "${acx_cv_prog_LN+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7293 rm -f conftestdata_t
7294 echo >conftestdata_f
7295 if ln conftestdata_f conftestdata_t
2>/dev
/null
7301 rm -f conftestdata_f conftestdata_t
7304 if test $acx_cv_prog_LN = no
; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7307 $as_echo "no, using $LN" >&6; }
7309 LN
="$acx_cv_prog_LN"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7311 $as_echo "yes" >&6; }
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7316 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
7322 if test -n "$RANLIB"; then
7323 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir
=.
7330 for ac_exec_ext
in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 RANLIB
=$ac_cv_prog_RANLIB
7343 if test -n "$RANLIB"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7345 $as_echo "$RANLIB" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7353 if test -z "$ac_cv_prog_RANLIB"; then
7354 ac_ct_RANLIB
=$RANLIB
7355 # Extract the first word of "ranlib", so it can be a program name with args.
7356 set dummy ranlib
; ac_word
=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$ac_ct_RANLIB"; then
7363 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir
=.
7370 for ac_exec_ext
in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7383 if test -n "$ac_ct_RANLIB"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7385 $as_echo "$ac_ct_RANLIB" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7391 if test "x$ac_ct_RANLIB" = x
; then
7394 case $cross_compiling:$ac_tool_warned in
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned
=yes ;;
7400 RANLIB
=$ac_ct_RANLIB
7403 RANLIB
="$ac_cv_prog_RANLIB"
7408 # By default, the Darwin ranlib will not treat common symbols as
7409 # definitions when building the archive table of contents. Other
7410 # ranlibs do that; pass an option to the Darwin ranlib that makes
7411 # it behave similarly.
7419 # Find a good install program. We prefer a C program (faster),
7420 # so one script is as good as another. But avoid the broken or
7421 # incompatible versions:
7422 # SysV /etc/install, /usr/sbin/install
7423 # SunOS /usr/etc/install
7424 # IRIX /sbin/install
7426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7428 # ./install, which can be erroneously created by make from ./install.sh.
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7430 $as_echo_n "checking for a BSD compatible install... " >&6; }
7431 if test -z "$INSTALL"; then
7432 if test "${ac_cv_path_install+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7435 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7436 for ac_dir
in $PATH; do
7437 # Account for people who put trailing slashes in PATH elements.
7439 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7441 # OSF1 and SCO ODT 3.0 have their own names for install.
7442 for ac_prog
in ginstall scoinst
install; do
7443 if test -f $ac_dir/$ac_prog; then
7444 if test $ac_prog = install &&
7445 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7446 # AIX install. It has an incompatible calling convention.
7447 # OSF/1 installbsd also uses dspmsg, but is usable.
7450 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7461 if test "${ac_cv_path_install+set}" = set; then
7462 INSTALL
="$ac_cv_path_install"
7464 # As a last resort, use the slow shell script. We don't cache a
7465 # path for INSTALL within a source directory, because that will
7466 # break other packages using the cache if that directory is
7467 # removed, or if the path is relative.
7468 INSTALL
="$ac_install_sh"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7472 $as_echo "$INSTALL" >&6; }
7474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7475 # It thinks the first close brace ends the variable substitution.
7476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7478 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7481 # See if cmp has --ignore-initial.
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7483 $as_echo_n "checking for cmp's capabilities... " >&6; }
7484 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7489 gcc_cv_prog_cmp_skip
=slowcompare
7490 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7491 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7494 gcc_cv_prog_cmp_skip
=gnucompare
7497 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7498 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7499 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7502 gcc_cv_prog_cmp_skip
=fastcompare
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7510 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7511 make_compare_target
=$gcc_cv_prog_cmp_skip
7515 # See if we have the mktemp command.
7516 # Extract the first word of "mktemp", so it can be a program name with args.
7517 set dummy mktemp
; ac_word
=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
7523 if test -n "$have_mktemp_command"; then
7524 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir
=.
7531 for ac_exec_ext
in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533 ac_cv_prog_have_mktemp_command
="yes"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7544 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7545 if test -n "$have_mktemp_command"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7547 $as_echo "$have_mktemp_command" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7555 # See if makeinfo has been installed and is modern enough
7556 # that we can use it.
7558 # Extract the first word of "makeinfo", so it can be a program name with args.
7559 set dummy makeinfo
; ac_word
=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$MAKEINFO"; then
7566 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir
=.
7573 for ac_exec_ext
in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_MAKEINFO
="makeinfo"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 MAKEINFO
=$ac_cv_prog_MAKEINFO
7586 if test -n "$MAKEINFO"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7588 $as_echo "$MAKEINFO" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7595 if test -n "$MAKEINFO"; then
7596 # Found it, now check the version.
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7598 $as_echo_n "checking for modern makeinfo... " >&6; }
7599 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7602 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7603 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7605 case $ac_prog_version in
7606 '') gcc_cv_prog_makeinfo_modern
=no
;;
7607 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7608 *) gcc_cv_prog_makeinfo_modern
=no
;;
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7613 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7615 gcc_cv_prog_makeinfo_modern
=no
7617 if test $gcc_cv_prog_makeinfo_modern = no
; then
7618 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7621 if test $gcc_cv_prog_makeinfo_modern = no
; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7623 *** Makeinfo is missing or too old.
7624 *** Info documentation will not be built." >&5
7625 $as_echo "$as_me: WARNING:
7626 *** Makeinfo is missing or too old.
7627 *** Info documentation will not be built." >&2;}
7634 # Is pod2man recent enough to regenerate manpages?
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7636 $as_echo_n "checking for recent Pod::Man... " >&6; }
7637 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7639 $as_echo "yes" >&6; }
7640 GENERATED_MANPAGES
=generated-manpages
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
7654 set dummy
$ac_prog; ac_word
=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_FLEX+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$FLEX"; then
7661 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir
=.
7668 for ac_exec_ext
in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_FLEX
="$ac_prog"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 FLEX
=$ac_cv_prog_FLEX
7681 if test -n "$FLEX"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7683 $as_echo "$FLEX" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7690 test -n "$FLEX" && break
7692 test -n "$FLEX" || FLEX
="$MISSING flex"
7696 for ac_prog
in bison
7698 # Extract the first word of "$ac_prog", so it can be a program name with args.
7699 set dummy
$ac_prog; ac_word
=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_BISON+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$BISON"; then
7706 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir
=.
7713 for ac_exec_ext
in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_BISON
="$ac_prog"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 BISON
=$ac_cv_prog_BISON
7726 if test -n "$BISON"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7728 $as_echo "$BISON" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7735 test -n "$BISON" && break
7737 test -n "$BISON" || BISON
="$MISSING bison"
7740 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7741 # check for build == host before using them.
7744 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7745 && test -d ..
/binutils
; then
7746 NM
='${objdir}/../binutils/nm-new'
7748 # Extract the first word of "nm", so it can be a program name with args.
7749 set dummy nm
; ac_word
=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if test "${ac_cv_prog_NM+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 if test -n "$NM"; then
7756 ac_cv_prog_NM
="$NM" # Let the user override the test.
7758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir
=.
7763 for ac_exec_ext
in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7777 if test -n "$NM"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7779 $as_echo "$NM" >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7789 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7790 && test -d ..
/binutils
; then
7791 AR
='${objdir}/../binutils/ar'
7793 # Extract the first word of "ar", so it can be a program name with args.
7794 set dummy
ar; ac_word
=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if test "${ac_cv_prog_AR+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7800 if test -n "$AR"; then
7801 ac_cv_prog_AR
="$AR" # Let the user override the test.
7803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir
=.
7808 for ac_exec_ext
in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7822 if test -n "$AR"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7824 $as_echo "$AR" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7834 # --------------------
7835 # Checks for C headers
7836 # --------------------
7838 # Need to reject headers which give warnings, so that the -Werror bootstrap
7839 # works later. *sigh* This needs to come before all header checks.
7841 ac_c_preproc_warn_flag
=yes
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7844 $as_echo_n "checking for ANSI C header files... " >&6; }
7845 if test "${ac_cv_header_stdc+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7863 if ac_fn_c_try_compile
"$LINENO"; then :
7864 ac_cv_header_stdc
=yes
7866 ac_cv_header_stdc
=no
7868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7870 if test $ac_cv_header_stdc = yes; then
7871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "memchr" >/dev
/null
2>&1; then :
7881 ac_cv_header_stdc
=no
7887 if test $ac_cv_header_stdc = yes; then
7888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "free" >/dev
/null
2>&1; then :
7898 ac_cv_header_stdc
=no
7904 if test $ac_cv_header_stdc = yes; then
7905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906 if test "$cross_compiling" = yes; then :
7909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7913 #if ((' ' & 0x0FF) == 0x020)
7914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7917 # define ISLOWER(c) \
7918 (('a' <= (c) && (c) <= 'i') \
7919 || ('j' <= (c) && (c) <= 'r') \
7920 || ('s' <= (c) && (c) <= 'z'))
7921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7929 for (i = 0; i < 256; i++)
7930 if (XOR (islower (i), ISLOWER (i))
7931 || toupper (i) != TOUPPER (i))
7936 if ac_fn_c_try_run
"$LINENO"; then :
7939 ac_cv_header_stdc
=no
7941 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7942 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7948 $as_echo "$ac_cv_header_stdc" >&6; }
7949 if test $ac_cv_header_stdc = yes; then
7951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7956 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7957 if test "${ac_cv_header_time+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 #include <sys/types.h>
7963 #include <sys/time.h>
7969 if ((struct tm *) 0)
7975 if ac_fn_c_try_compile
"$LINENO"; then :
7976 ac_cv_header_time
=yes
7978 ac_cv_header_time
=no
7980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7983 $as_echo "$ac_cv_header_time" >&6; }
7984 if test $ac_cv_header_time = yes; then
7986 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7991 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7992 if test "${gcc_cv_header_string+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7998 #include <strings.h>
8007 if ac_fn_c_try_compile
"$LINENO"; then :
8008 gcc_cv_header_string
=yes
8010 gcc_cv_header_string
=no
8012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8015 $as_echo "$gcc_cv_header_string" >&6; }
8016 if test $gcc_cv_header_string = yes; then
8018 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8023 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8024 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 #include <sys/types.h>
8030 #include <sys/wait.h>
8032 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8035 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8043 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8048 if ac_fn_c_try_compile
"$LINENO"; then :
8049 ac_cv_header_sys_wait_h
=yes
8051 ac_cv_header_sys_wait_h
=no
8053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8056 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8057 if test $ac_cv_header_sys_wait_h = yes; then
8059 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8063 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8064 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8065 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8066 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8068 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8069 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8070 eval as_val
=\$
$as_ac_Header
8071 if test "x$as_val" = x
""yes; then :
8072 cat >>confdefs.h
<<_ACEOF
8073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 # Check for thread headers.
8081 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8082 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8088 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8089 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8096 # These tests can't be done till we know if we have limits.h.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8098 $as_echo_n "checking for CHAR_BIT... " >&6; }
8099 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #ifdef HAVE_LIMITS_H
8111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8112 $EGREP "found" >/dev
/null
2>&1; then :
8113 gcc_cv_decl_char_bit
=yes
8115 gcc_cv_decl_char_bit
=no
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8122 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8123 if test $gcc_cv_decl_char_bit = no
; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8125 $as_echo_n "checking number of bits in a byte... " >&6; }
8126 if test "${gcc_cv_c_nbby+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8131 while test $i -lt 65; do
8132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8139 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8140 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8146 if ac_fn_c_try_compile
"$LINENO"; then :
8147 gcc_cv_c_nbby
=$i; break
8149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8152 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8156 $as_echo "$gcc_cv_c_nbby" >&6; }
8157 if test $gcc_cv_c_nbby = failed
; then
8158 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8161 cat >>confdefs.h
<<_ACEOF
8162 #define CHAR_BIT $gcc_cv_c_nbby
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8168 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8169 if test "${ac_cv_c_bigendian+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8172 ac_cv_c_bigendian
=unknown
8173 # See if we're dealing with a universal compiler.
8174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #ifndef __APPLE_CC__
8177 not a universal capable compiler
8182 if ac_fn_c_try_compile
"$LINENO"; then :
8184 # Check for potential -arch flags. It is not universal unless
8185 # there are at least two -arch flags with different values.
8188 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8189 if test -n "$ac_prev"; then
8191 i?
86 | x86_64 | ppc | ppc64
)
8192 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8195 ac_cv_c_bigendian
=universal
8201 elif test "x$ac_word" = "x-arch"; then
8206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8207 if test $ac_cv_c_bigendian = unknown
; then
8208 # See if sys/param.h defines the BYTE_ORDER macro.
8209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 #include <sys/types.h>
8212 #include <sys/param.h>
8217 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8218 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8227 if ac_fn_c_try_compile
"$LINENO"; then :
8228 # It does; now see whether it defined to BIG_ENDIAN or not.
8229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #include <sys/types.h>
8232 #include <sys/param.h>
8237 #if BYTE_ORDER != BIG_ENDIAN
8245 if ac_fn_c_try_compile
"$LINENO"; then :
8246 ac_cv_c_bigendian
=yes
8248 ac_cv_c_bigendian
=no
8250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8254 if test $ac_cv_c_bigendian = unknown
; then
8255 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8263 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8271 if ac_fn_c_try_compile
"$LINENO"; then :
8272 # It does; now see whether it defined to _BIG_ENDIAN or not.
8273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8288 if ac_fn_c_try_compile
"$LINENO"; then :
8289 ac_cv_c_bigendian
=yes
8291 ac_cv_c_bigendian
=no
8293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8297 if test $ac_cv_c_bigendian = unknown
; then
8298 # Compile a test program.
8299 if test "$cross_compiling" = yes; then :
8300 # Try to guess by grepping values from an object file.
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 short int ascii_mm[] =
8304 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8305 short int ascii_ii[] =
8306 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8307 int use_ascii (int i) {
8308 return ascii_mm[i] + ascii_ii[i];
8310 short int ebcdic_ii[] =
8311 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8312 short int ebcdic_mm[] =
8313 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8314 int use_ebcdic (int i) {
8315 return ebcdic_mm[i] + ebcdic_ii[i];
8322 return use_ascii (foo) == use_ebcdic (foo);
8327 if ac_fn_c_try_compile
"$LINENO"; then :
8328 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8329 ac_cv_c_bigendian
=yes
8331 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8332 if test "$ac_cv_c_bigendian" = unknown
; then
8333 ac_cv_c_bigendian
=no
8335 # finding both strings is unlikely to happen, but who knows?
8336 ac_cv_c_bigendian
=unknown
8340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 $ac_includes_default
8349 /* Are we little or big endian? From Harbison&Steele. */
8353 char c[sizeof (long int)];
8356 return u.c[sizeof (long int) - 1] == 1;
8362 if ac_fn_c_try_run
"$LINENO"; then :
8363 ac_cv_c_bigendian
=no
8365 ac_cv_c_bigendian
=yes
8367 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8368 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8374 $as_echo "$ac_cv_c_bigendian" >&6; }
8375 case $ac_cv_c_bigendian in #(
8377 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8383 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8387 as_fn_error
"unknown endianness
8388 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8397 # These libraries may be used by collect2.
8398 # We may need a special search path to get them linked.
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8400 $as_echo_n "checking for collect2 libraries... " >&6; }
8401 if test "${gcc_cv_collect2_libs+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8405 for libs
in '' -lld -lmld \
8406 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8407 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8413 /* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8428 if ac_fn_c_try_link
"$LINENO"; then :
8429 gcc_cv_collect2_libs
="$libs"; break
8431 rm -f core conftest.err conftest.
$ac_objext \
8432 conftest
$ac_exeext conftest.
$ac_ext
8435 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8438 $as_echo "$gcc_cv_collect2_libs" >&6; }
8439 case $gcc_cv_collect2_libs in
8441 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8445 # When building Ada code on Alpha, we need exc_resume which is usually in
8446 # -lexc. So test for it.
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8450 $as_echo_n "checking for library containing exc_resume... " >&6; }
8451 if test "${ac_cv_search_exc_resume+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8454 ac_func_search_save_LIBS
=$LIBS
8455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8468 return exc_resume ();
8473 for ac_lib
in '' exc
; do
8474 if test -z "$ac_lib"; then
8475 ac_res
="none required"
8478 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8480 if ac_fn_c_try_link
"$LINENO"; then :
8481 ac_cv_search_exc_resume
=$ac_res
8483 rm -f core conftest.err conftest.
$ac_objext \
8485 if test "${ac_cv_search_exc_resume+set}" = set; then :
8489 if test "${ac_cv_search_exc_resume+set}" = set; then :
8492 ac_cv_search_exc_resume
=no
8495 LIBS
=$ac_func_search_save_LIBS
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8498 $as_echo "$ac_cv_search_exc_resume" >&6; }
8499 ac_res
=$ac_cv_search_exc_resume
8500 if test "$ac_res" != no
; then :
8501 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8509 # Some systems put ldexp and frexp in libm instead of libc; assume
8510 # they're both in the same place. jcf-dump needs them.
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8514 $as_echo_n "checking for library containing ldexp... " >&6; }
8515 if test "${ac_cv_search_ldexp+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8518 ac_func_search_save_LIBS
=$LIBS
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 /* Override any GCC internal prototype to avoid an error.
8523 Use char because int might match the return type of a GCC
8524 builtin and then its argument prototype would still apply. */
8537 for ac_lib
in '' m
; do
8538 if test -z "$ac_lib"; then
8539 ac_res
="none required"
8542 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8544 if ac_fn_c_try_link
"$LINENO"; then :
8545 ac_cv_search_ldexp
=$ac_res
8547 rm -f core conftest.err conftest.
$ac_objext \
8549 if test "${ac_cv_search_ldexp+set}" = set; then :
8553 if test "${ac_cv_search_ldexp+set}" = set; then :
8556 ac_cv_search_ldexp
=no
8559 LIBS
=$ac_func_search_save_LIBS
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8562 $as_echo "$ac_cv_search_ldexp" >&6; }
8563 ac_res
=$ac_cv_search_ldexp
8564 if test "$ac_res" != no
; then :
8565 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8573 # Use <inttypes.h> only if it exists,
8574 # doesn't clash with <sys/types.h>, and declares intmax_t.
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8576 $as_echo_n "checking for inttypes.h... " >&6; }
8577 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <sys/types.h>
8583 #include <inttypes.h>
8592 if ac_fn_c_try_compile
"$LINENO"; then :
8593 gcc_cv_header_inttypes_h
=yes
8595 gcc_cv_header_inttypes_h
=no
8597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8601 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8602 if test $gcc_cv_header_inttypes_h = yes; then
8604 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8610 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8611 sysconf strsignal getrusage nl_langinfo \
8612 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8613 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
8615 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8616 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8617 eval as_val
=\$
$as_ac_var
8618 if test "x$as_val" = x
""yes; then :
8619 cat >>confdefs.h
<<_ACEOF
8620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8627 if test x
$ac_cv_func_mbstowcs = xyes
; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8629 $as_echo_n "checking whether mbstowcs works... " >&6; }
8630 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8633 if test "$cross_compiling" = yes; then :
8634 gcc_cv_func_mbstowcs_works
=yes
8636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8645 if ac_fn_c_try_run
"$LINENO"; then :
8646 gcc_cv_func_mbstowcs_works
=yes
8648 gcc_cv_func_mbstowcs_works
=no
8650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8651 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8656 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8657 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8659 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8664 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8665 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8669 cat >>confdefs.h
<<_ACEOF
8675 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8676 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8680 cat >>confdefs.h
<<_ACEOF
8681 #define caddr_t char *
8688 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8689 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8690 gcc_header_sys_mman_h
=yes
8692 gcc_header_sys_mman_h
=no
8695 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8696 if test "x$ac_cv_func_mmap" = x
""yes; then :
8702 if test "$gcc_header_sys_mman_h" != yes \
8703 ||
test "$gcc_func_mmap" != yes; then
8704 gcc_cv_func_mmap_file
=no
8705 gcc_cv_func_mmap_dev_zero
=no
8706 gcc_cv_func_mmap_anon
=no
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8709 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8710 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8713 # Add a system to this blacklist if
8714 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8715 # memory area containing the same data that you'd get if you applied
8716 # read() to the same fd. The only system known to have a problem here
8717 # is VMS, where text files have record structure.
8720 gcc_cv_func_mmap_file
=no
;;
8722 gcc_cv_func_mmap_file
=yes;;
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8726 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8728 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8729 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8732 # Add a system to this blacklist if it has mmap() but /dev/zero
8733 # does not exist, or if mmapping /dev/zero does not give anonymous
8734 # zeroed pages with both the following properties:
8735 # 1. If you map N consecutive pages in with one call, and then
8736 # unmap any subset of those pages, the pages that were not
8737 # explicitly unmapped remain accessible.
8738 # 2. If you map two adjacent blocks of memory and then unmap them
8739 # both at once, they must both go away.
8740 # Systems known to be in this category are Windows (all variants),
8743 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8744 gcc_cv_func_mmap_dev_zero
=no
;;
8746 gcc_cv_func_mmap_dev_zero
=yes;;
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8750 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8752 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8754 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8755 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <sys/types.h>
8761 #include <sys/mman.h>
8764 #ifndef MAP_ANONYMOUS
8765 #define MAP_ANONYMOUS MAP_ANON
8771 int n = MAP_ANONYMOUS;
8776 if ac_fn_c_try_compile
"$LINENO"; then :
8777 gcc_cv_decl_map_anon
=yes
8779 gcc_cv_decl_map_anon
=no
8781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8784 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8786 if test $gcc_cv_decl_map_anon = no
; then
8787 gcc_cv_func_mmap_anon
=no
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8790 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8791 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8794 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8795 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8796 # doesn't give anonymous zeroed pages with the same properties listed
8797 # above for use of /dev/zero.
8798 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8800 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8801 gcc_cv_func_mmap_anon
=no
;;
8803 gcc_cv_func_mmap_anon
=yes;;
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8807 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8811 if test $gcc_cv_func_mmap_file = yes; then
8813 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8816 if test $gcc_cv_func_mmap_dev_zero = yes; then
8818 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8821 if test $gcc_cv_func_mmap_anon = yes; then
8823 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8830 # Under VMS, vfork works very differently than on Unix. The standard test
8831 # won't work, and it isn't easily adaptable. It makes more sense to
8833 ac_cv_func_vfork_works
=yes
8836 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8837 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8841 cat >>confdefs.h
<<_ACEOF
8847 for ac_header
in vfork.h
8849 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8850 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8851 cat >>confdefs.h
<<_ACEOF
8852 #define HAVE_VFORK_H 1
8858 for ac_func
in fork vfork
8860 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8861 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8862 eval as_val
=\$
$as_ac_var
8863 if test "x$as_val" = x
""yes; then :
8864 cat >>confdefs.h
<<_ACEOF
8865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8871 if test "x$ac_cv_func_fork" = xyes
; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8873 $as_echo_n "checking for working fork... " >&6; }
8874 if test "${ac_cv_func_fork_works+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8877 if test "$cross_compiling" = yes; then :
8878 ac_cv_func_fork_works
=cross
8880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 $ac_includes_default
8887 /* By Ruediger Kuhlmann. */
8894 if ac_fn_c_try_run
"$LINENO"; then :
8895 ac_cv_func_fork_works
=yes
8897 ac_cv_func_fork_works
=no
8899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8905 $as_echo "$ac_cv_func_fork_works" >&6; }
8908 ac_cv_func_fork_works
=$ac_cv_func_fork
8910 if test "x$ac_cv_func_fork_works" = xcross
; then
8912 *-*-amigaos* |
*-*-msdosdjgpp*)
8913 # Override, as these systems have only a dummy fork() stub
8914 ac_cv_func_fork_works
=no
8917 ac_cv_func_fork_works
=yes
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8921 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8923 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8924 if test "x$ac_cv_func_vfork" = xyes
; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8926 $as_echo_n "checking for working vfork... " >&6; }
8927 if test "${ac_cv_func_vfork_works+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8930 if test "$cross_compiling" = yes; then :
8931 ac_cv_func_vfork_works
=cross
8933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 /* Thanks to Paul Eggert for this test. */
8936 $ac_includes_default
8937 #include <sys/wait.h>
8941 /* On some sparc systems, changes by the child to local and incoming
8942 argument registers are propagated back to the parent. The compiler
8943 is told about this with #include <vfork.h>, but some compilers
8944 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8945 static variable whose address is put into a register that is
8946 clobbered by the vfork. */
8949 sparc_address_test (int arg)
8951 sparc_address_test (arg) int arg;
8972 pid_t parent = getpid ();
8975 sparc_address_test (0);
8980 /* Here is another test for sparc vfork register problems. This
8981 test uses lots of local variables, at least as many local
8982 variables as main has allocated so far including compiler
8983 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8984 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8985 reuse the register of parent for one of the local variables,
8986 since it will think that parent can't possibly be used any more
8987 in this routine. Assigning to the local variable will thus
8988 munge parent in the parent process. */
8990 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8991 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8992 /* Convince the compiler that p..p7 are live; otherwise, it might
8993 use the same hardware register for all 8 local variables. */
8994 if (p != p1 || p != p2 || p != p3 || p != p4
8995 || p != p5 || p != p6 || p != p7)
8998 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8999 from child file descriptors. If the child closes a descriptor
9000 before it execs or exits, this munges the parent's descriptor
9001 as well. Test for this by closing stdout in the child. */
9002 _exit(close(fileno(stdout)) != 0);
9007 while (wait(&status) != child)
9010 /* Was there some problem with vforking? */
9013 /* Did the child fail? (This shouldn't happen.) */
9016 /* Did the vfork/compiler bug occur? */
9017 || parent != getpid()
9019 /* Did the file descriptor bug occur? */
9020 || fstat(fileno(stdout), &st) != 0
9025 if ac_fn_c_try_run
"$LINENO"; then :
9026 ac_cv_func_vfork_works
=yes
9028 ac_cv_func_vfork_works
=no
9030 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9031 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9036 $as_echo "$ac_cv_func_vfork_works" >&6; }
9039 if test "x$ac_cv_func_fork_works" = xcross
; then
9040 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9042 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9045 if test "x$ac_cv_func_vfork_works" = xyes
; then
9047 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9051 $as_echo "#define vfork fork" >>confdefs.h
9054 if test "x$ac_cv_func_fork_works" = xyes
; then
9056 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9062 if test "X$prefix" = "XNONE"; then
9063 acl_final_prefix
="$ac_default_prefix"
9065 acl_final_prefix
="$prefix"
9067 if test "X$exec_prefix" = "XNONE"; then
9068 acl_final_exec_prefix
='${prefix}'
9070 acl_final_exec_prefix
="$exec_prefix"
9072 acl_save_prefix
="$prefix"
9073 prefix
="$acl_final_prefix"
9074 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9075 prefix
="$acl_save_prefix"
9078 # Check whether --with-gnu-ld was given.
9079 if test "${with_gnu_ld+set}" = set; then :
9080 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9085 # Prepare PATH_SEPARATOR.
9086 # The user is always right.
9087 if test "${PATH_SEPARATOR+set}" != set; then
9088 echo "#! /bin/sh" >conf$$.sh
9089 echo "exit 0" >>conf$$.sh
9091 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9099 if test "$GCC" = yes; then
9100 # Check if gcc -print-prog-name=ld gives a path.
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9102 $as_echo_n "checking for ld used by GCC... " >&6; }
9105 # gcc leaves a trailing carriage return which upsets mingw
9106 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9108 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9111 # Accept absolute paths.
9112 [\\/]* |
[A-Za-z
]:[\\/]*)
9113 re_direlt
='/[^/][^/]*/\.\./'
9114 # Canonicalize the path of ld
9115 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9116 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9117 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9119 test -z "$LD" && LD
="$ac_prog"
9122 # If it fails, then pretend we aren't using GCC.
9126 # If it is relative, then search for the first ld in PATH.
9130 elif test "$with_gnu_ld" = yes; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9132 $as_echo_n "checking for GNU ld... " >&6; }
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9135 $as_echo_n "checking for non-GNU ld... " >&6; }
9137 if test "${acl_cv_path_LD+set}" = set; then :
9138 $as_echo_n "(cached) " >&6
9140 if test -z "$LD"; then
9141 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9142 for ac_dir
in $PATH; do
9143 test -z "$ac_dir" && ac_dir
=.
9144 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9145 acl_cv_path_LD
="$ac_dir/$ac_prog"
9146 # Check to see if the program is GNU ld. I'd rather use --version,
9147 # but apparently some GNU ld's only accept -v.
9148 # Break only if it was the GNU/non-GNU ld that we prefer.
9149 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9150 test "$with_gnu_ld" != no
&& break
9152 test "$with_gnu_ld" != yes && break
9158 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9162 LD
="$acl_cv_path_LD"
9163 if test -n "$LD"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9165 $as_echo "$LD" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9170 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9173 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
9176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9177 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9178 acl_cv_prog_gnu_ld
=yes
9180 acl_cv_prog_gnu_ld
=no
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9184 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9185 with_gnu_ld
=$acl_cv_prog_gnu_ld
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9190 $as_echo_n "checking for shared library run path origin... " >&6; }
9191 if test "${acl_cv_rpath+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9195 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9196 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9203 $as_echo "$acl_cv_rpath" >&6; }
9205 libext
="$acl_cv_libext"
9206 shlibext
="$acl_cv_shlibext"
9207 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9208 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9209 hardcode_direct
="$acl_cv_hardcode_direct"
9210 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9211 # Check whether --enable-rpath was given.
9212 if test "${enable_rpath+set}" = set; then :
9213 enableval
=$enable_rpath; :
9227 acl_save_prefix
="$prefix"
9228 prefix
="$acl_final_prefix"
9229 acl_save_exec_prefix
="$exec_prefix"
9230 exec_prefix
="$acl_final_exec_prefix"
9232 eval additional_includedir
=\"$includedir\"
9233 eval additional_libdir
=\"$libdir\"
9235 exec_prefix
="$acl_save_exec_prefix"
9236 prefix
="$acl_save_prefix"
9239 # Check whether --with-libiconv-prefix was given.
9240 if test "${with_libiconv_prefix+set}" = set; then :
9241 withval
=$with_libiconv_prefix;
9242 if test "X$withval" = "Xno"; then
9245 if test "X$withval" = "X"; then
9247 acl_save_prefix
="$prefix"
9248 prefix
="$acl_final_prefix"
9249 acl_save_exec_prefix
="$exec_prefix"
9250 exec_prefix
="$acl_final_exec_prefix"
9252 eval additional_includedir
=\"$includedir\"
9253 eval additional_libdir
=\"$libdir\"
9255 exec_prefix
="$acl_save_exec_prefix"
9256 prefix
="$acl_save_prefix"
9259 additional_includedir
="$withval/include"
9260 additional_libdir
="$withval/lib"
9271 names_already_handled
=
9272 names_next_round
='iconv '
9273 while test -n "$names_next_round"; do
9274 names_this_round
="$names_next_round"
9276 for name
in $names_this_round; do
9278 for n
in $names_already_handled; do
9279 if test "$n" = "$name"; then
9284 if test -z "$already_handled"; then
9285 names_already_handled
="$names_already_handled $name"
9286 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9287 eval value
=\"\
$HAVE_LIB$uppername\"
9288 if test -n "$value"; then
9289 if test "$value" = yes; then
9290 eval value
=\"\
$LIB$uppername\"
9291 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9292 eval value
=\"\
$LTLIB$uppername\"
9293 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9302 if test $use_additional = yes; then
9303 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9304 found_dir
="$additional_libdir"
9305 found_so
="$additional_libdir/lib$name.$shlibext"
9306 if test -f "$additional_libdir/lib$name.la"; then
9307 found_la
="$additional_libdir/lib$name.la"
9310 if test -f "$additional_libdir/lib$name.$libext"; then
9311 found_dir
="$additional_libdir"
9312 found_a
="$additional_libdir/lib$name.$libext"
9313 if test -f "$additional_libdir/lib$name.la"; then
9314 found_la
="$additional_libdir/lib$name.la"
9319 if test "X$found_dir" = "X"; then
9320 for x
in $LDFLAGS $LTLIBICONV; do
9322 acl_save_prefix
="$prefix"
9323 prefix
="$acl_final_prefix"
9324 acl_save_exec_prefix
="$exec_prefix"
9325 exec_prefix
="$acl_final_exec_prefix"
9327 exec_prefix
="$acl_save_exec_prefix"
9328 prefix
="$acl_save_prefix"
9332 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9333 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9335 found_so
="$dir/lib$name.$shlibext"
9336 if test -f "$dir/lib$name.la"; then
9337 found_la
="$dir/lib$name.la"
9340 if test -f "$dir/lib$name.$libext"; then
9342 found_a
="$dir/lib$name.$libext"
9343 if test -f "$dir/lib$name.la"; then
9344 found_la
="$dir/lib$name.la"
9350 if test "X$found_dir" != "X"; then
9355 if test "X$found_dir" != "X"; then
9356 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9357 if test "X$found_so" != "X"; then
9358 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9359 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9362 for x
in $ltrpathdirs; do
9363 if test "X$x" = "X$found_dir"; then
9368 if test -z "$haveit"; then
9369 ltrpathdirs
="$ltrpathdirs $found_dir"
9371 if test "$hardcode_direct" = yes; then
9372 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9374 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9375 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9377 for x
in $rpathdirs; do
9378 if test "X$x" = "X$found_dir"; then
9383 if test -z "$haveit"; then
9384 rpathdirs
="$rpathdirs $found_dir"
9388 for x
in $LDFLAGS $LIBICONV; do
9390 acl_save_prefix
="$prefix"
9391 prefix
="$acl_final_prefix"
9392 acl_save_exec_prefix
="$exec_prefix"
9393 exec_prefix
="$acl_final_exec_prefix"
9395 exec_prefix
="$acl_save_exec_prefix"
9396 prefix
="$acl_save_prefix"
9398 if test "X$x" = "X-L$found_dir"; then
9403 if test -z "$haveit"; then
9404 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9406 if test "$hardcode_minus_L" != no
; then
9407 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9409 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9415 if test "X$found_a" != "X"; then
9416 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9418 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9421 additional_includedir
=
9422 case "$found_dir" in
9424 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9425 additional_includedir
="$basedir/include"
9428 if test "X$additional_includedir" != "X"; then
9429 if test "X$additional_includedir" != "X/usr/include"; then
9431 if test "X$additional_includedir" = "X/usr/local/include"; then
9432 if test -n "$GCC"; then
9434 linux
*) haveit
=yes;;
9438 if test -z "$haveit"; then
9439 for x
in $CPPFLAGS $INCICONV; do
9441 acl_save_prefix
="$prefix"
9442 prefix
="$acl_final_prefix"
9443 acl_save_exec_prefix
="$exec_prefix"
9444 exec_prefix
="$acl_final_exec_prefix"
9446 exec_prefix
="$acl_save_exec_prefix"
9447 prefix
="$acl_save_prefix"
9449 if test "X$x" = "X-I$additional_includedir"; then
9454 if test -z "$haveit"; then
9455 if test -d "$additional_includedir"; then
9456 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9462 if test -n "$found_la"; then
9463 save_libdir
="$libdir"
9465 */* |
*\\*) .
"$found_la" ;;
9466 *) .
"./$found_la" ;;
9468 libdir
="$save_libdir"
9469 for dep
in $dependency_libs; do
9472 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9473 if test "X$additional_libdir" != "X/usr/lib"; then
9475 if test "X$additional_libdir" = "X/usr/local/lib"; then
9476 if test -n "$GCC"; then
9478 linux
*) haveit
=yes;;
9482 if test -z "$haveit"; then
9484 for x
in $LDFLAGS $LIBICONV; do
9486 acl_save_prefix
="$prefix"
9487 prefix
="$acl_final_prefix"
9488 acl_save_exec_prefix
="$exec_prefix"
9489 exec_prefix
="$acl_final_exec_prefix"
9491 exec_prefix
="$acl_save_exec_prefix"
9492 prefix
="$acl_save_prefix"
9494 if test "X$x" = "X-L$additional_libdir"; then
9499 if test -z "$haveit"; then
9500 if test -d "$additional_libdir"; then
9501 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9505 for x
in $LDFLAGS $LTLIBICONV; do
9507 acl_save_prefix
="$prefix"
9508 prefix
="$acl_final_prefix"
9509 acl_save_exec_prefix
="$exec_prefix"
9510 exec_prefix
="$acl_final_exec_prefix"
9512 exec_prefix
="$acl_save_exec_prefix"
9513 prefix
="$acl_save_prefix"
9515 if test "X$x" = "X-L$additional_libdir"; then
9520 if test -z "$haveit"; then
9521 if test -d "$additional_libdir"; then
9522 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9529 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9530 if test "$enable_rpath" != no
; then
9532 for x
in $rpathdirs; do
9533 if test "X$x" = "X$dir"; then
9538 if test -z "$haveit"; then
9539 rpathdirs
="$rpathdirs $dir"
9542 for x
in $ltrpathdirs; do
9543 if test "X$x" = "X$dir"; then
9548 if test -z "$haveit"; then
9549 ltrpathdirs
="$ltrpathdirs $dir"
9554 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9557 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9560 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9561 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9567 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9568 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9574 if test "X$rpathdirs" != "X"; then
9575 if test -n "$hardcode_libdir_separator"; then
9577 for found_dir
in $rpathdirs; do
9578 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9580 acl_save_libdir
="$libdir"
9582 eval flag
=\"$hardcode_libdir_flag_spec\"
9583 libdir
="$acl_save_libdir"
9584 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9586 for found_dir
in $rpathdirs; do
9587 acl_save_libdir
="$libdir"
9589 eval flag
=\"$hardcode_libdir_flag_spec\"
9590 libdir
="$acl_save_libdir"
9591 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9595 if test "X$ltrpathdirs" != "X"; then
9596 for found_dir
in $ltrpathdirs; do
9597 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9607 am_save_CPPFLAGS
="$CPPFLAGS"
9609 for element
in $INCICONV; do
9611 for x
in $CPPFLAGS; do
9613 acl_save_prefix
="$prefix"
9614 prefix
="$acl_final_prefix"
9615 acl_save_exec_prefix
="$exec_prefix"
9616 exec_prefix
="$acl_final_exec_prefix"
9618 exec_prefix
="$acl_save_exec_prefix"
9619 prefix
="$acl_save_prefix"
9621 if test "X$x" = "X$element"; then
9626 if test -z "$haveit"; then
9627 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9633 $as_echo_n "checking for iconv... " >&6; }
9634 if test "${am_cv_func_iconv+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9638 am_cv_func_iconv
="no, consider installing GNU libiconv"
9640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9647 iconv_t cd = iconv_open("","");
9648 iconv(cd,NULL,NULL,NULL,NULL);
9654 if ac_fn_c_try_link
"$LINENO"; then :
9655 am_cv_func_iconv
=yes
9657 rm -f core conftest.err conftest.
$ac_objext \
9658 conftest
$ac_exeext conftest.
$ac_ext
9659 if test "$am_cv_func_iconv" != yes; then
9660 am_save_LIBS
="$LIBS"
9661 LIBS
="$LIBS $LIBICONV"
9662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9669 iconv_t cd = iconv_open("","");
9670 iconv(cd,NULL,NULL,NULL,NULL);
9676 if ac_fn_c_try_link
"$LINENO"; then :
9678 am_cv_func_iconv
=yes
9680 rm -f core conftest.err conftest.
$ac_objext \
9681 conftest
$ac_exeext conftest.
$ac_ext
9682 LIBS
="$am_save_LIBS"
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9687 $as_echo "$am_cv_func_iconv" >&6; }
9688 if test "$am_cv_func_iconv" = yes; then
9690 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9693 if test "$am_cv_lib_iconv" = yes; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9695 $as_echo_n "checking how to link with libiconv... " >&6; }
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9697 $as_echo "$LIBICONV" >&6; }
9699 CPPFLAGS
="$am_save_CPPFLAGS"
9706 if test "$am_cv_func_iconv" = yes; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9708 $as_echo_n "checking for iconv declaration... " >&6; }
9709 if test "${am_cv_proto_iconv+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9722 #if defined(__STDC__) || defined(__cplusplus)
9723 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9736 if ac_fn_c_try_compile
"$LINENO"; then :
9737 am_cv_proto_iconv_arg1
=""
9739 am_cv_proto_iconv_arg1
="const"
9741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9742 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);"
9745 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9747 }$am_cv_proto_iconv" >&5
9749 }$am_cv_proto_iconv" >&6; }
9751 cat >>confdefs.h
<<_ACEOF
9752 #define ICONV_CONST $am_cv_proto_iconv_arg1
9757 # Until we have in-tree GNU iconv:
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9763 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9764 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9778 if ac_fn_c_try_link
"$LINENO"; then :
9779 am_cv_val_LC_MESSAGES
=yes
9781 am_cv_val_LC_MESSAGES
=no
9783 rm -f core conftest.err conftest.
$ac_objext \
9784 conftest
$ac_exeext conftest.
$ac_ext
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9787 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9788 if test $am_cv_val_LC_MESSAGES = yes; then
9790 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9797 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9798 if test "${am_cv_langinfo_codeset+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 #include <langinfo.h>
9807 char* cs = nl_langinfo(CODESET);
9812 if ac_fn_c_try_link
"$LINENO"; then :
9813 am_cv_langinfo_codeset
=yes
9815 am_cv_langinfo_codeset
=no
9817 rm -f core conftest.err conftest.
$ac_objext \
9818 conftest
$ac_exeext conftest.
$ac_ext
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9822 $as_echo "$am_cv_langinfo_codeset" >&6; }
9823 if test $am_cv_langinfo_codeset = yes; then
9825 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9830 # We will need to find libiberty.h and ansidecl.h
9831 saved_CFLAGS
="$CFLAGS"
9832 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9833 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9834 strsignal strstr strverscmp \
9835 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9836 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
9838 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9840 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9841 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9842 $as_echo_n "(cached) " >&6
9844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9847 #define $ac_tr_decl 1
9849 #include "ansidecl.h"
9856 char *(*pfn) = (char *(*)) $ac_func ;
9862 if ac_fn_c_try_compile
"$LINENO"; then :
9863 eval "gcc_cv_have_decl_$ac_func=yes"
9865 eval "gcc_cv_have_decl_$ac_func=no"
9867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9870 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9872 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9873 #define $ac_tr_decl 1
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9879 #define $ac_tr_decl 0
9887 for ac_func
in getrlimit setrlimit getrusage
9889 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9891 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9892 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9893 $as_echo_n "(cached) " >&6
9895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9898 #define $ac_tr_decl 1
9900 #include "ansidecl.h"
9902 #ifdef HAVE_SYS_RESOURCE_H
9903 #include <sys/resource.h>
9911 char *(*pfn) = (char *(*)) $ac_func ;
9917 if ac_fn_c_try_compile
"$LINENO"; then :
9918 eval "gcc_cv_have_decl_$ac_func=yes"
9920 eval "gcc_cv_have_decl_$ac_func=no"
9922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9925 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9927 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9928 #define $ac_tr_decl 1
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9934 #define $ac_tr_decl 0
9942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9945 #include "ansidecl.h"
9947 #ifdef HAVE_SYS_RESOURCE_H
9948 #include <sys/resource.h>
9959 if ac_fn_c_try_compile
"$LINENO"; then :
9963 $as_echo "#define rlim_t long" >>confdefs.h
9966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9968 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9969 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9970 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9971 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9972 for ac_func
in ldgetname
9974 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9976 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9977 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9978 $as_echo_n "(cached) " >&6
9980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9983 #define $ac_tr_decl 1
9985 #include "ansidecl.h"
9998 char *(*pfn) = (char *(*)) $ac_func ;
10004 if ac_fn_c_try_compile
"$LINENO"; then :
10005 eval "gcc_cv_have_decl_$ac_func=yes"
10007 eval "gcc_cv_have_decl_$ac_func=no"
10009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10012 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10014 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10015 #define $ac_tr_decl 1
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10021 #define $ac_tr_decl 0
10029 for ac_func
in times
10031 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10033 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10034 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10035 $as_echo_n "(cached) " >&6
10037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10040 #define $ac_tr_decl 1
10042 #include "ansidecl.h"
10043 #include "system.h"
10044 #ifdef HAVE_SYS_TIMES_H
10045 #include <sys/times.h>
10053 char *(*pfn) = (char *(*)) $ac_func ;
10059 if ac_fn_c_try_compile
"$LINENO"; then :
10060 eval "gcc_cv_have_decl_$ac_func=yes"
10062 eval "gcc_cv_have_decl_$ac_func=no"
10064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10067 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10069 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10070 #define $ac_tr_decl 1
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10076 #define $ac_tr_decl 0
10084 for ac_func
in sigaltstack
10086 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10088 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10089 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10090 $as_echo_n "(cached) " >&6
10092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10095 #define $ac_tr_decl 1
10097 #include "ansidecl.h"
10098 #include "system.h"
10099 #include <signal.h>
10106 char *(*pfn) = (char *(*)) $ac_func ;
10112 if ac_fn_c_try_compile
"$LINENO"; then :
10113 eval "gcc_cv_have_decl_$ac_func=yes"
10115 eval "gcc_cv_have_decl_$ac_func=no"
10117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10120 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10122 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10123 #define $ac_tr_decl 1
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10129 #define $ac_tr_decl 0
10137 # More time-related stuff.
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10139 $as_echo_n "checking for struct tms... " >&6; }
10140 if test "${ac_cv_struct_tms+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10147 #include "ansidecl.h"
10148 #include "system.h"
10149 #ifdef HAVE_SYS_TIMES_H
10150 #include <sys/times.h>
10161 if ac_fn_c_try_compile
"$LINENO"; then :
10162 ac_cv_struct_tms
=yes
10164 ac_cv_struct_tms
=no
10166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10169 $as_echo "$ac_cv_struct_tms" >&6; }
10170 if test $ac_cv_struct_tms = yes; then
10172 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10176 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10177 # revisit after autoconf 2.50.
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10179 $as_echo_n "checking for clock_t... " >&6; }
10180 if test "${gcc_cv_type_clock_t+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10187 #include "ansidecl.h"
10188 #include "system.h"
10198 if ac_fn_c_try_compile
"$LINENO"; then :
10199 gcc_cv_type_clock_t
=yes
10201 gcc_cv_type_clock_t
=no
10203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10206 $as_echo "$gcc_cv_type_clock_t" >&6; }
10207 if test $gcc_cv_type_clock_t = yes; then
10209 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10213 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10214 CFLAGS
="$saved_CFLAGS"
10216 # Check whether --enable-initfini-array was given.
10217 if test "${enable_initfini_array+set}" = set; then :
10218 enableval
=$enable_initfini_array;
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10222 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10223 if test "${gcc_cv_initfini_array+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10226 if test "$cross_compiling" = yes; then :
10227 gcc_cv_initfini_array
=no
10229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10233 int main (void) { return x; }
10234 int foo (void) { x = 0; }
10235 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10237 if ac_fn_c_try_run
"$LINENO"; then :
10238 gcc_cv_initfini_array
=yes
10240 gcc_cv_initfini_array
=no
10242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10248 $as_echo "$gcc_cv_initfini_array" >&6; }
10249 enable_initfini_array
=$gcc_cv_initfini_array
10253 if test $enable_initfini_array = yes; then
10255 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10259 # mkdir takes a single argument on some systems.
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10261 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10262 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10268 #include <sys/types.h>
10269 #ifdef HAVE_SYS_STAT_H
10270 # include <sys/stat.h>
10272 #ifdef HAVE_UNISTD_H
10273 # include <unistd.h>
10275 #ifdef HAVE_DIRECT_H
10276 # include <direct.h>
10286 if ac_fn_c_try_compile
"$LINENO"; then :
10287 gcc_cv_mkdir_takes_one_arg
=no
10289 gcc_cv_mkdir_takes_one_arg
=yes
10291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10294 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10295 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10297 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10308 # With Setjmp/Longjmp based exception handling.
10309 # Check whether --enable-sjlj-exceptions was given.
10310 if test "${enable_sjlj_exceptions+set}" = set; then :
10311 enableval
=$enable_sjlj_exceptions; case $target in
10313 if test $enableval != yes; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10315 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10320 force_sjlj_exceptions
=yes
10324 force_sjlj_exceptions
=yes
10328 force_sjlj_exceptions
=no
10333 if test $force_sjlj_exceptions = yes; then
10334 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10336 cat >>confdefs.h
<<_ACEOF
10337 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10342 # For platforms with the unwind ABI which includes an unwind library,
10343 # libunwind, we can choose to use the system libunwind.
10344 # config.gcc also contains tests of with_system_libunwind.
10347 # Check whether --with-system-libunwind was given.
10348 if test "${with_system_libunwind+set}" = set; then :
10349 withval
=$with_system_libunwind;
10352 # If system-libunwind was not specifically set, pick a default setting.
10353 if test x
$with_system_libunwind = x
; then
10355 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10356 *) with_system_libunwind
=no
;;
10359 # Based on system-libunwind and target, do we have ipinfo?
10360 if test x
$with_system_libunwind = xyes
; then
10362 ia64-
*-*) have_unwind_getipinfo
=no
;;
10363 *) have_unwind_getipinfo
=yes ;;
10366 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10369 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10370 *) have_unwind_getipinfo
=yes ;;
10375 if test x
$have_unwind_getipinfo = xyes
; then
10377 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10382 # --------------------------------------------------------
10383 # Build, host, and target specific configuration fragments
10384 # --------------------------------------------------------
10386 # Collect build-machine-specific information.
10387 .
${srcdir}/config.build
10389 # Collect host-machine-specific information.
10390 .
${srcdir}/config.
host
10394 # Collect target-machine-specific information.
10395 .
${srcdir}/config.gcc
10397 extra_objs
="${host_extra_objs} ${extra_objs}"
10398 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10400 # Default the target-machine variables that were not explicitly set.
10401 if test x
"$tm_file" = x
10402 then tm_file
=$cpu_type/$cpu_type.h
; fi
10404 if test x
"$extra_headers" = x
10405 then extra_headers
=; fi
10407 if test x
$md_file = x
10408 then md_file
=$cpu_type/$cpu_type.md
; fi
10410 if test x
$out_file = x
10411 then out_file
=$cpu_type/$cpu_type.c
; fi
10413 if test x
"$tmake_file" = x
10414 then tmake_file
=$cpu_type/t-
$cpu_type
10417 if test x
"$dwarf2" = xyes
10418 then tm_file
="$tm_file tm-dwarf2.h"
10421 # Say what files are being used for the output code and MD file.
10422 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10423 echo "Using \`$srcdir/config/$md_file' as machine description file."
10425 # If any of the xm_file variables contain nonexistent files, warn
10426 # about them and drop them.
10429 for x
in $build_xm_file; do
10430 if test -f $srcdir/config
/$x
10432 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10433 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10436 build_xm_file
="$bx"
10439 for x
in $host_xm_file; do
10440 if test -f $srcdir/config
/$x
10442 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10443 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10449 for x
in $xm_file; do
10450 if test -f $srcdir/config
/$x
10452 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10453 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10459 for f
in $tm_file; do
10462 if test $count = ax
; then
10463 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10465 echo "Using the following target machine macro files:"
10466 for f
in $tm_file; do
10467 echo " $srcdir/config/$f"
10471 if test x
$need_64bit_hwint = xyes
; then
10473 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10477 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10479 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10484 for f
in $host_xm_file; do
10487 if test $count = a
; then
10489 elif test $count = ax
; then
10490 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10492 echo "Using the following host machine macro files:"
10493 for f
in $host_xm_file; do
10494 echo " $srcdir/config/$f"
10497 echo "Using ${out_host_hook_obj} for host machine hooks."
10499 if test "$host_xm_file" != "$build_xm_file"; then
10501 for f
in $build_xm_file; do
10504 if test $count = a
; then
10506 elif test $count = ax
; then
10507 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10509 echo "Using the following build machine macro files:"
10510 for f
in $build_xm_file; do
10511 echo " $srcdir/config/$f"
10517 powerpc
*-*-darwin*)
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10519 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10520 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 #include <sys/cdefs.h>
10527 #include <sys/signal.h>
10528 #include <ucontext.h>
10529 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10532 if ac_fn_c_try_compile
"$LINENO"; then :
10533 gcc_cv_mcontext_underscores
=no
10535 gcc_cv_mcontext_underscores
=yes
10537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10540 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10541 if test $gcc_cv_mcontext_underscores = yes; then
10543 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10553 # Check if a valid thread package
10554 case ${enable_threads} in
10557 target_thread_file
='single'
10561 target_thread_file
='single'
10563 aix | dce | gnat | irix | posix | posix95 | rtems | \
10564 single | solaris | vxworks | win32 | mipssde
)
10565 target_thread_file
=${enable_threads}
10568 echo "${enable_threads} is an unknown thread package" 1>&2
10573 if test x
${thread_file} = x
; then
10574 # No thread file set by target-specific clauses in config.gcc,
10575 # so use file chosen by default logic above
10576 thread_file
=${target_thread_file}
10579 # Make gthr-default.h if we have a thread file.
10581 if test $thread_file != single
; then
10582 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10583 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10584 rm -f gthr-default.h-t
10586 mv -f gthr-default.h-t gthr-default.h
10588 gthread_flags
=-DHAVE_GTHR_DEFAULT
10597 if test x
$enable___cxa_atexit = xyes || \
10598 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10599 if test x
$host = x
$target; then
10601 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10602 # keyed to flag_use_cxa_atexit
10607 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10608 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10611 echo "__cxa_atexit can't be enabled on this target"
10617 # We can't check for __cxa_atexit when building a cross, so assume
10621 if test x
$use_cxa_atexit = xyes
; then
10623 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10628 # Look for a file containing extra machine modes.
10629 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10630 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10633 cat >>confdefs.h
<<_ACEOF
10634 #define EXTRA_MODES_FILE "config/$extra_modes"
10639 # Convert extra_options into a form suitable for Makefile use.
10641 for f
in $extra_options; do
10642 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10646 # auto-host.h is the file containing items generated by autoconf and is
10647 # the first file included by config.h.
10648 # If host=build, it is correct to have bconfig include auto-host.h
10649 # as well. If host!=build, we are in error and need to do more
10650 # work to find out the build config parameters.
10651 if test x
$host = x
$build
10653 build_auto
=auto-host.h
10655 # We create a subdir, then run autoconf in the subdir.
10656 # To prevent recursion we set host and build for the new
10657 # invocation of configure to the build for this invocation
10664 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10665 *) realsrcdir
=..
/${srcdir};;
10667 saved_CFLAGS
="${CFLAGS}"
10668 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10669 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10670 ${realsrcdir}/configure \
10671 --enable-languages=${enable_languages-all} \
10672 --target=$target_alias --host=$build_alias --build=$build_alias
10673 CFLAGS
="${saved_CFLAGS}"
10675 # We just finished tests for the build machine, so rename
10676 # the file auto-build.h in the gcc directory.
10677 mv auto-host.h ..
/auto-build.h
10680 build_auto
=auto-build.h
10684 tm_file
="${tm_file} defaults.h"
10685 tm_p_file
="${tm_p_file} tm-preds.h"
10686 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10687 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10688 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10689 # put this back in temporarily.
10690 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10696 # Compile in configure arguments.
10697 if test -f configargs.h
; then
10698 # Being re-configured.
10699 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10700 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10702 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10705 # Double all backslashes and backslash all quotes to turn
10706 # gcc_config_arguments into a C string.
10707 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10708 $gcc_config_arguments
10710 gcc_config_arguments_str
=`cat conftest.out`
10713 cat > configargs.h
<<EOF
10714 /* Generated automatically. */
10715 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10716 static const char thread_model[] = "$thread_file";
10718 static const struct {
10719 const char *name, *value;
10720 } configure_default_options[] = $configure_default_options;
10723 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10724 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10725 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10726 if test -f $srcdir/REVISION
; then
10727 gcc_REVISION
=`cat $srcdir/REVISION`
10731 cat > plugin-version.h
<<EOF
10732 #include "configargs.h"
10734 static char basever[] = "$gcc_BASEVER";
10735 static char datestamp[] = "$gcc_DATESTAMP";
10736 static char devphase[] = "$gcc_DEVPHASE";
10737 static char revision[] = "$gcc_REVISION";
10739 /* FIXME plugins: We should make the version information more precise.
10740 One way to do is to add a checksum. */
10742 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10743 devphase, revision,
10744 configuration_arguments};
10747 # Internationalization
10748 # If we haven't got the data from the intl directory,
10749 # assume NLS is disabled.
10758 if test -f ..
/intl
/config.intl
; then
10759 . ..
/intl
/config.intl
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10762 $as_echo_n "checking whether NLS is requested... " >&6; }
10763 if test x
"$USE_NLS" != xyes
; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10768 $as_echo "yes" >&6; }
10770 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10774 $as_echo_n "checking for catalogs to be installed... " >&6; }
10775 # Look for .po and .gmo files in the source directory.
10778 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10779 # If there aren't any .gmo files the shell will give us the
10780 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10782 case "$cat" in *\
**)
10785 # The quadruple backslash is collapsed to a double backslash
10786 # by the backticks, then collapsed again by the double quotes,
10787 # leaving us with one backslash in the sed expression (right
10788 # before the dot that mustn't act as a wildcard).
10789 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10790 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10791 # The user is allowed to set LINGUAS to a list of languages to
10792 # install catalogs for. If it's empty that means "all of them."
10793 if test "x$LINGUAS" = x
; then
10794 CATALOGS
="$CATALOGS $cat"
10795 XLINGUAS
="$XLINGUAS $lang"
10797 case "$LINGUAS" in *$lang*)
10798 CATALOGS
="$CATALOGS $cat"
10799 XLINGUAS
="$XLINGUAS $lang"
10804 LINGUAS
="$XLINGUAS"
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10806 $as_echo "$LINGUAS" >&6; }
10819 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10820 # -liconv on the link line twice.
10821 case "$LIBINTL" in *$LIBICONV*)
10825 # Check whether --enable-secureplt was given.
10826 if test "${enable_secureplt+set}" = set; then :
10827 enableval
=$enable_secureplt;
10831 # Check whether --enable-leading-mingw64-underscores was given.
10832 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10833 enableval
=$enable_leading_mingw64_underscores;
10836 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
10838 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10842 # Check whether --enable-cld was given.
10843 if test "${enable_cld+set}" = set; then :
10844 enableval
=$enable_cld;
10850 # Check whether --enable-frame-pointer was given.
10851 if test "${enable_frame_pointer+set}" = set; then :
10852 enableval
=$enable_frame_pointer;
10856 linux
* | darwin
[8912]*)
10857 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10859 enable_frame_pointer
=no
10862 enable_frame_pointer
=yes
10869 # Windows32 Registry support for specifying GCC installation paths.
10870 # Check whether --enable-win32-registry was given.
10871 if test "${enable_win32_registry+set}" = set; then :
10872 enableval
=$enable_win32_registry;
10877 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10878 if test "x$enable_win32_registry" != xno
; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10880 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10881 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10884 ac_func_search_save_LIBS
=$LIBS
10885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10894 char RegOpenKeyExA ();
10898 return RegOpenKeyExA ();
10903 for ac_lib
in '' advapi32
; do
10904 if test -z "$ac_lib"; then
10905 ac_res
="none required"
10908 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10910 if ac_fn_c_try_link
"$LINENO"; then :
10911 ac_cv_search_RegOpenKeyExA
=$ac_res
10913 rm -f core conftest.err conftest.
$ac_objext \
10915 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10919 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10922 ac_cv_search_RegOpenKeyExA
=no
10924 rm conftest.
$ac_ext
10925 LIBS
=$ac_func_search_save_LIBS
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10928 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10929 ac_res
=$ac_cv_search_RegOpenKeyExA
10930 if test "$ac_res" != no
; then :
10931 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10934 enable_win32_registry
=no
10939 if test "x$enable_win32_registry" != xno
; then
10941 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10944 if test "x$enable_win32_registry" != xyes \
10945 && test "x$enable_win32_registry" != x
; then
10947 cat >>confdefs.h
<<_ACEOF
10948 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10956 # Get an absolute path to the GCC top-level source directory
10957 holddir
=`${PWDCMD-pwd}`
10959 topdir
=`${PWDCMD-pwd}`
10962 # Conditionalize the makefile for this host machine.
10964 for f
in ${host_xmake_file}
10966 if test -f ${srcdir}/config
/$f
10968 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10972 # Conditionalize the makefile for this target machine.
10974 for f
in ${tmake_file}
10976 if test -f ${srcdir}/config
/$f
10978 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10981 tmake_file
="${tmake_file_}"
10983 out_object_file
=`basename $out_file .c`.o
10985 tm_file_list
="options.h"
10986 tm_include_list
="options.h insn-constants.h"
10987 for f
in $tm_file; do
10990 f
=`echo $f | sed 's/^..//'`
10991 tm_file_list
="${tm_file_list} $f"
10992 tm_include_list
="${tm_include_list} $f"
10995 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10996 tm_include_list
="${tm_include_list} $f"
10999 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11000 tm_include_list
="${tm_include_list} config/$f"
11007 for f
in $tm_p_file; do
11010 tm_p_file_list
="${tm_p_file_list} $f"
11011 tm_p_include_list
="${tm_p_include_list} $f"
11014 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11015 tm_p_include_list
="${tm_p_include_list} config/$f"
11021 for f
in $xm_file; do
11024 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11025 xm_include_list
="${xm_include_list} $f"
11028 xm_file_list
="${xm_file_list} $f"
11029 xm_include_list
="${xm_include_list} $f"
11032 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11033 xm_include_list
="${xm_include_list} config/$f"
11039 host_xm_include_list
=
11040 for f
in $host_xm_file; do
11043 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11044 host_xm_include_list
="${host_xm_include_list} $f"
11047 host_xm_file_list
="${host_xm_file_list} $f"
11048 host_xm_include_list
="${host_xm_include_list} $f"
11051 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11052 host_xm_include_list
="${host_xm_include_list} config/$f"
11057 build_xm_file_list
=
11058 for f
in $build_xm_file; do
11061 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11062 build_xm_include_list
="${build_xm_include_list} $f"
11064 auto-build.h | auto-host.h
)
11065 build_xm_file_list
="${build_xm_file_list} $f"
11066 build_xm_include_list
="${build_xm_include_list} $f"
11069 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11070 build_xm_include_list
="${build_xm_include_list} config/$f"
11075 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11076 # cross-compiler which does not use the native headers and libraries.
11077 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11080 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11082 if test "x$with_build_sysroot" != x
; then
11083 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11085 # This value is used, even on a native system, because
11086 # CROSS_SYSTEM_HEADER_DIR is just
11087 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11088 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11091 if test x
$host != x
$target
11093 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11095 SYSTEM_HEADER_DIR
=$build_system_header_dir
11096 case "$host","$target" in
11097 # Darwin crosses can use the host system's libraries and headers,
11098 # because of the fat library support. Of course, it must be the
11099 # same version of Darwin on both sides. Allow the user to
11100 # just say --target=foo-darwin without a version number to mean
11101 # "the version on this system".
11102 *-*-darwin*,*-*-darwin*)
11103 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11104 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11105 if test $hostos = $targetos -o $targetos = darwin
; then
11107 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11112 i?
86-*-*,x86_64-
*-* \
11113 | powerpc
*-*-*,powerpc64
*-*-*)
11114 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11119 if test "x$with_headers" = x
; then
11126 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11127 SYSTEM_HEADER_DIR
=$build_system_header_dir
11130 # If this is a cross-compiler that does not
11131 # have its own set of headers then define
11134 # If this is using newlib, without having the headers available now,
11135 # then define inhibit_libc in LIBGCC2_CFLAGS.
11136 # This prevents libgcc2 from containing any code which requires libc
11138 : ${inhibit_libc=false}
11139 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11140 test x
$with_newlib = xyes
; } &&
11141 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11146 # When building gcc with a cross-compiler, we need to adjust things so
11147 # that the generator programs are still built with the native compiler.
11148 # Also, we cannot run fixincludes.
11150 # These are the normal (build=host) settings:
11151 CC_FOR_BUILD
='$(CC)'
11152 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11153 BUILD_LDFLAGS
='$(LDFLAGS)'
11154 STMP_FIXINC
=stmp-fixinc
11156 # And these apply if build != host, or we are generating coverage data
11157 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11159 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11160 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11163 # Expand extra_headers to include complete path.
11164 # This substitutes for lots of t-* files.
11165 extra_headers_list
=
11166 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11167 for file in ${extra_headers} ; do
11168 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11171 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11172 if test x
"$use_gcc_tgmath" = xyes
11173 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11176 # Define collect2 in Makefile.
11177 case $host_can_use_collect2 in
11179 *) collect2
='collect2$(exeext)' ;;
11183 # Add a definition of USE_COLLECT2 if system wants one.
11184 case $use_collect2 in
11185 no
) use_collect2
= ;;
11188 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11189 xm_defines
="${xm_defines} USE_COLLECT2"
11190 case $host_can_use_collect2 in
11192 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11199 cat >>confdefs.h
<<_ACEOF
11200 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11204 # ---------------------------
11205 # Assembler & linker features
11206 # ---------------------------
11208 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11209 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11210 # However when ld-new is first executed from the build tree, libtool will
11211 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11212 # to the build tree. While doing this we need to use the previous-stage
11213 # linker, or we have an infinite loop. The presence of a shell script as
11214 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11215 # the gcc/collect-ld script. So we need to know how libtool works, or
11216 # exec-tool will fail.
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11222 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11227 macro_version
='2.2.7a'
11228 macro_revision
='1.3134'
11242 ltmain
="$ac_aux_dir/ltmain.sh"
11244 # Backslashify metacharacters that are still active within
11245 # double-quoted strings.
11246 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11248 # Same as above, but do not quote variable references.
11249 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11251 # Sed substitution to delay expansion of an escaped shell variable in a
11252 # double_quote_subst'ed string.
11253 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11255 # Sed substitution to delay expansion of an escaped single quote.
11256 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11258 # Sed substitution to avoid accidental globbing in evaled expressions
11259 no_glob_subst
='s/\*/\\\*/g'
11261 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11262 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11263 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11266 $as_echo_n "checking how to print strings... " >&6; }
11267 # Test print first, because it will be a builtin if present.
11268 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11269 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11271 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11274 # Use this function as a fallback that always works.
11275 func_fallback_echo ()
11277 eval 'cat <<_LTECHO_EOF
11281 ECHO='func_fallback_echo
'
11284 # func_echo_all arg...
11285 # Invoke $ECHO with all args, space-separated.
11292 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11293 $as_echo "printf" >&6; } ;;
11294 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11295 $as_echo "print -r" >&6; } ;;
11296 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11297 $as_echo "cat" >&6; } ;;
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11314 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11315 if test "${ac_cv_path_SED+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11318 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11319 for ac_i in 1 2 3 4 5 6 7; do
11320 ac_script="$ac_script$as_nl$ac_script"
11322 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11323 { ac_script=; unset ac_script;}
11324 if test -z "$SED"; then
11325 ac_path_SED_found=false
11326 # Loop through the user's path and
test for each of PROGNAME-LIST
11327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11328 for as_dir
in $PATH
11331 test -z "$as_dir" && as_dir
=.
11332 for ac_prog
in sed gsed
; do
11333 for ac_exec_ext
in '' $ac_executable_extensions; do
11334 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11335 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11336 # Check for GNU ac_path_SED and select it if it is found.
11337 # Check for GNU $ac_path_SED
11338 case `"$ac_path_SED" --version 2>&1` in
11340 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11343 $as_echo_n 0123456789 >"conftest.in"
11346 cat "conftest.in" "conftest.in" >"conftest.tmp"
11347 mv "conftest.tmp" "conftest.in"
11348 cp "conftest.in" "conftest.nl"
11349 $as_echo '' >> "conftest.nl"
11350 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11351 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11352 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11353 if test $ac_count -gt ${ac_path_SED_max-0}; then
11354 # Best one so far, save it but keep looking for a better one
11355 ac_cv_path_SED
="$ac_path_SED"
11356 ac_path_SED_max
=$ac_count
11358 # 10*(2^10) chars as input seems more than enough
11359 test $ac_count -gt 10 && break
11361 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11364 $ac_path_SED_found && break 3
11369 if test -z "$ac_cv_path_SED"; then
11370 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11373 ac_cv_path_SED
=$SED
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11378 $as_echo "$ac_cv_path_SED" >&6; }
11379 SED
="$ac_cv_path_SED"
11382 test -z "$SED" && SED
=sed
11383 Xsed
="$SED -e 1s/^X//"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11396 $as_echo_n "checking for fgrep... " >&6; }
11397 if test "${ac_cv_path_FGREP+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11400 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11401 then ac_cv_path_FGREP
="$GREP -F"
11403 if test -z "$FGREP"; then
11404 ac_path_FGREP_found
=false
11405 # Loop through the user's path and test for each of PROGNAME-LIST
11406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11407 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11410 test -z "$as_dir" && as_dir
=.
11411 for ac_prog
in fgrep
; do
11412 for ac_exec_ext
in '' $ac_executable_extensions; do
11413 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11414 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11415 # Check for GNU ac_path_FGREP and select it if it is found.
11416 # Check for GNU $ac_path_FGREP
11417 case `"$ac_path_FGREP" --version 2>&1` in
11419 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11422 $as_echo_n 0123456789 >"conftest.in"
11425 cat "conftest.in" "conftest.in" >"conftest.tmp"
11426 mv "conftest.tmp" "conftest.in"
11427 cp "conftest.in" "conftest.nl"
11428 $as_echo 'FGREP' >> "conftest.nl"
11429 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11430 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11431 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11432 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11433 # Best one so far, save it but keep looking for a better one
11434 ac_cv_path_FGREP
="$ac_path_FGREP"
11435 ac_path_FGREP_max
=$ac_count
11437 # 10*(2^10) chars as input seems more than enough
11438 test $ac_count -gt 10 && break
11440 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11443 $ac_path_FGREP_found && break 3
11448 if test -z "$ac_cv_path_FGREP"; then
11449 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11452 ac_cv_path_FGREP
=$FGREP
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11458 $as_echo "$ac_cv_path_FGREP" >&6; }
11459 FGREP
="$ac_cv_path_FGREP"
11462 test -z "$GREP" && GREP
=grep
11482 # Check whether --with-gnu-ld was given.
11483 if test "${with_gnu_ld+set}" = set; then :
11484 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11490 if test "$GCC" = yes; then
11491 # Check if gcc -print-prog-name=ld gives a path.
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11493 $as_echo_n "checking for ld used by $CC... " >&6; }
11496 # gcc leaves a trailing carriage return which upsets mingw
11497 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11499 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11502 # Accept absolute paths.
11504 re_direlt
='/[^/][^/]*/\.\./'
11505 # Canonicalize the pathname of ld
11506 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11507 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11508 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11510 test -z "$LD" && LD
="$ac_prog"
11513 # If it fails, then pretend we aren't using GCC.
11517 # If it is relative, then search for the first ld in PATH.
11518 with_gnu_ld
=unknown
11521 elif test "$with_gnu_ld" = yes; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11523 $as_echo_n "checking for GNU ld... " >&6; }
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11526 $as_echo_n "checking for non-GNU ld... " >&6; }
11528 if test "${lt_cv_path_LD+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11531 if test -z "$LD"; then
11532 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11533 for ac_dir
in $PATH; do
11535 test -z "$ac_dir" && ac_dir
=.
11536 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11537 lt_cv_path_LD
="$ac_dir/$ac_prog"
11538 # Check to see if the program is GNU ld. I'd rather use --version,
11539 # but apparently some variants of GNU ld only accept -v.
11540 # Break only if it was the GNU/non-GNU ld that we prefer.
11541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11542 *GNU
* |
*'with BFD'*)
11543 test "$with_gnu_ld" != no
&& break
11546 test "$with_gnu_ld" != yes && break
11553 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11557 LD
="$lt_cv_path_LD"
11558 if test -n "$LD"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11560 $as_echo "$LD" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11565 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11567 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11568 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11571 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11572 case `$LD -v 2>&1 </dev/null` in
11573 *GNU
* |
*'with BFD'*)
11574 lt_cv_prog_gnu_ld
=yes
11577 lt_cv_prog_gnu_ld
=no
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11582 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11583 with_gnu_ld
=$lt_cv_prog_gnu_ld
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11594 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11595 if test "${lt_cv_path_NM+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11598 if test -n "$NM"; then
11599 # Let the user override the test.
11600 lt_cv_path_NM
="$NM"
11602 lt_nm_to_check
="${ac_tool_prefix}nm"
11603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11604 lt_nm_to_check
="$lt_nm_to_check nm"
11606 for lt_tmp_nm
in $lt_nm_to_check; do
11607 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11608 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11610 test -z "$ac_dir" && ac_dir
=.
11611 tmp_nm
="$ac_dir/$lt_tmp_nm"
11612 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11613 # Check to see if the nm accepts a BSD-compat flag.
11614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11615 # nm: unknown option "B" ignored
11616 # Tru64's nm complains that /dev/null is an invalid object file
11617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11618 */dev
/null
* |
*'Invalid file or object type'*)
11619 lt_cv_path_NM
="$tmp_nm -B"
11623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11625 lt_cv_path_NM
="$tmp_nm -p"
11629 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11630 continue # so that we can try to find one that supports BSD flags
11639 : ${lt_cv_path_NM=no}
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11643 $as_echo "$lt_cv_path_NM" >&6; }
11644 if test "$lt_cv_path_NM" != "no"; then
11645 NM
="$lt_cv_path_NM"
11647 # Didn't find any BSD compatible name lister, look for dumpbin.
11648 if test -n "$DUMPBIN"; then :
11649 # Let the user override the test.
11651 if test -n "$ac_tool_prefix"; then
11652 for ac_prog
in dumpbin
"link -dump"
11654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11655 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11661 if test -n "$DUMPBIN"; then
11662 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11665 for as_dir
in $PATH
11668 test -z "$as_dir" && as_dir
=.
11669 for ac_exec_ext
in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 DUMPBIN
=$ac_cv_prog_DUMPBIN
11682 if test -n "$DUMPBIN"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11684 $as_echo "$DUMPBIN" >&6; }
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11691 test -n "$DUMPBIN" && break
11694 if test -z "$DUMPBIN"; then
11695 ac_ct_DUMPBIN
=$DUMPBIN
11696 for ac_prog
in dumpbin
"link -dump"
11698 # Extract the first word of "$ac_prog", so it can be a program name with args.
11699 set dummy
$ac_prog; ac_word
=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11705 if test -n "$ac_ct_DUMPBIN"; then
11706 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11709 for as_dir
in $PATH
11712 test -z "$as_dir" && as_dir
=.
11713 for ac_exec_ext
in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11726 if test -n "$ac_ct_DUMPBIN"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11728 $as_echo "$ac_ct_DUMPBIN" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11735 test -n "$ac_ct_DUMPBIN" && break
11738 if test "x$ac_ct_DUMPBIN" = x
; then
11741 case $cross_compiling:$ac_tool_warned in
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11745 ac_tool_warned
=yes ;;
11747 DUMPBIN
=$ac_ct_DUMPBIN
11751 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11753 DUMPBIN
="$DUMPBIN -symbols"
11761 if test "$DUMPBIN" != ":"; then
11765 test -z "$NM" && NM
=nm
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11773 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11774 if test "${lt_cv_nm_interface+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11777 lt_cv_nm_interface
="BSD nm"
11778 echo "int some_variable = 0;" > conftest.
$ac_ext
11779 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11780 (eval "$ac_compile" 2>conftest.err
)
11781 cat conftest.err
>&5
11782 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11784 cat conftest.err
>&5
11785 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11786 cat conftest.out
>&5
11787 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11788 lt_cv_nm_interface
="MS dumpbin"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11793 $as_echo "$lt_cv_nm_interface" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11796 $as_echo_n "checking whether ln -s works... " >&6; }
11798 if test "$LN_S" = "ln -s"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800 $as_echo "yes" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11803 $as_echo "no, using $LN_S" >&6; }
11806 # find the maximum length of command line arguments
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11808 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11809 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
11817 # On DJGPP, this test can blow up pretty badly due to problems in libc
11818 # (any single argument exceeding 2000 bytes causes a buffer overrun
11819 # during glob expansion). Even if it were fixed, the result of this
11820 # check would be larger than it should be.
11821 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11825 # Under GNU Hurd, this test is not required because there is
11826 # no limit to the length of command line arguments.
11827 # Libtool will interpret -1 as no limit whatsoever
11828 lt_cv_sys_max_cmd_len
=-1;
11831 cygwin
* | mingw
* | cegcc
*)
11832 # On Win9x/ME, this test blows up -- it succeeds, but takes
11833 # about 5 minutes as the teststring grows exponentially.
11834 # Worse, since 9x/ME are not pre-emptively multitasking,
11835 # you end up with a "frozen" computer, even though with patience
11836 # the test eventually succeeds (with a max line length of 256k).
11837 # Instead, let's just punt: use the minimum linelength reported by
11838 # all of the supported platforms: 8192 (on NT/2K/XP).
11839 lt_cv_sys_max_cmd_len
=8192;
11843 # On MiNT this can take a long time and run out of memory.
11844 lt_cv_sys_max_cmd_len
=8192;
11848 # On AmigaOS with pdksh, this test takes hours, literally.
11849 # So we just punt and use a minimum line length of 8192.
11850 lt_cv_sys_max_cmd_len
=8192;
11853 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11854 # This has been around since 386BSD, at least. Likely further.
11855 if test -x /sbin
/sysctl
; then
11856 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11857 elif test -x /usr
/sbin
/sysctl
; then
11858 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11860 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11862 # And add a safety zone
11863 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11864 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11868 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11869 lt_cv_sys_max_cmd_len
=196608
11873 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11874 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11875 # nice to cause kernel panics so lets avoid the loop below.
11876 # First set a reasonable default.
11877 lt_cv_sys_max_cmd_len
=16384
11879 if test -x /sbin
/sysconfig
; then
11880 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11881 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11886 lt_cv_sys_max_cmd_len
=102400
11888 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11889 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11890 if test -n "$kargmax"; then
11891 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11893 lt_cv_sys_max_cmd_len
=32768
11897 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11898 if test -n "$lt_cv_sys_max_cmd_len"; then
11899 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11900 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11902 # Make teststring a little bigger before we do anything with it.
11903 # a 1K string should be a reasonable start.
11904 for i
in 1 2 3 4 5 6 7 8 ; do
11905 teststring
=$teststring$teststring
11907 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11908 # If test is not a shell built-in, we'll probably end up computing a
11909 # maximum length that is only half of the actual maximum length, but
11911 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11912 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11913 test $i != 17 # 1/2 MB should be enough
11916 teststring
=$teststring$teststring
11918 # Only check the string length outside the loop.
11919 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11921 # Add a significant safety factor because C++ compilers can tack on
11922 # massive amounts of additional arguments before passing them to the
11923 # linker. It appears as though 1/2 is a usable value.
11924 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11931 if test -n $lt_cv_sys_max_cmd_len ; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11933 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11936 $as_echo "none" >&6; }
11938 max_cmd_len
=$lt_cv_sys_max_cmd_len
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11950 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11951 # Try some XSI features
11953 ( _lt_dummy
="a/b/c"
11954 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11956 && eval 'test $(( 1 + 1 )) -eq 2 \
11957 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11960 $as_echo "$xsi_shell" >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11964 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11966 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11968 && lt_shell_append=yes
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11970 $as_echo "$lt_shell_append" >&6; }
11973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11983 # test EBCDIC or ASCII
11984 case `echo X|tr X '\101'` in
11985 A) # ASCII based system
11986 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11987 lt_SP2NL='tr \040 \012'
11988 lt_NL2SP='tr \015\012 \040\040'
11990 *) # EBCDIC based system
11991 lt_SP2NL='tr \100 \n'
11992 lt_NL2SP='tr \r\n \100\100'
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12005 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12006 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12007 $as_echo_n "(cached
) " >&6
12009 lt_cv_ld_reload_flag='-r'
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12012 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12013 reload_flag=$lt_cv_ld_reload_flag
12014 case $reload_flag in
12016 *) reload_flag=" $reload_flag" ;;
12018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12021 if test "$GCC" = yes; then
12022 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12037 if test -n "$ac_tool_prefix"; then
12038 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12039 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12041 $as_echo_n "checking
for $ac_word...
" >&6; }
12042 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12043 $as_echo_n "(cached
) " >&6
12045 if test -n "$OBJDUMP"; then
12046 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12055 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12065 OBJDUMP=$ac_cv_prog_OBJDUMP
12066 if test -n "$OBJDUMP"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12068 $as_echo "$OBJDUMP" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12071 $as_echo "no
" >&6; }
12076 if test -z "$ac_cv_prog_OBJDUMP"; then
12077 ac_ct_OBJDUMP=$OBJDUMP
12078 # Extract the first word of "objdump
", so it can be a program name with args.
12079 set dummy objdump; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12081 $as_echo_n "checking
for $ac_word...
" >&6; }
12082 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12083 $as_echo_n "(cached
) " >&6
12085 if test -n "$ac_ct_OBJDUMP"; then
12086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12095 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12106 if test -n "$ac_ct_OBJDUMP"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12108 $as_echo "$ac_ct_OBJDUMP" >&6; }
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12111 $as_echo "no
" >&6; }
12114 if test "x
$ac_ct_OBJDUMP" = x; then
12117 case $cross_compiling:$ac_tool_warned in
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12120 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12121 ac_tool_warned=yes ;;
12123 OBJDUMP=$ac_ct_OBJDUMP
12126 OBJDUMP="$ac_cv_prog_OBJDUMP"
12129 test -z "$OBJDUMP" && OBJDUMP=objdump
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12140 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12141 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12142 $as_echo_n "(cached
) " >&6
12144 lt_cv_file_magic_cmd='$MAGIC_CMD'
12145 lt_cv_file_magic_test_file=
12146 lt_cv_deplibs_check_method='unknown'
12147 # Need to set the preceding variable on all platforms that support
12148 # interlibrary dependencies.
12149 # 'none' -- dependencies not supported.
12150 # `unknown' -- same as none, but documents that we really don't know.
12151 # 'pass_all' -- all dependencies passed with no checks.
12152 # 'test_compile' -- check by making test program.
12153 # 'file_magic [[regex]]' -- check by looking for files in library path
12154 # which responds to the $file_magic_cmd with a given extended regex.
12155 # If you have `file' or equivalent on your system and you're not sure
12156 # whether `pass_all' will *always* work, you probably want this one.
12160 lt_cv_deplibs_check_method=pass_all
12164 lt_cv_deplibs_check_method=pass_all
12168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12169 lt_cv_file_magic_cmd='/usr/bin/file -L'
12170 lt_cv_file_magic_test_file=/shlib/libc.so
12174 # func_win32_libid is a shell function defined in ltmain.sh
12175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12176 lt_cv_file_magic_cmd='func_win32_libid'
12180 # Base MSYS/MinGW do not provide the 'file' command needed by
12181 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12182 # unless we find 'file', for example because we are cross-compiling.
12183 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12184 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12186 lt_cv_file_magic_cmd='func_win32_libid'
12188 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12189 lt_cv_file_magic_cmd='$OBJDUMP -f'
12194 # use the weaker test based on 'objdump'. See mingw*.
12195 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12196 lt_cv_file_magic_cmd='$OBJDUMP -f'
12199 darwin* | rhapsody*)
12200 lt_cv_deplibs_check_method=pass_all
12203 freebsd* | dragonfly*)
12204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12207 # Not sure whether the presence of OpenBSD here was a mistake.
12208 # Let's accept both of them until this is cleared up.
12209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12210 lt_cv_file_magic_cmd=/usr/bin/file
12211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12215 lt_cv_deplibs_check_method=pass_all
12220 lt_cv_deplibs_check_method=pass_all
12224 lt_cv_deplibs_check_method=pass_all
12227 hpux10.20* | hpux11*)
12228 lt_cv_file_magic_cmd=/usr/bin/file
12231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12235 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]'
12236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12250 irix5* | irix6* | nonstopux*)
12252 *-32|*"-32 ") libmagic=32-bit;;
12253 *-n32|*"-n32 ") libmagic=N32;;
12254 *-64|*"-64 ") libmagic=64-bit;;
12255 *) libmagic=never-match;;
12257 lt_cv_deplibs_check_method=pass_all
12260 # This must be Linux ELF.
12261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12262 lt_cv_deplibs_check_method=pass_all
12266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12275 lt_cv_file_magic_cmd=/usr/bin/file
12276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12280 lt_cv_deplibs_check_method=pass_all
12284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12291 osf3* | osf4* | osf5*)
12292 lt_cv_deplibs_check_method=pass_all
12296 lt_cv_deplibs_check_method=pass_all
12300 lt_cv_deplibs_check_method=pass_all
12303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12304 lt_cv_deplibs_check_method=pass_all
12308 case $host_vendor in
12310 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]'
12311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12314 lt_cv_deplibs_check_method=pass_all
12317 lt_cv_file_magic_cmd='/bin/file'
12318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12321 lt_cv_file_magic_cmd='/bin/file'
12322 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12323 lt_cv_file_magic_test_file=/lib/libc.so
12326 lt_cv_deplibs_check_method=pass_all
12329 lt_cv_deplibs_check_method=pass_all
12335 lt_cv_deplibs_check_method=pass_all
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12342 file_magic_cmd=$lt_cv_file_magic_cmd
12343 deplibs_check_method=$lt_cv_deplibs_check_method
12344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12357 if test -n "$ac_tool_prefix"; then
12358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12359 set dummy ${ac_tool_prefix}ar; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12361 $as_echo_n "checking
for $ac_word...
" >&6; }
12362 if test "${ac_cv_prog_AR+set}" = set; then :
12363 $as_echo_n "(cached
) " >&6
12365 if test -n "$AR"; then
12366 ac_cv_prog_AR="$AR" # Let the user override the test.
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_prog_AR="${ac_tool_prefix}ar"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12386 if test -n "$AR"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12388 $as_echo "$AR" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12391 $as_echo "no
" >&6; }
12396 if test -z "$ac_cv_prog_AR"; then
12398 # Extract the first word of "ar", so it can be a program name with args.
12399 set dummy ar; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12401 $as_echo_n "checking
for $ac_word...
" >&6; }
12402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12403 $as_echo_n "(cached
) " >&6
12405 if test -n "$ac_ct_AR"; then
12406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12415 ac_cv_prog_ac_ct_AR="ar"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12426 if test -n "$ac_ct_AR"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12428 $as_echo "$ac_ct_AR" >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12431 $as_echo "no
" >&6; }
12434 if test "x
$ac_ct_AR" = x; then
12437 case $cross_compiling:$ac_tool_warned in
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12440 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12441 ac_tool_warned=yes ;;
12446 AR="$ac_cv_prog_AR"
12449 test -z "$AR" && AR=ar
12450 test -z "$AR_FLAGS" && AR_FLAGS=cru
12462 if test -n "$ac_tool_prefix"; then
12463 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12464 set dummy ${ac_tool_prefix}strip; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12466 $as_echo_n "checking
for $ac_word...
" >&6; }
12467 if test "${ac_cv_prog_STRIP+set}" = set; then :
12468 $as_echo_n "(cached
) " >&6
12470 if test -n "$STRIP"; then
12471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12490 STRIP=$ac_cv_prog_STRIP
12491 if test -n "$STRIP"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12493 $as_echo "$STRIP" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12496 $as_echo "no
" >&6; }
12501 if test -z "$ac_cv_prog_STRIP"; then
12503 # Extract the first word of "strip
", so it can be a program name with args.
12504 set dummy strip; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12506 $as_echo_n "checking
for $ac_word...
" >&6; }
12507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12508 $as_echo_n "(cached
) " >&6
12510 if test -n "$ac_ct_STRIP"; then
12511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in $PATH
12517 test -z "$as_dir" && as_dir=.
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12520 ac_cv_prog_ac_ct_STRIP="strip
"
12521 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12531 if test -n "$ac_ct_STRIP"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12533 $as_echo "$ac_ct_STRIP" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12536 $as_echo "no
" >&6; }
12539 if test "x
$ac_ct_STRIP" = x; then
12542 case $cross_compiling:$ac_tool_warned in
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12545 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12546 ac_tool_warned=yes ;;
12551 STRIP="$ac_cv_prog_STRIP"
12554 test -z "$STRIP" && STRIP=:
12561 if test -n "$ac_tool_prefix"; then
12562 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12565 $as_echo_n "checking
for $ac_word...
" >&6; }
12566 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12567 $as_echo_n "(cached
) " >&6
12569 if test -n "$RANLIB"; then
12570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12589 RANLIB=$ac_cv_prog_RANLIB
12590 if test -n "$RANLIB"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12592 $as_echo "$RANLIB" >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12595 $as_echo "no
" >&6; }
12600 if test -z "$ac_cv_prog_RANLIB"; then
12601 ac_ct_RANLIB=$RANLIB
12602 # Extract the first word of "ranlib
", so it can be a program name with args.
12603 set dummy ranlib; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12605 $as_echo_n "checking
for $ac_word...
" >&6; }
12606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12607 $as_echo_n "(cached
) " >&6
12609 if test -n "$ac_ct_RANLIB"; then
12610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12619 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12630 if test -n "$ac_ct_RANLIB"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12632 $as_echo "$ac_ct_RANLIB" >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12635 $as_echo "no
" >&6; }
12638 if test "x
$ac_ct_RANLIB" = x; then
12641 case $cross_compiling:$ac_tool_warned in
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12644 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12645 ac_tool_warned=yes ;;
12647 RANLIB=$ac_ct_RANLIB
12650 RANLIB="$ac_cv_prog_RANLIB"
12653 test -z "$RANLIB" && RANLIB=:
12660 # Determine commands to create old-style static archives.
12661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12662 old_postinstall_cmds='chmod 644 $oldlib'
12663 old_postuninstall_cmds=
12665 if test -n "$RANLIB"; then
12668 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12671 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12674 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12679 lock_old_archive_extraction=yes ;;
12681 lock_old_archive_extraction=no ;;
12722 # If no C compiler was specified, use CC.
12725 # If no C compiler flags were specified, use CFLAGS.
12726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12728 # Allow CC to be a program name with arguments.
12732 # Check for command to grab the raw symbol name followed by C symbol from nm.
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12734 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12735 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12736 $as_echo_n "(cached
) " >&6
12739 # These are sane defaults that work on at least a few old systems.
12740 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12742 # Character class describing NM global symbol codes.
12743 symcode='[BCDEGRST]'
12745 # Regexp to match symbols that can be accessed directly from C.
12746 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12748 # Define system-specific variables.
12753 cygwin* | mingw* | pw32* | cegcc*)
12754 symcode='[ABCDGISTW]'
12757 if test "$host_cpu" = ia64; then
12758 symcode='[ABCDEGRST]'
12761 irix* | nonstopux*)
12762 symcode='[BCDEGRST]'
12765 symcode='[BCDEGQRST]'
12776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12784 # If we're using GNU nm, then use its standard symbol codes.
12785 case `$NM -V 2>&1` in
12786 *GNU* | *'with BFD'*)
12787 symcode='[ABCDGIRSTW]' ;;
12790 # Transform an extracted symbol line into a proper C declaration.
12791 # Some systems (esp. on ia64) link data and code symbols differently,
12792 # so use this general approach.
12793 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12795 # Transform an extracted symbol line into symbol name and symbol address
12796 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12797 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'"
12799 # Handle CRLF in mingw tool chain
12803 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12807 # Try without a prefix underscore, then with it.
12808 for ac_symprfx in "" "_
"; do
12810 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12811 symxfrm="\\1 $ac_symprfx\\2 \\2"
12813 # Write the raw and C identifiers.
12814 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12815 # Fake it for dumpbin and say T for any non-static function
12816 # and D for any global variable.
12817 # Also find C++ and __fastcall symbols from MSVC++,
12818 # which start with @ or ?.
12819 lt_cv_sys_global_symbol_pipe="$AWK '"\
12820 " {last_section=section; section=\$ 3};"\
12821 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12822 " \$ 0!~/External *\|/{next};"\
12823 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12824 " {if(hide[section]) next};"\
12825 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12826 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12827 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12828 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12829 " ' prfx
=^
$ac_symprfx"
12831 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12834 # Check to see that the pipe works correctly.
12838 cat > conftest.$ac_ext <<_LT_EOF
12843 void nm_test_func(void);
12844 void nm_test_func(void){}
12848 int main(){nm_test_var='a';nm_test_func();return(0);}
12851 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12852 (eval $ac_compile) 2>&5
12854 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12855 test $ac_status = 0; }; then
12856 # Now try to grab the symbols.
12858 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12859 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12861 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12862 test $ac_status = 0; } && test -s "$nlist"; then
12863 # Try sorting and uniquifying the output.
12864 if sort "$nlist" | uniq > "$nlist"T; then
12865 mv -f "$nlist"T "$nlist"
12870 # Make sure that we snagged all the symbols we need.
12871 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12872 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12873 cat <<_LT_EOF > conftest.$ac_ext
12879 # Now generate the symbol file.
12880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12882 cat <<_LT_EOF >> conftest.$ac_ext
12884 /* The mapping between symbol names and symbols. */
12889 lt__PROGRAM__LTX_preloaded_symbols[] =
12891 { "@PROGRAM@
", (void *) 0 },
12893 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12894 cat <<\_LT_EOF >> conftest.$ac_ext
12898 /* This works around a problem in FreeBSD linker */
12899 #ifdef FREEBSD_WORKAROUND
12900 static const void *lt_preloaded_setup() {
12901 return lt__PROGRAM__LTX_preloaded_symbols;
12909 # Now try linking the two files.
12910 mv conftest.$ac_objext conftstm.$ac_objext
12911 lt_save_LIBS="$LIBS"
12912 lt_save_CFLAGS="$CFLAGS"
12913 LIBS="conftstm.
$ac_objext"
12914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12915 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12916 (eval $ac_link) 2>&5
12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12919 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12922 LIBS="$lt_save_LIBS"
12923 CFLAGS="$lt_save_CFLAGS"
12925 echo "cannot
find nm_test_func
in $nlist" >&5
12928 echo "cannot
find nm_test_var
in $nlist" >&5
12931 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12934 echo "$progname: failed program was
:" >&5
12935 cat conftest.$ac_ext >&5
12937 rm -rf conftest* conftst*
12939 # Do not use the global_symbol_pipe unless it works.
12940 if test "$pipe_works" = yes; then
12943 lt_cv_sys_global_symbol_pipe=
12949 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12950 lt_cv_sys_global_symbol_to_cdecl=
12952 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12954 $as_echo "failed
" >&6; }
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12957 $as_echo "ok
" >&6; }
12981 # Check whether --enable-libtool-lock was given.
12982 if test "${enable_libtool_lock+set}" = set; then :
12983 enableval=$enable_libtool_lock;
12986 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12988 # Some flags need to be propagated to the compiler or linker for good
12992 # Find out which ABI we are using.
12993 echo 'int i;' > conftest.$ac_ext
12994 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12995 (eval $ac_compile) 2>&5
12997 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12998 test $ac_status = 0; }; then
12999 case `/usr/bin/file conftest.$ac_objext` in
13001 HPUX_IA64_MODE="32"
13004 HPUX_IA64_MODE="64"
13011 # Find out which ABI we are using.
13012 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13013 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13014 (eval $ac_compile) 2>&5
13016 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13017 test $ac_status = 0; }; then
13018 if test "$lt_cv_prog_gnu_ld" = yes; then
13019 case `/usr/bin/file conftest.$ac_objext` in
13021 LD="${LD-ld} -melf32bsmip"
13024 LD="${LD-ld} -melf32bmipn32"
13027 LD="${LD-ld} -melf64bmip"
13031 case `/usr/bin/file conftest.$ac_objext` in
13047 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13048 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13049 # Find out which ABI we are using.
13050 echo 'int i;' > conftest.$ac_ext
13051 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13052 (eval $ac_compile) 2>&5
13054 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13055 test $ac_status = 0; }; then
13056 case `/usr/bin/file conftest.o` in
13059 x86_64-*kfreebsd*-gnu)
13060 LD="${LD-ld} -m elf_i386_fbsd
"
13063 LD="${LD-ld} -m elf_i386
"
13065 ppc64-*linux*|powerpc64-*linux*)
13066 LD="${LD-ld} -m elf32ppclinux
"
13069 LD="${LD-ld} -m elf_s390
"
13072 LD="${LD-ld} -m elf32_sparc
"
13078 x86_64-*kfreebsd*-gnu)
13079 LD="${LD-ld} -m elf_x86_64_fbsd
"
13082 LD="${LD-ld} -m elf_x86_64
"
13084 ppc*-*linux*|powerpc*-*linux*)
13085 LD="${LD-ld} -m elf64ppc
"
13087 s390*-*linux*|s390*-*tpf*)
13088 LD="${LD-ld} -m elf64_s390
"
13091 LD="${LD-ld} -m elf64_sparc
"
13101 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13102 SAVE_CFLAGS="$CFLAGS"
13103 CFLAGS="$CFLAGS -belf"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13105 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13106 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13107 $as_echo_n "(cached
) " >&6
13110 ac_cpp='$CPP $CPPFLAGS'
13111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13126 if ac_fn_c_try_link "$LINENO"; then :
13127 lt_cv_cc_needs_belf=yes
13129 lt_cv_cc_needs_belf=no
13131 rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13134 ac_cpp='$CPP $CPPFLAGS'
13135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13141 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13144 CFLAGS="$SAVE_CFLAGS"
13148 # Find out which ABI we are using.
13149 echo 'int i;' > conftest.$ac_ext
13150 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13151 (eval $ac_compile) 2>&5
13153 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13154 test $ac_status = 0; }; then
13155 case `/usr/bin/file conftest.o` in
13157 case $lt_cv_prog_gnu_ld in
13158 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13160 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13172 need_locks="$enable_libtool_lock"
13176 rhapsody* | darwin*)
13177 if test -n "$ac_tool_prefix"; then
13178 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13179 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13181 $as_echo_n "checking
for $ac_word...
" >&6; }
13182 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13183 $as_echo_n "(cached
) " >&6
13185 if test -n "$DSYMUTIL"; then
13186 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13195 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13205 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13206 if test -n "$DSYMUTIL"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13208 $as_echo "$DSYMUTIL" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13211 $as_echo "no
" >&6; }
13216 if test -z "$ac_cv_prog_DSYMUTIL"; then
13217 ac_ct_DSYMUTIL=$DSYMUTIL
13218 # Extract the first word of "dsymutil
", so it can be a program name with args.
13219 set dummy dsymutil; ac_word=$2
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13221 $as_echo_n "checking
for $ac_word...
" >&6; }
13222 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13223 $as_echo_n "(cached
) " >&6
13225 if test -n "$ac_ct_DSYMUTIL"; then
13226 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13245 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13246 if test -n "$ac_ct_DSYMUTIL"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13248 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13251 $as_echo "no
" >&6; }
13254 if test "x
$ac_ct_DSYMUTIL" = x; then
13257 case $cross_compiling:$ac_tool_warned in
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13260 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13261 ac_tool_warned=yes ;;
13263 DSYMUTIL=$ac_ct_DSYMUTIL
13266 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13269 if test -n "$ac_tool_prefix"; then
13270 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13271 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13273 $as_echo_n "checking
for $ac_word...
" >&6; }
13274 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13275 $as_echo_n "(cached
) " >&6
13277 if test -n "$NMEDIT"; then
13278 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13287 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13297 NMEDIT=$ac_cv_prog_NMEDIT
13298 if test -n "$NMEDIT"; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13300 $as_echo "$NMEDIT" >&6; }
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13303 $as_echo "no
" >&6; }
13308 if test -z "$ac_cv_prog_NMEDIT"; then
13309 ac_ct_NMEDIT=$NMEDIT
13310 # Extract the first word of "nmedit
", so it can be a program name with args.
13311 set dummy nmedit; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13313 $as_echo_n "checking
for $ac_word...
" >&6; }
13314 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13315 $as_echo_n "(cached
) " >&6
13317 if test -n "$ac_ct_NMEDIT"; then
13318 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13337 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13338 if test -n "$ac_ct_NMEDIT"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13340 $as_echo "$ac_ct_NMEDIT" >&6; }
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13343 $as_echo "no
" >&6; }
13346 if test "x
$ac_ct_NMEDIT" = x; then
13349 case $cross_compiling:$ac_tool_warned in
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13352 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13353 ac_tool_warned=yes ;;
13355 NMEDIT=$ac_ct_NMEDIT
13358 NMEDIT="$ac_cv_prog_NMEDIT"
13361 if test -n "$ac_tool_prefix"; then
13362 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13363 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13365 $as_echo_n "checking
for $ac_word...
" >&6; }
13366 if test "${ac_cv_prog_LIPO+set}" = set; then :
13367 $as_echo_n "(cached
) " >&6
13369 if test -n "$LIPO"; then
13370 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13379 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13389 LIPO=$ac_cv_prog_LIPO
13390 if test -n "$LIPO"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13392 $as_echo "$LIPO" >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13395 $as_echo "no
" >&6; }
13400 if test -z "$ac_cv_prog_LIPO"; then
13402 # Extract the first word of "lipo
", so it can be a program name with args.
13403 set dummy lipo; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13405 $as_echo_n "checking
for $ac_word...
" >&6; }
13406 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13407 $as_echo_n "(cached
) " >&6
13409 if test -n "$ac_ct_LIPO"; then
13410 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419 ac_cv_prog_ac_ct_LIPO="lipo
"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13429 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13430 if test -n "$ac_ct_LIPO"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13432 $as_echo "$ac_ct_LIPO" >&6; }
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13435 $as_echo "no
" >&6; }
13438 if test "x
$ac_ct_LIPO" = x; then
13441 case $cross_compiling:$ac_tool_warned in
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13444 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13445 ac_tool_warned=yes ;;
13450 LIPO="$ac_cv_prog_LIPO"
13453 if test -n "$ac_tool_prefix"; then
13454 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13455 set dummy ${ac_tool_prefix}otool; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13457 $as_echo_n "checking
for $ac_word...
" >&6; }
13458 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13459 $as_echo_n "(cached
) " >&6
13461 if test -n "$OTOOL"; then
13462 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13471 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13481 OTOOL=$ac_cv_prog_OTOOL
13482 if test -n "$OTOOL"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13484 $as_echo "$OTOOL" >&6; }
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13487 $as_echo "no
" >&6; }
13492 if test -z "$ac_cv_prog_OTOOL"; then
13494 # Extract the first word of "otool
", so it can be a program name with args.
13495 set dummy otool; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13497 $as_echo_n "checking
for $ac_word...
" >&6; }
13498 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13499 $as_echo_n "(cached
) " >&6
13501 if test -n "$ac_ct_OTOOL"; then
13502 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_prog_ac_ct_OTOOL="otool
"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13521 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13522 if test -n "$ac_ct_OTOOL"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13524 $as_echo "$ac_ct_OTOOL" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13527 $as_echo "no
" >&6; }
13530 if test "x
$ac_ct_OTOOL" = x; then
13533 case $cross_compiling:$ac_tool_warned in
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13536 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13537 ac_tool_warned=yes ;;
13542 OTOOL="$ac_cv_prog_OTOOL"
13545 if test -n "$ac_tool_prefix"; then
13546 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13547 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13549 $as_echo_n "checking
for $ac_word...
" >&6; }
13550 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13551 $as_echo_n "(cached
) " >&6
13553 if test -n "$OTOOL64"; then
13554 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13560 test -z "$as_dir" && as_dir=.
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13563 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13564 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13573 OTOOL64=$ac_cv_prog_OTOOL64
13574 if test -n "$OTOOL64"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13576 $as_echo "$OTOOL64" >&6; }
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13579 $as_echo "no
" >&6; }
13584 if test -z "$ac_cv_prog_OTOOL64"; then
13585 ac_ct_OTOOL64=$OTOOL64
13586 # Extract the first word of "otool64
", so it can be a program name with args.
13587 set dummy otool64; ac_word=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13589 $as_echo_n "checking
for $ac_word...
" >&6; }
13590 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13591 $as_echo_n "(cached
) " >&6
13593 if test -n "$ac_ct_OTOOL64"; then
13594 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13603 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13613 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13614 if test -n "$ac_ct_OTOOL64"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13616 $as_echo "$ac_ct_OTOOL64" >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13619 $as_echo "no
" >&6; }
13622 if test "x
$ac_ct_OTOOL64" = x; then
13625 case $cross_compiling:$ac_tool_warned in
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13628 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13629 ac_tool_warned=yes ;;
13631 OTOOL64=$ac_ct_OTOOL64
13634 OTOOL64="$ac_cv_prog_OTOOL64"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13664 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13665 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13666 $as_echo_n "(cached
) " >&6
13668 lt_cv_apple_cc_single_mod=no
13669 if test -z "${LT_MULTI_MODULE}"; then
13670 # By default we will add the -single_module flag. You can override
13671 # by either setting the environment variable LT_MULTI_MODULE
13672 # non-empty at configure time, or by adding -multi_module to the
13674 rm -rf libconftest.dylib*
13675 echo "int foo
(void
){return 1;}" > conftest.c
13676 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13677 -dynamiclib -Wl,-single_module conftest.c
" >&5
13678 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13679 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13681 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13682 lt_cv_apple_cc_single_mod=yes
13684 cat conftest.err >&5
13686 rm -rf libconftest.dylib*
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13691 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13693 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13694 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13695 $as_echo_n "(cached
) " >&6
13697 lt_cv_ld_exported_symbols_list=no
13698 save_LDFLAGS=$LDFLAGS
13699 echo "_main
" > conftest.sym
13700 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13712 if ac_fn_c_try_link "$LINENO"; then :
13713 lt_cv_ld_exported_symbols_list=yes
13715 lt_cv_ld_exported_symbols_list=no
13717 rm -f core conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LDFLAGS="$save_LDFLAGS"
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13723 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13725 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13726 if test "${lt_cv_ld_force_load+set}" = set; then :
13727 $as_echo_n "(cached
) " >&6
13729 lt_cv_ld_force_load=no
13730 cat > conftest.c << _LT_EOF
13731 int forced_loaded() { return 2;}
13733 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13734 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13735 echo "$AR cru libconftest.a conftest.o
" >&5
13736 $AR cru libconftest.a conftest.o 2>&5
13737 cat > conftest.c << _LT_EOF
13738 int main() { return 0;}
13740 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13741 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13743 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13744 lt_cv_ld_force_load=yes
13746 cat conftest.err >&5
13748 rm -f conftest.err libconftest.a conftest conftest.c
13749 rm -rf conftest.dSYM
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13753 $as_echo "$lt_cv_ld_force_load" >&6; }
13755 rhapsody* | darwin1.[012])
13756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13759 darwin*) # darwin 5.x on
13760 # if running on 10.5 or later, the deployment target defaults
13761 # to the OS version, if on x86, and 10.4, the deployment
13762 # target defaults to 10.4. Don't you love it?
13763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13764 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13774 _lt_dar_single_mod='$single_module'
13776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13779 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13781 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13782 _lt_dsymutil='~$DSYMUTIL $lib || :'
13789 for ac_header in dlfcn.h
13791 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13792 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_DLFCN_H 1
13812 enable_win32_dll=no
13815 # Check whether --enable-shared was given.
13816 if test "${enable_shared+set}" = set; then :
13817 enableval=$enable_shared; p=${PACKAGE-default}
13819 yes) enable_shared=yes ;;
13820 no) enable_shared=no ;;
13823 # Look at the argument we got. We use all the common list separators.
13824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13825 for pkg in $enableval; do
13827 if test "X
$pkg" = "X
$p"; then
13846 # Check whether --enable-static was given.
13847 if test "${enable_static+set}" = set; then :
13848 enableval=$enable_static; p=${PACKAGE-default}
13850 yes) enable_static=yes ;;
13851 no) enable_static=no ;;
13854 # Look at the argument we got. We use all the common list separators.
13855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13856 for pkg in $enableval; do
13858 if test "X
$pkg" = "X
$p"; then
13878 # Check whether --with-pic was given.
13879 if test "${with_pic+set}" = set; then :
13880 withval=$with_pic; pic_mode="$withval"
13886 test -z "$pic_mode" && pic_mode=default
13894 # Check whether --enable-fast-install was given.
13895 if test "${enable_fast_install+set}" = set; then :
13896 enableval=$enable_fast_install; p=${PACKAGE-default}
13898 yes) enable_fast_install=yes ;;
13899 no) enable_fast_install=no ;;
13901 enable_fast_install=no
13902 # Look at the argument we got. We use all the common list separators.
13903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13904 for pkg in $enableval; do
13906 if test "X
$pkg" = "X
$p"; then
13907 enable_fast_install=yes
13914 enable_fast_install=yes
13927 # This can be used to rebuild libtool when needed
13928 LIBTOOL_DEPS="$ltmain"
13930 # Always use our own libtool.
13931 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13958 test -z "$LN_S" && LN_S="ln -s"
13973 if test -n "${ZSH_VERSION+set}" ; then
13974 setopt NO_GLOB_SUBST
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13978 $as_echo_n "checking
for objdir...
" >&6; }
13979 if test "${lt_cv_objdir+set}" = set; then :
13980 $as_echo_n "(cached
) " >&6
13982 rm -f .libs 2>/dev/null
13983 mkdir .libs 2>/dev/null
13984 if test -d .libs; then
13987 # MS-DOS does not allow filenames that begin with a dot.
13990 rmdir .libs 2>/dev/null
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13993 $as_echo "$lt_cv_objdir" >&6; }
13994 objdir=$lt_cv_objdir
14000 cat >>confdefs.h <<_ACEOF
14001 #define LT_OBJDIR "$lt_cv_objdir/"
14009 # AIX sometimes has problems with the GCC collect2 program. For some
14010 # reason, if we set the COLLECT_NAMES environment variable, the problems
14011 # vanish in a puff of smoke.
14012 if test "X
${COLLECT_NAMES+set}" != Xset; then
14014 export COLLECT_NAMES
14019 # Global variables:
14021 can_build_shared=yes
14023 # All known linkers require a `.a' archive for static linking (except MSVC,
14024 # which needs '.lib').
14027 with_gnu_ld="$lt_cv_prog_gnu_ld"
14030 old_CFLAGS="$CFLAGS"
14032 # Set sane defaults for various variables
14033 test -z "$CC" && CC=cc
14034 test -z "$LTCC" && LTCC=$CC
14035 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14036 test -z "$LD" && LD=ld
14037 test -z "$ac_objext" && ac_objext=o
14039 for cc_temp in $compiler""; do
14041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14047 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14050 # Only perform the check for file, if the check method requires it
14051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14052 case $deplibs_check_method in
14054 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14056 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14057 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14058 $as_echo_n "(cached
) " >&6
14062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14065 lt_save_MAGIC_CMD="$MAGIC_CMD"
14066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14067 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14068 for ac_dir in $ac_dummy; do
14070 test -z "$ac_dir" && ac_dir=.
14071 if test -f $ac_dir/${ac_tool_prefix}file; then
14072 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14073 if test -n "$file_magic_test_file"; then
14074 case $deplibs_check_method in
14076 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14079 $EGREP "$file_magic_regex" > /dev/null; then
14084 *** Warning: the command libtool uses to detect shared libraries,
14085 *** $file_magic_cmd, produces output that libtool cannot recognize.
14086 *** The result is that libtool may fail to recognize shared libraries
14087 *** as such. This will affect the creation of libtool libraries that
14088 *** depend on shared libraries, but programs linked with such libtool
14089 *** libraries will work regardless of this problem. Nevertheless, you
14090 *** may want to report the problem to your system manager and/or to
14091 *** bug-libtool@gnu.org
14101 MAGIC_CMD="$lt_save_MAGIC_CMD"
14106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14107 if test -n "$MAGIC_CMD"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14109 $as_echo "$MAGIC_CMD" >&6; }
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14112 $as_echo "no
" >&6; }
14119 if test -z "$lt_cv_path_MAGIC_CMD"; then
14120 if test -n "$ac_tool_prefix"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14122 $as_echo_n "checking
for file...
" >&6; }
14123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14124 $as_echo_n "(cached
) " >&6
14128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14131 lt_save_MAGIC_CMD="$MAGIC_CMD"
14132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14133 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14134 for ac_dir in $ac_dummy; do
14136 test -z "$ac_dir" && ac_dir=.
14137 if test -f $ac_dir/file; then
14138 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14139 if test -n "$file_magic_test_file"; then
14140 case $deplibs_check_method in
14142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14145 $EGREP "$file_magic_regex" > /dev/null; then
14150 *** Warning: the command libtool uses to detect shared libraries,
14151 *** $file_magic_cmd, produces output that libtool cannot recognize.
14152 *** The result is that libtool may fail to recognize shared libraries
14153 *** as such. This will affect the creation of libtool libraries that
14154 *** depend on shared libraries, but programs linked with such libtool
14155 *** libraries will work regardless of this problem. Nevertheless, you
14156 *** may want to report the problem to your system manager and/or to
14157 *** bug-libtool@gnu.org
14167 MAGIC_CMD="$lt_save_MAGIC_CMD"
14172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14173 if test -n "$MAGIC_CMD"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14175 $as_echo "$MAGIC_CMD" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14178 $as_echo "no
" >&6; }
14191 # Use C for the default configuration in the libtool script
14195 ac_cpp='$CPP $CPPFLAGS'
14196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14201 # Source file extension for C test sources.
14204 # Object file extension for compiled C test sources.
14208 # Code to be used in simple compile tests
14209 lt_simple_compile_test_code="int some_variable
= 0;"
14211 # Code to be used in simple link tests
14212 lt_simple_link_test_code='int main(){return(0);}'
14220 # If no C compiler was specified, use CC.
14223 # If no C compiler flags were specified, use CFLAGS.
14224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14226 # Allow CC to be a program name with arguments.
14229 # Save the default compiler, since it gets overwritten when the other
14230 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14231 compiler_DEFAULT=$CC
14233 # save warnings/boilerplate of simple test code
14234 ac_outfile=conftest.$ac_objext
14235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14237 _lt_compiler_boilerplate=`cat conftest.err`
14240 ac_outfile=conftest.$ac_objext
14241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14243 _lt_linker_boilerplate=`cat conftest.err`
14248 ## There is no encapsulation within the following macros, do not change
14249 ## the running order or otherwise move them around unless you know exactly
14250 ## what you are doing...
14251 if test -n "$compiler"; then
14253 lt_prog_compiler_no_builtin_flag=
14255 if test "$GCC" = yes; then
14256 case $cc_basename in
14258 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14260 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14264 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14265 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14266 $as_echo_n "(cached
) " >&6
14268 lt_cv_prog_compiler_rtti_exceptions=no
14269 ac_outfile=conftest.$ac_objext
14270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14271 lt_compiler_flag="-fno-rtti -fno-exceptions"
14272 # Insert the option either (1) after the last *FLAGS variable, or
14273 # (2) before a word containing "conftest.
", or (3) at the end.
14274 # Note that $ac_compile itself does not contain backslashes and begins
14275 # with a dollar sign (not a hyphen), so the echo should work correctly.
14276 # The option is referenced via a variable to avoid confusing sed.
14277 lt_compile=`echo "$ac_compile" | $SED \
14278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280 -e 's:$: $lt_compiler_flag:'`
14281 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14282 (eval "$lt_compile" 2>conftest.err)
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14286 if (exit $ac_status) && test -s "$ac_outfile"; then
14287 # The compiler can only warn and ignore the option if not recognized
14288 # So say no if there are warnings other than the usual output.
14289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14292 lt_cv_prog_compiler_rtti_exceptions=yes
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14299 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14302 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14314 lt_prog_compiler_wl=
14315 lt_prog_compiler_pic=
14316 lt_prog_compiler_static=
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14319 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14321 if test "$GCC" = yes; then
14322 lt_prog_compiler_wl='-Wl,'
14323 lt_prog_compiler_static='-static'
14327 # All AIX code is PIC.
14328 if test "$host_cpu" = ia64; then
14329 # AIX 5 now supports IA64 processor
14330 lt_prog_compiler_static='-Bstatic'
14337 # see comment about AmigaOS4 .so support
14338 lt_prog_compiler_pic='-fPIC'
14341 # FIXME: we need at least 68020 code to build shared libraries, but
14342 # adding the `-m68020' flag to GCC prevents building anything better,
14344 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14349 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14350 # PIC is the default for these OSes.
14353 mingw* | cygwin* | pw32* | os2* | cegcc*)
14354 # This hack is so that the source file can tell whether it is being
14355 # built for inclusion in a dll (and should export symbols for example).
14356 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14357 # (--disable-auto-import) libraries
14358 lt_prog_compiler_pic='-DDLL_EXPORT'
14361 darwin* | rhapsody*)
14362 # PIC is the default on this platform
14363 # Common symbols not allowed in MH_DYLIB files
14364 lt_prog_compiler_pic='-fno-common'
14368 # PIC is the default for Haiku.
14369 # The "-static" flag exists, but is broken.
14370 lt_prog_compiler_static=
14374 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14375 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14376 # sets the default TLS model and affects inlining.
14382 lt_prog_compiler_pic='-fPIC'
14388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14389 # Instead, we relocate shared libraries at runtime.
14393 # Just because we use GCC doesn't mean we suddenly get shared libraries
14394 # on systems that don't support them.
14395 lt_prog_compiler_can_build_shared=no
14400 # QNX uses GNU C++, but need to define -shared option too, otherwise
14401 # it will coredump.
14402 lt_prog_compiler_pic='-fPIC -shared'
14406 if test -d /usr/nec; then
14407 lt_prog_compiler_pic=-Kconform_pic
14412 lt_prog_compiler_pic='-fPIC'
14416 case $cc_basename in
14417 nvcc*) # Cuda Compiler Driver 2.2
14418 lt_prog_compiler_wl='-Xlinker '
14419 lt_prog_compiler_pic='-Xcompiler -fPIC'
14423 # PORTME Check for flag to pass linker flags through the system compiler.
14426 lt_prog_compiler_wl='-Wl,'
14427 if test "$host_cpu" = ia64; then
14428 # AIX 5 now supports IA64 processor
14429 lt_prog_compiler_static='-Bstatic'
14431 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14435 mingw* | cygwin* | pw32* | os2* | cegcc*)
14436 # This hack is so that the source file can tell whether it is being
14437 # built for inclusion in a dll (and should export symbols for example).
14438 lt_prog_compiler_pic='-DDLL_EXPORT'
14441 hpux9* | hpux10* | hpux11*)
14442 lt_prog_compiler_wl='-Wl,'
14443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14444 # not for PA HP-UX.
14450 lt_prog_compiler_pic='+Z'
14453 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14454 lt_prog_compiler_static='${wl}-a ${wl}archive'
14457 irix5* | irix6* | nonstopux*)
14458 lt_prog_compiler_wl='-Wl,'
14459 # PIC (with -KPIC) is the default.
14460 lt_prog_compiler_static='-non_shared'
14463 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14464 case $cc_basename in
14465 # old Intel for x86_64 which still supported -KPIC.
14467 lt_prog_compiler_wl='-Wl,'
14468 lt_prog_compiler_pic='-KPIC'
14469 lt_prog_compiler_static='-static'
14471 # icc used to be incompatible with GCC.
14472 # ICC 10 doesn't accept -KPIC any more.
14474 lt_prog_compiler_wl='-Wl,'
14475 lt_prog_compiler_pic='-fPIC'
14476 lt_prog_compiler_static='-static'
14478 # Lahey Fortran 8.1.
14480 lt_prog_compiler_wl='-Wl,'
14481 lt_prog_compiler_pic='--shared'
14482 lt_prog_compiler_static='--static'
14484 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14485 # Portland Group compilers (*not* the Pentium gcc compiler,
14486 # which looks to be a dead project)
14487 lt_prog_compiler_wl='-Wl,'
14488 lt_prog_compiler_pic='-fpic'
14489 lt_prog_compiler_static='-Bstatic'
14492 lt_prog_compiler_wl='-Wl,'
14493 # All Alpha code is PIC.
14494 lt_prog_compiler_static='-non_shared'
14496 xl* | bgxl* | bgf* | mpixl*)
14497 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14498 lt_prog_compiler_wl='-Wl,'
14499 lt_prog_compiler_pic='-qpic'
14500 lt_prog_compiler_static='-qstaticlink'
14503 case `$CC -V 2>&1 | sed 5q` in
14504 *Sun\ F* | *Sun*Fortran*)
14505 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14506 lt_prog_compiler_pic='-KPIC'
14507 lt_prog_compiler_static='-Bstatic'
14508 lt_prog_compiler_wl=''
14512 lt_prog_compiler_pic='-KPIC'
14513 lt_prog_compiler_static='-Bstatic'
14514 lt_prog_compiler_wl='-Wl,'
14522 lt_prog_compiler_pic='-KPIC'
14523 lt_prog_compiler_static='-Bstatic'
14527 # QNX uses GNU C++, but need to define -shared option too, otherwise
14528 # it will coredump.
14529 lt_prog_compiler_pic='-fPIC -shared'
14532 osf3* | osf4* | osf5*)
14533 lt_prog_compiler_wl='-Wl,'
14534 # All OSF/1 code is PIC.
14535 lt_prog_compiler_static='-non_shared'
14539 lt_prog_compiler_static='-non_shared'
14543 lt_prog_compiler_pic='-KPIC'
14544 lt_prog_compiler_static='-Bstatic'
14545 case $cc_basename in
14546 f77* | f90* | f95*)
14547 lt_prog_compiler_wl='-Qoption ld ';;
14549 lt_prog_compiler_wl='-Wl,';;
14554 lt_prog_compiler_wl='-Qoption ld '
14555 lt_prog_compiler_pic='-PIC'
14556 lt_prog_compiler_static='-Bstatic'
14559 sysv4 | sysv4.2uw2* | sysv4.3*)
14560 lt_prog_compiler_wl='-Wl,'
14561 lt_prog_compiler_pic='-KPIC'
14562 lt_prog_compiler_static='-Bstatic'
14566 if test -d /usr/nec ;then
14567 lt_prog_compiler_pic='-Kconform_pic'
14568 lt_prog_compiler_static='-Bstatic'
14572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14573 lt_prog_compiler_wl='-Wl,'
14574 lt_prog_compiler_pic='-KPIC'
14575 lt_prog_compiler_static='-Bstatic'
14579 lt_prog_compiler_wl='-Wl,'
14580 lt_prog_compiler_can_build_shared=no
14584 lt_prog_compiler_pic='-pic'
14585 lt_prog_compiler_static='-Bstatic'
14589 lt_prog_compiler_can_build_shared=no
14595 # For platforms which do not support PIC, -DPIC is meaningless:
14597 lt_prog_compiler_pic=
14600 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14604 $as_echo "$lt_prog_compiler_pic" >&6; }
14612 # Check to make sure the PIC flag actually works.
14614 if test -n "$lt_prog_compiler_pic"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14616 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14617 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14618 $as_echo_n "(cached
) " >&6
14620 lt_cv_prog_compiler_pic_works=no
14621 ac_outfile=conftest.$ac_objext
14622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14624 # Insert the option either (1) after the last *FLAGS variable, or
14625 # (2) before a word containing "conftest.
", or (3) at the end.
14626 # Note that $ac_compile itself does not contain backslashes and begins
14627 # with a dollar sign (not a hyphen), so the echo should work correctly.
14628 # The option is referenced via a variable to avoid confusing sed.
14629 lt_compile=`echo "$ac_compile" | $SED \
14630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
14633 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14634 (eval "$lt_compile" 2>conftest.err)
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14638 if (exit $ac_status) && test -s "$ac_outfile"; then
14639 # The compiler can only warn and ignore the option if not recognized
14640 # So say no if there are warnings other than the usual output.
14641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14644 lt_cv_prog_compiler_pic_works=yes
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14651 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14653 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14654 case $lt_prog_compiler_pic in
14656 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14659 lt_prog_compiler_pic=
14660 lt_prog_compiler_can_build_shared=no
14671 # Check to make sure the static flag actually works.
14673 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14675 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14676 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14677 $as_echo_n "(cached
) " >&6
14679 lt_cv_prog_compiler_static_works=no
14680 save_LDFLAGS="$LDFLAGS"
14681 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14682 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14684 # The linker can only warn and ignore the option if not recognized
14685 # So say no if there are warnings
14686 if test -s conftest.err; then
14687 # Append any errors to the config.log.
14688 cat conftest.err 1>&5
14689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14691 if diff conftest.exp conftest.er2 >/dev/null; then
14692 lt_cv_prog_compiler_static_works=yes
14695 lt_cv_prog_compiler_static_works=yes
14699 LDFLAGS="$save_LDFLAGS"
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14703 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14705 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14708 lt_prog_compiler_static=
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14718 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14719 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14720 $as_echo_n "(cached
) " >&6
14722 lt_cv_prog_compiler_c_o=no
14723 $RM -r conftest 2>/dev/null
14727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14730 # Insert the option either (1) after the last *FLAGS variable, or
14731 # (2) before a word containing "conftest.
", or (3) at the end.
14732 # Note that $ac_compile itself does not contain backslashes and begins
14733 # with a dollar sign (not a hyphen), so the echo should work correctly.
14734 lt_compile=`echo "$ac_compile" | $SED \
14735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14737 -e 's:$: $lt_compiler_flag:'`
14738 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14739 (eval "$lt_compile" 2>out/conftest.err)
14741 cat out/conftest.err >&5
14742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14745 # The compiler can only warn and ignore the option if not recognized
14746 # So say no if there are warnings
14747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14750 lt_cv_prog_compiler_c_o=yes
14755 # SGI C++ compiler will create directory out/ii_files/ for
14756 # template instantiation
14757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14758 $RM out/* && rmdir out
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14765 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14773 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14774 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14775 $as_echo_n "(cached
) " >&6
14777 lt_cv_prog_compiler_c_o=no
14778 $RM -r conftest 2>/dev/null
14782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14784 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14785 # Insert the option either (1) after the last *FLAGS variable, or
14786 # (2) before a word containing "conftest.
", or (3) at the end.
14787 # Note that $ac_compile itself does not contain backslashes and begins
14788 # with a dollar sign (not a hyphen), so the echo should work correctly.
14789 lt_compile=`echo "$ac_compile" | $SED \
14790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14792 -e 's:$: $lt_compiler_flag:'`
14793 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14794 (eval "$lt_compile" 2>out/conftest.err)
14796 cat out/conftest.err >&5
14797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14800 # The compiler can only warn and ignore the option if not recognized
14801 # So say no if there are warnings
14802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14805 lt_cv_prog_compiler_c_o=yes
14810 # SGI C++ compiler will create directory out/ii_files/ for
14811 # template instantiation
14812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14813 $RM out/* && rmdir out
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14820 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14825 hard_links="nottested
"
14826 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14827 # do not overwrite the value of need_locks provided by the user
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14829 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14834 ln conftest.a conftest.b 2>&5 || hard_links=no
14835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14837 $as_echo "$hard_links" >&6; }
14838 if test "$hard_links" = no; then
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14840 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14853 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14856 allow_undefined_flag=
14857 always_export_symbols=no
14859 archive_expsym_cmds=
14860 compiler_needs_object=no
14861 enable_shared_with_static_runtimes=no
14862 export_dynamic_flag_spec=
14863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14864 hardcode_automatic=no
14866 hardcode_direct_absolute=no
14867 hardcode_libdir_flag_spec=
14868 hardcode_libdir_flag_spec_ld=
14869 hardcode_libdir_separator=
14870 hardcode_minus_L=no
14871 hardcode_shlibpath_var=unsupported
14873 link_all_deplibs=unknown
14875 module_expsym_cmds=
14876 old_archive_from_new_cmds=
14877 old_archive_from_expsyms_cmds=
14878 thread_safe_flag_spec=
14879 whole_archive_flag_spec=
14880 # include_expsyms should be a list of space-separated symbols to be *always*
14881 # included in the symbol list
14883 # exclude_expsyms can be an extended regexp of symbols to exclude
14884 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14885 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14886 # as well as any symbol that contains `d'.
14887 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14888 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14889 # platforms (ab)use it in PIC code, but their linkers get confused if
14890 # the symbol is explicitly referenced. Since portable code cannot
14891 # rely on this symbol name, it's probably fine to never include it in
14892 # preloaded symbol tables.
14893 # Exclude shared library initialization/finalization symbols.
14894 extract_expsyms_cmds=
14897 cygwin* | mingw* | pw32* | cegcc*)
14898 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14899 # When not using gcc, we currently assume that we are using
14900 # Microsoft Visual C++.
14901 if test "$GCC" != yes; then
14906 # we just hope/assume this is gcc and not c89 (= MSVC++)
14916 # On some targets, GNU ld is compatible enough with the native linker
14917 # that we're better off using the native interface for both.
14918 lt_use_gnu_ld_interface=no
14919 if test "$with_gnu_ld" = yes; then
14922 # The AIX port of GNU ld has always aspired to compatibility
14923 # with the native linker. However, as the warning in the GNU ld
14924 # block says, versions before 2.19.5* couldn't really create working
14925 # shared libraries, regardless of the interface used.
14926 case `$LD -v 2>&1` in
14927 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14928 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14929 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14931 lt_use_gnu_ld_interface=yes
14936 lt_use_gnu_ld_interface=yes
14941 if test "$lt_use_gnu_ld_interface" = yes; then
14942 # If archive_cmds runs LD, not CC, wlarc should be empty
14945 # Set some defaults for GNU ld with shared library support. These
14946 # are reset later if shared libraries are not supported. Putting them
14947 # here allows them to be overridden if necessary.
14948 runpath_var=LD_RUN_PATH
14949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14950 export_dynamic_flag_spec='${wl}--export-dynamic'
14951 # ancient GNU ld didn't support --whole-archive et. al.
14952 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14953 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14955 whole_archive_flag_spec=
14957 supports_anon_versioning=no
14958 case `$LD -v 2>&1` in
14959 *GNU\ gold*) supports_anon_versioning=yes ;;
14960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14963 *\ 2.11.*) ;; # other 2.11 versions
14964 *) supports_anon_versioning=yes ;;
14967 # See if GNU ld supports shared libraries.
14970 # On AIX/PPC, the GNU linker is very broken
14971 if test "$host_cpu" != ia64; then
14975 *** Warning: the GNU linker, at least up to release 2.19, is reported
14976 *** to be unable to reliably create shared libraries on AIX.
14977 *** Therefore, libtool is disabling shared libraries support. If you
14978 *** really care for shared libraries, you may want to install binutils
14979 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14980 *** You will then need to restart the configuration process.
14989 # see comment about AmigaOS4 .so support
14990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14991 archive_expsym_cmds=''
14994 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)'
14995 hardcode_libdir_flag_spec
='-L$libdir'
14996 hardcode_minus_L
=yes
15002 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15003 allow_undefined_flag
=unsupported
15004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15005 # support --undefined. This deserves some investigation. FIXME
15006 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 cygwin
* | mingw
* | pw32
* | cegcc
*)
15013 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15014 # as there is no search path for DLLs.
15015 hardcode_libdir_flag_spec
='-L$libdir'
15016 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15017 allow_undefined_flag
=unsupported
15018 always_export_symbols
=no
15019 enable_shared_with_static_runtimes
=yes
15020 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15022 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15023 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15024 # If the export-symbols file already is a .def file (1st line
15025 # is EXPORTS), use it as is; otherwise, prepend...
15026 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15027 cp $export_symbols $output_objdir/$soname.def;
15029 echo EXPORTS > $output_objdir/$soname.def;
15030 cat $export_symbols >> $output_objdir/$soname.def;
15032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15039 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15040 link_all_deplibs
=yes
15045 hardcode_shlibpath_var
=no
15046 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15047 export_dynamic_flag_spec
='${wl}-E'
15048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15049 # Instead, shared libraries are loaded at an image base (0x10000000 by
15050 # default) and relocated if they conflict, which is a slow very memory
15051 # consuming and fragmenting process. To avoid this, we pick a random,
15052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15054 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15055 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'
15058 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15060 if test "$host_os" = linux-dietlibc
; then
15061 case $cc_basename in
15062 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15065 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15066 && test "$tmp_diet" = no
15069 tmp_sharedflag
='-shared'
15070 case $cc_basename,$host_cpu in
15071 pgcc
*) # Portland Group C compiler
15072 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'
15073 tmp_addflag
=' $pic_flag'
15075 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15076 # Portland Group f77 and f90 compilers
15077 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'
15078 tmp_addflag
=' $pic_flag -Mnomain' ;;
15079 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15080 tmp_addflag
=' -i_dynamic' ;;
15081 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15082 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15083 ifc
* | ifort
*) # Intel Fortran compiler
15084 tmp_addflag
=' -nofor_main' ;;
15085 lf95
*) # Lahey Fortran 8.1
15086 whole_archive_flag_spec
=
15087 tmp_sharedflag
='--shared' ;;
15088 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15089 tmp_sharedflag
='-qmkshrobj'
15091 nvcc
*) # Cuda Compiler Driver 2.2
15092 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'
15093 compiler_needs_object
=yes
15096 case `$CC -V 2>&1 | sed 5q` in
15097 *Sun\ C
*) # Sun C 5.9
15098 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'
15099 compiler_needs_object
=yes
15100 tmp_sharedflag
='-G' ;;
15101 *Sun\ F
*) # Sun Fortran 8.3
15102 tmp_sharedflag
='-G' ;;
15104 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106 if test "x$supports_anon_versioning" = xyes
; then
15107 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15109 echo "local: *; };" >> $output_objdir/$libname.ver~
15110 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15113 case $cc_basename in
15114 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15115 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15116 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15117 hardcode_libdir_flag_spec
=
15118 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15119 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15120 if test "x$supports_anon_versioning" = xyes
; then
15121 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15123 echo "local: *; };" >> $output_objdir/$libname.ver~
15124 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15134 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15135 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15138 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15149 *** create shared libraries on Solaris systems. Therefore, libtool
15150 *** is disabling shared libraries support. We urge you to upgrade GNU
15151 *** binutils to release 2.9.1 or newer. Another option is to modify
15152 *** your PATH or compiler configuration so that the native linker is
15153 *** used, and then restart.
15156 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15157 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15164 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15165 case `$LD -v 2>&1` in
15166 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15170 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15171 *** reliably create shared libraries on SCO systems. Therefore, libtool
15172 *** is disabling shared libraries support. We urge you to upgrade GNU
15173 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15174 *** your PATH or compiler configuration so that the native linker is
15175 *** used, and then restart.
15180 # For security reasons, it is highly recommended that you always
15181 # use absolute paths for naming shared libraries, and exclude the
15182 # DT_RUNPATH tag from executables and libraries. But doing so
15183 # requires that you compile everything twice, which is a pain.
15184 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15185 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15186 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15196 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15198 hardcode_direct
=yes
15199 hardcode_shlibpath_var
=no
15203 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15204 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15205 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15212 if test "$ld_shlibs" = no
; then
15214 hardcode_libdir_flag_spec
=
15215 export_dynamic_flag_spec
=
15216 whole_archive_flag_spec
=
15219 # PORTME fill in a description of your system's linker (not GNU ld)
15222 allow_undefined_flag
=unsupported
15223 always_export_symbols
=yes
15224 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'
15225 # Note: this linker hardcodes the directories in LIBPATH if there
15226 # are no directories specified by -L.
15227 hardcode_minus_L
=yes
15228 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15229 # Neither direct hardcoding nor static linking is supported with a
15231 hardcode_direct
=unsupported
15236 if test "$host_cpu" = ia64
; then
15237 # On IA64, the linker does run time linking by default, so we don't
15238 # have to do anything special.
15239 aix_use_runtimelinking
=no
15240 exp_sym_flag
='-Bexport'
15243 # If we're using GNU nm, then we don't want the "-C" option.
15244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15245 # Also, AIX nm treats weak defined symbols like other global
15246 # defined symbols, whereas GNU nm marks them as "W".
15247 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15248 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'
15250 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'
15252 aix_use_runtimelinking
=no
15254 # Test if we are trying to use run time linking or normal
15255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15256 # need to do runtime linking.
15257 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15258 for ld_flag
in $LDFLAGS; do
15259 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15260 aix_use_runtimelinking
=yes
15267 exp_sym_flag
='-bexport'
15268 no_entry_flag
='-bnoentry'
15271 # When large executables or shared objects are built, AIX ld can
15272 # have problems creating the table of contents. If linking a library
15273 # or program results in "error TOC overflow" add -mminimal-toc to
15274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15278 hardcode_direct
=yes
15279 hardcode_direct_absolute
=yes
15280 hardcode_libdir_separator
=':'
15281 link_all_deplibs
=yes
15282 file_list_spec
='${wl}-f,'
15284 if test "$GCC" = yes; then
15285 case $host_os in aix4.
[012]|aix4.
[012].
*)
15286 # We only want to do this on AIX 4.2 and lower, the check
15287 # below for broken collect2 doesn't work under 4.3+
15288 collect2name
=`${CC} -print-prog-name=collect2`
15289 if test -f "$collect2name" &&
15290 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15292 # We have reworked collect2
15295 # We have old collect2
15296 hardcode_direct
=unsupported
15297 # It fails to find uninstalled libraries when the uninstalled
15298 # path is not listed in the libpath. Setting hardcode_minus_L
15299 # to unsupported forces relinking
15300 hardcode_minus_L
=yes
15301 hardcode_libdir_flag_spec
='-L$libdir'
15302 hardcode_libdir_separator
=
15306 shared_flag
='-shared'
15307 if test "$aix_use_runtimelinking" = yes; then
15308 shared_flag
="$shared_flag "'${wl}-G'
15312 if test "$host_cpu" = ia64
; then
15313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15314 # chokes on -Wl,-G. The following line is correct:
15317 if test "$aix_use_runtimelinking" = yes; then
15318 shared_flag
='${wl}-G'
15320 shared_flag
='${wl}-bM:SRE'
15325 export_dynamic_flag_spec
='${wl}-bexpall'
15326 # It seems that -bexpall does not export symbols beginning with
15327 # underscore (_), so it is better to generate a list of symbols to export.
15328 always_export_symbols
=yes
15329 if test "$aix_use_runtimelinking" = yes; then
15330 # Warning - without using the other runtime loading flags (-brtl),
15331 # -berok will link without error, but may produce a broken library.
15332 allow_undefined_flag
='-berok'
15333 # Determine the default libpath from the value encoded in an
15334 # empty executable.
15335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15346 if ac_fn_c_try_link
"$LINENO"; then :
15348 lt_aix_libpath_sed
='
15349 /Import File Strings/,/^$/ {
15355 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15356 # Check for a 64-bit object if we didn't find anything.
15357 if test -z "$aix_libpath"; then
15358 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15361 rm -f core conftest.err conftest.
$ac_objext \
15362 conftest
$ac_exeext conftest.
$ac_ext
15363 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15365 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15366 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"
15368 if test "$host_cpu" = ia64
; then
15369 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15370 allow_undefined_flag
="-z nodefs"
15371 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"
15373 # Determine the default libpath from the value encoded in an
15374 # empty executable.
15375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15386 if ac_fn_c_try_link
"$LINENO"; then :
15388 lt_aix_libpath_sed
='
15389 /Import File Strings/,/^$/ {
15395 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15396 # Check for a 64-bit object if we didn't find anything.
15397 if test -z "$aix_libpath"; then
15398 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401 rm -f core conftest.err conftest.
$ac_objext \
15402 conftest
$ac_exeext conftest.
$ac_ext
15403 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15405 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15406 # Warning - without using the other run time loading flags,
15407 # -berok will link without error, but may produce a broken library.
15408 no_undefined_flag
=' ${wl}-bernotok'
15409 allow_undefined_flag
=' ${wl}-berok'
15410 if test "$with_gnu_ld" = yes; then
15411 # We only use this code for GNU lds that support --whole-archive.
15412 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15414 # Exported symbols can be pulled into shared objects from archives
15415 whole_archive_flag_spec
='$convenience'
15417 archive_cmds_need_lc
=yes
15418 # This is similar to how AIX traditionally builds its shared libraries.
15419 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'
15427 # see comment about AmigaOS4 .so support
15428 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429 archive_expsym_cmds
=''
15432 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)'
15433 hardcode_libdir_flag_spec
='-L$libdir'
15434 hardcode_minus_L
=yes
15440 export_dynamic_flag_spec
=-rdynamic
15443 cygwin
* | mingw
* | pw32
* | cegcc
*)
15444 # When not using gcc, we currently assume that we are using
15445 # Microsoft Visual C++.
15446 # hardcode_libdir_flag_spec is actually meaningless, as there is
15447 # no search path for DLLs.
15448 hardcode_libdir_flag_spec
=' '
15449 allow_undefined_flag
=unsupported
15450 # Tell ltmain to make .lib files, not .a files.
15452 # Tell ltmain to make .dll files, not .so files.
15454 # FIXME: Setting linknames here is a bad hack.
15455 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15456 # The linker will automatically build a .lib file if we build a DLL.
15457 old_archive_from_new_cmds
='true'
15458 # FIXME: Should let the user specify the lib program.
15459 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15460 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15461 enable_shared_with_static_runtimes
=yes
15464 darwin
* | rhapsody
*)
15467 archive_cmds_need_lc
=no
15469 hardcode_automatic
=yes
15470 hardcode_shlibpath_var
=unsupported
15471 if test "$lt_cv_ld_force_load" = "yes"; then
15472 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\"`'
15474 whole_archive_flag_spec
=''
15476 link_all_deplibs
=yes
15477 allow_undefined_flag
="$_lt_dar_allow_undefined"
15478 case $cc_basename in
15479 ifort
*) _lt_dar_can_shared
=yes ;;
15480 *) _lt_dar_can_shared
=$GCC ;;
15482 if test "$_lt_dar_can_shared" = "yes"; then
15483 output_verbose_link_cmd
=func_echo_all
15484 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15485 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15486 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}"
15487 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}"
15496 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_libdir_flag_spec
='-L$libdir'
15498 hardcode_shlibpath_var
=no
15505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15506 # support. Future versions do this automatically, but an explicit c++rt0.o
15507 # does not break anything, and helps significantly (at the cost of a little
15510 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15511 hardcode_libdir_flag_spec
='-R$libdir'
15512 hardcode_direct
=yes
15513 hardcode_shlibpath_var
=no
15516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15518 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct
=yes
15520 hardcode_minus_L
=yes
15521 hardcode_shlibpath_var
=no
15524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15525 freebsd
* | dragonfly
*)
15526 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15527 hardcode_libdir_flag_spec
='-R$libdir'
15528 hardcode_direct
=yes
15529 hardcode_shlibpath_var
=no
15533 if test "$GCC" = yes; then
15534 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'
15536 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'
15538 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15539 hardcode_libdir_separator
=:
15540 hardcode_direct
=yes
15542 # hardcode_minus_L: Not really in the search PATH,
15543 # but as the default location of the library.
15544 hardcode_minus_L
=yes
15545 export_dynamic_flag_spec
='${wl}-E'
15549 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15550 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15552 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15554 if test "$with_gnu_ld" = no
; then
15555 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15556 hardcode_libdir_flag_spec_ld
='+b $libdir'
15557 hardcode_libdir_separator
=:
15558 hardcode_direct
=yes
15559 hardcode_direct_absolute
=yes
15560 export_dynamic_flag_spec
='${wl}-E'
15561 # hardcode_minus_L: Not really in the search PATH,
15562 # but as the default location of the library.
15563 hardcode_minus_L
=yes
15568 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15571 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15577 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15583 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15590 # Older versions of the 11.00 compiler do not understand -b yet
15591 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15593 $as_echo_n "checking if $CC understands -b... " >&6; }
15594 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15595 $as_echo_n "(cached) " >&6
15597 lt_cv_prog_compiler__b
=no
15598 save_LDFLAGS
="$LDFLAGS"
15599 LDFLAGS
="$LDFLAGS -b"
15600 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15601 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15602 # The linker can only warn and ignore the option if not recognized
15603 # So say no if there are warnings
15604 if test -s conftest.err
; then
15605 # Append any errors to the config.log.
15606 cat conftest.err
1>&5
15607 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15608 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15609 if diff conftest.exp conftest.er2
>/dev
/null
; then
15610 lt_cv_prog_compiler__b
=yes
15613 lt_cv_prog_compiler__b
=yes
15617 LDFLAGS
="$save_LDFLAGS"
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15621 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15623 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15624 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15632 if test "$with_gnu_ld" = no
; then
15633 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15634 hardcode_libdir_separator
=:
15639 hardcode_shlibpath_var
=no
15642 hardcode_direct
=yes
15643 hardcode_direct_absolute
=yes
15644 export_dynamic_flag_spec
='${wl}-E'
15646 # hardcode_minus_L: Not really in the search PATH,
15647 # but as the default location of the library.
15648 hardcode_minus_L
=yes
15654 irix5
* | irix6
* | nonstopux
*)
15655 if test "$GCC" = yes; then
15656 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'
15657 # Try to use the -exported_symbol ld option, if it does not
15658 # work, assume that -exports_file does not work either and
15659 # implicitly export all symbols.
15660 save_LDFLAGS
="$LDFLAGS"
15661 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15666 if ac_fn_c_try_link
"$LINENO"; then :
15667 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'
15670 rm -f core conftest.err conftest.
$ac_objext \
15671 conftest
$ac_exeext conftest.
$ac_ext
15672 LDFLAGS
="$save_LDFLAGS"
15674 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'
15675 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'
15677 archive_cmds_need_lc
='no'
15678 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15679 hardcode_libdir_separator
=:
15681 link_all_deplibs
=yes
15685 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15686 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15688 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15690 hardcode_libdir_flag_spec
='-R$libdir'
15691 hardcode_direct
=yes
15692 hardcode_shlibpath_var
=no
15696 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15697 hardcode_direct
=yes
15698 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15699 hardcode_libdir_separator
=:
15700 hardcode_shlibpath_var
=no
15707 if test -f /usr
/libexec
/ld.so
; then
15708 hardcode_direct
=yes
15709 hardcode_shlibpath_var
=no
15710 hardcode_direct_absolute
=yes
15711 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15712 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15714 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15715 export_dynamic_flag_spec
='${wl}-E'
15718 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15719 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_libdir_flag_spec
='-R$libdir'
15723 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15734 hardcode_libdir_flag_spec
='-L$libdir'
15735 hardcode_minus_L
=yes
15736 allow_undefined_flag
=unsupported
15737 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'
15738 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15742 if test "$GCC" = yes; then
15743 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15744 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'
15746 allow_undefined_flag
=' -expect_unresolved \*'
15747 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'
15749 archive_cmds_need_lc
='no'
15750 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15751 hardcode_libdir_separator
=:
15754 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15755 if test "$GCC" = yes; then
15756 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15757 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'
15758 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15760 allow_undefined_flag
=' -expect_unresolved \*'
15761 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'
15762 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~
15763 $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'
15765 # Both c and cxx compiler support -rpath directly
15766 hardcode_libdir_flag_spec
='-rpath $libdir'
15768 archive_cmds_need_lc
='no'
15769 hardcode_libdir_separator
=:
15773 no_undefined_flag
=' -z defs'
15774 if test "$GCC" = yes; then
15776 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15778 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15780 case `$CC -V 2>&1` in
15783 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15789 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15790 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15791 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15795 hardcode_libdir_flag_spec
='-R$libdir'
15796 hardcode_shlibpath_var
=no
15798 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15800 # The compiler driver will combine and reorder linker options,
15801 # but understands `-z linker_flag'. GCC discards it without `$wl',
15802 # but is careful enough not to reorder.
15803 # Supported since Solaris 2.6 (maybe 2.5.1?)
15804 if test "$GCC" = yes; then
15805 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15807 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15811 link_all_deplibs
=yes
15815 if test "x$host_vendor" = xsequent
; then
15816 # Use $CC to link under sequent, because it throws in some extra .o
15817 # files that make .init and .fini sections work.
15818 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15820 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15822 hardcode_libdir_flag_spec
='-L$libdir'
15823 hardcode_direct
=yes
15824 hardcode_minus_L
=yes
15825 hardcode_shlibpath_var
=no
15829 case $host_vendor in
15831 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 hardcode_direct
=yes # is this really true???
15835 ## LD is ld it makes a PLAMLIB
15836 ## CC just makes a GrossModule.
15837 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15838 reload_cmds
='$CC -r -o $output$reload_objs'
15842 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15846 runpath_var
='LD_RUN_PATH'
15847 hardcode_shlibpath_var
=no
15851 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15852 hardcode_shlibpath_var
=no
15853 export_dynamic_flag_spec
='-Bexport'
15857 if test -d /usr
/nec
; then
15858 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_shlibpath_var
=no
15860 runpath_var
=LD_RUN_PATH
15861 hardcode_runpath_var
=yes
15866 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15867 no_undefined_flag
='${wl}-z,text'
15868 archive_cmds_need_lc
=no
15869 hardcode_shlibpath_var
=no
15870 runpath_var
='LD_RUN_PATH'
15872 if test "$GCC" = yes; then
15873 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15876 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15881 sysv5
* | sco3.2v5
* | sco5v6
*)
15882 # Note: We can NOT use -z defs as we might desire, because we do not
15883 # link with -lc, and that would cause any symbols used from libc to
15884 # always be unresolved, which means just about no library would
15885 # ever link correctly. If we're not using GNU ld we use -z text
15886 # though, which does catch some bad symbols but isn't as heavy-handed
15888 no_undefined_flag
='${wl}-z,text'
15889 allow_undefined_flag
='${wl}-z,nodefs'
15890 archive_cmds_need_lc
=no
15891 hardcode_shlibpath_var
=no
15892 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15893 hardcode_libdir_separator
=':'
15894 link_all_deplibs
=yes
15895 export_dynamic_flag_spec
='${wl}-Bexport'
15896 runpath_var
='LD_RUN_PATH'
15898 if test "$GCC" = yes; then
15899 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15909 hardcode_libdir_flag_spec
='-L$libdir'
15910 hardcode_shlibpath_var
=no
15918 if test x
$host_vendor = xsni
; then
15920 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15921 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15928 $as_echo "$ld_shlibs" >&6; }
15929 test "$ld_shlibs" = no
&& can_build_shared
=no
15931 with_gnu_ld
=$with_gnu_ld
15948 # Do we need to explicitly link libc?
15950 case "x$archive_cmds_need_lc" in
15952 # Assume -lc should be added
15953 archive_cmds_need_lc
=yes
15955 if test "$enable_shared" = yes && test "$GCC" = yes; then
15956 case $archive_cmds in
15958 # FIXME: we may have to deal with multi-command sequences.
15961 # Test whether the compiler implicitly links with -lc since on some
15962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15963 # to ld, don't add -lc before -lgcc.
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15966 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15967 $as_echo_n "(cached) " >&6
15970 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15973 (eval $ac_compile) 2>&5
15975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15976 test $ac_status = 0; } 2>conftest.err
; then
15979 libobjs
=conftest.
$ac_objext
15981 wl
=$lt_prog_compiler_wl
15982 pic_flag
=$lt_prog_compiler_pic
15988 lt_save_allow_undefined_flag
=$allow_undefined_flag
15989 allow_undefined_flag
=
15990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15991 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15994 test $ac_status = 0; }
15996 lt_cv_archive_cmds_need_lc
=no
15998 lt_cv_archive_cmds_need_lc
=yes
16000 allow_undefined_flag
=$lt_save_allow_undefined_flag
16002 cat conftest.err
1>&5
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16008 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16009 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16173 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16175 if test "$GCC" = yes; then
16177 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16178 *) lt_awk_arg
="/^libraries:/" ;;
16181 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16182 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16184 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16185 case $lt_search_path_spec in
16187 # if the path contains ";" then we assume it to be the separator
16188 # otherwise default to the standard path separator (i.e. ":") - it is
16189 # assumed that no part of a normal pathname contains ";" but that should
16190 # okay in the real world where ";" in dirpaths is itself problematic.
16191 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16194 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16197 # Ok, now we have the path, separated by spaces, we can step through it
16198 # and add multilib dir if necessary.
16199 lt_tmp_lt_search_path_spec
=
16200 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16201 for lt_sys_path
in $lt_search_path_spec; do
16202 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16203 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16205 test -d "$lt_sys_path" && \
16206 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16209 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16210 BEGIN {RS=" "; FS="/|\n";} {
16213 for (lt_i = NF; lt_i > 0; lt_i--) {
16214 if ($lt_i != "" && $lt_i != ".") {
16215 if ($lt_i == "..") {
16218 if (lt_count == 0) {
16219 lt_foo="/" $lt_i lt_foo;
16226 if (lt_foo != "") { lt_freq[lt_foo]++; }
16227 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16229 # AWK program above erroneously prepends '/' to C:/dos/paths
16232 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16233 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16235 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16237 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16239 library_names_spec
=
16240 libname_spec
='lib$name'
16244 postuninstall_cmds
=
16248 shlibpath_overrides_runpath
=unknown
16250 dynamic_linker
="$host_os ld.so"
16251 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16252 need_lib_prefix
=unknown
16253 hardcode_into_libs
=no
16255 # when you set need_version to no, make sure it does not cause -set_version
16256 # flags to be left without arguments
16257 need_version
=unknown
16262 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16263 shlibpath_var
=LIBPATH
16265 # AIX 3 has no versioning support, so we append a major version to the name.
16266 soname_spec
='${libname}${release}${shared_ext}$major'
16273 hardcode_into_libs
=yes
16274 if test "$host_cpu" = ia64
; then
16275 # AIX 5 supports IA64
16276 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16277 shlibpath_var
=LD_LIBRARY_PATH
16279 # With GCC up to 2.95.x, collect2 would create an import file
16280 # for dependence libraries. The import file would start with
16281 # the line `#! .'. This would cause the generated library to
16282 # depend on `.', always an invalid library. This was fixed in
16283 # development snapshots of GCC prior to 3.0.
16285 aix4 | aix4.
[01] | aix4.
[01].
*)
16286 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16288 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16291 can_build_shared
=no
16295 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16296 # soname into executable. Probably we can add versioning support to
16297 # collect2, so additional links can be useful in future.
16298 if test "$aix_use_runtimelinking" = yes; then
16299 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16300 # instead of lib<name>.a to let people know that these are not
16301 # typical AIX shared libraries.
16302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304 # We preserve .a as extension for shared libraries through AIX4.2
16305 # and later when we are not doing run time linking.
16306 library_names_spec
='${libname}${release}.a $libname.a'
16307 soname_spec
='${libname}${release}${shared_ext}$major'
16309 shlibpath_var
=LIBPATH
16316 # Since July 2007 AmigaOS4 officially supports .so libraries.
16317 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 library_names_spec
='$libname.ixlibrary $libname.a'
16322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16323 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'
16329 library_names_spec
='${libname}${shared_ext}'
16330 dynamic_linker
="$host_os ld.so"
16331 shlibpath_var
=LIBRARY_PATH
16337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 soname_spec
='${libname}${release}${shared_ext}$major'
16339 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16340 shlibpath_var
=LD_LIBRARY_PATH
16341 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16342 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16343 # the default ld.so.conf also contains /usr/contrib/lib and
16344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16345 # libtool to hard-code these into programs
16348 cygwin
* | mingw
* | pw32
* | cegcc
*)
16349 version_type
=windows
16354 case $GCC,$host_os in
16355 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16356 library_names_spec
='$libname.dll.a'
16357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16358 postinstall_cmds
='base_file=`basename \${file}`~
16359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16360 dldir=$destdir/`dirname \$dlpath`~
16361 test -d \$dldir || mkdir -p \$dldir~
16362 $install_prog $dir/$dlname \$dldir/$dlname~
16363 chmod a+x \$dldir/$dlname~
16364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16367 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16368 dlpath=$dir/\$dldll~
16370 shlibpath_overrides_runpath
=yes
16374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16375 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16377 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16380 # MinGW DLLs use traditional 'lib' prefix
16381 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16384 # pw32 DLLs use 'pw' prefix rather than 'lib'
16385 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16391 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16394 dynamic_linker
='Win32 ld.exe'
16395 # FIXME: first we should search . and the directory the executable is in
16399 darwin
* | rhapsody
*)
16400 dynamic_linker
="$host_os dyld"
16401 version_type
=darwin
16404 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16405 soname_spec
='${libname}${release}${major}$shared_ext'
16406 shlibpath_overrides_runpath
=yes
16407 shlibpath_var
=DYLD_LIBRARY_PATH
16408 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16410 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16411 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16419 soname_spec
='${libname}${release}${shared_ext}$major'
16420 shlibpath_var
=LD_LIBRARY_PATH
16427 freebsd
* | dragonfly
*)
16428 # DragonFly does not have aout. When/if they implement a new
16429 # versioning mechanism, adjust this.
16430 if test -x /usr
/bin
/objformat
; then
16431 objformat
=`/usr/bin/objformat`
16434 freebsd
[123]*) objformat
=aout
;;
16435 *) objformat
=elf
;;
16438 version_type
=freebsd-
$objformat
16439 case $version_type in
16441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16446 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16450 shlibpath_var
=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath
=yes
16455 freebsd3.
[01]* | freebsdelf3.
[01]*)
16456 shlibpath_overrides_runpath
=yes
16457 hardcode_into_libs
=yes
16459 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16460 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16461 shlibpath_overrides_runpath
=no
16462 hardcode_into_libs
=yes
16464 *) # from 4.6 on, and DragonFly
16465 shlibpath_overrides_runpath
=yes
16466 hardcode_into_libs
=yes
16475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16476 soname_spec
='${libname}${release}${shared_ext}$major'
16477 shlibpath_var
=LD_LIBRARY_PATH
16478 hardcode_into_libs
=yes
16485 dynamic_linker
="$host_os runtime_loader"
16486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16487 soname_spec
='${libname}${release}${shared_ext}$major'
16488 shlibpath_var
=LIBRARY_PATH
16489 shlibpath_overrides_runpath
=yes
16490 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16491 hardcode_into_libs
=yes
16494 hpux9
* | hpux10
* | hpux11
*)
16495 # Give a soname corresponding to the major version so that dld.sl refuses to
16496 # link against other versions.
16503 hardcode_into_libs
=yes
16504 dynamic_linker
="$host_os dld.so"
16505 shlibpath_var
=LD_LIBRARY_PATH
16506 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508 soname_spec
='${libname}${release}${shared_ext}$major'
16509 if test "X$HPUX_IA64_MODE" = X32
; then
16510 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16512 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16514 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16518 hardcode_into_libs
=yes
16519 dynamic_linker
="$host_os dld.sl"
16520 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16521 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523 soname_spec
='${libname}${release}${shared_ext}$major'
16524 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16525 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16529 dynamic_linker
="$host_os dld.sl"
16530 shlibpath_var
=SHLIB_PATH
16531 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16533 soname_spec
='${libname}${release}${shared_ext}$major'
16536 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16537 postinstall_cmds
='chmod 555 $lib'
16538 # or fails outright, so override atomically:
16539 install_override_mode
=555
16546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16547 soname_spec
='${libname}${release}${shared_ext}$major'
16548 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16549 shlibpath_var
=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath
=no
16551 hardcode_into_libs
=yes
16554 irix5
* | irix6
* | nonstopux
*)
16556 nonstopux
*) version_type
=nonstopux
;;
16558 if test "$lt_cv_prog_gnu_ld" = yes; then
16566 soname_spec
='${libname}${release}${shared_ext}$major'
16567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16569 irix5
* | nonstopux
*)
16570 libsuff
= shlibsuff
=
16573 case $LD in # libtool.m4 will add one of these switches to LD
16574 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16575 libsuff
= shlibsuff
= libmagic
=32-bit;;
16576 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16577 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16578 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16579 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16580 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16584 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16585 shlibpath_overrides_runpath
=no
16586 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16587 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16588 hardcode_into_libs
=yes
16591 # No shared lib support for Linux oldld, aout, or coff.
16592 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16596 # This must be Linux ELF.
16597 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602 soname_spec
='${libname}${release}${shared_ext}$major'
16603 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16604 shlibpath_var
=LD_LIBRARY_PATH
16605 shlibpath_overrides_runpath
=no
16607 # Some binutils ld are patched to set DT_RUNPATH
16608 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16609 $as_echo_n "(cached) " >&6
16611 lt_cv_shlibpath_overrides_runpath
=no
16612 save_LDFLAGS
=$LDFLAGS
16613 save_libdir
=$libdir
16614 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16615 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16627 if ac_fn_c_try_link
"$LINENO"; then :
16628 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16629 lt_cv_shlibpath_overrides_runpath
=yes
16632 rm -f core conftest.err conftest.
$ac_objext \
16633 conftest
$ac_exeext conftest.
$ac_ext
16634 LDFLAGS
=$save_LDFLAGS
16635 libdir
=$save_libdir
16639 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16641 # This implies no fast_install, which is unacceptable.
16642 # Some rework will be needed to allow for fast_install
16643 # before this can be enabled.
16644 hardcode_into_libs
=yes
16646 # Append ld.so.conf contents to the search path
16647 if test -f /etc
/ld.so.conf
; then
16648 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' ' '`
16649 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16652 # We used to test for /lib/ld.so.1 and disable shared libraries on
16653 # powerpc, because MkLinux only supported shared libraries with the
16654 # GNU dynamic linker. Since this was broken with cross compilers,
16655 # most powerpc-linux boxes support dynamic linking these days and
16656 # people can always --disable-shared, the test was removed, and we
16657 # assume the GNU/Linux dynamic linker is in use.
16658 dynamic_linker
='GNU/Linux ld.so'
16665 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16667 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16668 dynamic_linker
='NetBSD (a.out) ld.so'
16670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16671 soname_spec
='${libname}${release}${shared_ext}$major'
16672 dynamic_linker
='NetBSD ld.elf_so'
16674 shlibpath_var
=LD_LIBRARY_PATH
16675 shlibpath_overrides_runpath
=yes
16676 hardcode_into_libs
=yes
16681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 shlibpath_var
=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath
=yes
16690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691 soname_spec
='${libname}${release}${shared_ext}$major'
16692 shlibpath_var
=LD_LIBRARY_PATH
16693 shlibpath_overrides_runpath
=no
16694 hardcode_into_libs
=yes
16695 dynamic_linker
='ldqnx.so'
16700 sys_lib_dlsearch_path_spec
="/usr/lib"
16702 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16704 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16705 *) need_version
=no
;;
16707 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16708 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16709 shlibpath_var
=LD_LIBRARY_PATH
16710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16712 openbsd2.
[89] | openbsd2.
[89].
*)
16713 shlibpath_overrides_runpath
=no
16716 shlibpath_overrides_runpath
=yes
16720 shlibpath_overrides_runpath
=yes
16725 libname_spec
='$name'
16728 library_names_spec
='$libname${shared_ext} $libname.a'
16729 dynamic_linker
='OS/2 ld.exe'
16730 shlibpath_var
=LIBPATH
16733 osf3
* | osf4
* | osf5
*)
16737 soname_spec
='${libname}${release}${shared_ext}$major'
16738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 shlibpath_var
=LD_LIBRARY_PATH
16740 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16741 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec
='${libname}${release}${shared_ext}$major'
16754 shlibpath_var
=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath
=yes
16756 hardcode_into_libs
=yes
16757 # ldd complains unless libraries are executable
16758 postinstall_cmds
='chmod +x $lib'
16763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16764 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16765 shlibpath_var
=LD_LIBRARY_PATH
16766 shlibpath_overrides_runpath
=yes
16767 if test "$with_gnu_ld" = yes; then
16775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776 soname_spec
='${libname}${release}${shared_ext}$major'
16777 shlibpath_var
=LD_LIBRARY_PATH
16778 case $host_vendor in
16780 shlibpath_overrides_runpath
=no
16782 runpath_var
=LD_RUN_PATH
16790 shlibpath_overrides_runpath
=no
16791 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16797 if test -d /usr
/nec
;then
16799 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16800 soname_spec
='$libname${shared_ext}.$major'
16801 shlibpath_var
=LD_LIBRARY_PATH
16805 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16806 version_type
=freebsd-elf
16809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16810 soname_spec
='${libname}${release}${shared_ext}$major'
16811 shlibpath_var
=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath
=yes
16813 hardcode_into_libs
=yes
16814 if test "$with_gnu_ld" = yes; then
16815 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16817 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16820 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16824 sys_lib_dlsearch_path_spec
='/usr/lib'
16828 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 shlibpath_var
=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath
=no
16835 hardcode_into_libs
=yes
16840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec
='${libname}${release}${shared_ext}$major'
16842 shlibpath_var
=LD_LIBRARY_PATH
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16850 $as_echo "$dynamic_linker" >&6; }
16851 test "$dynamic_linker" = no
&& can_build_shared
=no
16853 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16854 if test "$GCC" = yes; then
16855 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16858 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16859 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16861 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16862 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16957 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16959 if test -n "$hardcode_libdir_flag_spec" ||
16960 test -n "$runpath_var" ||
16961 test "X$hardcode_automatic" = "Xyes" ; then
16963 # We can hardcode non-existent directories.
16964 if test "$hardcode_direct" != no
&&
16965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16966 # have to relink, otherwise we might link with an installed library
16967 # when we should be linking with a yet-to-be-installed one
16968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16969 test "$hardcode_minus_L" != no
; then
16970 # Linking always hardcodes the temporary library directory.
16971 hardcode_action
=relink
16973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16974 hardcode_action
=immediate
16977 # We cannot hardcode anything, or else we can only hardcode existing
16979 hardcode_action
=unsupported
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16982 $as_echo "$hardcode_action" >&6; }
16984 if test "$hardcode_action" = relink ||
16985 test "$inherit_rpath" = yes; then
16986 # Fast installation is not supported
16987 enable_fast_install
=no
16988 elif test "$shlibpath_overrides_runpath" = yes ||
16989 test "$enable_shared" = no
; then
16990 # Fast installation is not necessary
16991 enable_fast_install
=needless
16999 if test "x$enable_dlopen" != xyes
; then
17000 enable_dlopen
=unknown
17001 enable_dlopen_self
=unknown
17002 enable_dlopen_self_static
=unknown
17009 lt_cv_dlopen
="load_add_on"
17011 lt_cv_dlopen_self
=yes
17014 mingw
* | pw32
* | cegcc
*)
17015 lt_cv_dlopen
="LoadLibrary"
17020 lt_cv_dlopen
="dlopen"
17025 # if libdl is installed we need to link against it
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17027 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17028 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17031 ac_check_lib_save_LIBS
=$LIBS
17033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17036 /* Override any GCC internal prototype to avoid an error.
17037 Use char because int might match the return type of a GCC
17038 builtin and then its argument prototype would still apply. */
17051 if ac_fn_c_try_link
"$LINENO"; then :
17052 ac_cv_lib_dl_dlopen
=yes
17054 ac_cv_lib_dl_dlopen
=no
17056 rm -f core conftest.err conftest.
$ac_objext \
17057 conftest
$ac_exeext conftest.
$ac_ext
17058 LIBS
=$ac_check_lib_save_LIBS
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17061 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17062 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17063 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17066 lt_cv_dlopen
="dyld"
17068 lt_cv_dlopen_self
=yes
17075 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17076 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17077 lt_cv_dlopen
="shl_load"
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17080 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17082 $as_echo_n "(cached) " >&6
17084 ac_check_lib_save_LIBS
=$LIBS
17086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17087 /* end confdefs.h. */
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17099 return shl_load ();
17104 if ac_fn_c_try_link
"$LINENO"; then :
17105 ac_cv_lib_dld_shl_load
=yes
17107 ac_cv_lib_dld_shl_load
=no
17109 rm -f core conftest.err conftest.
$ac_objext \
17110 conftest
$ac_exeext conftest.
$ac_ext
17111 LIBS
=$ac_check_lib_save_LIBS
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17114 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17115 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17116 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17118 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17119 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17120 lt_cv_dlopen
="dlopen"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17123 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17124 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17127 ac_check_lib_save_LIBS
=$LIBS
17129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17147 if ac_fn_c_try_link
"$LINENO"; then :
17148 ac_cv_lib_dl_dlopen
=yes
17150 ac_cv_lib_dl_dlopen
=no
17152 rm -f core conftest.err conftest.
$ac_objext \
17153 conftest
$ac_exeext conftest.
$ac_ext
17154 LIBS
=$ac_check_lib_save_LIBS
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17157 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17158 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17159 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17162 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17164 $as_echo_n "(cached) " >&6
17166 ac_check_lib_save_LIBS
=$LIBS
17167 LIBS
="-lsvld $LIBS"
17168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17171 /* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17186 if ac_fn_c_try_link
"$LINENO"; then :
17187 ac_cv_lib_svld_dlopen
=yes
17189 ac_cv_lib_svld_dlopen
=no
17191 rm -f core conftest.err conftest.
$ac_objext \
17192 conftest
$ac_exeext conftest.
$ac_ext
17193 LIBS
=$ac_check_lib_save_LIBS
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17196 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17197 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17198 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17201 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17202 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17203 $as_echo_n "(cached) " >&6
17205 ac_check_lib_save_LIBS
=$LIBS
17207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17208 /* end confdefs.h. */
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17220 return dld_link ();
17225 if ac_fn_c_try_link
"$LINENO"; then :
17226 ac_cv_lib_dld_dld_link
=yes
17228 ac_cv_lib_dld_dld_link
=no
17230 rm -f core conftest.err conftest.
$ac_objext \
17231 conftest
$ac_exeext conftest.
$ac_ext
17232 LIBS
=$ac_check_lib_save_LIBS
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17235 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17236 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17237 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17258 if test "x$lt_cv_dlopen" != xno
; then
17264 case $lt_cv_dlopen in
17266 save_CPPFLAGS
="$CPPFLAGS"
17267 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17269 save_LDFLAGS
="$LDFLAGS"
17270 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17273 LIBS
="$lt_cv_dlopen_libs $LIBS"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17276 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17277 if test "${lt_cv_dlopen_self+set}" = set; then :
17278 $as_echo_n "(cached) " >&6
17280 if test "$cross_compiling" = yes; then :
17281 lt_cv_dlopen_self
=cross
17283 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17284 lt_status
=$lt_dlunknown
17285 cat > conftest.
$ac_ext <<_LT_EOF
17286 #line 17286 "configure"
17287 #include "confdefs.h"
17296 # define LT_DLGLOBAL RTLD_GLOBAL
17299 # define LT_DLGLOBAL DL_GLOBAL
17301 # define LT_DLGLOBAL 0
17305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17306 find out it does not work in some platform. */
17307 #ifndef LT_DLLAZY_OR_NOW
17309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17312 # define LT_DLLAZY_OR_NOW DL_LAZY
17315 # define LT_DLLAZY_OR_NOW RTLD_NOW
17318 # define LT_DLLAZY_OR_NOW DL_NOW
17320 # define LT_DLLAZY_OR_NOW 0
17327 /* When -fvisbility=hidden is used, assume the code has been annotated
17328 correspondingly for the symbols needed. */
17329 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17330 void fnord () __attribute__((visibility("default")));
17333 void fnord () { int i=42; }
17336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17337 int status = $lt_dlunknown;
17341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17344 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17345 else puts (dlerror ());
17347 /* dlclose (self); */
17355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17356 (eval $ac_link) 2>&5
17358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17360 (.
/conftest
; exit; ) >&5 2>/dev
/null
17362 case x
$lt_status in
17363 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17364 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17365 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17368 # compilation failed
17369 lt_cv_dlopen_self
=no
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17377 $as_echo "$lt_cv_dlopen_self" >&6; }
17379 if test "x$lt_cv_dlopen_self" = xyes
; then
17380 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17382 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17383 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17384 $as_echo_n "(cached) " >&6
17386 if test "$cross_compiling" = yes; then :
17387 lt_cv_dlopen_self_static
=cross
17389 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17390 lt_status
=$lt_dlunknown
17391 cat > conftest.
$ac_ext <<_LT_EOF
17392 #line 17392 "configure"
17393 #include "confdefs.h"
17402 # define LT_DLGLOBAL RTLD_GLOBAL
17405 # define LT_DLGLOBAL DL_GLOBAL
17407 # define LT_DLGLOBAL 0
17411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17412 find out it does not work in some platform. */
17413 #ifndef LT_DLLAZY_OR_NOW
17415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17418 # define LT_DLLAZY_OR_NOW DL_LAZY
17421 # define LT_DLLAZY_OR_NOW RTLD_NOW
17424 # define LT_DLLAZY_OR_NOW DL_NOW
17426 # define LT_DLLAZY_OR_NOW 0
17433 /* When -fvisbility=hidden is used, assume the code has been annotated
17434 correspondingly for the symbols needed. */
17435 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17436 void fnord () __attribute__((visibility("default")));
17439 void fnord () { int i=42; }
17442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17443 int status = $lt_dlunknown;
17447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17451 else puts (dlerror ());
17453 /* dlclose (self); */
17461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17462 (eval $ac_link) 2>&5
17464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17465 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17466 (.
/conftest
; exit; ) >&5 2>/dev
/null
17468 case x
$lt_status in
17469 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17470 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17471 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17474 # compilation failed
17475 lt_cv_dlopen_self_static
=no
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17483 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17486 CPPFLAGS
="$save_CPPFLAGS"
17487 LDFLAGS
="$save_LDFLAGS"
17492 case $lt_cv_dlopen_self in
17493 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17494 *) enable_dlopen_self
=unknown
;;
17497 case $lt_cv_dlopen_self_static in
17498 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17499 *) enable_dlopen_self_static
=unknown
;;
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17522 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17523 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17524 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17525 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17527 $as_echo "yes" >&6; }
17529 # FIXME - insert some real tests, host_os isn't really good enough
17532 if test -n "$STRIP" ; then
17533 striplib
="$STRIP -x"
17534 old_striplib
="$STRIP -S"
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17536 $as_echo "yes" >&6; }
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544 $as_echo "no" >&6; }
17560 # Report which library types will actually be built
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17562 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17564 $as_echo "$can_build_shared" >&6; }
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17567 $as_echo_n "checking whether to build shared libraries... " >&6; }
17568 test "$can_build_shared" = "no" && enable_shared
=no
17570 # On AIX, shared libraries and static libraries use the same namespace, and
17571 # are all built from PIC.
17574 test "$enable_shared" = yes && enable_static
=no
17575 if test -n "$RANLIB"; then
17576 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17577 postinstall_cmds
='$RANLIB $lib'
17582 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17583 test "$enable_shared" = yes && enable_static
=no
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17588 $as_echo "$enable_shared" >&6; }
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17591 $as_echo_n "checking whether to build static libraries... " >&6; }
17592 # Make sure either enable_shared or enable_static is yes.
17593 test "$enable_shared" = yes || enable_static
=yes
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17595 $as_echo "$enable_static" >&6; }
17602 ac_cpp
='$CPP $CPPFLAGS'
17603 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17609 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17610 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17611 (test "X$CXX" != "Xg++"))) ; then
17613 ac_cpp
='$CXXCPP $CPPFLAGS'
17614 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17618 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17619 if test -z "$CXXCPP"; then
17620 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17621 $as_echo_n "(cached) " >&6
17623 # Double quotes because CXXCPP needs to be expanded
17624 for CXXCPP
in "$CXX -E" "/lib/cpp"
17626 ac_preproc_ok
=false
17627 for ac_cxx_preproc_warn_flag
in '' yes
17629 # Use a header file that comes with gcc, so configuring glibc
17630 # with a fresh cross-compiler works.
17631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17632 # <limits.h> exists even on freestanding compilers.
17633 # On the NeXT, cc -E runs the code through the compiler's parser,
17634 # not just through cpp. "Syntax error" is here to catch this case.
17635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17638 # include <limits.h>
17640 # include <assert.h>
17644 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17647 # Broken: fails on valid input.
17650 rm -f conftest.err conftest.
$ac_ext
17652 # OK, works on sane cases. Now check whether nonexistent headers
17653 # can be detected and how.
17654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656 #include <ac_nonexistent.h>
17658 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17659 # Broken: success on invalid input.
17662 # Passes both tests.
17666 rm -f conftest.err conftest.
$ac_ext
17669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17670 rm -f conftest.err conftest.
$ac_ext
17671 if $ac_preproc_ok; then :
17676 ac_cv_prog_CXXCPP
=$CXXCPP
17679 CXXCPP
=$ac_cv_prog_CXXCPP
17681 ac_cv_prog_CXXCPP
=$CXXCPP
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17684 $as_echo "$CXXCPP" >&6; }
17685 ac_preproc_ok
=false
17686 for ac_cxx_preproc_warn_flag
in '' yes
17688 # Use a header file that comes with gcc, so configuring glibc
17689 # with a fresh cross-compiler works.
17690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17691 # <limits.h> exists even on freestanding compilers.
17692 # On the NeXT, cc -E runs the code through the compiler's parser,
17693 # not just through cpp. "Syntax error" is here to catch this case.
17694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17697 # include <limits.h>
17699 # include <assert.h>
17703 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17706 # Broken: fails on valid input.
17709 rm -f conftest.err conftest.
$ac_ext
17711 # OK, works on sane cases. Now check whether nonexistent headers
17712 # can be detected and how.
17713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17715 #include <ac_nonexistent.h>
17717 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17718 # Broken: success on invalid input.
17721 # Passes both tests.
17725 rm -f conftest.err conftest.
$ac_ext
17728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17729 rm -f conftest.err conftest.
$ac_ext
17730 if $ac_preproc_ok; then :
17733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17735 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17736 See \`config.log' for more details." "$LINENO" 5; }
17740 ac_cpp
='$CPP $CPPFLAGS'
17741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17746 _lt_caught_CXX_error
=yes
17750 ac_cpp
='$CXXCPP $CPPFLAGS'
17751 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17752 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17753 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17755 archive_cmds_need_lc_CXX
=no
17756 allow_undefined_flag_CXX
=
17757 always_export_symbols_CXX
=no
17758 archive_expsym_cmds_CXX
=
17759 compiler_needs_object_CXX
=no
17760 export_dynamic_flag_spec_CXX
=
17761 hardcode_direct_CXX
=no
17762 hardcode_direct_absolute_CXX
=no
17763 hardcode_libdir_flag_spec_CXX
=
17764 hardcode_libdir_flag_spec_ld_CXX
=
17765 hardcode_libdir_separator_CXX
=
17766 hardcode_minus_L_CXX
=no
17767 hardcode_shlibpath_var_CXX
=unsupported
17768 hardcode_automatic_CXX
=no
17769 inherit_rpath_CXX
=no
17771 module_expsym_cmds_CXX
=
17772 link_all_deplibs_CXX
=unknown
17773 old_archive_cmds_CXX
=$old_archive_cmds
17774 reload_flag_CXX
=$reload_flag
17775 reload_cmds_CXX
=$reload_cmds
17776 no_undefined_flag_CXX
=
17777 whole_archive_flag_spec_CXX
=
17778 enable_shared_with_static_runtimes_CXX
=no
17780 # Source file extension for C++ test sources.
17783 # Object file extension for compiled C++ test sources.
17787 # No sense in running all these tests if we already determined that
17788 # the CXX compiler isn't working. Some variables (like enable_shared)
17789 # are currently assumed to apply to all compilers on this platform,
17790 # and will be corrupted by setting them based on a non-working compiler.
17791 if test "$_lt_caught_CXX_error" != yes; then
17792 # Code to be used in simple compile tests
17793 lt_simple_compile_test_code
="int some_variable = 0;"
17795 # Code to be used in simple link tests
17796 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17798 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17805 # If no C compiler was specified, use CC.
17808 # If no C compiler flags were specified, use CFLAGS.
17809 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17811 # Allow CC to be a program name with arguments.
17815 # save warnings/boilerplate of simple test code
17816 ac_outfile
=conftest.
$ac_objext
17817 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17818 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17819 _lt_compiler_boilerplate
=`cat conftest.err`
17822 ac_outfile
=conftest.
$ac_objext
17823 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17824 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17825 _lt_linker_boilerplate
=`cat conftest.err`
17829 # Allow CC to be a program name with arguments.
17834 lt_save_with_gnu_ld
=$with_gnu_ld
17835 lt_save_path_LD
=$lt_cv_path_LD
17836 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17837 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17839 $as_unset lt_cv_prog_gnu_ld
17841 if test -n "${lt_cv_path_LDCXX+set}"; then
17842 lt_cv_path_LD
=$lt_cv_path_LDCXX
17844 $as_unset lt_cv_path_LD
17846 test -z "${LDCXX+set}" || LD
=$LDCXX
17850 for cc_temp
in $compiler""; do
17852 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17853 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17858 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17861 if test -n "$compiler"; then
17862 # We don't want -fno-exception when compiling C++ code, so set the
17863 # no_builtin_flag separately
17864 if test "$GXX" = yes; then
17865 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17867 lt_prog_compiler_no_builtin_flag_CXX
=
17870 if test "$GXX" = yes; then
17871 # Set up default GNU C++ configuration
17875 # Check whether --with-gnu-ld was given.
17876 if test "${with_gnu_ld+set}" = set; then :
17877 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17883 if test "$GCC" = yes; then
17884 # Check if gcc -print-prog-name=ld gives a path.
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17886 $as_echo_n "checking for ld used by $CC... " >&6; }
17889 # gcc leaves a trailing carriage return which upsets mingw
17890 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17892 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17895 # Accept absolute paths.
17897 re_direlt
='/[^/][^/]*/\.\./'
17898 # Canonicalize the pathname of ld
17899 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17900 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17901 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17903 test -z "$LD" && LD
="$ac_prog"
17906 # If it fails, then pretend we aren't using GCC.
17910 # If it is relative, then search for the first ld in PATH.
17911 with_gnu_ld
=unknown
17914 elif test "$with_gnu_ld" = yes; then
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17916 $as_echo_n "checking for GNU ld... " >&6; }
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17919 $as_echo_n "checking for non-GNU ld... " >&6; }
17921 if test "${lt_cv_path_LD+set}" = set; then :
17922 $as_echo_n "(cached) " >&6
17924 if test -z "$LD"; then
17925 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17926 for ac_dir
in $PATH; do
17928 test -z "$ac_dir" && ac_dir
=.
17929 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17930 lt_cv_path_LD
="$ac_dir/$ac_prog"
17931 # Check to see if the program is GNU ld. I'd rather use --version,
17932 # but apparently some variants of GNU ld only accept -v.
17933 # Break only if it was the GNU/non-GNU ld that we prefer.
17934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17935 *GNU
* |
*'with BFD'*)
17936 test "$with_gnu_ld" != no
&& break
17939 test "$with_gnu_ld" != yes && break
17946 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17950 LD
="$lt_cv_path_LD"
17951 if test -n "$LD"; then
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17953 $as_echo "$LD" >&6; }
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956 $as_echo "no" >&6; }
17958 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17961 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17965 case `$LD -v 2>&1 </dev/null` in
17966 *GNU
* |
*'with BFD'*)
17967 lt_cv_prog_gnu_ld
=yes
17970 lt_cv_prog_gnu_ld
=no
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17975 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17976 with_gnu_ld
=$lt_cv_prog_gnu_ld
17984 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17985 # archiving commands below assume that GNU ld is being used.
17986 if test "$with_gnu_ld" = yes; then
17987 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17988 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'
17990 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17991 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17993 # If archive_cmds runs LD, not CC, wlarc should be empty
17994 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17995 # investigate it a little bit more. (MM)
17998 # ancient GNU ld didn't support --whole-archive et. al.
17999 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18000 $GREP 'no-whole-archive' > /dev
/null
; then
18001 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18003 whole_archive_flag_spec_CXX
=
18009 # A generic and very simple default shared library creation
18010 # command for GNU C++ for the case where it uses the native
18011 # linker, instead of GNU ld. If possible, this setting should
18012 # overridden to take advantage of the native linker features on
18013 # the platform it is being used on.
18014 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18017 # Commands to make compiler produce verbose output that lists
18018 # what "hidden" libraries, object files and flags are used when
18019 # linking a shared library.
18020 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18028 # PORTME: fill in a description of your system's C++ link characteristics
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18030 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18034 # FIXME: insert proper C++ library support
18038 if test "$host_cpu" = ia64
; then
18039 # On IA64, the linker does run time linking by default, so we don't
18040 # have to do anything special.
18041 aix_use_runtimelinking
=no
18042 exp_sym_flag
='-Bexport'
18045 aix_use_runtimelinking
=no
18047 # Test if we are trying to use run time linking or normal
18048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18049 # need to do runtime linking.
18050 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18051 for ld_flag
in $LDFLAGS; do
18054 aix_use_runtimelinking
=yes
18062 exp_sym_flag
='-bexport'
18063 no_entry_flag
='-bnoentry'
18066 # When large executables or shared objects are built, AIX ld can
18067 # have problems creating the table of contents. If linking a library
18068 # or program results in "error TOC overflow" add -mminimal-toc to
18069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18072 archive_cmds_CXX
=''
18073 hardcode_direct_CXX
=yes
18074 hardcode_direct_absolute_CXX
=yes
18075 hardcode_libdir_separator_CXX
=':'
18076 link_all_deplibs_CXX
=yes
18077 file_list_spec_CXX
='${wl}-f,'
18079 if test "$GXX" = yes; then
18080 case $host_os in aix4.
[012]|aix4.
[012].
*)
18081 # We only want to do this on AIX 4.2 and lower, the check
18082 # below for broken collect2 doesn't work under 4.3+
18083 collect2name
=`${CC} -print-prog-name=collect2`
18084 if test -f "$collect2name" &&
18085 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18087 # We have reworked collect2
18090 # We have old collect2
18091 hardcode_direct_CXX
=unsupported
18092 # It fails to find uninstalled libraries when the uninstalled
18093 # path is not listed in the libpath. Setting hardcode_minus_L
18094 # to unsupported forces relinking
18095 hardcode_minus_L_CXX
=yes
18096 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18097 hardcode_libdir_separator_CXX
=
18100 shared_flag
='-shared'
18101 if test "$aix_use_runtimelinking" = yes; then
18102 shared_flag
="$shared_flag "'${wl}-G'
18106 if test "$host_cpu" = ia64
; then
18107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18108 # chokes on -Wl,-G. The following line is correct:
18111 if test "$aix_use_runtimelinking" = yes; then
18112 shared_flag
='${wl}-G'
18114 shared_flag
='${wl}-bM:SRE'
18119 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18120 # It seems that -bexpall does not export symbols beginning with
18121 # underscore (_), so it is better to generate a list of symbols to
18123 always_export_symbols_CXX
=yes
18124 if test "$aix_use_runtimelinking" = yes; then
18125 # Warning - without using the other runtime loading flags (-brtl),
18126 # -berok will link without error, but may produce a broken library.
18127 allow_undefined_flag_CXX
='-berok'
18128 # Determine the default libpath from the value encoded in an empty
18130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18141 if ac_fn_cxx_try_link
"$LINENO"; then :
18143 lt_aix_libpath_sed
='
18144 /Import File Strings/,/^$/ {
18150 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18151 # Check for a 64-bit object if we didn't find anything.
18152 if test -z "$aix_libpath"; then
18153 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18156 rm -f core conftest.err conftest.
$ac_objext \
18157 conftest
$ac_exeext conftest.
$ac_ext
18158 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18160 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18162 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"
18164 if test "$host_cpu" = ia64
; then
18165 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18166 allow_undefined_flag_CXX
="-z nodefs"
18167 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"
18169 # Determine the default libpath from the value encoded in an
18170 # empty executable.
18171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18182 if ac_fn_cxx_try_link
"$LINENO"; then :
18184 lt_aix_libpath_sed
='
18185 /Import File Strings/,/^$/ {
18191 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18192 # Check for a 64-bit object if we didn't find anything.
18193 if test -z "$aix_libpath"; then
18194 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18197 rm -f core conftest.err conftest.
$ac_objext \
18198 conftest
$ac_exeext conftest.
$ac_ext
18199 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18201 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18202 # Warning - without using the other run time loading flags,
18203 # -berok will link without error, but may produce a broken library.
18204 no_undefined_flag_CXX
=' ${wl}-bernotok'
18205 allow_undefined_flag_CXX
=' ${wl}-berok'
18206 if test "$with_gnu_ld" = yes; then
18207 # We only use this code for GNU lds that support --whole-archive.
18208 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18210 # Exported symbols can be pulled into shared objects from archives
18211 whole_archive_flag_spec_CXX
='$convenience'
18213 archive_cmds_need_lc_CXX
=yes
18214 # This is similar to how AIX traditionally builds its shared
18216 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'
18222 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18223 allow_undefined_flag_CXX
=unsupported
18224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18225 # support --undefined. This deserves some investigation. FIXME
18226 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18233 case $cc_basename in
18235 # FIXME: insert proper C++ library support
18241 cygwin
* | mingw
* | pw32
* | cegcc
*)
18242 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18243 # as there is no search path for DLLs.
18244 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18245 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18246 allow_undefined_flag_CXX
=unsupported
18247 always_export_symbols_CXX
=no
18248 enable_shared_with_static_runtimes_CXX
=yes
18250 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18251 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'
18252 # If the export-symbols file already is a .def file (1st line
18253 # is EXPORTS), use it as is; otherwise, prepend...
18254 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18255 cp $export_symbols $output_objdir/$soname.def;
18257 echo EXPORTS > $output_objdir/$soname.def;
18258 cat $export_symbols >> $output_objdir/$soname.def;
18260 $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'
18265 darwin
* | rhapsody
*)
18268 archive_cmds_need_lc_CXX
=no
18269 hardcode_direct_CXX
=no
18270 hardcode_automatic_CXX
=yes
18271 hardcode_shlibpath_var_CXX
=unsupported
18272 if test "$lt_cv_ld_force_load" = "yes"; then
18273 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\"`'
18275 whole_archive_flag_spec_CXX
=''
18277 link_all_deplibs_CXX
=yes
18278 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18279 case $cc_basename in
18280 ifort
*) _lt_dar_can_shared
=yes ;;
18281 *) _lt_dar_can_shared
=$GCC ;;
18283 if test "$_lt_dar_can_shared" = "yes"; then
18284 output_verbose_link_cmd
=func_echo_all
18285 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}"
18286 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18287 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}"
18288 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}"
18289 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18290 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}"
18291 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}"
18301 case $cc_basename in
18303 # FIXME: insert proper C++ library support
18307 # Green Hills C++ Compiler
18308 # FIXME: insert proper C++ library support
18312 # FIXME: insert proper C++ library support
18319 # C++ shared libraries reported to be fairly broken before
18325 archive_cmds_need_lc_CXX
=no
18328 freebsd
* | dragonfly
*)
18329 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18338 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18339 link_all_deplibs_CXX
=yes
18343 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18344 hardcode_libdir_separator_CXX
=:
18345 export_dynamic_flag_spec_CXX
='${wl}-E'
18346 hardcode_direct_CXX
=yes
18347 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18348 # but as the default
18349 # location of the library.
18351 case $cc_basename in
18353 # FIXME: insert proper C++ library support
18357 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'
18358 # Commands to make compiler produce verbose output that lists
18359 # what "hidden" libraries, object files and flags are used when
18360 # linking a shared library.
18362 # There doesn't appear to be a way to prevent this compiler from
18363 # explicitly linking system object files so we need to strip them
18364 # from the output so that they don't get included in the library
18366 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"'
18369 if test "$GXX" = yes; then
18370 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'
18372 # FIXME: insert proper C++ library support
18380 if test $with_gnu_ld = no
; then
18381 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18382 hardcode_libdir_separator_CXX
=:
18388 export_dynamic_flag_spec_CXX
='${wl}-E'
18394 hardcode_direct_CXX
=no
18395 hardcode_shlibpath_var_CXX
=no
18398 hardcode_direct_CXX
=yes
18399 hardcode_direct_absolute_CXX
=yes
18400 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18401 # but as the default
18402 # location of the library.
18406 case $cc_basename in
18408 # FIXME: insert proper C++ library support
18414 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18417 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18420 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18423 # Commands to make compiler produce verbose output that lists
18424 # what "hidden" libraries, object files and flags are used when
18425 # linking a shared library.
18427 # There doesn't appear to be a way to prevent this compiler from
18428 # explicitly linking system object files so we need to strip them
18429 # from the output so that they don't get included in the library
18431 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"'
18434 if test "$GXX" = yes; then
18435 if test $with_gnu_ld = no
; then
18438 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18441 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18444 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'
18449 # FIXME: insert proper C++ library support
18457 hardcode_direct_CXX
=no
18458 hardcode_shlibpath_var_CXX
=no
18459 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18460 export_dynamic_flag_spec_CXX
='${wl}-E'
18461 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18462 # Instead, shared libraries are loaded at an image base (0x10000000 by
18463 # default) and relocated if they conflict, which is a slow very memory
18464 # consuming and fragmenting process. To avoid this, we pick a random,
18465 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18466 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18467 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'
18468 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'
18471 case $cc_basename in
18474 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'
18476 # Archives containing C++ object files must be created using
18477 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18478 # necessary to make sure instantiated templates are included
18480 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18483 if test "$GXX" = yes; then
18484 if test "$with_gnu_ld" = no
; then
18485 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'
18487 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'
18490 link_all_deplibs_CXX
=yes
18493 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18494 hardcode_libdir_separator_CXX
=:
18495 inherit_rpath_CXX
=yes
18498 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18499 case $cc_basename in
18501 # Kuck and Associates, Inc. (KAI) C++ Compiler
18503 # KCC will only create a shared library if the output file
18504 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18505 # to its proper name (with version) after linking.
18506 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'
18507 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'
18508 # Commands to make compiler produce verbose output that lists
18509 # what "hidden" libraries, object files and flags are used when
18510 # linking a shared library.
18512 # There doesn't appear to be a way to prevent this compiler from
18513 # explicitly linking system object files so we need to strip them
18514 # from the output so that they don't get included in the library
18516 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"'
18518 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18519 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18521 # Archives containing C++ object files must be created using
18522 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18523 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18528 # version 8.0 and above of icpc choke on multiply defined symbols
18529 # if we add $predep_objects and $postdep_objects, however 7.1 and
18530 # earlier do not add the objects themselves.
18531 case `$CC -V 2>&1` in
18533 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18534 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'
18536 *) # Version 8.0 or newer
18539 ia64
*) tmp_idyn
=' -i_dynamic';;
18541 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18542 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'
18545 archive_cmds_need_lc_CXX
=no
18546 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18547 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18548 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18551 # Portland Group C++ compiler
18553 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18554 prelink_cmds_CXX
='tpldir=Template.dir~
18556 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18557 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18558 old_archive_cmds_CXX
='tpldir=Template.dir~
18560 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18561 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18563 archive_cmds_CXX
='tpldir=Template.dir~
18565 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18566 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18567 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18569 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18570 $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'
18572 *) # Version 6 and above use weak symbols
18573 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18574 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'
18578 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18579 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18580 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'
18584 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18585 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'
18587 runpath_var
=LD_RUN_PATH
18588 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18589 hardcode_libdir_separator_CXX
=:
18591 # Commands to make compiler produce verbose output that lists
18592 # what "hidden" libraries, object files and flags are used when
18593 # linking a shared library.
18595 # There doesn't appear to be a way to prevent this compiler from
18596 # explicitly linking system object files so we need to strip them
18597 # from the output so that they don't get included in the library
18599 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'
18601 xl
* | mpixl
* | bgxl
*)
18602 # IBM XL 8.0 on PPC, with GNU ld
18603 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18604 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18605 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606 if test "x$supports_anon_versioning" = xyes
; then
18607 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18609 echo "local: *; };" >> $output_objdir/$libname.ver~
18610 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18614 case `$CC -V 2>&1 | sed 5q` in
18617 no_undefined_flag_CXX
=' -zdefs'
18618 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18619 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'
18620 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18621 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'
18622 compiler_needs_object_CXX
=yes
18624 # Not sure whether something based on
18625 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18627 output_verbose_link_cmd
='func_echo_all'
18629 # Archives containing C++ object files must be created using
18630 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18631 # necessary to make sure instantiated templates are included
18633 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18641 # FIXME: insert proper C++ library support
18646 # FIXME: insert proper C++ library support
18651 case $cc_basename in
18653 # FIXME: insert proper C++ library support
18657 # FIXME: insert proper C++ library support
18664 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18665 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18667 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18668 hardcode_direct_CXX
=yes
18669 hardcode_shlibpath_var_CXX
=no
18671 # Workaround some broken pre-1.5 toolchains
18672 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18680 # C++ shared libraries are fairly broken
18685 if test -f /usr
/libexec
/ld.so
; then
18686 hardcode_direct_CXX
=yes
18687 hardcode_shlibpath_var_CXX
=no
18688 hardcode_direct_absolute_CXX
=yes
18689 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18690 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18692 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18693 export_dynamic_flag_spec_CXX
='${wl}-E'
18694 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18696 output_verbose_link_cmd
=func_echo_all
18702 osf3
* | osf4
* | osf5
*)
18703 case $cc_basename in
18705 # Kuck and Associates, Inc. (KAI) C++ Compiler
18707 # KCC will only create a shared library if the output file
18708 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18709 # to its proper name (with version) after linking.
18710 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'
18712 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18713 hardcode_libdir_separator_CXX
=:
18715 # Archives containing C++ object files must be created using
18716 # the KAI C++ compiler.
18718 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18719 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18723 # Rational C++ 2.4.1
18724 # FIXME: insert proper C++ library support
18730 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18731 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'
18732 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18735 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18736 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'
18737 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18738 echo "-hidden">> $lib.exp~
18739 $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~
18741 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18745 hardcode_libdir_separator_CXX
=:
18747 # Commands to make compiler produce verbose output that lists
18748 # what "hidden" libraries, object files and flags are used when
18749 # linking a shared library.
18751 # There doesn't appear to be a way to prevent this compiler from
18752 # explicitly linking system object files so we need to strip them
18753 # from the output so that they don't get included in the library
18755 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"'
18758 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18759 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18762 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'
18765 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'
18769 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18770 hardcode_libdir_separator_CXX
=:
18772 # Commands to make compiler produce verbose output that lists
18773 # what "hidden" libraries, object files and flags are used when
18774 # linking a shared library.
18775 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18778 # FIXME: insert proper C++ library support
18786 # FIXME: insert proper C++ library support
18791 case $cc_basename in
18794 # FIXME: insert proper C++ library support
18799 # FIXME: insert proper C++ library support
18803 # FIXME: insert proper C++ library support
18810 case $cc_basename in
18812 # Sun C++ 4.2, 5.x and Centerline C++
18813 archive_cmds_need_lc_CXX
=yes
18814 no_undefined_flag_CXX
=' -zdefs'
18815 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18816 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18817 $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'
18819 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18820 hardcode_shlibpath_var_CXX
=no
18822 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18824 # The compiler driver will combine and reorder linker options,
18825 # but understands `-z linker_flag'.
18826 # Supported since Solaris 2.6 (maybe 2.5.1?)
18827 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18830 link_all_deplibs_CXX
=yes
18832 output_verbose_link_cmd
='func_echo_all'
18834 # Archives containing C++ object files must be created using
18835 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18836 # necessary to make sure instantiated templates are included
18838 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18841 # Green Hills C++ Compiler
18842 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18844 # The C++ compiler must be used to create the archive.
18845 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18848 # GNU C++ compiler with Solaris linker
18849 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18850 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18851 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18852 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18853 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18854 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18856 # Commands to make compiler produce verbose output that lists
18857 # what "hidden" libraries, object files and flags are used when
18858 # linking a shared library.
18859 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18861 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18863 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18864 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18865 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18867 # Commands to make compiler produce verbose output that lists
18868 # what "hidden" libraries, object files and flags are used when
18869 # linking a shared library.
18870 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18873 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18875 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18877 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18885 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18886 no_undefined_flag_CXX
='${wl}-z,text'
18887 archive_cmds_need_lc_CXX
=no
18888 hardcode_shlibpath_var_CXX
=no
18889 runpath_var
='LD_RUN_PATH'
18891 case $cc_basename in
18893 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18894 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18897 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18898 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18903 sysv5
* | sco3.2v5
* | sco5v6
*)
18904 # Note: We can NOT use -z defs as we might desire, because we do not
18905 # link with -lc, and that would cause any symbols used from libc to
18906 # always be unresolved, which means just about no library would
18907 # ever link correctly. If we're not using GNU ld we use -z text
18908 # though, which does catch some bad symbols but isn't as heavy-handed
18910 no_undefined_flag_CXX
='${wl}-z,text'
18911 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18912 archive_cmds_need_lc_CXX
=no
18913 hardcode_shlibpath_var_CXX
=no
18914 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18915 hardcode_libdir_separator_CXX
=':'
18916 link_all_deplibs_CXX
=yes
18917 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18918 runpath_var
='LD_RUN_PATH'
18920 case $cc_basename in
18922 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18924 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18925 '"$old_archive_cmds_CXX"
18926 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18927 '"$reload_cmds_CXX"
18930 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18931 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18937 case $cc_basename in
18939 # NonStop-UX NCC 3.20
18940 # FIXME: insert proper C++ library support
18944 # FIXME: insert proper C++ library support
18951 # FIXME: insert proper C++ library support
18956 # FIXME: insert proper C++ library support
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18962 $as_echo "$ld_shlibs_CXX" >&6; }
18963 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18969 ## There is no encapsulation within the following macros, do not change
18970 ## the running order or otherwise move them around unless you know exactly
18971 ## what you are doing...
18972 # Dependencies to place before and after the object being linked:
18973 predep_objects_CXX
=
18974 postdep_objects_CXX
=
18977 compiler_lib_search_path_CXX
=
18979 cat > conftest.
$ac_ext <<_LT_EOF
18983 Foo (void) { a = 0; }
18989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18990 (eval $ac_compile) 2>&5
18992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18993 test $ac_status = 0; }; then
18994 # Parse the compiler output and extract the necessary
18995 # objects, libraries and library flags.
18997 # Sentinel used to keep track of whether or not we are before
18998 # the conftest object file.
18999 pre_test_object_deps_done
=no
19001 for p
in `eval "$output_verbose_link_cmd"`; do
19005 # Some compilers place space between "-{L,R}" and the path.
19006 # Remove the space.
19007 if test $p = "-L" ||
19008 test $p = "-R"; then
19015 if test "$pre_test_object_deps_done" = no
; then
19018 # Internal compiler library paths should come after those
19019 # provided the user. The postdeps already come after the
19020 # user supplied libs so there is no need to process them.
19021 if test -z "$compiler_lib_search_path_CXX"; then
19022 compiler_lib_search_path_CXX
="${prev}${p}"
19024 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19027 # The "-l" case would never come before the object being
19028 # linked, so don't bother handling this case.
19031 if test -z "$postdeps_CXX"; then
19032 postdeps_CXX
="${prev}${p}"
19034 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19040 # This assumes that the test object file only shows up
19041 # once in the compiler output.
19042 if test "$p" = "conftest.$objext"; then
19043 pre_test_object_deps_done
=yes
19047 if test "$pre_test_object_deps_done" = no
; then
19048 if test -z "$predep_objects_CXX"; then
19049 predep_objects_CXX
="$p"
19051 predep_objects_CXX
="$predep_objects_CXX $p"
19054 if test -z "$postdep_objects_CXX"; then
19055 postdep_objects_CXX
="$p"
19057 postdep_objects_CXX
="$postdep_objects_CXX $p"
19062 *) ;; # Ignore the rest.
19070 echo "libtool.m4: error: problem compiling CXX test program"
19073 $RM -f confest.
$objext
19075 # PORTME: override above test on systems where it is broken
19078 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19079 # hack all around it, let's just trust "g++" to DTRT.
19080 predep_objects_CXX
=
19081 postdep_objects_CXX
=
19086 case `$CC -V 2>&1 | sed 5q` in
19090 # The more standards-conforming stlport4 library is
19091 # incompatible with the Cstd library. Avoid specifying
19092 # it if it's in CXXFLAGS. Ignore libCrun as
19093 # -library=stlport4 depends on it.
19094 case " $CXX $CXXFLAGS " in
19095 *" -library=stlport4 "*)
19096 solaris_use_stlport4
=yes
19100 if test "$solaris_use_stlport4" != yes; then
19101 postdeps_CXX
='-library=Cstd -library=Crun'
19108 case $cc_basename in
19110 # The more standards-conforming stlport4 library is
19111 # incompatible with the Cstd library. Avoid specifying
19112 # it if it's in CXXFLAGS. Ignore libCrun as
19113 # -library=stlport4 depends on it.
19114 case " $CXX $CXXFLAGS " in
19115 *" -library=stlport4 "*)
19116 solaris_use_stlport4
=yes
19120 # Adding this requires a known-good setup of shared libraries for
19121 # Sun compiler versions before 5.6, else PIC objects from an old
19122 # archive will be linked into the output, leading to subtle bugs.
19123 if test "$solaris_use_stlport4" != yes; then
19124 postdeps_CXX
='-library=Cstd -library=Crun'
19132 case " $postdeps_CXX " in
19133 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19135 compiler_lib_search_dirs_CXX
=
19136 if test -n "${compiler_lib_search_path_CXX}"; then
19137 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19170 lt_prog_compiler_wl_CXX
=
19171 lt_prog_compiler_pic_CXX
=
19172 lt_prog_compiler_static_CXX
=
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19177 # C++ specific cases for pic, static, wl, etc.
19178 if test "$GXX" = yes; then
19179 lt_prog_compiler_wl_CXX
='-Wl,'
19180 lt_prog_compiler_static_CXX
='-static'
19184 # All AIX code is PIC.
19185 if test "$host_cpu" = ia64
; then
19186 # AIX 5 now supports IA64 processor
19187 lt_prog_compiler_static_CXX
='-Bstatic'
19194 # see comment about AmigaOS4 .so support
19195 lt_prog_compiler_pic_CXX
='-fPIC'
19198 # FIXME: we need at least 68020 code to build shared libraries, but
19199 # adding the `-m68020' flag to GCC prevents building anything better,
19201 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19206 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19207 # PIC is the default for these OSes.
19209 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19210 # This hack is so that the source file can tell whether it is being
19211 # built for inclusion in a dll (and should export symbols for example).
19212 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19213 # (--disable-auto-import) libraries
19214 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19216 darwin
* | rhapsody
*)
19217 # PIC is the default on this platform
19218 # Common symbols not allowed in MH_DYLIB files
19219 lt_prog_compiler_pic_CXX
='-fno-common'
19222 # DJGPP does not support shared libraries at all
19223 lt_prog_compiler_pic_CXX
=
19226 # PIC is the default for Haiku.
19227 # The "-static" flag exists, but is broken.
19228 lt_prog_compiler_static_CXX
=
19231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19232 # Instead, we relocate shared libraries at runtime.
19235 if test -d /usr
/nec
; then
19236 lt_prog_compiler_pic_CXX
=-Kconform_pic
19240 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19241 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19242 # sets the default TLS model and affects inlining.
19247 lt_prog_compiler_pic_CXX
='-fPIC'
19252 # QNX uses GNU C++, but need to define -shared option too, otherwise
19253 # it will coredump.
19254 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19257 lt_prog_compiler_pic_CXX
='-fPIC'
19263 # All AIX code is PIC.
19264 if test "$host_cpu" = ia64
; then
19265 # AIX 5 now supports IA64 processor
19266 lt_prog_compiler_static_CXX
='-Bstatic'
19268 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19272 case $cc_basename in
19274 # Green Hills C++ Compiler
19275 # _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"
19280 case $cc_basename in
19282 lt_prog_compiler_pic_CXX
='-KPIC'
19285 # Green Hills C++ Compiler
19286 lt_prog_compiler_pic_CXX
='-pic'
19292 freebsd
* | dragonfly
*)
19293 # FreeBSD uses GNU C++
19295 hpux9
* | hpux10
* | hpux11
*)
19296 case $cc_basename in
19298 lt_prog_compiler_wl_CXX
='-Wl,'
19299 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19300 if test "$host_cpu" != ia64
; then
19301 lt_prog_compiler_pic_CXX
='+Z'
19305 lt_prog_compiler_wl_CXX
='-Wl,'
19306 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19312 lt_prog_compiler_pic_CXX
='+Z'
19321 # This is c89, which is MS Visual C++ (no shared libs)
19322 # Anyone wants to do a port?
19324 irix5
* | irix6
* | nonstopux
*)
19325 case $cc_basename in
19327 lt_prog_compiler_wl_CXX
='-Wl,'
19328 lt_prog_compiler_static_CXX
='-non_shared'
19329 # CC pic flag -KPIC is the default.
19335 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19336 case $cc_basename in
19339 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19340 lt_prog_compiler_pic_CXX
='-fPIC'
19343 # old Intel C++ for x86_64 which still supported -KPIC.
19344 lt_prog_compiler_wl_CXX
='-Wl,'
19345 lt_prog_compiler_pic_CXX
='-KPIC'
19346 lt_prog_compiler_static_CXX
='-static'
19349 # Intel C++, used to be incompatible with GCC.
19350 # ICC 10 doesn't accept -KPIC any more.
19351 lt_prog_compiler_wl_CXX
='-Wl,'
19352 lt_prog_compiler_pic_CXX
='-fPIC'
19353 lt_prog_compiler_static_CXX
='-static'
19356 # Portland Group C++ compiler
19357 lt_prog_compiler_wl_CXX
='-Wl,'
19358 lt_prog_compiler_pic_CXX
='-fpic'
19359 lt_prog_compiler_static_CXX
='-Bstatic'
19363 # Make sure the PIC flag is empty. It appears that all Alpha
19364 # Linux and Compaq Tru64 Unix objects are PIC.
19365 lt_prog_compiler_pic_CXX
=
19366 lt_prog_compiler_static_CXX
='-non_shared'
19368 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19369 # IBM XL 8.0, 9.0 on PPC and BlueGene
19370 lt_prog_compiler_wl_CXX
='-Wl,'
19371 lt_prog_compiler_pic_CXX
='-qpic'
19372 lt_prog_compiler_static_CXX
='-qstaticlink'
19375 case `$CC -V 2>&1 | sed 5q` in
19378 lt_prog_compiler_pic_CXX
='-KPIC'
19379 lt_prog_compiler_static_CXX
='-Bstatic'
19380 lt_prog_compiler_wl_CXX
='-Qoption ld '
19391 case $cc_basename in
19393 lt_prog_compiler_pic_CXX
='-W c,exportall'
19402 # QNX uses GNU C++, but need to define -shared option too, otherwise
19403 # it will coredump.
19404 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19406 osf3
* | osf4
* | osf5
*)
19407 case $cc_basename in
19409 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19412 # Rational C++ 2.4.1
19413 lt_prog_compiler_pic_CXX
='-pic'
19416 # Digital/Compaq C++
19417 lt_prog_compiler_wl_CXX
='-Wl,'
19418 # Make sure the PIC flag is empty. It appears that all Alpha
19419 # Linux and Compaq Tru64 Unix objects are PIC.
19420 lt_prog_compiler_pic_CXX
=
19421 lt_prog_compiler_static_CXX
='-non_shared'
19430 case $cc_basename in
19432 # Sun C++ 4.2, 5.x and Centerline C++
19433 lt_prog_compiler_pic_CXX
='-KPIC'
19434 lt_prog_compiler_static_CXX
='-Bstatic'
19435 lt_prog_compiler_wl_CXX
='-Qoption ld '
19438 # Green Hills C++ Compiler
19439 lt_prog_compiler_pic_CXX
='-PIC'
19446 case $cc_basename in
19449 lt_prog_compiler_pic_CXX
='-pic'
19450 lt_prog_compiler_static_CXX
='-Bstatic'
19454 lt_prog_compiler_pic_CXX
='-pic'
19460 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19461 case $cc_basename in
19463 lt_prog_compiler_wl_CXX
='-Wl,'
19464 lt_prog_compiler_pic_CXX
='-KPIC'
19465 lt_prog_compiler_static_CXX
='-Bstatic'
19470 case $cc_basename in
19472 # NonStop-UX NCC 3.20
19473 lt_prog_compiler_pic_CXX
='-KPIC'
19482 lt_prog_compiler_can_build_shared_CXX
=no
19488 # For platforms which do not support PIC, -DPIC is meaningless:
19490 lt_prog_compiler_pic_CXX
=
19493 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19497 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19502 # Check to make sure the PIC flag actually works.
19504 if test -n "$lt_prog_compiler_pic_CXX"; then
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19506 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19507 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19508 $as_echo_n "(cached) " >&6
19510 lt_cv_prog_compiler_pic_works_CXX
=no
19511 ac_outfile
=conftest.
$ac_objext
19512 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19513 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19514 # Insert the option either (1) after the last *FLAGS variable, or
19515 # (2) before a word containing "conftest.", or (3) at the end.
19516 # Note that $ac_compile itself does not contain backslashes and begins
19517 # with a dollar sign (not a hyphen), so the echo should work correctly.
19518 # The option is referenced via a variable to avoid confusing sed.
19519 lt_compile
=`echo "$ac_compile" | $SED \
19520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522 -e 's:$: $lt_compiler_flag:'`
19523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19524 (eval "$lt_compile" 2>conftest.err
)
19526 cat conftest.err
>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 if (exit $ac_status) && test -s "$ac_outfile"; then
19529 # The compiler can only warn and ignore the option if not recognized
19530 # So say no if there are warnings other than the usual output.
19531 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19532 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19533 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19534 lt_cv_prog_compiler_pic_works_CXX
=yes
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19541 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19543 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19544 case $lt_prog_compiler_pic_CXX in
19546 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19549 lt_prog_compiler_pic_CXX
=
19550 lt_prog_compiler_can_build_shared_CXX
=no
19558 # Check to make sure the static flag actually works.
19560 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19562 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19563 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19564 $as_echo_n "(cached) " >&6
19566 lt_cv_prog_compiler_static_works_CXX
=no
19567 save_LDFLAGS
="$LDFLAGS"
19568 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19569 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19570 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19571 # The linker can only warn and ignore the option if not recognized
19572 # So say no if there are warnings
19573 if test -s conftest.err
; then
19574 # Append any errors to the config.log.
19575 cat conftest.err
1>&5
19576 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19577 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19578 if diff conftest.exp conftest.er2
>/dev
/null
; then
19579 lt_cv_prog_compiler_static_works_CXX
=yes
19582 lt_cv_prog_compiler_static_works_CXX
=yes
19586 LDFLAGS
="$save_LDFLAGS"
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19590 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19592 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19595 lt_prog_compiler_static_CXX
=
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19603 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19604 $as_echo_n "(cached) " >&6
19606 lt_cv_prog_compiler_c_o_CXX
=no
19607 $RM -r conftest
2>/dev
/null
19611 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19613 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19614 # Insert the option either (1) after the last *FLAGS variable, or
19615 # (2) before a word containing "conftest.", or (3) at the end.
19616 # Note that $ac_compile itself does not contain backslashes and begins
19617 # with a dollar sign (not a hyphen), so the echo should work correctly.
19618 lt_compile
=`echo "$ac_compile" | $SED \
19619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19621 -e 's:$: $lt_compiler_flag:'`
19622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19623 (eval "$lt_compile" 2>out
/conftest.err
)
19625 cat out
/conftest.err
>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19629 # The compiler can only warn and ignore the option if not recognized
19630 # So say no if there are warnings
19631 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19632 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19633 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19634 lt_cv_prog_compiler_c_o_CXX
=yes
19639 # SGI C++ compiler will create directory out/ii_files/ for
19640 # template instantiation
19641 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19642 $RM out
/* && rmdir out
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19649 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19655 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19656 $as_echo_n "(cached) " >&6
19658 lt_cv_prog_compiler_c_o_CXX
=no
19659 $RM -r conftest
2>/dev
/null
19663 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19665 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19666 # Insert the option either (1) after the last *FLAGS variable, or
19667 # (2) before a word containing "conftest.", or (3) at the end.
19668 # Note that $ac_compile itself does not contain backslashes and begins
19669 # with a dollar sign (not a hyphen), so the echo should work correctly.
19670 lt_compile
=`echo "$ac_compile" | $SED \
19671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19673 -e 's:$: $lt_compiler_flag:'`
19674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19675 (eval "$lt_compile" 2>out
/conftest.err
)
19677 cat out
/conftest.err
>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19681 # The compiler can only warn and ignore the option if not recognized
19682 # So say no if there are warnings
19683 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19684 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19685 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19686 lt_cv_prog_compiler_c_o_CXX
=yes
19691 # SGI C++ compiler will create directory out/ii_files/ for
19692 # template instantiation
19693 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19694 $RM out
/* && rmdir out
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19701 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19706 hard_links
="nottested"
19707 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19708 # do not overwrite the value of need_locks provided by the user
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19710 $as_echo_n "checking if we can lock with hard links... " >&6; }
19713 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19715 ln conftest.a conftest.b
2>&5 || hard_links
=no
19716 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19718 $as_echo "$hard_links" >&6; }
19719 if test "$hard_links" = no
; then
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19721 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19731 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19733 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19736 # If we're using GNU nm, then we don't want the "-C" option.
19737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19738 # Also, AIX nm treats weak defined symbols like other global defined
19739 # symbols, whereas GNU nm marks them as "W".
19740 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19741 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'
19743 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'
19747 export_symbols_cmds_CXX
="$ltdll_cmds"
19749 cygwin
* | mingw
* | cegcc
*)
19750 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'
19753 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19756 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19759 $as_echo "$ld_shlibs_CXX" >&6; }
19760 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19762 with_gnu_ld_CXX
=$with_gnu_ld
19770 # Do we need to explicitly link libc?
19772 case "x$archive_cmds_need_lc_CXX" in
19774 # Assume -lc should be added
19775 archive_cmds_need_lc_CXX
=yes
19777 if test "$enable_shared" = yes && test "$GCC" = yes; then
19778 case $archive_cmds_CXX in
19780 # FIXME: we may have to deal with multi-command sequences.
19783 # Test whether the compiler implicitly links with -lc since on some
19784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19785 # to ld, don't add -lc before -lgcc.
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19788 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19789 $as_echo_n "(cached) " >&6
19792 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19795 (eval $ac_compile) 2>&5
19797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19798 test $ac_status = 0; } 2>conftest.err
; then
19801 libobjs
=conftest.
$ac_objext
19803 wl
=$lt_prog_compiler_wl_CXX
19804 pic_flag
=$lt_prog_compiler_pic_CXX
19810 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19811 allow_undefined_flag_CXX
=
19812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19813 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19816 test $ac_status = 0; }
19818 lt_cv_archive_cmds_need_lc_CXX
=no
19820 lt_cv_archive_cmds_need_lc_CXX
=yes
19822 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19824 cat conftest.err
1>&5
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19830 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19831 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19904 library_names_spec
=
19905 libname_spec
='lib$name'
19909 postuninstall_cmds
=
19913 shlibpath_overrides_runpath
=unknown
19915 dynamic_linker
="$host_os ld.so"
19916 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19917 need_lib_prefix
=unknown
19918 hardcode_into_libs
=no
19920 # when you set need_version to no, make sure it does not cause -set_version
19921 # flags to be left without arguments
19922 need_version
=unknown
19927 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19928 shlibpath_var
=LIBPATH
19930 # AIX 3 has no versioning support, so we append a major version to the name.
19931 soname_spec
='${libname}${release}${shared_ext}$major'
19938 hardcode_into_libs
=yes
19939 if test "$host_cpu" = ia64
; then
19940 # AIX 5 supports IA64
19941 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19942 shlibpath_var
=LD_LIBRARY_PATH
19944 # With GCC up to 2.95.x, collect2 would create an import file
19945 # for dependence libraries. The import file would start with
19946 # the line `#! .'. This would cause the generated library to
19947 # depend on `.', always an invalid library. This was fixed in
19948 # development snapshots of GCC prior to 3.0.
19950 aix4 | aix4.
[01] | aix4.
[01].
*)
19951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19953 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19956 can_build_shared
=no
19960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19961 # soname into executable. Probably we can add versioning support to
19962 # collect2, so additional links can be useful in future.
19963 if test "$aix_use_runtimelinking" = yes; then
19964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19965 # instead of lib<name>.a to let people know that these are not
19966 # typical AIX shared libraries.
19967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19969 # We preserve .a as extension for shared libraries through AIX4.2
19970 # and later when we are not doing run time linking.
19971 library_names_spec
='${libname}${release}.a $libname.a'
19972 soname_spec
='${libname}${release}${shared_ext}$major'
19974 shlibpath_var
=LIBPATH
19981 # Since July 2007 AmigaOS4 officially supports .so libraries.
19982 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19986 library_names_spec
='$libname.ixlibrary $libname.a'
19987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19988 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'
19994 library_names_spec
='${libname}${shared_ext}'
19995 dynamic_linker
="$host_os ld.so"
19996 shlibpath_var
=LIBRARY_PATH
20002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20003 soname_spec
='${libname}${release}${shared_ext}$major'
20004 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20005 shlibpath_var
=LD_LIBRARY_PATH
20006 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20007 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20008 # the default ld.so.conf also contains /usr/contrib/lib and
20009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20010 # libtool to hard-code these into programs
20013 cygwin
* | mingw
* | pw32
* | cegcc
*)
20014 version_type
=windows
20019 case $GCC,$host_os in
20020 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20021 library_names_spec
='$libname.dll.a'
20022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20023 postinstall_cmds
='base_file=`basename \${file}`~
20024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20025 dldir=$destdir/`dirname \$dlpath`~
20026 test -d \$dldir || mkdir -p \$dldir~
20027 $install_prog $dir/$dlname \$dldir/$dlname~
20028 chmod a+x \$dldir/$dlname~
20029 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20030 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20032 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20033 dlpath=$dir/\$dldll~
20035 shlibpath_overrides_runpath
=yes
20039 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20040 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20044 # MinGW DLLs use traditional 'lib' prefix
20045 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20048 # pw32 DLLs use 'pw' prefix rather than 'lib'
20049 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20055 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20058 dynamic_linker
='Win32 ld.exe'
20059 # FIXME: first we should search . and the directory the executable is in
20063 darwin
* | rhapsody
*)
20064 dynamic_linker
="$host_os dyld"
20065 version_type
=darwin
20068 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20069 soname_spec
='${libname}${release}${major}$shared_ext'
20070 shlibpath_overrides_runpath
=yes
20071 shlibpath_var
=DYLD_LIBRARY_PATH
20072 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20074 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20082 soname_spec
='${libname}${release}${shared_ext}$major'
20083 shlibpath_var
=LD_LIBRARY_PATH
20090 freebsd
* | dragonfly
*)
20091 # DragonFly does not have aout. When/if they implement a new
20092 # versioning mechanism, adjust this.
20093 if test -x /usr
/bin
/objformat
; then
20094 objformat
=`/usr/bin/objformat`
20097 freebsd
[123]*) objformat
=aout
;;
20098 *) objformat
=elf
;;
20101 version_type
=freebsd-
$objformat
20102 case $version_type in
20104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20109 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20113 shlibpath_var
=LD_LIBRARY_PATH
20116 shlibpath_overrides_runpath
=yes
20118 freebsd3.
[01]* | freebsdelf3.
[01]*)
20119 shlibpath_overrides_runpath
=yes
20120 hardcode_into_libs
=yes
20122 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20123 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20124 shlibpath_overrides_runpath
=no
20125 hardcode_into_libs
=yes
20127 *) # from 4.6 on, and DragonFly
20128 shlibpath_overrides_runpath
=yes
20129 hardcode_into_libs
=yes
20138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20139 soname_spec
='${libname}${release}${shared_ext}$major'
20140 shlibpath_var
=LD_LIBRARY_PATH
20141 hardcode_into_libs
=yes
20148 dynamic_linker
="$host_os runtime_loader"
20149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20150 soname_spec
='${libname}${release}${shared_ext}$major'
20151 shlibpath_var
=LIBRARY_PATH
20152 shlibpath_overrides_runpath
=yes
20153 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20154 hardcode_into_libs
=yes
20157 hpux9
* | hpux10
* | hpux11
*)
20158 # Give a soname corresponding to the major version so that dld.sl refuses to
20159 # link against other versions.
20166 hardcode_into_libs
=yes
20167 dynamic_linker
="$host_os dld.so"
20168 shlibpath_var
=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20171 soname_spec
='${libname}${release}${shared_ext}$major'
20172 if test "X$HPUX_IA64_MODE" = X32
; then
20173 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20175 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20177 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20181 hardcode_into_libs
=yes
20182 dynamic_linker
="$host_os dld.sl"
20183 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20184 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20186 soname_spec
='${libname}${release}${shared_ext}$major'
20187 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20188 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20192 dynamic_linker
="$host_os dld.sl"
20193 shlibpath_var
=SHLIB_PATH
20194 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20196 soname_spec
='${libname}${release}${shared_ext}$major'
20199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20200 postinstall_cmds
='chmod 555 $lib'
20201 # or fails outright, so override atomically:
20202 install_override_mode
=555
20209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20210 soname_spec
='${libname}${release}${shared_ext}$major'
20211 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20212 shlibpath_var
=LD_LIBRARY_PATH
20213 shlibpath_overrides_runpath
=no
20214 hardcode_into_libs
=yes
20217 irix5
* | irix6
* | nonstopux
*)
20219 nonstopux
*) version_type
=nonstopux
;;
20221 if test "$lt_cv_prog_gnu_ld" = yes; then
20229 soname_spec
='${libname}${release}${shared_ext}$major'
20230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20232 irix5
* | nonstopux
*)
20233 libsuff
= shlibsuff
=
20236 case $LD in # libtool.m4 will add one of these switches to LD
20237 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20238 libsuff
= shlibsuff
= libmagic
=32-bit;;
20239 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20240 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20241 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20242 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20243 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20247 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20248 shlibpath_overrides_runpath
=no
20249 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20250 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20251 hardcode_into_libs
=yes
20254 # No shared lib support for Linux oldld, aout, or coff.
20255 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20259 # This must be Linux ELF.
20260 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265 soname_spec
='${libname}${release}${shared_ext}$major'
20266 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20267 shlibpath_var
=LD_LIBRARY_PATH
20268 shlibpath_overrides_runpath
=no
20270 # Some binutils ld are patched to set DT_RUNPATH
20271 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20272 $as_echo_n "(cached) " >&6
20274 lt_cv_shlibpath_overrides_runpath
=no
20275 save_LDFLAGS
=$LDFLAGS
20276 save_libdir
=$libdir
20277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20290 if ac_fn_cxx_try_link
"$LINENO"; then :
20291 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20292 lt_cv_shlibpath_overrides_runpath
=yes
20295 rm -f core conftest.err conftest.
$ac_objext \
20296 conftest
$ac_exeext conftest.
$ac_ext
20297 LDFLAGS
=$save_LDFLAGS
20298 libdir
=$save_libdir
20302 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20304 # This implies no fast_install, which is unacceptable.
20305 # Some rework will be needed to allow for fast_install
20306 # before this can be enabled.
20307 hardcode_into_libs
=yes
20309 # Append ld.so.conf contents to the search path
20310 if test -f /etc
/ld.so.conf
; then
20311 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' ' '`
20312 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20315 # We used to test for /lib/ld.so.1 and disable shared libraries on
20316 # powerpc, because MkLinux only supported shared libraries with the
20317 # GNU dynamic linker. Since this was broken with cross compilers,
20318 # most powerpc-linux boxes support dynamic linking these days and
20319 # people can always --disable-shared, the test was removed, and we
20320 # assume the GNU/Linux dynamic linker is in use.
20321 dynamic_linker
='GNU/Linux ld.so'
20328 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20330 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20331 dynamic_linker
='NetBSD (a.out) ld.so'
20333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20334 soname_spec
='${libname}${release}${shared_ext}$major'
20335 dynamic_linker
='NetBSD ld.elf_so'
20337 shlibpath_var
=LD_LIBRARY_PATH
20338 shlibpath_overrides_runpath
=yes
20339 hardcode_into_libs
=yes
20344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 shlibpath_var
=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath
=yes
20353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec
='${libname}${release}${shared_ext}$major'
20355 shlibpath_var
=LD_LIBRARY_PATH
20356 shlibpath_overrides_runpath
=no
20357 hardcode_into_libs
=yes
20358 dynamic_linker
='ldqnx.so'
20363 sys_lib_dlsearch_path_spec
="/usr/lib"
20365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20367 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20368 *) need_version
=no
;;
20370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20371 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20372 shlibpath_var
=LD_LIBRARY_PATH
20373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20375 openbsd2.
[89] | openbsd2.
[89].
*)
20376 shlibpath_overrides_runpath
=no
20379 shlibpath_overrides_runpath
=yes
20383 shlibpath_overrides_runpath
=yes
20388 libname_spec
='$name'
20391 library_names_spec
='$libname${shared_ext} $libname.a'
20392 dynamic_linker
='OS/2 ld.exe'
20393 shlibpath_var
=LIBPATH
20396 osf3
* | osf4
* | osf5
*)
20400 soname_spec
='${libname}${release}${shared_ext}$major'
20401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 shlibpath_var
=LD_LIBRARY_PATH
20403 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20404 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416 soname_spec
='${libname}${release}${shared_ext}$major'
20417 shlibpath_var
=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath
=yes
20419 hardcode_into_libs
=yes
20420 # ldd complains unless libraries are executable
20421 postinstall_cmds
='chmod +x $lib'
20426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20427 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20428 shlibpath_var
=LD_LIBRARY_PATH
20429 shlibpath_overrides_runpath
=yes
20430 if test "$with_gnu_ld" = yes; then
20438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439 soname_spec
='${libname}${release}${shared_ext}$major'
20440 shlibpath_var
=LD_LIBRARY_PATH
20441 case $host_vendor in
20443 shlibpath_overrides_runpath
=no
20445 runpath_var
=LD_RUN_PATH
20453 shlibpath_overrides_runpath
=no
20454 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20460 if test -d /usr
/nec
;then
20462 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20463 soname_spec
='$libname${shared_ext}.$major'
20464 shlibpath_var
=LD_LIBRARY_PATH
20468 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20469 version_type
=freebsd-elf
20472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20473 soname_spec
='${libname}${release}${shared_ext}$major'
20474 shlibpath_var
=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath
=yes
20476 hardcode_into_libs
=yes
20477 if test "$with_gnu_ld" = yes; then
20478 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20480 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20483 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20487 sys_lib_dlsearch_path_spec
='/usr/lib'
20491 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496 shlibpath_var
=LD_LIBRARY_PATH
20497 shlibpath_overrides_runpath
=no
20498 hardcode_into_libs
=yes
20503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504 soname_spec
='${libname}${release}${shared_ext}$major'
20505 shlibpath_var
=LD_LIBRARY_PATH
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20513 $as_echo "$dynamic_linker" >&6; }
20514 test "$dynamic_linker" = no
&& can_build_shared
=no
20516 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20517 if test "$GCC" = yes; then
20518 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20521 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20522 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20524 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20525 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20567 hardcode_action_CXX
=
20568 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20569 test -n "$runpath_var_CXX" ||
20570 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20572 # We can hardcode non-existent directories.
20573 if test "$hardcode_direct_CXX" != no
&&
20574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20575 # have to relink, otherwise we might link with an installed library
20576 # when we should be linking with a yet-to-be-installed one
20577 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20578 test "$hardcode_minus_L_CXX" != no
; then
20579 # Linking always hardcodes the temporary library directory.
20580 hardcode_action_CXX
=relink
20582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20583 hardcode_action_CXX
=immediate
20586 # We cannot hardcode anything, or else we can only hardcode existing
20588 hardcode_action_CXX
=unsupported
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20591 $as_echo "$hardcode_action_CXX" >&6; }
20593 if test "$hardcode_action_CXX" = relink ||
20594 test "$inherit_rpath_CXX" = yes; then
20595 # Fast installation is not supported
20596 enable_fast_install
=no
20597 elif test "$shlibpath_overrides_runpath" = yes ||
20598 test "$enable_shared" = no
; then
20599 # Fast installation is not necessary
20600 enable_fast_install
=needless
20609 fi # test -n "$compiler"
20615 with_gnu_ld
=$lt_save_with_gnu_ld
20616 lt_cv_path_LDCXX
=$lt_cv_path_LD
20617 lt_cv_path_LD
=$lt_save_path_LD
20618 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20619 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20620 fi # test "$_lt_caught_CXX_error" != yes
20623 ac_cpp
='$CPP $CPPFLAGS'
20624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20643 # Only expand once:
20649 # Identify the assembler which will work hand-in-glove with the newly
20650 # built GCC, so that we can examine its features. This is the assembler
20651 # which will be driven by the driver program.
20653 # If build != host, and we aren't building gas in-tree, we identify a
20654 # build->target assembler and hope that it will have the same features
20655 # as the host->target assembler we'll be using.
20656 gcc_cv_gas_major_version
=
20657 gcc_cv_gas_minor_version
=
20658 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20660 if test "${gcc_cv_as+set}" = set; then :
20664 if test -x "$DEFAULT_ASSEMBLER"; then
20665 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20666 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20667 && test -f ..
/gas
/Makefile \
20668 && test x
$build = x
$host; then
20669 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20670 elif test -x as
$build_exeext; then
20671 # Build using assembler in the current directory.
20672 gcc_cv_as
=.
/as
$build_exeext
20673 elif test -x $AS_FOR_TARGET; then
20674 gcc_cv_as
="$AS_FOR_TARGET"
20676 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20677 set dummy
$AS_FOR_TARGET; ac_word
=$2
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20679 $as_echo_n "checking for $ac_word... " >&6; }
20680 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20681 $as_echo_n "(cached) " >&6
20685 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20689 for as_dir
in $PATH
20692 test -z "$as_dir" && as_dir
=.
20693 for ac_exec_ext
in '' $ac_executable_extensions; do
20694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20695 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20706 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20707 if test -n "$gcc_cv_as"; then
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20709 $as_echo "$gcc_cv_as" >&6; }
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20712 $as_echo "no" >&6; }
20719 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20721 case "$ORIGINAL_AS_FOR_TARGET" in
20722 .
/as | .
/as
$build_exeext) ;;
20723 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20728 $as_echo_n "checking what assembler to use... " >&6; }
20729 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20730 # Single tree build which includes gas. We want to prefer it
20731 # over whatever linker top-level may have detected, since
20732 # we'll use what we're building after installation anyway.
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20734 $as_echo "newly built gas" >&6; }
20736 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20737 for f
in $gcc_cv_as_bfd_srcdir/configure \
20738 $gcc_cv_as_gas_srcdir/configure \
20739 $gcc_cv_as_gas_srcdir/configure.
in \
20740 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20741 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20742 if test x
$gcc_cv_gas_version != x
; then
20746 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20747 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20748 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20749 case $gcc_cv_gas_patch_version in
20750 "") gcc_cv_gas_patch_version
="0" ;;
20752 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20753 + $gcc_cv_gas_minor_version \) \* 1000 \
20754 + $gcc_cv_gas_patch_version`
20756 in_tree_gas_is_elf
=no
20757 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20758 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20759 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20761 in_tree_gas_is_elf
=yes
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20765 $as_echo "$gcc_cv_as" >&6; }
20769 # Identify the linker which will work hand-in-glove with the newly
20770 # built GCC, so that we can examine its features. This is the linker
20771 # which will be driven by the driver program.
20773 # If build != host, and we aren't building gas in-tree, we identify a
20774 # build->target linker and hope that it will have the same features
20775 # as the host->target linker we'll be using.
20776 gcc_cv_gld_major_version
=
20777 gcc_cv_gld_minor_version
=
20778 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20779 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20781 if test "${gcc_cv_ld+set}" = set; then :
20785 if test -x "$DEFAULT_LINKER"; then
20786 gcc_cv_ld
="$DEFAULT_LINKER"
20787 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20788 && test -f ..
/ld
/Makefile \
20789 && test x
$build = x
$host; then
20790 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20791 elif test -x collect-ld
$build_exeext; then
20792 # Build using linker in the current directory.
20793 gcc_cv_ld
=.
/collect-ld
$build_exeext
20794 elif test -x $LD_FOR_TARGET; then
20795 gcc_cv_ld
="$LD_FOR_TARGET"
20797 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20798 set dummy
$LD_FOR_TARGET; ac_word
=$2
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20800 $as_echo_n "checking for $ac_word... " >&6; }
20801 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20802 $as_echo_n "(cached) " >&6
20806 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20810 for as_dir
in $PATH
20813 test -z "$as_dir" && as_dir
=.
20814 for ac_exec_ext
in '' $ac_executable_extensions; do
20815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20816 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20827 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20828 if test -n "$gcc_cv_ld"; then
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20830 $as_echo "$gcc_cv_ld" >&6; }
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20833 $as_echo "no" >&6; }
20840 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20841 PLUGIN_LD
=`basename $gcc_cv_ld`
20843 # Check whether --with-plugin-ld was given.
20844 if test "${with_plugin_ld+set}" = set; then :
20845 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20846 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20847 PLUGIN_LD
="$withval"
20853 cat >>confdefs.h
<<_ACEOF
20854 #define PLUGIN_LD "$PLUGIN_LD"
20858 # Check to see if we are using gold instead of ld
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20860 $as_echo_n "checking whether we are using gold... " >&6; }
20862 if test x
$gcc_cv_ld != x
; then
20863 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
20864 |
grep "GNU gold" > /dev
/null
; then
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20869 $as_echo "$ld_is_gold" >&6; }
20871 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20873 case "$ORIGINAL_LD_FOR_TARGET" in
20874 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20875 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20880 $as_echo_n "checking what linker to use... " >&6; }
20881 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20882 # Single tree build which includes ld. We want to prefer it
20883 # over whatever linker top-level may have detected, since
20884 # we'll use what we're building after installation anyway.
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20886 $as_echo "newly built ld" >&6; }
20888 in_tree_ld_is_elf
=no
20889 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20890 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20891 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20892 in_tree_ld_is_elf
=yes
20894 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
20896 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20897 if test x
$gcc_cv_gld_version != x
; then
20901 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20902 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20905 $as_echo "$gcc_cv_ld" >&6; }
20909 # Figure out what nm we will be using.
20910 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20911 if test "${gcc_cv_nm+set}" = set; then :
20915 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20916 && test -f ..
/binutils
/Makefile \
20917 && test x
$build = x
$host; then
20918 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20919 elif test -x nm
$build_exeext; then
20920 gcc_cv_nm
=.
/nm
$build_exeext
20921 elif test -x $NM_FOR_TARGET; then
20922 gcc_cv_nm
="$NM_FOR_TARGET"
20924 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20925 set dummy
$NM_FOR_TARGET; ac_word
=$2
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20927 $as_echo_n "checking for $ac_word... " >&6; }
20928 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20933 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20937 for as_dir
in $PATH
20940 test -z "$as_dir" && as_dir
=.
20941 for ac_exec_ext
in '' $ac_executable_extensions; do
20942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20943 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20954 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20955 if test -n "$gcc_cv_nm"; then
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20957 $as_echo "$gcc_cv_nm" >&6; }
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 $as_echo "no" >&6; }
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20968 $as_echo_n "checking what nm to use... " >&6; }
20969 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20970 # Single tree build which includes binutils.
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20972 $as_echo "newly built nm" >&6; }
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20976 $as_echo "$gcc_cv_nm" >&6; }
20980 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20982 case "$ORIGINAL_NM_FOR_TARGET" in
20983 .
/nm | .
/nm
$build_exeext) ;;
20984 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20989 # Figure out what objdump we will be using.
20990 if test "${gcc_cv_objdump+set}" = set; then :
20994 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20995 && test -f ..
/binutils
/Makefile \
20996 && test x
$build = x
$host; then
20997 # Single tree build which includes binutils.
20998 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20999 elif test -x objdump
$build_exeext; then
21000 gcc_cv_objdump
=.
/objdump
$build_exeext
21001 elif test -x $OBJDUMP_FOR_TARGET; then
21002 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21004 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21005 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21007 $as_echo_n "checking for $ac_word... " >&6; }
21008 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21009 $as_echo_n "(cached) " >&6
21011 case $gcc_cv_objdump in
21013 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21017 for as_dir
in $PATH
21020 test -z "$as_dir" && as_dir
=.
21021 for ac_exec_ext
in '' $ac_executable_extensions; do
21022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21023 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21034 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21035 if test -n "$gcc_cv_objdump"; then
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21037 $as_echo "$gcc_cv_objdump" >&6; }
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21040 $as_echo "no" >&6; }
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21048 $as_echo_n "checking what objdump to use... " >&6; }
21049 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21050 # Single tree build which includes binutils.
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21052 $as_echo "newly built objdump" >&6; }
21053 elif test x
$gcc_cv_objdump = x
; then
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21055 $as_echo "not found" >&6; }
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21058 $as_echo "$gcc_cv_objdump" >&6; }
21061 # Figure out what readelf we will be using.
21062 if test "${gcc_cv_readelf+set}" = set; then :
21066 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21067 && test -f ..
/binutils
/Makefile \
21068 && test x
$build = x
$host; then
21069 # Single tree build which includes binutils.
21070 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21071 elif test -x readelf
$build_exeext; then
21072 gcc_cv_readelf
=.
/readelf
$build_exeext
21074 # Extract the first word of "readelf", so it can be a program name with args.
21075 set dummy readelf
; ac_word
=$2
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21077 $as_echo_n "checking for $ac_word... " >&6; }
21078 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21079 $as_echo_n "(cached) " >&6
21081 case $gcc_cv_readelf in
21083 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21087 for as_dir
in $PATH
21090 test -z "$as_dir" && as_dir
=.
21091 for ac_exec_ext
in '' $ac_executable_extensions; do
21092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21093 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21104 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21105 if test -n "$gcc_cv_readelf"; then
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21107 $as_echo "$gcc_cv_readelf" >&6; }
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21110 $as_echo "no" >&6; }
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21118 $as_echo_n "checking what readelf to use... " >&6; }
21119 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21120 # Single tree build which includes binutils.
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21122 $as_echo "newly built readelf" >&6; }
21123 elif test x
$gcc_cv_readelf = x
; then
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21125 $as_echo "not found" >&6; }
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21128 $as_echo "$gcc_cv_readelf" >&6; }
21131 # Figure out what assembler alignment features are present.
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21133 $as_echo_n "checking assembler flags... " >&6; }
21134 if test "${gcc_cv_as_flags+set}" = set; then :
21135 $as_echo_n "(cached) " >&6
21138 i
[34567]86-*-linux*)
21139 gcc_cv_as_flags
="--32"
21142 gcc_cv_as_flags
=" "
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21147 $as_echo "$gcc_cv_as_flags" >&6; }
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21150 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21151 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21152 $as_echo_n "(cached) " >&6
21154 gcc_cv_as_balign_and_p2align
=no
21155 if test $in_tree_gas = yes; then
21156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21157 then gcc_cv_as_balign_and_p2align
=yes
21159 elif test x
$gcc_cv_as != x
; then
21161 .p2align 2' > conftest.s
21162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21164 (eval $ac_try) 2>&5
21166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21167 test $ac_status = 0; }; }
21169 gcc_cv_as_balign_and_p2align
=yes
21171 echo "configure: failed program was" >&5
21174 rm -f conftest.o conftest.s
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21178 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21179 if test $gcc_cv_as_balign_and_p2align = yes; then
21181 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21186 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21187 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21188 $as_echo_n "(cached) " >&6
21190 gcc_cv_as_max_skip_p2align
=no
21191 if test $in_tree_gas = yes; then
21192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21193 then gcc_cv_as_max_skip_p2align
=yes
21195 elif test x
$gcc_cv_as != x
; then
21196 echo '.p2align 4,,7' > conftest.s
21197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21199 (eval $ac_try) 2>&5
21201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21202 test $ac_status = 0; }; }
21204 gcc_cv_as_max_skip_p2align
=yes
21206 echo "configure: failed program was" >&5
21209 rm -f conftest.o conftest.s
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21213 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21214 if test $gcc_cv_as_max_skip_p2align = yes; then
21216 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21221 $as_echo_n "checking assembler for .literal16... " >&6; }
21222 if test "${gcc_cv_as_literal16+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21225 gcc_cv_as_literal16
=no
21226 if test $in_tree_gas = yes; then
21227 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21228 then gcc_cv_as_literal16
=yes
21230 elif test x
$gcc_cv_as != x
; then
21231 echo '.literal16' > conftest.s
21232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21234 (eval $ac_try) 2>&5
21236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21237 test $ac_status = 0; }; }
21239 gcc_cv_as_literal16
=yes
21241 echo "configure: failed program was" >&5
21244 rm -f conftest.o conftest.s
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21248 $as_echo "$gcc_cv_as_literal16" >&6; }
21249 if test $gcc_cv_as_literal16 = yes; then
21251 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21256 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21257 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21258 $as_echo_n "(cached) " >&6
21260 gcc_cv_as_subsection_m1
=no
21261 if test $in_tree_gas = yes; then
21262 if test $in_tree_gas_is_elf = yes \
21263 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21264 then gcc_cv_as_subsection_m1
=yes
21266 elif test x
$gcc_cv_as != x
; then
21267 echo 'conftest_label1: .word 0
21269 conftest_label2: .word 0
21270 .previous' > conftest.s
21271 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21273 (eval $ac_try) 2>&5
21275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21276 test $ac_status = 0; }; }
21278 if test x
$gcc_cv_nm != x
; then
21279 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21280 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21281 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21283 else gcc_cv_as_subsection_m1
=yes
21285 rm -f conftest.nm1 conftest.nm2
21288 echo "configure: failed program was" >&5
21291 rm -f conftest.o conftest.s
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21295 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21296 if test $gcc_cv_as_subsection_m1 = yes; then
21298 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21303 $as_echo_n "checking assembler for .weak... " >&6; }
21304 if test "${gcc_cv_as_weak+set}" = set; then :
21305 $as_echo_n "(cached) " >&6
21308 if test $in_tree_gas = yes; then
21309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21310 then gcc_cv_as_weak
=yes
21312 elif test x
$gcc_cv_as != x
; then
21313 echo ' .weak foobar' > conftest.s
21314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21316 (eval $ac_try) 2>&5
21318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21319 test $ac_status = 0; }; }
21323 echo "configure: failed program was" >&5
21326 rm -f conftest.o conftest.s
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21330 $as_echo "$gcc_cv_as_weak" >&6; }
21331 if test $gcc_cv_as_weak = yes; then
21333 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21338 $as_echo_n "checking assembler for .weakref... " >&6; }
21339 if test "${gcc_cv_as_weakref+set}" = set; then :
21340 $as_echo_n "(cached) " >&6
21342 gcc_cv_as_weakref
=no
21343 if test $in_tree_gas = yes; then
21344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21345 then gcc_cv_as_weakref
=yes
21347 elif test x
$gcc_cv_as != x
; then
21348 echo ' .weakref foobar, barfnot' > conftest.s
21349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21351 (eval $ac_try) 2>&5
21353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21354 test $ac_status = 0; }; }
21356 gcc_cv_as_weakref
=yes
21358 echo "configure: failed program was" >&5
21361 rm -f conftest.o conftest.s
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21365 $as_echo "$gcc_cv_as_weakref" >&6; }
21366 if test $gcc_cv_as_weakref = yes; then
21368 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21373 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21374 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21375 $as_echo_n "(cached) " >&6
21377 gcc_cv_as_nsubspa_comdat
=no
21378 if test $in_tree_gas = yes; then
21379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21380 then gcc_cv_as_nsubspa_comdat
=yes
21382 elif test x
$gcc_cv_as != x
; then
21383 echo ' .SPACE $TEXT$
21384 .NSUBSPA $CODE$,COMDAT' > conftest.s
21385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21387 (eval $ac_try) 2>&5
21389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21390 test $ac_status = 0; }; }
21392 gcc_cv_as_nsubspa_comdat
=yes
21394 echo "configure: failed program was" >&5
21397 rm -f conftest.o conftest.s
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21401 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21402 if test $gcc_cv_as_nsubspa_comdat = yes; then
21404 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21408 # .hidden needs to be supported in both the assembler and the linker,
21409 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21410 # This is irritatingly difficult to feature test for; we have to check the
21411 # date string after the version number. If we've got an in-tree
21412 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21414 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21416 $as_echo_n "checking assembler for .hidden... " >&6; }
21417 if test "${gcc_cv_as_hidden+set}" = set; then :
21418 $as_echo_n "(cached) " >&6
21420 gcc_cv_as_hidden
=no
21421 if test $in_tree_gas = yes; then
21422 if test $in_tree_gas_is_elf = yes \
21423 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21424 then gcc_cv_as_hidden
=yes
21426 elif test x
$gcc_cv_as != x
; then
21427 echo ' .hidden foobar
21428 foobar:' > conftest.s
21429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21431 (eval $ac_try) 2>&5
21433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21434 test $ac_status = 0; }; }
21437 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21438 # STV_HIDDEN, so disable .hidden support if so.
21439 case "${target}" in
21441 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21442 cat > conftest.s
<<EOF
21447 .set default,hidden
21449 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21450 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21451 grep '\.hidden default' > /dev
/null
; then
21452 gcc_cv_as_hidden
=no
21454 gcc_cv_as_hidden
=yes
21457 # Assume bug is present if objdump is missing.
21458 gcc_cv_as_hidden
=no
21462 gcc_cv_as_hidden
=yes
21466 echo "configure: failed program was" >&5
21469 rm -f conftest.o conftest.s
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21473 $as_echo "$gcc_cv_as_hidden" >&6; }
21476 # gnu_indirect_function type is an extension proposed at
21477 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21478 # selection of function implementation
21479 # Check whether --enable-gnu-indirect-function was given.
21480 if test "${enable_gnu_indirect_function+set}" = set; then :
21481 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21483 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21484 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21487 enable_gnu_indirect_function
="$default_gnu_indirect_function"
21490 if test x
$enable_gnu_indirect_function = xyes
; then
21492 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21496 if test $in_tree_ld != yes ; then
21497 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21498 if test x
"$ld_is_gold" = xyes
; then
21499 gcc_cv_ld_hidden
=yes
21500 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21501 ld_vers
=`echo $ld_ver | sed -n \
21502 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21503 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'`
21504 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21505 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21506 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21508 case "${target}" in
21511 # Solaris 2 ld -V output looks like this for a regular version:
21513 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21515 # but test versions add stuff at the end:
21517 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21519 ld_ver
=`$gcc_cv_ld -V 2>&1`
21520 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21521 ld_vers
=`echo $ld_ver | sed -n \
21522 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21523 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21524 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21532 $as_echo_n "checking linker for .hidden support... " >&6; }
21533 if test "${gcc_cv_ld_hidden+set}" = set; then :
21534 $as_echo_n "(cached) " >&6
21536 if test $in_tree_ld = yes ; then
21537 gcc_cv_ld_hidden
=no
21538 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 \
21539 && test $in_tree_ld_is_elf = yes; then
21540 gcc_cv_ld_hidden
=yes
21543 gcc_cv_ld_hidden
=yes
21544 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21545 if test 0"$ld_date" -lt 20020404; then
21546 if test -n "$ld_date"; then
21547 # If there was date string, but was earlier than 2002-04-04, fail
21548 gcc_cv_ld_hidden
=no
21549 elif test -z "$ld_vers"; then
21550 # If there was no date string nor ld version number, something is wrong
21551 gcc_cv_ld_hidden
=no
21553 test -z "$ld_vers_patch" && ld_vers_patch
=0
21554 if test "$ld_vers_major" -lt 2; then
21555 gcc_cv_ld_hidden
=no
21556 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21557 gcc_cv_ld_hidden
="no"
21558 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21559 gcc_cv_ld_hidden
=no
21564 case "${target}" in
21565 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21566 gcc_cv_ld_hidden
=yes
21569 # .hidden support was backported to Solaris 8, starting with ld
21571 if test "$ld_vers_minor" -ge 276; then
21572 gcc_cv_ld_hidden
=yes
21574 gcc_cv_ld_hidden
=no
21577 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21578 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21579 # .symbolic was only added in Solaris 9 12/02.
21580 gcc_cv_ld_hidden
=yes
21583 gcc_cv_ld_hidden
=no
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21590 $as_echo "$gcc_cv_ld_hidden" >&6; }
21591 libgcc_visibility
=no
21594 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21595 libgcc_visibility
=yes
21597 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21602 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21603 gcc_cv_ld_ro_rw_mix
=unknown
21604 if test $in_tree_ld = yes ; then
21605 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 \
21606 && test $in_tree_ld_is_elf = yes; then
21607 gcc_cv_ld_ro_rw_mix
=read-write
21609 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21610 echo '.section myfoosect, "a"' > conftest1.s
21611 echo '.section myfoosect, "aw"' > conftest2.s
21612 echo '.byte 1' >> conftest2.s
21613 echo '.section myfoosect, "a"' > conftest3.s
21614 echo '.byte 0' >> conftest3.s
21615 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21616 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21617 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21618 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21619 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21620 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21621 | sed -e '/myfoosect/!d' -e N`
21622 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21623 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21624 gcc_cv_ld_ro_rw_mix
=read-only
21626 gcc_cv_ld_ro_rw_mix
=read-write
21630 rm -f conftest.
* conftest
[123].
*
21632 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21634 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21638 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21640 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21642 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21643 if test "${gcc_cv_as_leb128+set}" = set; then :
21644 $as_echo_n "(cached) " >&6
21646 gcc_cv_as_leb128
=no
21647 if test $in_tree_gas = yes; then
21648 if test $in_tree_gas_is_elf = yes \
21649 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21650 then gcc_cv_as_leb128
=yes
21652 elif test x
$gcc_cv_as != x
; then
21659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21661 (eval $ac_try) 2>&5
21663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21664 test $ac_status = 0; }; }
21666 # GAS versions before 2.11 do not support uleb128,
21667 # despite appearing to.
21668 # ??? There exists an elf-specific test that will crash
21669 # the assembler. Perhaps it's better to figure out whether
21670 # arbitrary sections are supported and try the test.
21671 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21672 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21673 as_vers
=`echo $as_ver | sed -n \
21674 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21675 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21676 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21677 if test $as_major -eq 2 && test $as_minor -lt 11
21679 else gcc_cv_as_leb128
=yes
21683 echo "configure: failed program was" >&5
21686 rm -f conftest.o conftest.s
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21690 $as_echo "$gcc_cv_as_leb128" >&6; }
21691 if test $gcc_cv_as_leb128 = yes; then
21693 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21697 # Check if we have assembler support for unwind directives.
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21699 $as_echo_n "checking assembler for cfi directives... " >&6; }
21700 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21703 gcc_cv_as_cfi_directive
=no
21704 if test x
$gcc_cv_as != x
; then
21710 .cfi_escape 1, 2, 3, 4, 5
21711 .cfi_endproc' > conftest.s
21712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21714 (eval $ac_try) 2>&5
21716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21717 test $ac_status = 0; }; }
21721 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21722 # read-only and read-write sections, we need to make sure that the
21723 # assembler used emits read-write .eh_frame sections.
21724 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21725 if test "x$gcc_cv_objdump" != x
; then
21726 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21727 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21728 gcc_cv_as_cfi_directive
=no
21731 i?
86-*-solaris2.1
[0-9]*)
21732 # On Solaris/x86, make sure that GCC and gas agree on using
21733 # read-only .eh_frame sections for 64-bit.
21734 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21735 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21736 sed -e /.eh_frame
/!d
-e N | \
21737 grep READONLY
> /dev
/null
; then
21738 gcc_cv_as_cfi_directive
=yes
21740 gcc_cv_as_cfi_directive
=no
21744 gcc_cv_as_cfi_directive
=yes
21749 # no objdump, err on the side of caution
21750 gcc_cv_as_cfi_directive
=no
21753 gcc_cv_as_cfi_directive
=yes
21757 gcc_cv_as_cfi_directive
=yes
21761 echo "configure: failed program was" >&5
21764 rm -f conftest.o conftest.s
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21768 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21770 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21772 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21773 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21774 $as_echo_n "(cached) " >&6
21776 gcc_cv_as_cfi_advance_working
=no
21777 if test x
$gcc_cv_as != x
; then
21780 .cfi_adjust_cfa_offset 64
21782 .cfi_adjust_cfa_offset 128
21783 .cfi_endproc' > conftest.s
21784 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21786 (eval $ac_try) 2>&5
21788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21789 test $ac_status = 0; }; }
21792 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
21793 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21794 gcc_cv_as_cfi_advance_working
=yes
21798 echo "configure: failed program was" >&5
21801 rm -f conftest.o conftest.s
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21805 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21808 # no objdump, err on the side of caution
21809 gcc_cv_as_cfi_advance_working
=no
21813 cat >>confdefs.h
<<_ACEOF
21814 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21815 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21821 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21822 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21825 gcc_cv_as_cfi_personality_directive
=no
21826 if test x
$gcc_cv_as != x
; then
21829 .cfi_personality 0, symbol
21830 .cfi_endproc' > conftest.s
21831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833 (eval $ac_try) 2>&5
21835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836 test $ac_status = 0; }; }
21838 gcc_cv_as_cfi_personality_directive
=yes
21840 echo "configure: failed program was" >&5
21843 rm -f conftest.o conftest.s
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21847 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21850 cat >>confdefs.h
<<_ACEOF
21851 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21852 then echo 1; else echo 0; fi`
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21857 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21858 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21861 gcc_cv_as_cfi_sections_directive
=no
21862 if test x
$gcc_cv_as != x
; then
21864 .cfi_sections .debug_frame, .eh_frame
21866 .cfi_endproc' > conftest.s
21867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21869 (eval $ac_try) 2>&5
21871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21872 test $ac_status = 0; }; }
21875 win32 | pe | cygwin
* | mingw32
* | uwin
*)
21876 # Need to check that we generated the correct relocation for the
21877 # .debug_frame section. This was fixed for binutils 2.21.
21878 gcc_cv_as_cfi_sections_directive
=no
21879 if test "x$gcc_cv_objdump" != x
; then
21880 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
21881 grep secrel
> /dev
/null
; then
21882 gcc_cv_as_cfi_sections_directive
=yes
21887 gcc_cv_as_cfi_sections_directive
=yes
21891 echo "configure: failed program was" >&5
21894 rm -f conftest.o conftest.s
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21898 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21902 cat >>confdefs.h
<<_ACEOF
21903 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21904 then echo 1; else echo 0; fi`
21908 # GAS versions up to and including 2.11.0 may mis-optimize
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21911 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21912 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21915 gcc_cv_as_eh_frame
=no
21916 if test $in_tree_gas = yes; then
21917 if test $in_tree_gas_is_elf = yes \
21918 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21919 then gcc_cv_as_eh_frame
=yes
21921 elif test x
$gcc_cv_as != x
; then
21928 .section .eh_frame,"aw",@progbits
21930 .4byte .LECIE1-.LSCIE1
21944 .4byte .LEFDE1-.LASFDE1
21946 .4byte .LASFDE1-__FRAME_BEGIN__
21953 .LEFDE1:' > conftest.s
21954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956 (eval $ac_try) 2>&5
21958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959 test $ac_status = 0; }; }
21961 cat > conftest.lit
<<EOF
21962 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21963 0010 01000000 12000000 18000000 00000000 ................
21964 0020 08000000 04080000 0044 .........D
21966 cat > conftest.big
<<EOF
21967 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21968 0010 00000001 00000012 00000018 00000000 ................
21969 0020 00000008 04000000 0844 .........D
21971 # If the assembler didn't choke, and we can objdump,
21972 # and we got the correct data, then succeed.
21973 # The text in the here-document typically retains its unix-style line
21974 # endings, while the output of objdump will use host line endings.
21975 # Therefore, use diff -b for the comparisons.
21976 if test x
$gcc_cv_objdump != x \
21977 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21978 |
tail -3 > conftest.got \
21979 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21980 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21982 gcc_cv_as_eh_frame
=yes
21983 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21985 (eval $ac_try) 2>&5
21987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988 test $ac_status = 0; }; }; then
21989 gcc_cv_as_eh_frame
=buggy
21991 # Uh oh, what do we do now?
21992 gcc_cv_as_eh_frame
=no
21995 echo "configure: failed program was" >&5
21998 rm -f conftest.o conftest.s
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22002 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22005 if test $gcc_cv_as_eh_frame = buggy
; then
22007 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22012 $as_echo_n "checking assembler for section merging support... " >&6; }
22013 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22014 $as_echo_n "(cached) " >&6
22016 gcc_cv_as_shf_merge
=no
22017 if test $in_tree_gas = yes; then
22018 if test $in_tree_gas_is_elf = yes \
22019 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22020 then gcc_cv_as_shf_merge
=yes
22022 elif test x
$gcc_cv_as != x
; then
22023 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22026 (eval $ac_try) 2>&5
22028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22029 test $ac_status = 0; }; }
22031 gcc_cv_as_shf_merge
=yes
22033 echo "configure: failed program was" >&5
22036 rm -f conftest.o conftest.s
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22040 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22042 if test $gcc_cv_as_shf_merge = no
; then
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22044 $as_echo_n "checking assembler for section merging support... " >&6; }
22045 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22046 $as_echo_n "(cached) " >&6
22048 gcc_cv_as_shf_merge
=no
22049 if test $in_tree_gas = yes; then
22050 if test $in_tree_gas_is_elf = yes \
22051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22052 then gcc_cv_as_shf_merge
=yes
22054 elif test x
$gcc_cv_as != x
; then
22055 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; }
22063 gcc_cv_as_shf_merge
=yes
22065 echo "configure: failed program was" >&5
22068 rm -f conftest.o conftest.s
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22072 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22076 cat >>confdefs.h
<<_ACEOF
22077 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22082 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22083 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22084 $as_echo_n "(cached) " >&6
22086 gcc_cv_as_comdat_group
=no
22087 if test $in_tree_gas = yes; then
22088 if test $in_tree_gas_is_elf = yes \
22089 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22090 then gcc_cv_as_comdat_group
=yes
22092 elif test x
$gcc_cv_as != x
; then
22093 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22096 (eval $ac_try) 2>&5
22098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099 test $ac_status = 0; }; }
22101 gcc_cv_as_comdat_group
=yes
22103 echo "configure: failed program was" >&5
22106 rm -f conftest.o conftest.s
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22110 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22112 if test $gcc_cv_as_comdat_group = yes; then
22113 gcc_cv_as_comdat_group_percent
=no
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22116 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22117 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22118 $as_echo_n "(cached) " >&6
22120 gcc_cv_as_comdat_group_percent
=no
22121 if test $in_tree_gas = yes; then
22122 if test $in_tree_gas_is_elf = yes \
22123 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22124 then gcc_cv_as_comdat_group_percent
=yes
22126 elif test x
$gcc_cv_as != x
; then
22127 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22130 (eval $ac_try) 2>&5
22132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22133 test $ac_status = 0; }; }
22135 gcc_cv_as_comdat_group_percent
=yes
22137 echo "configure: failed program was" >&5
22140 rm -f conftest.o conftest.s
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22144 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22147 if test x
"$ld_is_gold" = xyes
; then
22149 elif test $in_tree_ld = yes ; then
22151 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 \
22152 && test $in_tree_ld_is_elf = yes; then
22155 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22157 if test 0"$ld_date" -lt 20050308; then
22158 if test -n "$ld_date"; then
22159 # If there was date string, but was earlier than 2005-03-08, fail
22161 elif test "$ld_vers_major" -lt 2; then
22163 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22168 case "${target}" in
22169 *-*-solaris2.1
[1-9]*)
22170 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22171 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22174 # FIXME: Maybe need to refine later when COMDAT group support with
22175 # Sun as is implemented.
22176 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
22183 # Assume linkers other than GNU ld don't support COMDAT group.
22188 # Allow overriding the automatic COMDAT group tests above.
22189 # Check whether --enable-comdat was given.
22190 if test "${enable_comdat+set}" = set; then :
22191 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22194 if test $comdat_group = no
; then
22195 gcc_cv_as_comdat_group
=no
22196 gcc_cv_as_comdat_group_percent
=no
22199 cat >>confdefs.h
<<_ACEOF
22200 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22205 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22206 if test "${gcc_cv_as_discriminator+set}" = set; then :
22207 $as_echo_n "(cached) " >&6
22209 gcc_cv_as_discriminator
=no
22210 if test $in_tree_gas = yes; then
22211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22212 then gcc_cv_as_discriminator
=yes
22214 elif test x
$gcc_cv_as != x
; then
22217 .loc 1 1 0 discriminator 1' > conftest.s
22218 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22220 (eval $ac_try) 2>&5
22222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22223 test $ac_status = 0; }; }
22225 gcc_cv_as_discriminator
=yes
22227 echo "configure: failed program was" >&5
22230 rm -f conftest.o conftest.s
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22234 $as_echo "$gcc_cv_as_discriminator" >&6; }
22235 if test $gcc_cv_as_discriminator = yes; then
22237 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22241 # Thread-local storage - the check is heavily parameterized.
22249 .section ".tdata","awT",@progbits
22252 ldq $27,__tls_get_addr($29) !literal!1
22253 lda $16,foo($29) !tlsgd!1
22254 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22255 ldq $27,__tls_get_addr($29) !literal!2
22256 lda $16,foo($29) !tlsldm!2
22257 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22258 ldq $1,foo($29) !gotdtprel
22259 ldah $2,foo($29) !dtprelhi
22260 lda $3,foo($2) !dtprello
22261 lda $4,foo($29) !dtprel
22262 ldq $1,foo($29) !gottprel
22263 ldah $2,foo($29) !tprelhi
22264 lda $3,foo($2) !tprello
22265 lda $4,foo($29) !tprel'
22268 tls_as_opt
=--fatal-warnings
22270 cris-
*-*|crisv32-
*-*)
22272 .section ".tdata","awT",@progbits
22279 tls_as_opt
=--fatal-warnings
22283 .section ".tdata","awT",@progbits
22286 call #gettlsoff(x)'
22295 .section ".tdata","awT",@progbits
22299 addil LT%foo-$tls_gdidx$,gp
22300 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22303 addil LT%foo-$tls_ldidx$,gp
22305 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22306 addil LR%foo-$tls_dtpoff$,%ret0
22307 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22309 addil LT%foo-$tls_ieoff$,gp
22310 ldw RT%foo-$tls_ieoff$(%r1),%t2
22313 addil LR%foo-$tls_leoff$,%t1
22314 ldo RR%foo-$tls_leoff$(%r1),%t2'
22317 tls_as_opt
=--fatal-warnings
22321 .section ".tdata","awT",%progbits
22324 .word foo(gottpoff)
22334 i
[34567]86-*-solaris2.
*)
22336 tga_func
=___tls_get_addr
22342 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22344 .section .tdata,"awt",@progbits'
22348 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22352 .section ".tdata","awT",@progbits'
22355 tls_as_opt
="--fatal-warnings"
22357 conftest_s
="$conftest_s
22361 leal foo@tlsgd(,%ebx,1), %eax
22362 leal foo@tlsldm(%ebx), %eax
22363 leal foo@dtpoff(%eax), %edx
22364 movl foo@gottpoff(%ebx), %eax
22365 subl foo@gottpoff(%ebx), %eax
22366 addl foo@gotntpoff(%ebx), %eax
22367 movl foo@indntpoff, %eax
22368 movl \$foo@tpoff, %eax
22369 subl \$foo@tpoff, %eax
22370 leal foo@ntpoff(%ecx), %eax"
22374 .section ".tdata","awT",@progbits
22378 leaq foo@TLSGD(%rip), %rdi
22379 leaq foo@TLSLD(%rip), %rdi
22380 leaq foo@DTPOFF(%rax), %rdx
22381 movq foo@GOTTPOFF(%rip), %rax
22382 movq $foo@TPOFF, %rax'
22385 tls_as_opt
=--fatal-warnings
22389 .section ".tdata","awT",@progbits
22392 addl r16 = @ltoff(@dtpmod(foo#)), gp
22393 addl r17 = @ltoff(@dtprel(foo#)), gp
22394 addl r18 = @ltoff(@tprel(foo#)), gp
22395 addl r19 = @dtprel(foo#), gp
22396 adds r21 = @dtprel(foo#), r13
22397 movl r23 = @dtprel(foo#)
22398 addl r20 = @tprel(foo#), gp
22399 adds r22 = @tprel(foo#), r13
22400 movl r24 = @tprel(foo#)'
22403 tls_as_opt
=--fatal-warnings
22407 .section .tdata,"awT",@progbits
22411 addiu $4, $28, %tlsgd(x)
22412 addiu $4, $28, %tlsldm(x)
22413 lui $4, %dtprel_hi(x)
22414 addiu $4, $4, %dtprel_lo(x)
22415 lw $4, %gottprel(x)($28)
22416 lui $4, %tprel_hi(x)
22417 addiu $4, $4, %tprel_lo(x)'
22420 tls_as_opt
='-32 --fatal-warnings'
22424 .section .tdata,"awT",@progbits
22429 move.l x@TLSGD(%a5),%a0
22430 move.l x@TLSLDM(%a5),%a0
22431 move.l x@TLSLDO(%a5),%a0
22432 move.l x@TLSIE(%a5),%a0
22433 move.l x@TLSLE(%a5),%a0'
22436 tls_as_opt
='--fatal-warnings'
22440 .section ".tdata","awT",@progbits
22448 addi 3,31,ld0@got@tlsgd
22450 addi 3,31,x1@got@tlsld
22453 addis 9,3,x2@dtprel@ha
22454 addi 9,9,x2@dtprel@l
22455 lwz 9,x3@got@tprel(31)
22458 addis 9,2,x2@tprel@ha
22459 addi 9,9,x2@tprel@l'
22462 tls_as_opt
="-a32 --fatal-warnings"
22466 .section ".tdata","awT",@progbits
22474 addi 3,2,ld0@got@tlsgd
22480 addi 3,2,x1@got@tlsld
22486 addis 9,3,x2@dtprel@ha
22487 addi 9,9,x2@dtprel@l
22490 ld 9,x3@got@dtprel(2)
22496 tls_as_opt
="-a64 --fatal-warnings"
22500 .section ".tdata","awT",@progbits
22507 .long foo@GOTNTPOFF
22508 .long foo@INDNTPOFF
22509 l %r1,foo@GOTNTPOFF(%r12)
22510 l %r1,0(%r1):tls_load:foo
22511 bas %r14,0(%r1,%r13):tls_gdcall:foo
22512 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22515 tls_as_opt
="-m31 --fatal-warnings"
22519 .section ".tdata","awT",@progbits
22526 .quad foo@GOTNTPOFF
22527 lg %r1,foo@GOTNTPOFF(%r12)
22528 larl %r1,foo@INDNTPOFF
22529 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22530 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22533 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22535 sh-
*-* | sh
[34]-*-*)
22537 .section ".tdata","awT",@progbits
22547 tls_as_opt
=--fatal-warnings
22551 sparc
*-sun-solaris2.
*)
22553 tga_func
=__tls_get_addr
22559 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22561 .section ".tdata",#alloc,#write,#tls'
22566 .section ".tdata","awT",@progbits'
22569 tls_as_opt
="-32 --fatal-warnings"
22571 conftest_s
="$conftest_s
22574 sethi %tgd_hi22(foo), %o0
22575 add %o0, %tgd_lo10(foo), %o1
22576 add %l7, %o1, %o0, %tgd_add(foo)
22577 call __tls_get_addr, %tgd_call(foo)
22578 sethi %tldm_hi22(foo), %l1
22579 add %l1, %tldm_lo10(foo), %l2
22580 add %l7, %l2, %o0, %tldm_add(foo)
22581 call __tls_get_addr, %tldm_call(foo)
22582 sethi %tldo_hix22(foo), %l3
22583 xor %l3, %tldo_lox10(foo), %l4
22584 add %o0, %l4, %l5, %tldo_add(foo)
22585 sethi %tie_hi22(foo), %o3
22586 add %o3, %tie_lo10(foo), %o3
22587 ld [%l7 + %o3], %o2, %tie_ld(foo)
22588 add %g7, %o2, %o4, %tie_add(foo)
22589 sethi %tle_hix22(foo), %l1
22590 xor %l1, %tle_lox10(foo), %o5
22591 ld [%g7 + %o5], %o1"
22595 .section ".tdata","awT",@progbits
22598 movi a8, foo@TLSFUNC
22599 movi a10, foo@TLSARG
22600 callx8.tls a8, foo@TLSCALL'
22606 if test "x$enable_tls" = xno
; then
22607 : # TLS explicitly disabled.
22608 elif test "x$enable_tls" = xyes
; then
22609 set_have_as_tls
=yes # TLS explicitly enabled.
22610 elif test -z "$tls_first_major"; then
22611 : # If we don't have a check, assume no support.
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22614 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22615 if test "${gcc_cv_as_tls+set}" = set; then :
22616 $as_echo_n "(cached) " >&6
22619 if test $in_tree_gas = yes; then
22620 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22621 then gcc_cv_as_tls
=yes
22623 elif test x
$gcc_cv_as != x
; then
22624 echo "$conftest_s" > conftest.s
22625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22627 (eval $ac_try) 2>&5
22629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22630 test $ac_status = 0; }; }
22634 echo "configure: failed program was" >&5
22637 rm -f conftest.o conftest.s
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22641 $as_echo "$gcc_cv_as_tls" >&6; }
22642 if test $gcc_cv_as_tls = yes; then
22643 set_have_as_tls
=yes
22648 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22649 # with TLS support are in use, native TLS cannot work.
22653 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22654 # gld with TLS support are in use, native TLS cannot work.
22657 # TLS was introduced in the Solaris 9 FCS release and backported to
22658 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22659 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22660 # ld and GCC don't support any longer.
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22663 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22665 # Check ld and ld.so.1 TLS support.
22666 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22667 # Assume all interesting versions of GNU ld have TLS support.
22668 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22672 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22674 min_tls_ld_vers_minor
=280
22676 # Solaris 8/SPARC ld has TLS support since version 1.272.
22677 sparc
*-*-solaris2.8
)
22678 min_tls_ld_vers_minor
=272
22680 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22682 min_tls_ld_vers_minor
=374
22684 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22685 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
22686 min_tls_ld_vers_minor
=343
22689 if test "$ld_vers_major" -gt 1 || \
22690 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22697 $as_echo "$ld_tls_support" >&6; }
22700 save_LDFLAGS
="$LDFLAGS"
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22705 $as_echo_n "checking alternate thread library... " >&6; }
22707 # TLS support was backported to Solaris 8 patches, but only lives in
22708 # the alternate thread library which became the default in Solaris 9.
22709 # We want to always use that, irrespective of TLS support.
22711 # Take multilib subdir into account. There's no spec to handle
22712 # this. The 64 symlink exists since Solaris 8.
22713 lwp_dir
=/usr
/lib
/lwp
22714 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22715 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
22722 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22724 cat >>confdefs.h
<<_ACEOF
22725 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22729 $as_echo "$lwp_dir" >&6; }
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22732 $as_echo_n "checking library containing $tga_func... " >&6; }
22733 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22734 # (32-bit x86) only lived in libthread, so check for that. Keep
22735 # set_have_as_tls if found, disable if not.
22736 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22738 $as_echo_n "checking for library containing $tga_func... " >&6; }
22739 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22740 $as_echo_n "(cached) " >&6
22742 ac_func_search_save_LIBS
=$LIBS
22743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22744 /* end confdefs.h. */
22746 /* Override any GCC internal prototype to avoid an error.
22747 Use char because int might match the return type of a GCC
22748 builtin and then its argument prototype would still apply. */
22756 return $tga_func ();
22761 for ac_lib
in '' thread
; do
22762 if test -z "$ac_lib"; then
22763 ac_res
="none required"
22766 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22768 if ac_fn_c_try_link
"$LINENO"; then :
22769 eval "$as_ac_Search=\$ac_res"
22771 rm -f core conftest.err conftest.
$ac_objext \
22773 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22777 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22780 eval "$as_ac_Search=no"
22782 rm conftest.
$ac_ext
22783 LIBS
=$ac_func_search_save_LIBS
22785 eval ac_res
=\$
$as_ac_Search
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22787 $as_echo "$ac_res" >&6; }
22788 eval ac_res
=\$
$as_ac_Search
22789 if test "$ac_res" != no
; then :
22790 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22796 # Clear LIBS if we cannot support TLS.
22797 if test $set_have_as_tls = no
; then
22800 # Always define LIB_TLS_SPEC, even without TLS support.
22802 cat >>confdefs.h
<<_ACEOF
22803 #define LIB_TLS_SPEC "$LIBS"
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22807 $as_echo "$LIBS" >&6; }
22810 LDFLAGS
="$save_LDFLAGS"
22813 if test $set_have_as_tls = yes ; then
22815 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22819 # Target-specific assembler checks.
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22822 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22823 gcc_cv_ld_static_dynamic
=no
22824 if test $in_tree_ld = yes ; then
22825 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
22826 gcc_cv_ld_static_dynamic
=yes
22828 elif test x
$gcc_cv_ld != x
; then
22829 # Check if linker supports -Bstatic/-Bdynamic option
22830 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22831 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22832 gcc_cv_ld_static_dynamic
=yes
22835 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22837 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22841 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22843 if test x
"$demangler_in_ld" = xyes
; then
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22845 $as_echo_n "checking linker --demangle support... " >&6; }
22846 gcc_cv_ld_demangle
=no
22847 if test $in_tree_ld = yes; then
22848 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 \
22849 gcc_cv_ld_demangle
=yes
22851 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22852 # Check if the GNU linker supports --demangle option
22853 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22854 gcc_cv_ld_demangle
=yes
22857 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22859 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22863 $as_echo "$gcc_cv_ld_demangle" >&6; }
22867 # All TARGET_ABI_OSF targets.
22868 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22870 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22871 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22872 $as_echo_n "(cached) " >&6
22874 gcc_cv_as_alpha_explicit_relocs
=no
22875 if test $in_tree_gas = yes; then
22876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22877 then gcc_cv_as_alpha_explicit_relocs
=yes
22879 elif test x
$gcc_cv_as != x
; then
22880 echo ' .set nomacro
22882 extbl $3, $2, $3 !lituse_bytoff!1
22883 ldq $2, a($29) !literal!1
22884 ldq $4, b($29) !literal!2
22885 ldq_u $3, 0($2) !lituse_base!1
22886 ldq $27, f($29) !literal!5
22887 jsr $26, ($27), f !lituse_jsr!5
22888 ldah $29, 0($26) !gpdisp!3
22889 lda $0, c($29) !gprel
22890 ldah $1, d($29) !gprelhigh
22891 lda $1, d($1) !gprellow
22892 lda $29, 0($29) !gpdisp!3' > conftest.s
22893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895 (eval $ac_try) 2>&5
22897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898 test $ac_status = 0; }; }
22900 gcc_cv_as_alpha_explicit_relocs
=yes
22902 echo "configure: failed program was" >&5
22905 rm -f conftest.o conftest.s
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22909 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22910 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22912 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22916 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22917 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22918 $as_echo_n "(cached) " >&6
22920 gcc_cv_as_alpha_jsrdirect_relocs
=no
22921 if test $in_tree_gas = yes; then
22922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22923 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22925 elif test x
$gcc_cv_as != x
; then
22926 echo ' .set nomacro
22928 ldq $27, a($29) !literal!1
22929 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22932 (eval $ac_try) 2>&5
22934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22935 test $ac_status = 0; }; }
22937 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22939 echo "configure: failed program was" >&5
22942 rm -f conftest.o conftest.s
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22946 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22947 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22949 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22956 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22957 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22958 $as_echo_n "(cached) " >&6
22960 gcc_cv_as_cris_no_mul_bug
=no
22961 if test $in_tree_gas = yes; then
22962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22963 then gcc_cv_as_cris_no_mul_bug
=yes
22965 elif test x
$gcc_cv_as != x
; then
22966 echo '.text' > conftest.s
22967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22969 (eval $ac_try) 2>&5
22971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22972 test $ac_status = 0; }; }
22974 gcc_cv_as_cris_no_mul_bug
=yes
22976 echo "configure: failed program was" >&5
22979 rm -f conftest.o conftest.s
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22983 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22984 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22986 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22993 $as_echo_n "checking assembler for .register... " >&6; }
22994 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22995 $as_echo_n "(cached) " >&6
22997 gcc_cv_as_sparc_register_op
=no
22998 if test x
$gcc_cv_as != x
; then
22999 echo '.register %g2, #scratch' > conftest.s
23000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }
23007 gcc_cv_as_sparc_register_op
=yes
23009 echo "configure: failed program was" >&5
23012 rm -f conftest.o conftest.s
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23016 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23017 if test $gcc_cv_as_sparc_register_op = yes; then
23019 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23024 $as_echo_n "checking assembler for -relax option... " >&6; }
23025 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23026 $as_echo_n "(cached) " >&6
23028 gcc_cv_as_sparc_relax
=no
23029 if test x
$gcc_cv_as != x
; then
23030 echo '.text' > conftest.s
23031 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23033 (eval $ac_try) 2>&5
23035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23036 test $ac_status = 0; }; }
23038 gcc_cv_as_sparc_relax
=yes
23040 echo "configure: failed program was" >&5
23043 rm -f conftest.o conftest.s
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23047 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23048 if test $gcc_cv_as_sparc_relax = yes; then
23050 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23055 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23056 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23057 $as_echo_n "(cached) " >&6
23059 gcc_cv_as_sparc_gotdata_op
=no
23060 if test x
$gcc_cv_as != x
; then
23065 sethi %gdop_hix22(foo), %g1
23066 xor %g1, %gdop_lox10(foo), %g1
23067 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23070 (eval $ac_try) 2>&5
23072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073 test $ac_status = 0; }; }
23075 if test x
$gcc_cv_ld != x \
23076 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23077 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
23078 if test x
$gcc_cv_objdump != x
; then
23079 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23080 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23081 gcc_cv_as_sparc_gotdata_op
=no
23083 gcc_cv_as_sparc_gotdata_op
=yes
23087 gcc_cv_as_sparc_gotdata_op
=yes
23092 echo "configure: failed program was" >&5
23095 rm -f conftest.o conftest.s
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23099 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23100 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23102 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23107 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23108 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23109 $as_echo_n "(cached) " >&6
23111 gcc_cv_as_sparc_ua_pcrel
=no
23112 if test x
$gcc_cv_as != x
; then
23119 .uaword %r_disp32(foo)' > conftest.s
23120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23122 (eval $ac_try) 2>&5
23124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23125 test $ac_status = 0; }; }
23127 if test x
$gcc_cv_ld != x \
23128 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23129 gcc_cv_as_sparc_ua_pcrel
=yes
23133 echo "configure: failed program was" >&5
23136 rm -f conftest.o conftest.s
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23140 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23141 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23143 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23147 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23148 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23149 $as_echo_n "(cached) " >&6
23151 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23152 if test x
$gcc_cv_as != x
; then
23156 .uaword %r_disp32(foo)
23157 .byte 0x32, 0x33, 0x34
23161 .skip 4' > conftest.s
23162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23164 (eval $ac_try) 2>&5
23166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23167 test $ac_status = 0; }; }
23169 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23170 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23171 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23172 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23173 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23174 |
grep 'DISP32' > /dev
/null
2>&1; then
23177 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23182 echo "configure: failed program was" >&5
23185 rm -f conftest.o conftest.s
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23189 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23190 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23192 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23196 fi # unaligned pcrel relocs
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23199 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23200 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23201 $as_echo_n "(cached) " >&6
23203 gcc_cv_as_sparc_offsetable_lo10
=no
23204 if test x
$gcc_cv_as != x
; then
23206 or %g1, %lo(ab) + 12, %g1
23207 or %g1, %lo(ab + 12), %g1' > conftest.s
23208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23210 (eval $ac_try) 2>&5
23212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23213 test $ac_status = 0; }; }
23215 if test x
$gcc_cv_objdump != x \
23216 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23217 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23218 gcc_cv_as_sparc_offsetable_lo10
=yes
23221 echo "configure: failed program was" >&5
23224 rm -f conftest.o conftest.s
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23228 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23229 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23231 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23236 i
[34567]86-*-* | x86_64-
*-*)
23239 # Full C++ conformance when using a shared libstdc++-v3 requires some
23240 # support from the Cygwin DLL, which in more recent versions exports
23241 # wrappers to aid in interposing and redirecting operators new, delete,
23242 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23243 # are configuring for a version of Cygwin that exports the wrappers.
23244 if test x
$host = x
$target; then
23245 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23246 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23247 gcc_ac_cygwin_dll_wrappers
=yes
23249 gcc_ac_cygwin_dll_wrappers
=no
23253 # Can't check presence of libc functions during cross-compile, so
23254 # we just have to assume we're building for an up-to-date target.
23255 gcc_ac_cygwin_dll_wrappers
=yes
23258 cat >>confdefs.h
<<_ACEOF
23259 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23264 cygwin
* | pe | mingw32
*)
23265 # Recent binutils allows the three-operand form of ".comm" on PE. This
23266 # definition is used unconditionally to initialise the default state of
23267 # the target option variable that governs usage of the feature.
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23269 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23270 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23273 gcc_cv_as_comm_has_align
=no
23274 if test $in_tree_gas = yes; then
23275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23276 then gcc_cv_as_comm_has_align
=yes
23278 elif test x
$gcc_cv_as != x
; then
23279 echo '.comm foo,1,32' > conftest.s
23280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23282 (eval $ac_try) 2>&5
23284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23285 test $ac_status = 0; }; }
23287 gcc_cv_as_comm_has_align
=yes
23289 echo "configure: failed program was" >&5
23292 rm -f conftest.o conftest.s
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23296 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23299 cat >>confdefs.h
<<_ACEOF
23300 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23303 # Used for DWARF 2 in PE
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23305 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23306 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23307 $as_echo_n "(cached) " >&6
23309 gcc_cv_as_ix86_pe_secrel32
=no
23310 if test $in_tree_gas = yes; then
23311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23312 then gcc_cv_as_ix86_pe_secrel32
=yes
23314 elif test x
$gcc_cv_as != x
; then
23318 .secrel32 foo' > conftest.s
23319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23321 (eval $ac_try) 2>&5
23323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23324 test $ac_status = 0; }; }
23326 if test x
$gcc_cv_ld != x \
23327 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
23328 gcc_cv_as_ix86_pe_secrel32
=yes
23332 echo "configure: failed program was" >&5
23335 rm -f conftest.o conftest.s
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23339 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23340 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23342 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23345 # Test if the assembler supports the extended form of the .section
23346 # directive that specifies section alignment. LTO support uses this,
23347 # but normally only after installation, so we warn but don't fail the
23348 # configure if LTO is enabled but the assembler does not support it.
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23350 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23351 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23352 $as_echo_n "(cached) " >&6
23354 gcc_cv_as_section_has_align
=no
23355 if test $in_tree_gas = yes; then
23356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23357 then gcc_cv_as_section_has_align
=yes
23359 elif test x
$gcc_cv_as != x
; then
23360 echo '.section lto_test,"dr0"' > conftest.s
23361 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23363 (eval $ac_try) 2>&5
23365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23366 test $ac_status = 0; }; }
23368 gcc_cv_as_section_has_align
=yes
23370 echo "configure: failed program was" >&5
23373 rm -f conftest.o conftest.s
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23377 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23379 if test x
$gcc_cv_as_section_has_align != xyes
; then
23380 case ",$enable_languages," in
23382 { $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
23383 $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;}
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23391 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23392 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23393 $as_echo_n "(cached) " >&6
23395 gcc_cv_as_ix86_filds
=no
23396 if test x
$gcc_cv_as != x
; then
23397 echo 'filds mem; fists mem' > conftest.s
23398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23400 (eval $ac_try) 2>&5
23402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23403 test $ac_status = 0; }; }
23405 gcc_cv_as_ix86_filds
=yes
23407 echo "configure: failed program was" >&5
23410 rm -f conftest.o conftest.s
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23414 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23415 if test $gcc_cv_as_ix86_filds = yes; then
23417 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23422 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23423 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23424 $as_echo_n "(cached) " >&6
23426 gcc_cv_as_ix86_fildq
=no
23427 if test x
$gcc_cv_as != x
; then
23428 echo 'fildq mem; fistpq mem' > conftest.s
23429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23431 (eval $ac_try) 2>&5
23433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23434 test $ac_status = 0; }; }
23436 gcc_cv_as_ix86_fildq
=yes
23438 echo "configure: failed program was" >&5
23441 rm -f conftest.o conftest.s
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23445 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23446 if test $gcc_cv_as_ix86_fildq = yes; then
23448 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23453 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23454 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23457 gcc_cv_as_ix86_cmov_sun_syntax
=no
23458 if test x
$gcc_cv_as != x
; then
23459 echo 'cmovl.l %edx, %eax' > conftest.s
23460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23462 (eval $ac_try) 2>&5
23464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23465 test $ac_status = 0; }; }
23467 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23469 echo "configure: failed program was" >&5
23472 rm -f conftest.o conftest.s
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23476 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23477 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23479 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23484 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23485 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23486 $as_echo_n "(cached) " >&6
23488 gcc_cv_as_ix86_ffreep
=no
23489 if test x
$gcc_cv_as != x
; then
23490 echo 'ffreep %st(1)' > conftest.s
23491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23493 (eval $ac_try) 2>&5
23495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23496 test $ac_status = 0; }; }
23498 gcc_cv_as_ix86_ffreep
=yes
23500 echo "configure: failed program was" >&5
23503 rm -f conftest.o conftest.s
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23507 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23508 if test $gcc_cv_as_ix86_ffreep = yes; then
23510 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23515 $as_echo_n "checking assembler for .quad directive... " >&6; }
23516 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
23519 gcc_cv_as_ix86_quad
=no
23520 if test x
$gcc_cv_as != x
; then
23521 echo '.quad 0' > conftest.s
23522 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23524 (eval $ac_try) 2>&5
23526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527 test $ac_status = 0; }; }
23529 gcc_cv_as_ix86_quad
=yes
23531 echo "configure: failed program was" >&5
23534 rm -f conftest.o conftest.s
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23538 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23539 if test $gcc_cv_as_ix86_quad = yes; then
23541 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23546 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23547 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23550 gcc_cv_as_ix86_sahf
=no
23551 if test x
$gcc_cv_as != x
; then
23554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23556 (eval $ac_try) 2>&5
23558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23559 test $ac_status = 0; }; }
23561 gcc_cv_as_ix86_sahf
=yes
23563 echo "configure: failed program was" >&5
23566 rm -f conftest.o conftest.s
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23570 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23571 if test $gcc_cv_as_ix86_sahf = yes; then
23573 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23578 $as_echo_n "checking assembler for swap suffix... " >&6; }
23579 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23582 gcc_cv_as_ix86_swap
=no
23583 if test x
$gcc_cv_as != x
; then
23584 echo 'movl.s %esp, %ebp' > conftest.s
23585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23587 (eval $ac_try) 2>&5
23589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23590 test $ac_status = 0; }; }
23592 gcc_cv_as_ix86_swap
=yes
23594 echo "configure: failed program was" >&5
23597 rm -f conftest.o conftest.s
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23601 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23602 if test $gcc_cv_as_ix86_swap = yes; then
23604 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23609 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23610 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23613 gcc_cv_as_ix86_diff_sect_delta
=no
23614 if test x
$gcc_cv_as != x
; then
23615 echo '.section .rodata
23621 .L2: nop' > conftest.s
23622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23624 (eval $ac_try) 2>&5
23626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23627 test $ac_status = 0; }; }
23629 gcc_cv_as_ix86_diff_sect_delta
=yes
23631 echo "configure: failed program was" >&5
23634 rm -f conftest.o conftest.s
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23638 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23639 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23641 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23645 # These two are used unconditionally by i386.[ch]; it is to be defined
23646 # to 1 if the feature is present, 0 otherwise.
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23648 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23649 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23652 gcc_cv_as_ix86_gotoff_in_data
=no
23653 if test $in_tree_gas = yes; then
23654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23655 then gcc_cv_as_ix86_gotoff_in_data
=yes
23657 elif test x
$gcc_cv_as != x
; then
23662 .long .L0@GOTOFF' > conftest.s
23663 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23665 (eval $ac_try) 2>&5
23667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23668 test $ac_status = 0; }; }
23670 gcc_cv_as_ix86_gotoff_in_data
=yes
23672 echo "configure: failed program was" >&5
23675 rm -f conftest.o conftest.s
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23679 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23682 cat >>confdefs.h
<<_ACEOF
23683 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23688 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23689 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23690 $as_echo_n "(cached) " >&6
23692 gcc_cv_as_ix86_rep_lock_prefix
=no
23693 if test x
$gcc_cv_as != x
; then
23695 lock addl %edi, (%eax,%esi)
23696 lock orl $0, (%esp)' > conftest.s
23697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23699 (eval $ac_try) 2>&5
23701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23702 test $ac_status = 0; }; }
23704 gcc_cv_as_ix86_rep_lock_prefix
=yes
23706 echo "configure: failed program was" >&5
23709 rm -f conftest.o conftest.s
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23713 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23714 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23716 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23724 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23725 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23726 $as_echo_n "(cached) " >&6
23728 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23729 if test $in_tree_gas = yes; then
23730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23731 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23733 elif test x
$gcc_cv_as != x
; then
23735 addl r15 = @ltoffx(x#), gp
23737 ld8.mov r16 = [r15], x#' > conftest.s
23738 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23740 (eval $ac_try) 2>&5
23742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23743 test $ac_status = 0; }; }
23745 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23747 echo "configure: failed program was" >&5
23750 rm -f conftest.o conftest.s
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23754 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23755 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23757 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23765 *-*-aix*) conftest_s
=' .machine "pwr5"
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23770 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23771 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23772 $as_echo_n "(cached) " >&6
23774 gcc_cv_as_machine_directive
=no
23775 if test x
$gcc_cv_as != x
; then
23776 echo ' .machine ppc7400' > conftest.s
23777 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23779 (eval $ac_try) 2>&5
23781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23782 test $ac_status = 0; }; }
23784 gcc_cv_as_machine_directive
=yes
23786 echo "configure: failed program was" >&5
23789 rm -f conftest.o conftest.s
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23793 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23795 if test x
$gcc_cv_as_machine_directive != xyes
; then
23796 echo "*** This target requires an assembler supporting \".machine\"" >&2
23797 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23798 test x
$build = x
$target && exit 1
23802 *) conftest_s
=' .machine power4
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23808 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23809 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23812 gcc_cv_as_powerpc_mfcrf
=no
23813 if test $in_tree_gas = yes; then
23814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23815 then gcc_cv_as_powerpc_mfcrf
=yes
23817 elif test x
$gcc_cv_as != x
; then
23818 echo "$conftest_s" > conftest.s
23819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23821 (eval $ac_try) 2>&5
23823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23824 test $ac_status = 0; }; }
23826 gcc_cv_as_powerpc_mfcrf
=yes
23828 echo "configure: failed program was" >&5
23831 rm -f conftest.o conftest.s
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23835 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23836 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23838 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23843 *-*-aix*) conftest_s
=' .machine "pwr5"
23846 *) conftest_s
=' .machine power5
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23852 $as_echo_n "checking assembler for popcntb support... " >&6; }
23853 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23856 gcc_cv_as_powerpc_popcntb
=no
23857 if test $in_tree_gas = yes; then
23858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23859 then gcc_cv_as_powerpc_popcntb
=yes
23861 elif test x
$gcc_cv_as != x
; then
23862 echo "$conftest_s" > conftest.s
23863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23870 gcc_cv_as_powerpc_popcntb
=yes
23872 echo "configure: failed program was" >&5
23875 rm -f conftest.o conftest.s
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23879 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23880 if test $gcc_cv_as_powerpc_popcntb = yes; then
23882 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23887 *-*-aix*) conftest_s
=' .machine "pwr5x"
23890 *) conftest_s
=' .machine power5
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23896 $as_echo_n "checking assembler for fp round support... " >&6; }
23897 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23898 $as_echo_n "(cached) " >&6
23900 gcc_cv_as_powerpc_fprnd
=no
23901 if test $in_tree_gas = yes; then
23902 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23903 then gcc_cv_as_powerpc_fprnd
=yes
23905 elif test x
$gcc_cv_as != x
; then
23906 echo "$conftest_s" > conftest.s
23907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23914 gcc_cv_as_powerpc_fprnd
=yes
23916 echo "configure: failed program was" >&5
23919 rm -f conftest.o conftest.s
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23923 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23924 if test $gcc_cv_as_powerpc_fprnd = yes; then
23926 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23931 *-*-aix*) conftest_s
=' .machine "pwr6"
23934 *) conftest_s
=' .machine power6
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23940 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23941 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23942 $as_echo_n "(cached) " >&6
23944 gcc_cv_as_powerpc_mfpgpr
=no
23945 if test $in_tree_gas = yes; then
23946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23947 then gcc_cv_as_powerpc_mfpgpr
=yes
23949 elif test x
$gcc_cv_as != x
; then
23950 echo "$conftest_s" > conftest.s
23951 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23953 (eval $ac_try) 2>&5
23955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23956 test $ac_status = 0; }; }
23958 gcc_cv_as_powerpc_mfpgpr
=yes
23960 echo "configure: failed program was" >&5
23963 rm -f conftest.o conftest.s
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23967 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23968 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23970 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23975 *-*-aix*) conftest_s
=' .csect .text[PR]
23977 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23981 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23982 *) conftest_s
=' .text
23984 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23988 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23989 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23990 $as_echo_n "(cached) " >&6
23992 gcc_cv_as_powerpc_rel16
=no
23993 if test $in_tree_gas = yes; then
23994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23995 then gcc_cv_as_powerpc_rel16
=yes
23997 elif test x
$gcc_cv_as != x
; then
23998 echo "$conftest_s" > conftest.s
23999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24001 (eval $ac_try) 2>&5
24003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24004 test $ac_status = 0; }; }
24006 gcc_cv_as_powerpc_rel16
=yes
24008 echo "configure: failed program was" >&5
24011 rm -f conftest.o conftest.s
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24015 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24016 if test $gcc_cv_as_powerpc_rel16 = yes; then
24018 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24023 *-*-aix*) conftest_s
=' .machine "pwr6"
24026 *) conftest_s
=' .machine power6
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24032 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24033 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24034 $as_echo_n "(cached) " >&6
24036 gcc_cv_as_powerpc_cmpb
=no
24037 if test $in_tree_gas = yes; then
24038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24039 then gcc_cv_as_powerpc_cmpb
=yes
24041 elif test x
$gcc_cv_as != x
; then
24042 echo "$conftest_s" > conftest.s
24043 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24050 gcc_cv_as_powerpc_cmpb
=yes
24052 echo "configure: failed program was" >&5
24055 rm -f conftest.o conftest.s
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24059 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24060 if test $gcc_cv_as_powerpc_cmpb = yes; then
24062 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24067 *-*-aix*) conftest_s
=' .machine "pwr6"
24070 *) conftest_s
=' .machine power6
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24076 $as_echo_n "checking assembler for decimal float support... " >&6; }
24077 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24080 gcc_cv_as_powerpc_dfp
=no
24081 if test $in_tree_gas = yes; then
24082 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24083 then gcc_cv_as_powerpc_dfp
=yes
24085 elif test x
$gcc_cv_as != x
; then
24086 echo "$conftest_s" > conftest.s
24087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24094 gcc_cv_as_powerpc_dfp
=yes
24096 echo "configure: failed program was" >&5
24099 rm -f conftest.o conftest.s
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24103 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24104 if test $gcc_cv_as_powerpc_dfp = yes; then
24106 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24111 *-*-aix*) conftest_s
=' .machine "pwr7"
24114 *) conftest_s
=' .machine power7
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24120 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24121 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24122 $as_echo_n "(cached) " >&6
24124 gcc_cv_as_powerpc_vsx
=no
24125 if test $in_tree_gas = yes; then
24126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24127 then gcc_cv_as_powerpc_vsx
=yes
24129 elif test x
$gcc_cv_as != x
; then
24130 echo "$conftest_s" > conftest.s
24131 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24133 (eval $ac_try) 2>&5
24135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24136 test $ac_status = 0; }; }
24138 gcc_cv_as_powerpc_vsx
=yes
24140 echo "configure: failed program was" >&5
24143 rm -f conftest.o conftest.s
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24147 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24148 if test $gcc_cv_as_powerpc_vsx = yes; then
24150 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24155 *-*-aix*) conftest_s
=' .machine "pwr7"
24158 *) conftest_s
=' .machine power7
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24164 $as_echo_n "checking assembler for popcntd support... " >&6; }
24165 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24166 $as_echo_n "(cached) " >&6
24168 gcc_cv_as_powerpc_popcntd
=no
24169 if test $in_tree_gas = yes; then
24170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24171 then gcc_cv_as_powerpc_popcntd
=yes
24173 elif test x
$gcc_cv_as != x
; then
24174 echo "$conftest_s" > conftest.s
24175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24182 gcc_cv_as_powerpc_popcntd
=yes
24184 echo "configure: failed program was" >&5
24187 rm -f conftest.o conftest.s
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24191 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24192 if test $gcc_cv_as_powerpc_popcntd = yes; then
24194 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24199 *-*-aix*) conftest_s
=' .csect .text[PR]
24201 *) conftest_s
=' .text
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24206 $as_echo_n "checking assembler for lwsync support... " >&6; }
24207 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24208 $as_echo_n "(cached) " >&6
24210 gcc_cv_as_powerpc_lwsync
=no
24211 if test $in_tree_gas = yes; then
24212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24213 then gcc_cv_as_powerpc_lwsync
=yes
24215 elif test x
$gcc_cv_as != x
; then
24216 echo "$conftest_s" > conftest.s
24217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24219 (eval $ac_try) 2>&5
24221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24222 test $ac_status = 0; }; }
24224 gcc_cv_as_powerpc_lwsync
=yes
24226 echo "configure: failed program was" >&5
24229 rm -f conftest.o conftest.s
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24233 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24234 if test $gcc_cv_as_powerpc_lwsync = yes; then
24236 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24241 *-*-aix*) conftest_s
=' .machine "476"
24244 *) conftest_s
=' .machine "476"
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24250 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24251 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24254 gcc_cv_as_powerpc_dci
=no
24255 if test $in_tree_gas = yes; then
24256 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24257 then gcc_cv_as_powerpc_dci
=yes
24259 elif test x
$gcc_cv_as != x
; then
24260 echo "$conftest_s" > conftest.s
24261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24263 (eval $ac_try) 2>&5
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }; }
24268 gcc_cv_as_powerpc_dci
=yes
24270 echo "configure: failed program was" >&5
24273 rm -f conftest.o conftest.s
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24277 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24278 if test $gcc_cv_as_powerpc_dci = yes; then
24280 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24285 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24286 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24287 $as_echo_n "(cached) " >&6
24289 gcc_cv_as_powerpc_gnu_attribute
=no
24290 if test $in_tree_gas = yes; then
24291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24292 then gcc_cv_as_powerpc_gnu_attribute
=yes
24294 elif test x
$gcc_cv_as != x
; then
24295 echo '.gnu_attribute 4,1' > conftest.s
24296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24298 (eval $ac_try) 2>&5
24300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24301 test $ac_status = 0; }; }
24303 gcc_cv_as_powerpc_gnu_attribute
=yes
24305 echo "configure: failed program was" >&5
24308 rm -f conftest.o conftest.s
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24312 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24313 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24315 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24320 $as_echo_n "checking assembler for tls marker support... " >&6; }
24321 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24324 gcc_cv_as_powerpc_tls_markers
=no
24325 if test $in_tree_gas = yes; then
24326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24327 then gcc_cv_as_powerpc_tls_markers
=yes
24329 elif test x
$gcc_cv_as != x
; then
24330 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24333 (eval $ac_try) 2>&5
24335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24336 test $ac_status = 0; }; }
24338 gcc_cv_as_powerpc_tls_markers
=yes
24340 echo "configure: failed program was" >&5
24343 rm -f conftest.o conftest.s
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24347 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24348 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24350 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24357 $as_echo_n "checking assembler for .ref support... " >&6; }
24358 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24359 $as_echo_n "(cached) " >&6
24361 gcc_cv_as_aix_ref
=no
24362 if test $in_tree_gas = yes; then
24363 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24366 elif test x
$gcc_cv_as != x
; then
24367 echo ' .csect stuff[rw]
24373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24375 (eval $ac_try) 2>&5
24377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24378 test $ac_status = 0; }; }
24380 gcc_cv_as_aix_ref
=yes
24382 echo "configure: failed program was" >&5
24385 rm -f conftest.o conftest.s
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24389 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24390 if test $gcc_cv_as_aix_ref = yes; then
24392 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24401 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24402 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24403 $as_echo_n "(cached) " >&6
24405 gcc_cv_as_mips_explicit_relocs
=no
24406 if test $in_tree_gas = yes; then
24407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24408 then gcc_cv_as_mips_explicit_relocs
=yes
24410 elif test x
$gcc_cv_as != x
; then
24411 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24412 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24414 (eval $ac_try) 2>&5
24416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24417 test $ac_status = 0; }; }
24419 gcc_cv_as_mips_explicit_relocs
=yes
24421 echo "configure: failed program was" >&5
24424 rm -f conftest.o conftest.s
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24428 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24429 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24430 if test x
$target_cpu_default = x
24431 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24432 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24436 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24437 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24438 $as_echo_n "(cached) " >&6
24440 gcc_cv_as_mips_no_shared
=no
24441 if test $in_tree_gas = yes; then
24442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24443 then gcc_cv_as_mips_no_shared
=yes
24445 elif test x
$gcc_cv_as != x
; then
24446 echo 'nop' > conftest.s
24447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24449 (eval $ac_try) 2>&5
24451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24452 test $ac_status = 0; }; }
24454 gcc_cv_as_mips_no_shared
=yes
24456 echo "configure: failed program was" >&5
24459 rm -f conftest.o conftest.s
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24463 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24464 if test $gcc_cv_as_mips_no_shared = yes; then
24466 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24471 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24472 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24475 gcc_cv_as_mips_gnu_attribute
=no
24476 if test $in_tree_gas = yes; then
24477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24478 then gcc_cv_as_mips_gnu_attribute
=yes
24480 elif test x
$gcc_cv_as != x
; then
24481 echo '.gnu_attribute 4,1' > conftest.s
24482 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; }
24489 gcc_cv_as_mips_gnu_attribute
=yes
24491 echo "configure: failed program was" >&5
24494 rm -f conftest.o conftest.s
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24498 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24499 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24501 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24506 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24507 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24508 $as_echo_n "(cached) " >&6
24510 gcc_cv_as_mips_dtprelword
=no
24511 if test $in_tree_gas = yes; then
24512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24513 then gcc_cv_as_mips_dtprelword
=yes
24515 elif test x
$gcc_cv_as != x
; then
24516 echo '.section .tdata,"awT",@progbits
24520 .dtprelword x+0x8000' > conftest.s
24521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24523 (eval $ac_try) 2>&5
24525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24526 test $ac_status = 0; }; }
24528 gcc_cv_as_mips_dtprelword
=yes
24530 echo "configure: failed program was" >&5
24533 rm -f conftest.o conftest.s
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24537 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24538 if test $gcc_cv_as_mips_dtprelword = yes; then
24540 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24545 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24546 gcc_cv_as_ld_jalr_reloc
=no
24547 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24548 if test $in_tree_ld = yes ; then
24549 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 \
24550 && test $in_tree_ld_is_elf = yes; then
24551 gcc_cv_as_ld_jalr_reloc
=yes
24553 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24554 echo ' .ent x' > conftest.s
24555 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24556 echo ' ld $25,%call16(y)($28)' >> conftest.s
24557 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24558 echo '1: jalr $25' >> conftest.s
24559 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24560 echo '1: jalr $25' >> conftest.s
24561 echo ' .end x' >> conftest.s
24562 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24563 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24564 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
24565 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
24566 gcc_cv_as_ld_jalr_reloc
=yes
24572 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24573 if test x
$target_cpu_default = x
; then
24574 target_cpu_default
=MASK_RELAX_PIC_CALLS
24576 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24580 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24583 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24584 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24585 $as_echo_n "(cached) " >&6
24587 gcc_cv_ld_mips_personality_relaxation
=no
24588 if test $in_tree_ld = yes ; then
24589 if test "$gcc_cv_gld_major_version" -eq 2 \
24590 -a "$gcc_cv_gld_minor_version" -ge 21 \
24591 -o "$gcc_cv_gld_major_version" -gt 2; then
24592 gcc_cv_ld_mips_personality_relaxation
=yes
24594 elif test x
$gcc_cv_as != x \
24595 -a x
$gcc_cv_ld != x \
24596 -a x
$gcc_cv_readelf != x
; then
24597 cat > conftest.s
<<EOF
24599 .cfi_personality 0x80,indirect_ptr
24606 .section .data,"aw",@progbits
24610 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24611 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24612 if $gcc_cv_readelf -d conftest
2>&1 \
24613 |
grep TEXTREL
> /dev
/null
2>&1; then
24615 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24616 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24619 gcc_cv_ld_mips_personality_relaxation
=yes
24623 rm -f conftest.s conftest.o conftest
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24626 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24627 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24629 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24635 # Mips and HP-UX need the GNU assembler.
24636 # Linux on IA64 might be able to use the Intel assembler.
24639 mips
*-*-* |
*-*-hpux* )
24640 if test x
$gas_flag = xyes \
24641 ||
test x
"$host" != x
"$build" \
24642 ||
test ! -x "$gcc_cv_as" \
24643 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24646 echo "*** This configuration requires the GNU assembler" >&2
24652 # ??? Not all targets support dwarf2 debug_line, even within a version
24653 # of gas. Moreover, we need to emit a valid instruction to trigger any
24654 # info to the output file. So, as supported targets are added to gas 2.11,
24655 # add some instruction here to (also) show we expect this might work.
24656 # ??? Once 2.11 is released, probably need to add first known working
24657 # version to the per-target configury.
24658 case "$cpu_type" in
24659 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24660 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
24670 if test x
"$insn" != x
; then
24672 .file 1 \"conftest.s\"
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24676 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24677 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24680 gcc_cv_as_dwarf2_debug_line
=no
24681 if test $in_tree_gas = yes; then
24682 if test $in_tree_gas_is_elf = yes \
24683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24684 then gcc_cv_as_dwarf2_debug_line
=yes
24686 elif test x
$gcc_cv_as != x
; then
24687 echo "$conftest_s" > conftest.s
24688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24695 if test x
$gcc_cv_objdump != x \
24696 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24697 |
grep debug_line
> /dev
/null
2>&1; then
24698 gcc_cv_as_dwarf2_debug_line
=yes
24701 echo "configure: failed program was" >&5
24704 rm -f conftest.o conftest.s
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24708 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24711 # The .debug_line file table must be in the exact order that
24712 # we specified the files, since these indices are also used
24713 # by DW_AT_decl_file. Approximate this test by testing if
24714 # the assembler bitches if the same index is assigned twice.
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24716 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24717 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24718 $as_echo_n "(cached) " >&6
24720 gcc_cv_as_dwarf2_file_buggy
=no
24721 if test x
$gcc_cv_as != x
; then
24722 echo ' .file 1 "foo.s"
24723 .file 1 "bar.s"' > conftest.s
24724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24726 (eval $ac_try) 2>&5
24728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24729 test $ac_status = 0; }; }
24731 gcc_cv_as_dwarf2_file_buggy
=yes
24733 echo "configure: failed program was" >&5
24736 rm -f conftest.o conftest.s
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24740 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24743 if test $gcc_cv_as_dwarf2_debug_line = yes \
24744 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24746 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24751 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24752 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24755 gcc_cv_as_gdwarf2_flag
=no
24756 if test $in_tree_gas = yes; then
24757 if test $in_tree_gas_is_elf = yes \
24758 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24759 then gcc_cv_as_gdwarf2_flag
=yes
24761 elif test x
$gcc_cv_as != x
; then
24762 echo "$insn" > conftest.s
24763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24770 gcc_cv_as_gdwarf2_flag
=yes
24772 echo "configure: failed program was" >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24779 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24780 if test $gcc_cv_as_gdwarf2_flag = yes; then
24782 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24787 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24788 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24789 $as_echo_n "(cached) " >&6
24791 gcc_cv_as_gstabs_flag
=no
24792 if test $in_tree_gas = yes; then
24793 if test $in_tree_gas_is_elf = yes \
24794 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24795 then gcc_cv_as_gstabs_flag
=yes
24797 elif test x
$gcc_cv_as != x
; then
24798 echo "$insn" > conftest.s
24799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24801 (eval $ac_try) 2>&5
24803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24804 test $ac_status = 0; }; }
24806 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24807 # and warns about it, but still exits successfully. So check for
24809 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24811 (eval $ac_try) 2>&5
24813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814 test $ac_status = 0; }; }
24816 else gcc_cv_as_gstabs_flag
=yes
24819 echo "configure: failed program was" >&5
24822 rm -f conftest.o conftest.s
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24826 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24827 if test $gcc_cv_as_gstabs_flag = yes; then
24829 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24834 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24835 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24838 gcc_cv_as_debug_prefix_map_flag
=no
24839 if test $in_tree_gas = yes; then
24840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24841 then gcc_cv_as_debug_prefix_map_flag
=yes
24843 elif test x
$gcc_cv_as != x
; then
24844 echo "$insn" > conftest.s
24845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24852 gcc_cv_as_debug_prefix_map_flag
=yes
24854 echo "configure: failed program was" >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24861 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24862 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24864 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24870 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24871 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24874 gcc_cv_as_lcomm_with_alignment
=no
24875 if test x
$gcc_cv_as != x
; then
24876 echo '.lcomm bar,4,16' > conftest.s
24877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24884 gcc_cv_as_lcomm_with_alignment
=yes
24886 echo "configure: failed program was" >&5
24889 rm -f conftest.o conftest.s
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24893 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24894 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24896 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24900 # Check whether --enable-gnu-unique-object was given.
24901 if test "${enable_gnu_unique_object+set}" = set; then :
24902 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24904 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24905 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24909 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24910 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24913 gcc_cv_as_gnu_unique_object
=no
24914 if test $in_tree_gas = yes; then
24915 if test $in_tree_gas_is_elf = yes \
24916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24917 then gcc_cv_as_gnu_unique_object
=yes
24919 elif test x
$gcc_cv_as != x
; then
24920 echo '.type foo, @gnu_unique_object' > conftest.s
24921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24928 gcc_cv_as_gnu_unique_object
=yes
24930 echo "configure: failed program was" >&5
24933 rm -f conftest.o conftest.s
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24937 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24938 if test $gcc_cv_as_gnu_unique_object = yes; then
24939 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24940 if test x
$host = x
$build -a x
$host = x
$target &&
24941 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24942 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24943 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24944 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24945 if test "$glibcnum" -ge 2011 ; then
24946 enable_gnu_unique_object
=yes
24952 if test x
$enable_gnu_unique_object = xyes
; then
24954 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24959 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24960 if test "${gcc_cv_as_line_zero+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24963 gcc_cv_as_line_zero
=no
24964 if test $in_tree_gas = yes; then
24965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24966 then gcc_cv_as_line_zero
=yes
24968 elif test "x$gcc_cv_as" != x
; then
24969 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24970 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; } &&
24976 test "x`cat conftest.out`" = x
24978 gcc_cv_as_line_zero
=yes
24980 echo "configure: failed program was" >&5
24982 echo "configure: error output was" >&5
24983 cat conftest.out
>&5
24985 rm -f conftest.o conftest.s conftest.out
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24989 $as_echo "$gcc_cv_as_line_zero" >&6; }
24990 if test "x$gcc_cv_as_line_zero" = xyes
; then
24992 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24997 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24998 gcc_cv_ld_eh_frame_hdr
=no
24999 if test $in_tree_ld = yes ; then
25000 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
25001 && test $in_tree_ld_is_elf = yes; then
25002 gcc_cv_ld_eh_frame_hdr
=yes
25004 elif test x
$gcc_cv_ld != x
; then
25005 # Check if linker supports --eh-frame-hdr option
25006 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25007 gcc_cv_ld_eh_frame_hdr
=yes
25011 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25013 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25017 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25020 $as_echo_n "checking linker position independent executable support... " >&6; }
25022 if test $in_tree_ld = yes ; then
25023 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 \
25024 && test $in_tree_ld_is_elf = yes; then
25027 elif test x
$gcc_cv_ld != x
; then
25028 # Check if linker supports -pie option
25029 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25033 if test x
"$gcc_cv_ld_pie" = xyes
; then
25035 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25039 $as_echo "$gcc_cv_ld_pie" >&6; }
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25042 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25043 gcc_cv_ld_eh_gc_sections
=no
25044 if test $in_tree_ld = yes ; then
25045 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 \
25046 && test $in_tree_ld_is_elf = yes; then
25047 gcc_cv_ld_eh_gc_sections
=yes
25049 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25050 cat > conftest.s
<<EOF
25053 .type _start, @function
25056 .size _start, .-_start
25057 .section .text.foo,"ax",@progbits
25058 .type foo, @function
25062 .section .gcc_except_table.foo,"a",@progbits
25065 .section .eh_frame,"a",@progbits
25068 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25069 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25070 |
grep "gc-sections option ignored" > /dev
/null
; then
25071 gcc_cv_ld_eh_gc_sections
=no
25072 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25073 |
grep gcc_except_table
> /dev
/null
; then
25074 gcc_cv_ld_eh_gc_sections
=yes
25075 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25076 if test x
$gcc_cv_as_comdat_group != xyes
; then
25077 gcc_cv_ld_eh_gc_sections
=no
25078 cat > conftest.s
<<EOF
25081 .type _start, @function
25084 .size _start, .-_start
25085 .section .gnu.linkonce.t.foo,"ax",@progbits
25086 .type foo, @function
25090 .section .gcc_except_table.foo,"a",@progbits
25093 .section .eh_frame,"a",@progbits
25096 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25097 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25098 |
grep "gc-sections option ignored" > /dev
/null
; then
25099 gcc_cv_ld_eh_gc_sections
=no
25100 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25101 |
grep gcc_except_table
> /dev
/null
; then
25102 gcc_cv_ld_eh_gc_sections
=yes
25108 rm -f conftest.s conftest.o conftest
25112 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25113 gcc_cv_ld_eh_gc_sections
=no
25116 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
25118 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25122 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25129 $as_echo_n "checking linker --as-needed support... " >&6; }
25130 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25131 $as_echo_n "(cached) " >&6
25133 gcc_cv_ld_as_needed
=no
25134 if test $in_tree_ld = yes ; then
25135 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 \
25136 && test $in_tree_ld_is_elf = yes; then
25137 gcc_cv_ld_as_needed
=yes
25139 elif test x
$gcc_cv_ld != x
; then
25140 # Check if linker supports --as-needed and --no-as-needed options
25141 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
25142 gcc_cv_ld_as_needed
=yes
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25148 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25149 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
25151 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25155 case "$target:$tm_file" in
25156 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25158 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25159 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25162 gcc_cv_ld_no_dot_syms
=no
25163 if test $in_tree_ld = yes ; then
25164 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
25165 gcc_cv_ld_no_dot_syms
=yes
25167 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25168 cat > conftest1.s
<<EOF
25172 cat > conftest2.s
<<EOF
25173 .section ".opd","aw"
25176 .type foo,@function
25178 .quad .LEfoo,.TOC.@tocbase,0
25184 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
25185 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
25186 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
25187 gcc_cv_ld_no_dot_syms
=yes
25189 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25194 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25195 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
25197 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25202 $as_echo_n "checking linker large toc support... " >&6; }
25203 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25206 gcc_cv_ld_large_toc
=no
25207 if test $in_tree_ld = yes ; then
25208 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
25209 gcc_cv_ld_large_toc
=yes
25211 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25212 cat > conftest.s
<<EOF
25213 .section ".tbss","awT",@nobits
25219 addis 9,13,ie0@got@tprel@ha
25220 ld 9,ie0@got@tprel@l(9)
25222 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
25223 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
25224 gcc_cv_ld_large_toc
=yes
25226 rm -f conftest conftest.o conftest.s
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25231 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25232 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
25234 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25241 $as_echo_n "checking linker --build-id support... " >&6; }
25242 if test "${gcc_cv_ld_buildid+set}" = set; then :
25243 $as_echo_n "(cached) " >&6
25245 gcc_cv_ld_buildid
=no
25246 if test $in_tree_ld = yes ; then
25247 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25248 "$gcc_cv_gld_minor_version" -ge 18 -o \
25249 "$gcc_cv_gld_major_version" -gt 2 \
25250 && test $in_tree_ld_is_elf = yes; then
25251 gcc_cv_ld_buildid
=yes
25253 elif test x
$gcc_cv_ld != x
; then
25254 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
25255 gcc_cv_ld_buildid
=yes
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25260 $as_echo "$gcc_cv_ld_buildid" >&6; }
25261 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25263 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25267 # Check whether --enable-linker-build-id was given.
25268 if test "${enable_linker_build_id+set}" = set; then :
25269 enableval
=$enable_linker_build_id;
25271 enable_linker_build_id
=no
25275 if test x
"$enable_linker_build_id" = xyes
; then
25276 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25278 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25282 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25286 # In binutils 2.21, GNU ld gained support for new emulations fully
25287 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25289 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25290 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25291 $as_echo_n "(cached) " >&6
25293 gcc_cv_ld_sol2_emulation
=no
25294 if test $in_tree_ld = yes ; then
25295 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25296 "$gcc_cv_gld_minor_version" -ge 21 -o \
25297 "$gcc_cv_gld_major_version" -gt 2 \
25298 && test $in_tree_ld_is_elf = yes; then
25299 gcc_cv_ld_sol2_emulation
=yes
25301 elif test x
$gcc_cv_ld != x
; then
25302 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
25303 grep _sol2
> /dev
/null
; then
25304 gcc_cv_ld_sol2_emulation
=yes
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25309 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25310 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
25312 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25317 $as_echo_n "checking linker --sysroot support... " >&6; }
25318 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25319 $as_echo_n "(cached) " >&6
25321 gcc_cv_ld_sysroot
=no
25322 if test $in_tree_ld = yes ; then
25323 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
25324 gcc_cv_ld_sysroot
=yes
25326 elif test x
$gcc_cv_ld != x
; then
25327 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
25328 gcc_cv_ld_sysroot
=yes
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25333 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25334 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
25336 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25340 if test x
$with_sysroot = x
&& test x
$host = x
$target \
25341 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25342 && test "$prefix" != "NONE"; then
25344 cat >>confdefs.h
<<_ACEOF
25345 #define PREFIX_INCLUDE_DIR "$prefix/include"
25350 # Test for stack protector support in target C library.
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25352 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25353 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25354 $as_echo_n "(cached) " >&6
25356 gcc_cv_libc_provides_ssp
=no
25358 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
25359 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25360 if test "x$with_headers" != x
; then
25361 glibc_header_dir
=$with_headers
25362 elif test "x$with_sysroot" = x
; then
25363 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25364 elif test "x$with_build_sysroot" != "x"; then
25365 glibc_header_dir
="${with_build_sysroot}/usr/include"
25366 elif test "x$with_sysroot" = xyes
; then
25367 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25369 glibc_header_dir
="${with_sysroot}/usr/include"
25372 glibc_header_dir
=/usr
/include
25374 # glibc 2.4 and later provides __stack_chk_fail and
25375 # either __stack_chk_guard, or TLS access to stack guard canary.
25376 if test -f $glibc_header_dir/features.h \
25377 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25378 $glibc_header_dir/features.h
> /dev
/null
; then
25379 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25380 $glibc_header_dir/features.h
> /dev
/null
; then
25381 gcc_cv_libc_provides_ssp
=yes
25382 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25383 $glibc_header_dir/features.h
> /dev
/null \
25384 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25385 $glibc_header_dir/features.h
> /dev
/null
; then
25386 gcc_cv_libc_provides_ssp
=yes
25387 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25388 $glibc_header_dir/features.h
> /dev
/null
&& \
25389 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
25390 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25391 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
25392 gcc_cv_libc_provides_ssp
=yes
25397 # Avoid complicated tests (see
25398 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25399 # simply assert that glibc does provide this, which is true for all
25400 # realistically usable GNU/Hurd configurations.
25401 gcc_cv_libc_provides_ssp
=yes;;
25402 *-*-darwin* |
*-*-freebsd*)
25403 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25404 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
25405 gcc_cv_libc_provides_ssp
=yes
25407 echo "no __stack_chk_fail on this target"
25411 *) gcc_cv_libc_provides_ssp
=no
;;
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25415 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25417 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
25419 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25423 # Check if TFmode long double should be used by default or not.
25424 # Some glibc targets used DFmode long double, but with glibc 2.4
25425 # and later they can use TFmode.
25427 powerpc
*-*-linux* | \
25428 powerpc
*-*-gnu* | \
25429 sparc
*-*-linux* | \
25433 # Check whether --with-long-double-128 was given.
25434 if test "${with_long_double_128+set}" = set; then :
25435 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
25437 gcc_cv_target_ldbl128
=no
25438 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25439 if test "x$with_sysroot" = x
; then
25440 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25441 elif test "x$with_build_sysroot" != "x"; then
25442 glibc_header_dir
="${with_build_sysroot}/usr/include"
25443 elif test "x$with_sysroot" = xyes
; then
25444 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25446 glibc_header_dir
="${with_sysroot}/usr/include"
25449 glibc_header_dir
=/usr
/include
25451 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25452 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
25453 && gcc_cv_target_ldbl128
=yes
25459 if test x
$gcc_cv_target_ldbl128 = xyes
; then
25461 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25465 # Find out what GC implementation we want, or may, use.
25467 # Check whether --with-gc was given.
25468 if test "${with_gc+set}" = set; then :
25469 withval
=$with_gc; case "$withval" in
25476 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25480 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
25488 echo "Using $GGC for garbage collection."
25490 # Libraries to use on the host. This will normally be set by the top
25491 # level Makefile. Here we simply capture the value for our Makefile.
25492 if test -z "${HOST_LIBS+set}"; then
25497 # Use the system's zlib library.
25499 zlibinc
="-I\$(srcdir)/../zlib"
25501 # Check whether --with-system-zlib was given.
25502 if test "${with_system_zlib+set}" = set; then :
25503 withval
=$with_system_zlib; zlibdir
=
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25513 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25514 # Check whether --enable-maintainer-mode was given.
25515 if test "${enable_maintainer_mode+set}" = set; then :
25516 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25523 $as_echo "$maintainer_mode" >&6; }
25525 if test "$maintainer_mode" = "yes"; then
25535 # Make empty files to contain the specs and options for each language.
25536 # Then add #include lines to for a compiler that has specs and/or options.
25542 # These (without "all_") are set in each config-lang.in.
25543 # `language' must be a single word so is spelled singularly.
25546 all_outputs
='Makefile'
25547 # List of language makefile fragments.
25548 all_lang_makefrags
=
25549 # Additional files for gengtype
25550 all_gtfiles
="$target_gtfiles"
25552 # These are the languages that are set in --enable-languages,
25553 # and are available in the GCC tree.
25554 all_selected_languages
=
25556 # Add the language fragments.
25557 # Languages are added via two mechanisms. Some information must be
25558 # recorded in makefile variables, these are defined in config-lang.in.
25559 # We accumulate them and plug them into the main Makefile.
25560 # The other mechanism is a set of hooks for each of the main targets
25561 # like `clean', `install', etc.
25563 language_hooks
="Make-hooks"
25565 for lang
in ${srcdir}/*/config-lang.
in
25567 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25569 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25570 if test "x$lang_alias" = x
25572 echo "$lang doesn't set \$language." 1>&2
25575 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25576 subdirs
="$subdirs $subdir"
25578 # $gcc_subdir is where the gcc integration files are to be found
25579 # for a language, both for internal compiler purposes (compiler
25580 # sources implementing front-end to GCC tree converters), and for
25581 # build infrastructure purposes (Make-lang.in, etc.)
25583 # This will be <subdir> (relative to $srcdir) if a line like
25584 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25585 # is found in <langdir>/config-lang.in, and will remain <langdir>
25588 # Except for the language alias (fetched above), the regular
25589 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25590 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25591 # only this and the language alias.
25593 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25594 if [ "$gcc_subdir" = "" ]; then
25595 gcc_subdir
="$subdir"
25598 case ",$enable_languages," in
25600 all_selected_languages
="$all_selected_languages $lang_alias"
25601 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
25602 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25613 .
${srcdir}/$gcc_subdir/config-lang.
in
25614 if test "x$language" = x
25616 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25621 case ",$enable_languages," in
25622 *,$lang_alias,*) ;;
25624 for i
in $subdir_requires; do
25625 test -f "${srcdir}/$i/config-lang.in" && continue
25633 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25634 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25635 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25637 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25638 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25640 all_languages
="$all_languages $language"
25641 all_compilers
="$all_compilers $compilers"
25642 all_outputs
="$all_outputs $outputs"
25643 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25644 case ",$enable_languages," in
25647 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25656 # Pick up gtfiles for c
25658 .
${srcdir}/c-config-lang.
in
25659 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25662 for language
in $all_selected_languages
25664 check_languages
="$check_languages check-$language"
25667 # We link each language in with a set of hooks, reached indirectly via
25668 # lang.${target}. Only do so for selected languages.
25672 target_list
="all.cross start.encap rest.encap tags \
25673 install-common install-man install-info install-pdf install-html dvi \
25674 pdf html uninstall info man srcextra srcman srcinfo \
25675 mostlyclean clean distclean maintainer-clean install-plugin"
25677 for t
in $target_list
25680 for lang
in $all_selected_languages
25684 echo "lang.$t: $x" >> Make-hooks
25693 echo "dir ." > .gdbinit
25694 echo "dir ${srcdir}" >> .gdbinit
25695 if test x
$gdb_needs_out_file_path = xyes
25697 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25699 if test "x$subdirs" != x
; then
25702 echo "dir ${srcdir}/$s" >> .gdbinit
25705 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25707 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25711 # Find a directory in which to install a shared libgcc.
25713 # Check whether --enable-version-specific-runtime-libs was given.
25714 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25715 enableval
=$enable_version_specific_runtime_libs;
25720 # Check whether --with-slibdir was given.
25721 if test "${with_slibdir+set}" = set; then :
25722 withval
=$with_slibdir; slibdir
="$with_slibdir"
25724 if test "${enable_version_specific_runtime_libs+set}" = set; then
25725 slibdir
='$(libsubdir)'
25726 elif test "$host" != "$target"; then
25727 slibdir
='$(build_tooldir)/lib'
25729 slibdir
='$(libdir)'
25735 # Substitute configuration variables
25799 if test x
${build} = x
${host} ; then
25800 if test x
${host} = x
${target} ; then
25801 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25803 echo "Links are now set up to build a cross-compiler" 1>&2
25804 echo " from ${host} to ${target}." 1>&2
25807 if test x
${host} = x
${target} ; then
25808 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25809 echo " for ${target}." 1>&2
25811 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25812 echo " from ${host} to ${target}." 1>&2
25824 if test "x${CLOOGLIBS}" != "x" ; then
25826 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25830 # Check for plugin support
25831 # Check whether --enable-plugin was given.
25832 if test "${enable_plugin+set}" = set; then :
25833 enableval
=$enable_plugin; enable_plugin
=$enableval
25835 enable_plugin
=yes; default_plugin
=yes
25843 if test x
$build = x
$host; then
25844 export_sym_check
="nm${exeext} -g"
25845 elif test x
$host = x
$target; then
25846 export_sym_check
="$gcc_cv_nm -g"
25852 if test x
$build = x
$host; then
25853 export_sym_check
="objdump${exeext} -T"
25854 elif test x
$host = x
$target; then
25855 export_sym_check
="$gcc_cv_objdump -T"
25862 if test x
"$enable_plugin" = x
"yes"; then
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25865 $as_echo_n "checking for exported symbols... " >&6; }
25866 if test "x$export_sym_check" != x
; then
25867 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25868 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25869 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25870 : # No need to use a flag
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25872 $as_echo "yes" >&6; }
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25875 $as_echo "yes" >&6; }
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25877 $as_echo_n "checking for -rdynamic... " >&6; }
25878 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25879 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25880 plugin_rdynamic
=yes
25881 pluginlibs
="-rdynamic"
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25887 $as_echo "$plugin_rdynamic" >&6; }
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25891 $as_echo "unable to check" >&6; }
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25897 $as_echo_n "checking for library containing dlopen... " >&6; }
25898 if test "${ac_cv_search_dlopen+set}" = set; then :
25899 $as_echo_n "(cached) " >&6
25901 ac_func_search_save_LIBS
=$LIBS
25902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25903 /* end confdefs.h. */
25905 /* Override any GCC internal prototype to avoid an error.
25906 Use char because int might match the return type of a GCC
25907 builtin and then its argument prototype would still apply. */
25920 for ac_lib
in '' dl
; do
25921 if test -z "$ac_lib"; then
25922 ac_res
="none required"
25925 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25927 if ac_fn_c_try_link
"$LINENO"; then :
25928 ac_cv_search_dlopen
=$ac_res
25930 rm -f core conftest.err conftest.
$ac_objext \
25932 if test "${ac_cv_search_dlopen+set}" = set; then :
25936 if test "${ac_cv_search_dlopen+set}" = set; then :
25939 ac_cv_search_dlopen
=no
25941 rm conftest.
$ac_ext
25942 LIBS
=$ac_func_search_save_LIBS
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25945 $as_echo "$ac_cv_search_dlopen" >&6; }
25946 ac_res
=$ac_cv_search_dlopen
25947 if test "$ac_res" != no
; then :
25948 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25952 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25953 pluginlibs
="$pluginlibs -ldl"
25957 # Check that we can build shared objects with -fPIC -shared
25958 saved_LDFLAGS
="$LDFLAGS"
25959 saved_CFLAGS
="$CFLAGS"
25962 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
25963 CFLAGS
="$CFLAGS -fPIC"
25964 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
25967 CFLAGS
="$CFLAGS -fPIC"
25968 LDFLAGS
="$LDFLAGS -fPIC -shared"
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25972 $as_echo_n "checking for -fPIC -shared... " >&6; }
25973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25974 /* end confdefs.h. */
25984 if ac_fn_c_try_link
"$LINENO"; then :
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25986 $as_echo "yes" >&6; }; have_pic_shared
=yes
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25989 $as_echo "no" >&6; }; have_pic_shared
=no
25991 rm -f core conftest.err conftest.
$ac_objext \
25992 conftest
$ac_exeext conftest.
$ac_ext
25993 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25997 LDFLAGS
="$saved_LDFLAGS"
25998 CFLAGS
="$saved_CFLAGS"
26000 # If plugin support had been requested but not available, fail.
26001 if test x
"$enable_plugin" = x
"no" ; then
26002 if test x
"$default_plugin" != x
"yes"; then
26004 Building GCC with plugin support requires a host that supports
26005 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26012 if test x
"$enable_plugin" = x
"yes"; then
26014 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26018 # Configure the subdirectories
26019 # AC_CONFIG_SUBDIRS($subdirs)
26021 # Create the Makefile
26022 # and configure language subdirectories
26023 ac_config_files
="$ac_config_files $all_outputs"
26026 ac_config_commands
="$ac_config_commands default"
26028 cat >confcache
<<\_ACEOF
26029 # This file is a shell script that caches the results of configure
26030 # tests run on this system so they can be shared between configure
26031 # scripts and configure runs, see configure's option --config-cache.
26032 # It is not useful on other systems. If it contains results you don't
26033 # want to keep, you may remove or edit it.
26035 # config.status only pays attention to the cache file if you give it
26036 # the --recheck option to rerun configure.
26038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26040 # following values.
26044 # The following way of writing the cache mishandles newlines in values,
26045 # but we know of no workaround that is simple, portable, and efficient.
26046 # So, we kill variables containing newlines.
26047 # Ultrix sh set writes to stderr and can't be redirected directly,
26048 # and sets the high bit in the cache file unless we assign to the vars.
26050 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26051 eval ac_val
=\$
$ac_var
26055 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26059 _ | IFS | as_nl
) ;; #(
26060 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26061 *) { eval $ac_var=; unset $ac_var;} ;;
26067 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26068 *${as_nl}ac_space
=\
*)
26069 # `set' does not quote correctly, so add quotes: double-quote
26070 # substitution turns \\\\ into \\, and sed turns \\ into \.
26073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26076 # `set' quotes correctly as required by POSIX, so do not add quotes.
26077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26086 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26090 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26091 if test -w "$cache_file"; then
26092 test "x$cache_file" != "x/dev/null" &&
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26094 $as_echo "$as_me: updating cache $cache_file" >&6;}
26095 cat confcache
>$cache_file
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26098 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26103 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26104 # Let make expand exec_prefix.
26105 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26107 DEFS
=-DHAVE_CONFIG_H
26111 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26112 # 1. Remove the extension, and $U if already installed.
26113 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26114 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26116 # will be set to the directory where LIBOBJS objects are built.
26117 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26118 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26120 LIBOBJS
=$ac_libobjs
26122 LTLIBOBJS
=$ac_ltlibobjs
26127 : ${CONFIG_STATUS=./config.status}
26129 ac_clean_files_save
=$ac_clean_files
26130 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26132 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26134 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26136 # Generated by $as_me.
26137 # Run this file to recreate the current configuration.
26138 # Compiler output produced by configure, useful for debugging
26139 # configure, is in config.log if it exists.
26142 ac_cs_recheck=false
26145 SHELL=\${CONFIG_SHELL-$SHELL}
26148 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26149 ## -------------------- ##
26150 ## M4sh Initialization. ##
26151 ## -------------------- ##
26153 # Be more Bourne compatible
26154 DUALCASE
=1; export DUALCASE
# for MKS sh
26155 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26158 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26159 # is contrary to our usage. Disable this feature.
26160 alias -g '${1+"$@"}'='"$@"'
26161 setopt NO_GLOB_SUBST
26163 case `(set -o) 2>/dev/null` in #(
26175 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26176 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26177 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26178 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26179 # Prefer a ksh shell builtin over an external printf program on Solaris,
26180 # but without wasting forks for bash or zsh.
26181 if test -z "$BASH_VERSION$ZSH_VERSION" \
26182 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26183 as_echo='print
-r --'
26184 as_echo_n='print
-rn --'
26185 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26186 as_echo='printf %s
\n'
26187 as_echo_n='printf %s
'
26189 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26190 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26191 as_echo_n='/usr
/ucb
/echo -n'
26193 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26194 as_echo_n_body='eval
26198 expr "X$arg" : "X\\(.*\\)$as_nl";
26199 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26201 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26203 export as_echo_n_body
26204 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26206 export as_echo_body
26207 as_echo='sh
-c $as_echo_body as_echo
'
26210 # The user is always right.
26211 if test "${PATH_SEPARATOR+set}" != set; then
26213 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26214 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26221 # We need space, tab and new line, in precisely that order. Quoting is
26222 # there to prevent editors from complaining about space-tab.
26223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26224 # splitting by setting IFS to empty value.)
26227 # Find who we are. Look in the path if we contain no directory separator.
26229 *[\\/]* ) as_myself=$0 ;;
26230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26231 for as_dir in $PATH
26234 test -z "$as_dir" && as_dir=.
26235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26241 # We did not find ourselves, most probably we were run as `sh COMMAND'
26242 # in which case we are not to be found in the path.
26243 if test "x$as_myself" = x
; then
26246 if test ! -f "$as_myself"; then
26247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26251 # Unset variables that we do not need and which cause bugs (e.g. in
26252 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26253 # suppresses any "Segmentation fault" message there. '((' could
26254 # trigger a bug in pdksh 5.2.14.
26255 for as_var
in BASH_ENV ENV MAIL MAILPATH
26256 do eval test x\
${$as_var+set} = xset \
26257 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26270 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26273 # as_fn_error ERROR [LINENO LOG_FD]
26274 # ---------------------------------
26275 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26276 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26277 # script with status $?, using 1 if that was 0.
26280 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26282 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26283 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26285 $as_echo "$as_me: error: $1" >&2
26286 as_fn_exit
$as_status
26290 # as_fn_set_status STATUS
26291 # -----------------------
26292 # Set $? to STATUS, without forking.
26293 as_fn_set_status
()
26296 } # as_fn_set_status
26298 # as_fn_exit STATUS
26299 # -----------------
26300 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26304 as_fn_set_status
$1
26310 # Portably unset VAR.
26313 { eval $1=; unset $1;}
26315 as_unset
=as_fn_unset
26316 # as_fn_append VAR VALUE
26317 # ----------------------
26318 # Append the text in VALUE to the end of the definition contained in VAR. Take
26319 # advantage of any shell optimizations that allow amortized linear growth over
26320 # repeated appends, instead of the typical quadratic growth present in naive
26322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26323 eval 'as_fn_append ()
26334 # as_fn_arith ARG...
26335 # ------------------
26336 # Perform arithmetic evaluation on the ARGs, and store the result in the
26337 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26338 # must be portable across $(()) and expr.
26339 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26340 eval 'as_fn_arith ()
26347 as_val
=`expr "$@" || test $? -eq 1`
26352 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26353 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26359 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26360 as_basename
=basename
26365 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26371 as_me
=`$as_basename -- "$0" ||
26372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26373 X"$0" : 'X\(//\)$' \| \
26374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26376 sed '/^.*\/\([^/][^/]*\)\/*$/{
26390 # Avoid depending upon Character Ranges.
26391 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26392 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26393 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26394 as_cr_digits
='0123456789'
26395 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26397 ECHO_C
= ECHO_N
= ECHO_T
=
26398 case `echo -n x` in #(((((
26400 case `echo 'xy\c'` in
26401 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26403 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26410 rm -f conf$$ conf$$.exe conf$$.
file
26411 if test -d conf$$.dir
; then
26412 rm -f conf$$.dir
/conf$$.
file
26415 mkdir conf$$.dir
2>/dev
/null
26417 if (echo >conf$$.
file) 2>/dev
/null
; then
26418 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26420 # ... but there are two gotchas:
26421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26423 # In both cases, we have to default to `cp -p'.
26424 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26426 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26434 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26435 rmdir conf$$.dir
2>/dev
/null
26440 # Create "$as_dir" as a directory, including parents if necessary.
26445 -*) as_dir
=.
/$as_dir;;
26447 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26451 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26452 *) as_qdir
=$as_dir;;
26454 as_dirs
="'$as_qdir' $as_dirs"
26455 as_dir
=`$as_dirname -- "$as_dir" ||
26456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26457 X"$as_dir" : 'X\(//\)[^/]' \| \
26458 X"$as_dir" : 'X\(//\)$' \| \
26459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26460 $as_echo X"$as_dir" |
26461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26465 /^X\(\/\/\)[^/].*/{
26478 test -d "$as_dir" && break
26480 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26481 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26485 if mkdir
-p .
2>/dev
/null
; then
26486 as_mkdir_p
='mkdir -p "$as_dir"'
26488 test -d .
/-p && rmdir .
/-p
26492 if test -x / >/dev
/null
2>&1; then
26493 as_test_x
='test -x'
26495 if ls -dL / >/dev
/null
2>&1; then
26502 if test -d "$1"; then
26508 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26509 ???[sx]*):;;*)false;;esac;fi
26513 as_executable_p
=$as_test_x
26515 # Sed expression to map a string onto a valid CPP name.
26516 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26518 # Sed expression to map a string onto a valid variable name.
26519 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26523 ## ----------------------------------- ##
26524 ## Main body of $CONFIG_STATUS script. ##
26525 ## ----------------------------------- ##
26527 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26530 # Save the log message, to keep $0 and so on meaningful, and to
26531 # report actual input values of CONFIG_FILES etc. instead of their
26532 # values after options handling.
26534 This file was extended by $as_me, which was
26535 generated by GNU Autoconf 2.64. Invocation command line was
26537 CONFIG_FILES = $CONFIG_FILES
26538 CONFIG_HEADERS = $CONFIG_HEADERS
26539 CONFIG_LINKS = $CONFIG_LINKS
26540 CONFIG_COMMANDS = $CONFIG_COMMANDS
26543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26548 case $ac_config_files in *"
26549 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26552 case $ac_config_headers in *"
26553 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26558 # Files that config.status was made for.
26559 config_files="$ac_config_files"
26560 config_headers="$ac_config_headers"
26561 config_commands="$ac_config_commands"
26565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26567 \`$as_me' instantiates files and other configuration actions
26568 from templates according to the current configuration. Unless the files
26569 and actions are specified as TAGs, all are instantiated by default.
26571 Usage: $0 [OPTION]... [TAG]...
26573 -h, --help print this help, then exit
26574 -V, --version print version number and configuration settings, then exit
26575 -q, --quiet, --silent
26576 do not print progress messages
26577 -d, --debug don't remove temporary files
26578 --recheck update $as_me by reconfiguring in the same conditions
26579 --file=FILE[:TEMPLATE]
26580 instantiate the configuration file FILE
26581 --header=FILE[:TEMPLATE]
26582 instantiate the configuration header FILE
26584 Configuration files:
26587 Configuration headers:
26590 Configuration commands:
26593 Report bugs to the package provider."
26596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26599 configured by $0, generated by GNU Autoconf 2.64,
26600 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26602 Copyright (C) 2009 Free Software Foundation, Inc.
26603 This config.status script is free software; the Free Software Foundation
26604 gives unlimited permission to copy, distribute and modify it."
26609 test -n "\$AWK" || AWK=awk
26612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26613 # The default lists apply if the user does not specify any file.
26619 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26620 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26631 # Handling of the options.
26632 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26634 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26635 $as_echo "$ac_cs_version"; exit ;;
26636 --debug |
--debu |
--deb |
--de |
--d |
-d )
26638 --file |
--fil |
--fi |
--f )
26641 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26643 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26644 ac_need_defaults
=false
;;
26645 --header |
--heade |
--head |
--hea )
26648 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26650 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26651 ac_need_defaults
=false
;;
26653 # Conflict between --help and --header
26654 as_fn_error
"ambiguous option: \`$1'
26655 Try \`$0 --help' for more information.";;
26656 --help |
--hel |
-h )
26657 $as_echo "$ac_cs_usage"; exit ;;
26658 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26659 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26662 # This is an error.
26663 -*) as_fn_error
"unrecognized option: \`$1'
26664 Try \`$0 --help' for more information." ;;
26666 *) as_fn_append ac_config_targets
" $1"
26667 ac_need_defaults
=false
;;
26673 ac_configure_extra_args
=
26675 if $ac_cs_silent; then
26677 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26682 if \$ac_cs_recheck; then
26683 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26686 CONFIG_SHELL='$SHELL'
26687 export CONFIG_SHELL
26692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26697 ## Running $as_me. ##
26703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26713 # Handling of arguments.
26714 for ac_config_target
in $ac_config_targets
26716 case $ac_config_target in
26717 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26718 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26719 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26720 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26721 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26722 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26724 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26729 # If the user did not use the arguments to specify the items to instantiate,
26730 # then the envvar interface is used. Set only those that are not.
26731 # We use the long form for the default assignment because of an extremely
26732 # bizarre bug on SunOS 4.1.3.
26733 if $ac_need_defaults; then
26734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26739 # Have a temporary directory for convenience. Make it in the build tree
26740 # simply because there is no reason against having it here, and in addition,
26741 # creating and moving files from /tmp can sometimes cause problems.
26742 # Hook for its removal unless debugging.
26743 # Note that there is a small window in which the directory will not be cleaned:
26744 # after its creation but before its name has been assigned to `$tmp'.
26748 trap 'exit_status=$?
26749 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26751 trap 'as_fn_exit 1' 1 2 13 15
26753 # Create a (secure) tmp directory for tmp files.
26756 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26757 test -n "$tmp" && test -d "$tmp"
26760 tmp
=.
/conf$$
-$RANDOM
26761 (umask 077 && mkdir
"$tmp")
26762 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26764 # Set up the scripts for CONFIG_FILES section.
26765 # No need to generate them if there are no CONFIG_FILES.
26766 # This happens for instance with `./config.status config.h'.
26767 if test -n "$CONFIG_FILES"; then
26769 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26770 ac_cs_awk_getline
=:
26771 ac_cs_awk_pipe_init
=
26772 ac_cs_awk_read_file
='
26773 while ((getline aline < (F[key])) > 0)
26776 ac_cs_awk_pipe_fini
=
26778 ac_cs_awk_getline
=false
26779 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26780 ac_cs_awk_read_file
='
26782 print "cat " F[key] " &&"
26783 '$ac_cs_awk_pipe_init
26784 # The final `:' finishes the AND list.
26785 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26787 ac_cr
=`echo X | tr X '\015'`
26788 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26789 # But we know of no other shell where ac_cr would be empty at this
26790 # point, so we can use a bashism as a fallback.
26791 if test "x$ac_cr" = x
; then
26792 eval ac_cr
=\$
\'\\r
\'
26794 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26798 ac_cs_awk_cr
=$ac_cr
26801 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26804 # Create commands to substitute file output variables.
26806 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26807 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26808 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26811 } >conf$
$files.sh
&&
26812 . .
/conf$
$files.sh ||
26813 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26814 rm -f conf$
$files.sh
26817 echo "cat >conf$$subs.awk <<_ACEOF" &&
26818 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26820 } >conf$$subs.sh ||
26821 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26822 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26824 for ac_last_try in false false false false false :; do
26825 . ./conf$$subs.sh ||
26826 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26828 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26829 if test $ac_delim_n = $ac_delim_num; then
26831 elif $ac_last_try; then
26832 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26834 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26837 rm -f conf$$subs.sh
26839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26840 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26844 s/^/S["/; s
/!.
*/"]=/
26854 s/\(.\{148\}\).*/\1/
26856 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26861 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26868 s/\(.\{148\}\).*/\1/
26870 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26874 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26879 ' <conf$$subs.awk | sed '
26884 ' >>$CONFIG_STATUS || ac_write_fail=1
26885 rm -f conf$$subs.awk
26886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26888 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26889 for (key in S) S_is_set[key] = 1
26891 \$ac_cs_awk_pipe_init
26895 nfields = split(line, field, "@
")
26897 len = length(field[1])
26898 for (i = 2; i < nfields; i++) {
26900 keylen = length(key)
26901 if (S_is_set[key]) {
26903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26904 len += length(value) + length(field[++i])
26909 if (nfields == 3 && !substed) {
26911 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26912 \$ac_cs_awk_read_file
26918 \$ac_cs_awk_pipe_fini
26921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26922 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26923 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26926 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26927 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26930 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26931 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26932 # trailing colons and then remove the whole line if VPATH becomes empty
26933 # (actually we leave an empty line to preserve line numbers).
26934 if test "x
$srcdir" = x.; then
26935 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26936 s/:*\$(srcdir):*/:/
26937 s/:*\${srcdir}:*/:/
26939 s/^\([^=]*=[ ]*\):*/\1/
26945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26946 fi # test -n "$CONFIG_FILES"
26948 # Set up the scripts for CONFIG_HEADERS section.
26949 # No need to generate them if there are no CONFIG_HEADERS.
26950 # This happens for instance with `./config.status Makefile'.
26951 if test -n "$CONFIG_HEADERS"; then
26952 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26956 # Transform confdefs.h into an awk script `defines.awk', embedded as
26957 # here-document in config.status, that substitutes the proper values into
26958 # config.h.in to produce config.h.
26960 # Create a delimiter string that does not exist in confdefs.h, to ease
26961 # handling of long lines.
26963 for ac_last_try in false false :; do
26964 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26965 if test -z "$ac_t"; then
26967 elif $ac_last_try; then
26968 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26970 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26974 # For the awk script, D is an array of macro values keyed by name,
26975 # likewise P contains macro parameters if any. Preserve backslash
26976 # newline sequences.
26978 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26980 s/.\{148\}/&'"$ac_delim"'/g
26983 s/^[ ]*#[ ]*define[ ][ ]*/ /
26990 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26992 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26997 D["\
1"]=" \
3\\\\\\n
"\\/p
26999 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27004 s/.\{148\}/&'"$ac_delim"'/g
27009 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27012 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27014 ' <confdefs.h | sed '
27015 s/'"$ac_delim"'/"\\\
27016 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27019 for (key in D) D_is_set[key] = 1
27022 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27024 split(line, arg, " ")
27025 if (arg[1] == "#") {
27029 defundef
= substr
(arg
[1], 2)
27032 split(mac1
, mac2
, "(") #)
27034 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27035 if (D_is_set
[macro
]) {
27036 # Preserve the white space surrounding the "#".
27037 print prefix
"define", macro P
[macro
] D
[macro
]
27040 # Replace #undef with comments. This is necessary, for example,
27041 # in the case of _POSIX_SOURCE, which is predefined and required
27042 # on some systems where configure will not decide to define it.
27043 if (defundef
== "undef") {
27044 print
"/*", prefix defundef
, macro
, "*/"
27052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27053 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
27054 fi # test -n "$CONFIG_HEADERS"
27057 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27062 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27064 case $ac_mode$ac_tag in
27066 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27067 :[FH
]-) ac_tag
=-:-;;
27068 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27085 -) ac_f
="$tmp/stdin";;
27086 *) # Look for the file first in the build tree, then in the source tree
27087 # (if the path is not absolute). The absolute path cannot be DOS-style,
27088 # because $ac_f cannot contain `:'.
27092 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27094 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
27096 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27097 as_fn_append ac_file_inputs
" '$ac_f'"
27100 # Let's still pretend it is `configure' which instantiates (i.e., don't
27101 # use $as_me), people would be surprised to read:
27102 # /* config.h. Generated by config.status. */
27103 configure_input
='Generated from '`
27104 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27106 if test x
"$ac_file" != x-
; then
27107 configure_input
="$ac_file. $configure_input"
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27109 $as_echo "$as_me: creating $ac_file" >&6;}
27111 # Neutralize special characters interpreted by sed in replacement strings.
27112 case $configure_input in #(
27113 *\
&* |
*\|
* |
*\\* )
27114 ac_sed_conf_input
=`$as_echo "$configure_input" |
27115 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27116 *) ac_sed_conf_input
=$configure_input;;
27120 *:-:* |
*:-) cat >"$tmp/stdin" \
27121 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
27126 ac_dir
=`$as_dirname -- "$ac_file" ||
27127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27128 X"$ac_file" : 'X\(//\)[^/]' \| \
27129 X"$ac_file" : 'X\(//\)$' \| \
27130 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27131 $as_echo X"$ac_file" |
27132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27136 /^X\(\/\/\)[^/].*/{
27149 as_dir
="$ac_dir"; as_fn_mkdir_p
27153 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27155 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27156 # A ".." for each directory in $ac_dir_suffix.
27157 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27158 case $ac_top_builddir_sub in
27159 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27160 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27163 ac_abs_top_builddir
=$ac_pwd
27164 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27165 # for backward compatibility:
27166 ac_top_builddir
=$ac_top_build_prefix
27169 .
) # We are building in place.
27171 ac_top_srcdir
=$ac_top_builddir_sub
27172 ac_abs_top_srcdir
=$ac_pwd ;;
27173 [\\/]* | ?
:[\\/]* ) # Absolute name.
27174 ac_srcdir
=$srcdir$ac_dir_suffix;
27175 ac_top_srcdir
=$srcdir
27176 ac_abs_top_srcdir
=$srcdir ;;
27177 *) # Relative name.
27178 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27179 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27180 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27182 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27194 # If the template does not know about datarootdir, expand it.
27195 # FIXME: This hack should be removed a few years after 2.60.
27196 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27207 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27208 *datarootdir
*) ac_datarootdir_seen
=yes;;
27209 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27211 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27214 ac_datarootdir_hack='
27215 s&@datadir@&$datadir&g
27216 s&@docdir@&$docdir&g
27217 s&@infodir@&$infodir&g
27218 s&@localedir@&$localedir&g
27219 s&@mandir@&$mandir&g
27220 s&\\\${datarootdir}&$datarootdir&g' ;;
27224 # Neutralize VPATH when `$srcdir' = `.'.
27225 # Shell code in configure.ac might set extrasub.
27226 # FIXME: do we really want to maintain this feature?
27227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27228 ac_sed_extra="$ac_vpsub
27231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27233 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27234 s|@configure_input@|
$ac_sed_conf_input|
;t t
27235 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27236 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27237 s
&@srcdir@
&$ac_srcdir&;t t
27238 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27239 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27240 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27241 s
&@builddir@
&$ac_builddir&;t t
27242 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27243 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27244 $ac_datarootdir_hack
27246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27247 if $ac_cs_awk_getline; then
27248 $AWK -f "$tmp/subs.
awk"
27250 $AWK -f "$tmp/subs.
awk" | $SHELL
27252 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27254 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27258 which seems to be undefined. Please make sure it is defined." >&5
27259 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27260 which seems to be undefined. Please make sure it is defined." >&2;}
27264 -) cat "$tmp/out" && rm -f "$tmp/out";;
27265 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27267 || as_fn_error "could not create $ac_file" "$LINENO" 5
27273 if test x"$ac_file" != x-; then
27275 $as_echo "/* $configure_input */" \
27276 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27277 } >"$tmp/config.h" \
27278 || as_fn_error "could not create $ac_file" "$LINENO" 5
27279 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27281 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27284 mv "$tmp/config.h" "$ac_file" \
27285 || as_fn_error "could not create $ac_file" "$LINENO" 5
27288 $as_echo "/* $configure_input */" \
27289 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27290 || as_fn_error "could not create -" "$LINENO" 5
27294 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27295 $as_echo "$as_me: executing $ac_file commands" >&6;}
27300 case $ac_file$ac_mode in
27301 "as":F) chmod +x as ;;
27302 "collect-ld":F) chmod +x collect-ld ;;
27303 "nm":F) chmod +x nm ;;
27305 case ${CONFIG_HEADERS} in
27306 *auto-host.h:config.in*)
27309 # Make sure all the subdirs exist.
27310 for d in $subdirs doc build c-family
27312 test -d $d || mkdir $d
27322 ac_clean_files=$ac_clean_files_save
27324 test $ac_write_fail = 0 ||
27325 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27328 # configure is writing to config.log, and then calls config.status.
27329 # config.status does its own redirection, appending to config.log.
27330 # Unfortunately, on DOS this fails, as config.log is still kept open
27331 # by configure, so config.status won't be able to
write to it
; its
27332 # output is simply discarded. So we exec the FD to /dev/null,
27333 # effectively closing config.log, so it can be properly (re)opened and
27334 # appended to by config.status. When coming back to configure, we
27335 # need to make the FD available again.
27336 if test "$no_create" != yes; then
27338 ac_config_status_args
=
27339 test "$silent" = yes &&
27340 ac_config_status_args
="$ac_config_status_args --quiet"
27342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27345 # would make configure fail if this is the last instruction.
27346 $ac_cs_success || as_fn_exit $?
27348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}