2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
775 valgrind_path_defines
850 program_transform_name
861 ac_subst_files
='option_includes
864 enable_option_checking
869 enable_generated_files_in_srcdir
879 enable_gather_detailed_mem_stats
890 with_upc_pts_vaddr_order
892 with_upc_pts_packed_bits
893 enable_upc_link_script
896 with_native_system_header_dir
906 enable_sjlj_exceptions
908 enable_leading_mingw64_underscores
911 enable_win32_registry
917 enable_gnu_indirect_function
918 enable_initfini_array
920 enable_gnu_unique_object
921 enable_linker_build_id
925 enable_maintainer_mode
926 enable_version_specific_runtime_libs
928 enable_libquadmath_support
929 with_linker_hash_style
931 ac_precious_vars
='build_alias
952 # Initialize some variables set by options.
954 ac_init_version
=false
955 ac_unrecognized_opts
=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
966 program_transform_name
=s
,x
,x
,
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir
='${exec_prefix}/bin'
981 sbindir
='${exec_prefix}/sbin'
982 libexecdir
='${exec_prefix}/libexec'
983 datarootdir
='${prefix}/share'
984 datadir
='${datarootdir}'
985 sysconfdir
='${prefix}/etc'
986 sharedstatedir
='${prefix}/com'
987 localstatedir
='${prefix}/var'
988 includedir
='${prefix}/include'
989 oldincludedir
='/usr/include'
990 docdir
='${datarootdir}/doc/${PACKAGE}'
991 infodir
='${datarootdir}/info'
996 libdir
='${exec_prefix}/lib'
997 localedir
='${datarootdir}/locale'
998 mandir
='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\
$ac_option
1012 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1022 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1024 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1025 bindir
=$ac_optarg ;;
1027 -build |
--build |
--buil |
--bui |
--bu)
1028 ac_prev
=build_alias
;;
1029 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1030 build_alias
=$ac_optarg ;;
1032 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1033 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1034 ac_prev
=cache_file
;;
1035 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1036 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1037 cache_file
=$ac_optarg ;;
1039 --config-cache |
-C)
1040 cache_file
=config.cache
;;
1042 -datadir |
--datadir |
--datadi |
--datad)
1044 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1045 datadir
=$ac_optarg ;;
1047 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1048 |
--dataroo |
--dataro |
--datar)
1049 ac_prev
=datarootdir
;;
1050 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1051 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1052 datarootdir
=$ac_optarg ;;
1054 -disable-* |
--disable-*)
1055 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error
"invalid feature name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_
$ac_useropt"
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval enable_
$ac_useropt=no
;;
1070 -docdir |
--docdir |
--docdi |
--doc |
--do)
1072 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1073 docdir
=$ac_optarg ;;
1075 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1077 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1078 dvidir
=$ac_optarg ;;
1080 -enable-* |
--enable-*)
1081 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1084 as_fn_error
"invalid feature name: $ac_useropt"
1085 ac_useropt_orig
=$ac_useropt
1086 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_
$ac_useropt"
1091 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep
=', ';;
1094 eval enable_
$ac_useropt=\
$ac_optarg ;;
1096 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1097 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1098 |
--exec |
--exe |
--ex)
1099 ac_prev
=exec_prefix
;;
1100 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1101 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1102 |
--exec=* |
--exe=* |
--ex=*)
1103 exec_prefix
=$ac_optarg ;;
1105 -gas |
--gas |
--ga |
--g)
1106 # Obsolete; use --with-gas.
1109 -help |
--help |
--hel |
--he |
-h)
1110 ac_init_help
=long
;;
1111 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1112 ac_init_help
=recursive
;;
1113 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1114 ac_init_help
=short
;;
1116 -host |
--host |
--hos |
--ho)
1117 ac_prev
=host_alias
;;
1118 -host=* |
--host=* |
--hos=* |
--ho=*)
1119 host_alias
=$ac_optarg ;;
1121 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1123 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1125 htmldir
=$ac_optarg ;;
1127 -includedir |
--includedir |
--includedi |
--included |
--include \
1128 |
--includ |
--inclu |
--incl |
--inc)
1129 ac_prev
=includedir
;;
1130 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1131 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1132 includedir
=$ac_optarg ;;
1134 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1136 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1137 infodir
=$ac_optarg ;;
1139 -libdir |
--libdir |
--libdi |
--libd)
1141 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1142 libdir
=$ac_optarg ;;
1144 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1145 |
--libexe |
--libex |
--libe)
1146 ac_prev
=libexecdir
;;
1147 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1148 |
--libexe=* |
--libex=* |
--libe=*)
1149 libexecdir
=$ac_optarg ;;
1151 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1152 ac_prev
=localedir
;;
1153 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1154 localedir
=$ac_optarg ;;
1156 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1157 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1158 ac_prev
=localstatedir
;;
1159 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1160 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1161 localstatedir
=$ac_optarg ;;
1163 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1165 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1166 mandir
=$ac_optarg ;;
1168 -nfp |
--nfp |
--nf)
1169 # Obsolete; use --without-fp.
1172 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1173 |
--no-cr |
--no-c |
-n)
1176 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1177 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1180 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1181 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1182 |
--oldin |
--oldi |
--old |
--ol |
--o)
1183 ac_prev
=oldincludedir
;;
1184 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1185 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1186 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1187 oldincludedir
=$ac_optarg ;;
1189 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1191 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1192 prefix
=$ac_optarg ;;
1194 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1195 |
--program-pre |
--program-pr |
--program-p)
1196 ac_prev
=program_prefix
;;
1197 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1198 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1199 program_prefix
=$ac_optarg ;;
1201 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1202 |
--program-suf |
--program-su |
--program-s)
1203 ac_prev
=program_suffix
;;
1204 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1205 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1206 program_suffix
=$ac_optarg ;;
1208 -program-transform-name |
--program-transform-name \
1209 |
--program-transform-nam |
--program-transform-na \
1210 |
--program-transform-n |
--program-transform- \
1211 |
--program-transform |
--program-transfor \
1212 |
--program-transfo |
--program-transf \
1213 |
--program-trans |
--program-tran \
1214 |
--progr-tra |
--program-tr |
--program-t)
1215 ac_prev
=program_transform_name
;;
1216 -program-transform-name=* |
--program-transform-name=* \
1217 |
--program-transform-nam=* |
--program-transform-na=* \
1218 |
--program-transform-n=* |
--program-transform-=* \
1219 |
--program-transform=* |
--program-transfor=* \
1220 |
--program-transfo=* |
--program-transf=* \
1221 |
--program-trans=* |
--program-tran=* \
1222 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1223 program_transform_name
=$ac_optarg ;;
1225 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1227 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1228 pdfdir
=$ac_optarg ;;
1230 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1232 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1235 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1236 |
-silent |
--silent |
--silen |
--sile |
--sil)
1239 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1241 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1243 sbindir
=$ac_optarg ;;
1245 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1246 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1247 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1249 ac_prev
=sharedstatedir
;;
1250 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1251 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1252 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1254 sharedstatedir
=$ac_optarg ;;
1256 -site |
--site |
--sit)
1258 -site=* |
--site=* |
--sit=*)
1261 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1263 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1264 srcdir
=$ac_optarg ;;
1266 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1267 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1268 ac_prev
=sysconfdir
;;
1269 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1270 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1271 sysconfdir
=$ac_optarg ;;
1273 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1274 ac_prev
=target_alias
;;
1275 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1276 target_alias
=$ac_optarg ;;
1278 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1281 -version |
--version |
--versio |
--versi |
--vers |
-V)
1282 ac_init_version
=: ;;
1285 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1296 ac_unrecognized_sep
=', ';;
1298 eval with_
$ac_useropt=\
$ac_optarg ;;
1300 -without-* |
--without-*)
1301 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1304 as_fn_error
"invalid package name: $ac_useropt"
1305 ac_useropt_orig
=$ac_useropt
1306 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1311 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep
=', ';;
1314 eval with_
$ac_useropt=no
;;
1317 # Obsolete; use --with-x.
1320 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1321 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1322 ac_prev
=x_includes
;;
1323 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1324 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1325 x_includes
=$ac_optarg ;;
1327 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1328 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1329 ac_prev
=x_libraries
;;
1330 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1331 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1332 x_libraries
=$ac_optarg ;;
1334 -*) as_fn_error
"unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information."
1339 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1343 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1345 eval $ac_envvar=\
$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 if test -n "$ac_prev"; then
1360 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error
"missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1367 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 # Check all directory arguments for consistency.
1373 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val
=\$
$ac_var
1379 # Remove trailing slashes.
1382 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\
$ac_val;;
1385 # Be sure to have absolute directory names.
1387 [\\/$
]* | ?
:[\\/]* ) continue;;
1388 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1390 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1398 target
=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x
; then
1402 if test "x$build_alias" = x
; then
1403 cross_compiling
=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1412 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1414 test "$silent" = yes && exec 6>/dev
/null
1417 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di
=`ls -di .` &&
1419 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error
"working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error
"pwd does not report name of working directory"
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted
=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir
=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1457 ac_srcdir_defaulted
=no
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1461 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1463 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1475 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 for ac_var
in $ac_precious_vars; do
1478 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1480 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1491 \`configure' configures this package to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1554 --build=BUILD configure
for building on BUILD
[guessed
]
1555 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1556 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1560 if test -n "$ac_init_help"; then
1565 --disable-option-checking ignore unrecognized
--enable/--with options
1566 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1567 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1568 --enable-generated-files-in-srcdir
1569 put copies of generated files
in source dir intended
1570 for creating
source tarballs
for users without
1571 texinfo bison or flex
1572 --disable-largefile omit support
for large files
1573 --enable-werror-always enable -Werror despite compiler version
1574 --enable-checking[=LIST
]
1575 enable expensive run-time checks. With LIST
, enable
1576 only specific categories of checks. Categories are
:
1577 yes,no
,all
,none
,release. Flags are
:
1578 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1579 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1580 --enable-coverage[=LEVEL
]
1581 enable compiler
's code coverage collection. Use to
1582 measure compiler performance and locate unused parts
1583 of the compiler. With LEVEL, specify optimization.
1584 Values are opt, noopt, default is noopt
1585 --enable-gather-detailed-mem-stats
1586 enable detailed memory allocation stats gathering
1587 --enable-multilib enable library support for multiple ABIs
1588 --enable-multiarch enable support for multiarch paths
1589 --enable-__cxa_atexit enable __cxa_atexit for C++
1590 --enable-decimal-float={no,yes,bid,dpd}
1591 enable decimal float extension to C. Selecting 'bid
'
1592 or 'dpd
' choses which decimal floating point format
1594 --enable-fixed-point enable fixed-point arithmetic extension to C
1595 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1597 --enable-tls enable or disable generation of tls code overriding
1598 the assembler check for tls support
1599 --enable-objc-gc enable the use of Boehm's garbage collector with the
1600 GNU Objective-C runtime
1601 --enable-upc-link-script
1602 enable UPC
's use of a custom linker script; this
1603 will define the UPC shared section as a no load
1604 section on targets where this feature is supported
1606 --disable-shared don't provide a shared libgcc
1607 --enable-languages=LIST specify
which front-ends to build
1608 --disable-rpath do not hardcode runtime library paths
1609 --enable-sjlj-exceptions
1610 arrange to use setjmp
/longjmp exception handling
1611 --enable-secureplt enable -msecure-plt by default
for PowerPC
1612 --enable-leading-mingw64-underscores
1613 enable leading underscores on
64 bit mingw targets
1614 --enable-cld enable -mcld by default
for 32bit x86
1615 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1617 --disable-win32-registry
1618 disable lookup of installation paths
in the Registry
1620 --enable-win32-registry enable registry lookup
(default
)
1621 --enable-win32-registry=KEY
1622 use KEY instead of GCC version as the last portion
1624 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1625 --enable-static[=PKGS
] build static libraries
[default
=yes]
1626 --enable-fast-install[=PKGS
]
1627 optimize
for fast installation
[default
=yes]
1628 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1629 --enable-gnu-indirect-function
1630 enable the use of the @gnu_indirect_function to
1632 --enable-initfini-array use .init_array
/.fini_array sections
1633 --enable-comdat enable COMDAT group support
1634 --enable-gnu-unique-object
1635 enable the use of the @gnu_unique_object ELF
1636 extension on glibc systems
1637 --enable-linker-build-id
1638 compiler will always pass
--build-id to linker
1639 --enable-maintainer-mode
1640 enable make rules and dependencies not useful
(and
1641 sometimes confusing
) to the casual installer
1642 --enable-version-specific-runtime-libs
1643 specify that runtime libraries should be installed
1644 in a compiler-specific directory
1645 --enable-plugin enable plugin support
1646 --disable-libquadmath-support
1647 disable libquadmath support
for Fortran
1650 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1651 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1652 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1653 --with-local-prefix=DIR specifies directory to put
local include
1654 --with-gxx-include-dir=DIR
1655 specifies directory to put g
++ header files
1656 --with-cpp-install-dir=DIR
1657 install the user visible C preprocessor
in DIR
1658 (relative to PREFIX
) as well as PREFIX
/bin
1659 --with-gnu-ld arrange to work with GNU ld
1660 --with-ld arrange to use the specified ld
(full pathname
)
1661 --with-demangler-in-ld try to use demangler
in GNU ld
1662 --with-gnu-as arrange to work with GNU as
1663 --with-as arrange to use the specified as
(full pathname
)
1664 --with-stabs arrange to use stabs instead of
host debug format
1665 --with-upc-pts={struct
,packed
}
1666 choose the representation of a UPC pointer-to-shared
1667 --with-upc-pts-vaddr-order={last
,first
}
1668 choose position of the address field
in UPC
1669 pointer-to-shared representation
1671 --with-upc-pts-packed-bits=phase
,thread
,vaddr
1672 choose bit distribution
in packed UPC
1673 pointer-to-shared representation
1674 --with-dwarf2 force the default debug format to be DWARF
2
1675 --with-native-system-header-dir=dir
1676 use dir as the directory to
look for standard
1677 system header files
in. Defaults to
/usr
/include.
1678 --with-build-sysroot=sysroot
1679 use sysroot as the system root during the build
1680 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1681 --with-specs=SPECS add SPECS to driver command-line processing
1682 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1683 --with-bugurl=URL Direct users to URL to report a bug
1684 --with-multilib-list select multilibs
(SH and x86-64 only
)
1685 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1686 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1687 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1688 --with-pic try to use only PIC/non-PIC objects [default=use
1690 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1691 --with-plugin-ld=[ARG] specify the plugin linker
1692 --with-long-double-128 use 128-bit long double by default
1693 --with-gc={page,zone} choose the garbage collection mechanism to use with
1695 --with-system-zlib use installed libz
1696 --with-linker-hash-style={sysv,gnu,both}
1697 specify the linker hash style
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
1710 CXXCPP C++ preprocessor
1711 GMPLIBS How to link GMP
1712 GMPINC How to find GMP include files
1713 ISLLIBS How to link ISL
1714 ISLINC How to find ISL include files
1715 CLOOGLIBS How to link CLOOG
1716 CLOOGINC How to find CLOOG include files
1718 Use these variables to override the choices made by `configure' or to
help
1719 it to
find libraries and programs with nonstandard names
/locations.
1721 Report bugs to the package provider.
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1735 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1737 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1742 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1745 ac_abs_top_builddir
=$ac_pwd
1746 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir
=$ac_top_build_prefix
1751 .
) # We are building in place.
1753 ac_top_srcdir
=$ac_top_builddir_sub
1754 ac_abs_top_srcdir
=$ac_pwd ;;
1755 [\\/]* | ?
:[\\/]* ) # Absolute name.
1756 ac_srcdir
=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir
=$srcdir
1758 ac_abs_top_srcdir
=$srcdir ;;
1760 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1764 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1766 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1785 generated by GNU Autoconf
2.64
1787 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1788 This configure
script is free software
; the Free Software Foundation
1789 gives unlimited permission to copy
, distribute and modify it.
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile
()
1803 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1804 rm -f conftest.
$ac_objext
1805 if { { ac_try
="$ac_compile"
1807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_try_compile
1836 # ac_fn_cxx_try_compile LINENO
1837 # ----------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.
$ac_objext; then :
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
;}
1872 } # ac_fn_cxx_try_compile
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1880 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } >/dev/null && {
1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914 # the include files in INCLUDES and setting the cache variable VAR
1916 ac_fn_c_check_header_mongrel ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 # Is the header compilable?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931 $as_echo_n "checking $2 usability... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_header_compiler=yes
1940 ac_header_compiler=no
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944 $as_echo "$ac_header_compiler" >&6; }
1946 # Is the header present?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948 $as_echo_n "checking $2 presence... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1953 if ac_fn_c_try_cpp "$LINENO"; then :
1954 ac_header_preproc=yes
1956 ac_header_preproc=no
1958 rm -f conftest.err conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960 $as_echo "$ac_header_preproc" >&6; }
1962 # So? What about this header?
1963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1974 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1978 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1986 $as_echo_n "(cached) " >&6
1988 eval "$3=\$ac_header_compiler"
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 } # ac_fn_c_check_header_mongrel
1998 # ac_fn_c_try_run LINENO
1999 # ----------------------
2000 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2001 # that executables *can* be run.
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if { { ac_try="$ac_link"
2007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2008 *) ac_try_echo
=$ac_try;;
2010 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 $as_echo "$ac_try_echo"; } >&5
2012 (eval "$ac_link") 2>&5
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2016 { { case "(($ac_try" in
2017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_try") 2>&5
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; }; }; then :
2028 $as_echo "$as_me: program exited with status $ac_status" >&5
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2032 ac_retval=$ac_status
2034 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2057 if ac_fn_c_try_compile "$LINENO"; then :
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 } # ac_fn_c_check_header_compile
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 ac_fn_c_compute_int ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2094 if ac_fn_c_try_compile "$LINENO"; then :
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=$ac_mid; break
2113 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2114 if test $ac_lo -le $ac_mid; then
2118 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) < 0)];
2136 if ac_fn_c_try_compile "$LINENO"; then :
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_lo=$ac_mid; break
2155 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156 if test $ac_mid -le $ac_hi; then
2160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 # Binary search between lo and hi bounds.
2171 while test "x$ac_lo" != "x$ac_hi"; do
2172 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 if ac_fn_c_try_compile "$LINENO"; then :
2189 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2201 static long int longval () { return $2; }
2202 static unsigned long int ulongval () { return $2; }
2209 FILE *f = fopen ("conftest.val", "w");
2214 long int i = longval ();
2217 fprintf (f, "%ld", i);
2221 unsigned long int i = ulongval ();
2224 fprintf (f, "%lu", i);
2226 /* Do not output a trailing newline, as this causes \r\n confusion
2227 on some platforms. */
2228 return ferror (f) || fclose (f) != 0;
2234 if ac_fn_c_try_run "$LINENO"; then :
2235 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240 conftest.$ac_objext conftest.beam conftest.$ac_ext
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_c_compute_int
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301 } # ac_fn_c_check_type
2303 # ac_fn_c_find_intX_t LINENO BITS VAR
2304 # -----------------------------------
2305 # Finds a signed integer type with width BITS, setting cache variable VAR
2307 ac_fn_c_find_intX_t ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2311 $as_echo_n "checking for int$2_t... " >&6; }
2312 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2313 $as_echo_n "(cached) " >&6
2316 for ac_type in int$2_t 'int' 'long int' \
2317 'long long int' 'short int' 'signed char'; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 $ac_includes_default
2324 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $ac_includes_default
2338 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2339 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2346 if ac_fn_c_try_compile "$LINENO"; then :
2353 eval "$3=\$ac_type" ;;
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 if test "x$as_val" = x""no; then :
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 } # ac_fn_c_find_intX_t
2374 # ac_fn_c_try_link LINENO
2375 # -----------------------
2376 # Try to link conftest.$ac_ext, and return whether this succeeded.
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest$ac_exeext
2381 if { { ac_try="$ac_link"
2383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2384 *) ac_try_echo
=$ac_try;;
2386 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>conftest.err
2390 if test -s conftest.err
; then
2391 grep -v '^ *+' conftest.err
>conftest.er1
2392 cat conftest.er1
>&5
2393 mv -f conftest.er1 conftest.err
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_c_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest
$ac_exeext && {
2400 test "$cross_compiling" = yes ||
2401 $as_test_x conftest
$ac_exeext
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.
$ac_ext >&5
2410 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2411 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2412 # interfere with the next link command; also delete a directory that is
2413 # left behind by Apple's compiler. We do this before executing the actions.
2414 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2418 } # ac_fn_c_try_link
2420 # ac_fn_c_find_uintX_t LINENO BITS VAR
2421 # ------------------------------------
2422 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2424 ac_fn_c_find_uintX_t
()
2426 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2428 $as_echo_n "checking for uint$2_t... " >&6; }
2429 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2430 $as_echo_n "(cached) " >&6
2433 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2434 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437 $ac_includes_default
2441 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2453 eval "$3=\$ac_type" ;;
2456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2458 if test "x$as_val" = x
""no
; then :
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2470 } # ac_fn_c_find_uintX_t
2472 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2473 # ----------------------------------------------
2474 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2475 ac_fn_c_check_header_preproc
()
2477 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2481 $as_echo_n "(cached) " >&6
2483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2487 if ac_fn_c_try_cpp
"$LINENO"; then :
2492 rm -f conftest.err conftest.
$ac_ext
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2499 } # ac_fn_c_check_header_preproc
2501 # ac_fn_cxx_try_cpp LINENO
2502 # ------------------------
2503 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2504 ac_fn_cxx_try_cpp
()
2506 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2507 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513 $as_echo "$ac_try_echo"; } >&5
2514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2516 if test -s conftest.err; then
2517 grep -v '^ *+' conftest.err >conftest.er1
2518 cat conftest.er1 >&5
2519 mv -f conftest.er1 conftest.err
2521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522 test $ac_status = 0; } >/dev/null && {
2523 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2524 test ! -s conftest.err
2528 $as_echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536 } # ac_fn_cxx_try_cpp
2538 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2539 # ------------------------------------------------
2540 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2541 ac_fn_cxx_check_header_preproc ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2547 $as_echo_n "(cached) " >&6
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2553 if ac_fn_cxx_try_cpp "$LINENO"; then :
2558 rm -f conftest.err conftest.$ac_ext
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 } # ac_fn_cxx_check_header_preproc
2567 # ac_fn_c_check_func LINENO FUNC VAR
2568 # ----------------------------------
2569 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2570 ac_fn_c_check_func ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2582 #define $2 innocuous_$2
2584 /* System header to define __stub macros and hopefully few prototypes,
2585 which can conflict with char $2 (); below.
2586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2587 <limits.h> exists even on freestanding compilers. */
2590 # include <limits.h>
2592 # include <assert.h>
2597 /* Override any GCC internal prototype to avoid an error.
2598 Use char because int might match the return type of a GCC
2599 builtin and then its argument prototype would still apply. */
2604 /* The GNU C library defines this for functions which it implements
2605 to always fail with ENOSYS. Some functions are actually named
2606 something starting with __ and the normal name is an alias. */
2607 #if defined __stub_$2 || defined __stub___$2
2619 if ac_fn_c_try_link "$LINENO"; then :
2624 rm -f core conftest.err conftest.$ac_objext \
2625 conftest$ac_exeext conftest.$ac_ext
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632 } # ac_fn_c_check_func
2634 # ac_fn_cxx_try_link LINENO
2635 # -------------------------
2636 # Try to link conftest.$ac_ext, and return whether this succeeded.
2637 ac_fn_cxx_try_link ()
2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640 rm -f conftest.$ac_objext conftest$ac_exeext
2641 if { { ac_try="$ac_link"
2643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2644 *) ac_try_echo
=$ac_try;;
2646 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647 $as_echo "$ac_try_echo"; } >&5
2648 (eval "$ac_link") 2>conftest.err
2650 if test -s conftest.err
; then
2651 grep -v '^ *+' conftest.err
>conftest.er1
2652 cat conftest.er1
>&5
2653 mv -f conftest.er1 conftest.err
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; } && {
2657 test -z "$ac_cxx_werror_flag" ||
2658 test ! -s conftest.err
2659 } && test -s conftest
$ac_exeext && {
2660 test "$cross_compiling" = yes ||
2661 $as_test_x conftest
$ac_exeext
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2672 # interfere with the next link command; also delete a directory that is
2673 # left behind by Apple's compiler. We do this before executing the actions.
2674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2678 } # ac_fn_cxx_try_link
2679 cat >config.log
<<_ACEOF
2680 This file contains any messages produced by compilers while
2681 running configure, to aid debugging if configure makes a mistake.
2683 It was created by $as_me, which was
2684 generated by GNU Autoconf 2.64. Invocation command line was
2696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir
=.
2720 $as_echo "PATH: $as_dir"
2736 # Keep a trace of the command line.
2737 # Strip out --no-create and --no-recursion so they do not pile up.
2738 # Strip out --silent because we don't want to record it for future runs.
2739 # Also quote any args containing shell meta-characters.
2740 # Make two passes to allow for proper duplicate-argument suppression.
2744 ac_must_keep_next
=false
2750 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2751 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2752 |
-silent |
--silent |
--silen |
--sile |
--sil)
2755 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2758 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2760 as_fn_append ac_configure_args1
" '$ac_arg'"
2761 if test $ac_must_keep_next = true
; then
2762 ac_must_keep_next
=false
# Got value, back to normal.
2765 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2766 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2767 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2768 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2769 case "$ac_configure_args0 " in
2770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2773 -* ) ac_must_keep_next
=true
;;
2776 as_fn_append ac_configure_args
" '$ac_arg'"
2781 { ac_configure_args0
=; unset ac_configure_args0
;}
2782 { ac_configure_args1
=; unset ac_configure_args1
;}
2784 # When interrupted or exit'd, cleanup temporary files, and complete
2785 # config.log. We remove comments because anyway the quotes in there
2786 # would cause problems or look ugly.
2787 # WARNING: Use '\'' to represent an apostrophe within the trap.
2788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2789 trap 'exit_status=$?
2790 # Save into config.log some information that might help in debugging.
2795 ## ---------------- ##
2796 ## Cache variables. ##
2797 ## ---------------- ##
2800 # The following way of writing the cache mishandles newlines in values,
2802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2803 eval ac_val=\$$ac_var
2807 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2811 _ | IFS | as_nl) ;; #(
2812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2813 *) { eval $ac_var=; unset $ac_var;} ;;
2818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2819 *${as_nl}ac_space=\ *)
2821 "s/'\''/'\''\\\\'\'''\''/g;
2822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2833 ## ----------------- ##
2834 ## Output variables. ##
2835 ## ----------------- ##
2838 for ac_var in $ac_subst_vars
2840 eval ac_val=\$$ac_var
2842 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 $as_echo "$ac_var='\''$ac_val'\''"
2848 if test -n "$ac_subst_files"; then
2850 ## ------------------- ##
2851 ## File substitutions. ##
2852 ## ------------------- ##
2855 for ac_var
in $ac_subst_files
2857 eval ac_val
=\$
$ac_var
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 $as_echo "$ac_var='\''$ac_val'\''"
2866 if test -s confdefs.h; then
2876 test "$ac_signal" != 0 &&
2877 $as_echo "$as_me: caught signal $ac_signal"
2878 $as_echo "$as_me: exit $exit_status"
2880 rm -f core *.core core.conftest.* &&
2881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2884 for ac_signal
in 1 2 13 15; do
2885 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2890 rm -f -r conftest
* confdefs.h
2892 $as_echo "/* confdefs.h */" > confdefs.h
2894 # Predefined preprocessor variables.
2896 cat >>confdefs.h
<<_ACEOF
2897 #define PACKAGE_NAME "$PACKAGE_NAME"
2900 cat >>confdefs.h
<<_ACEOF
2901 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2904 cat >>confdefs.h
<<_ACEOF
2905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2908 cat >>confdefs.h
<<_ACEOF
2909 #define PACKAGE_STRING "$PACKAGE_STRING"
2912 cat >>confdefs.h
<<_ACEOF
2913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2916 cat >>confdefs.h
<<_ACEOF
2917 #define PACKAGE_URL "$PACKAGE_URL"
2921 # Let the site file select an alternate cache file if it wants to.
2922 # Prefer an explicitly selected file to automatically selected ones.
2925 if test -n "$CONFIG_SITE"; then
2926 ac_site_file1
=$CONFIG_SITE
2927 elif test "x$prefix" != xNONE
; then
2928 ac_site_file1
=$prefix/share
/config.site
2929 ac_site_file2
=$prefix/etc
/config.site
2931 ac_site_file1
=$ac_default_prefix/share
/config.site
2932 ac_site_file2
=$ac_default_prefix/etc
/config.site
2934 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2936 test "x$ac_site_file" = xNONE
&& continue
2937 if test -r "$ac_site_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2939 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2940 sed 's/^/| /' "$ac_site_file" >&5
2945 if test -r "$cache_file"; then
2946 # Some versions of bash will fail to source /dev/null (special
2947 # files actually), so we avoid doing that.
2948 if test -f "$cache_file"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2950 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2953 *) .
"./$cache_file";;
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2958 $as_echo "$as_me: creating cache $cache_file" >&6;}
2962 # Check that the precious variables saved in the cache have kept the same
2964 ac_cache_corrupted
=false
2965 for ac_var
in $ac_precious_vars; do
2966 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2967 eval ac_new_set
=\
$ac_env_${ac_var}_set
2968 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2969 eval ac_new_val
=\
$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted
=: ;;
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted
=: ;;
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w
=`echo x $ac_old_val`
2984 ac_new_val_w
=`echo x $ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2988 ac_cache_corrupted
=:
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\
$ac_old_val
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2995 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3003 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 *) ac_arg
=$ac_var=$ac_new_val ;;
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3012 if $ac_cache_corrupted; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3024 ac_cpp
='$CPP $CPPFLAGS'
3025 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3034 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3037 gcc_version
=`cat $srcdir/BASE-VER`
3039 # Determine the host, build, and target systems
3041 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3042 for ac_t
in install-sh
install.sh shtool
; do
3043 if test -f "$ac_dir/$ac_t"; then
3045 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3050 if test -z "$ac_aux_dir"; then
3051 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3054 # These three variables are undocumented and unsupported,
3055 # and are intended to be withdrawn in a future Autoconf release.
3056 # They can cause serious problems if a builder's source tree is in a directory
3057 # whose full name contains unusual characters.
3058 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3059 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3060 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3063 # Make sure we can run config.sub.
3064 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3065 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3068 $as_echo_n "checking build system type... " >&6; }
3069 if test "${ac_cv_build+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 ac_build_alias
=$build_alias
3073 test "x$ac_build_alias" = x
&&
3074 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3075 test "x$ac_build_alias" = x
&&
3076 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3077 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3078 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3082 $as_echo "$ac_cv_build" >&6; }
3083 case $ac_cv_build in
3085 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3088 ac_save_IFS
=$IFS; IFS
='-'
3094 # Remember, the first character of IFS is used to create $*,
3095 # except with old shells:
3098 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3102 $as_echo_n "checking host system type... " >&6; }
3103 if test "${ac_cv_host+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3106 if test "x$host_alias" = x
; then
3107 ac_cv_host
=$ac_cv_build
3109 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3110 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3115 $as_echo "$ac_cv_host" >&6; }
3118 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3121 ac_save_IFS
=$IFS; IFS
='-'
3127 # Remember, the first character of IFS is used to create $*,
3128 # except with old shells:
3131 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3135 $as_echo_n "checking target system type... " >&6; }
3136 if test "${ac_cv_target+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3139 if test "x$target_alias" = x
; then
3140 ac_cv_target
=$ac_cv_host
3142 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3143 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3148 $as_echo "$ac_cv_target" >&6; }
3149 case $ac_cv_target in
3151 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3153 target
=$ac_cv_target
3154 ac_save_IFS
=$IFS; IFS
='-'
3160 # Remember, the first character of IFS is used to create $*,
3161 # except with old shells:
3164 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3167 # The aliases save the names the user supplied, while $host etc.
3168 # will get canonicalized.
3169 test -n "$target_alias" &&
3170 test "$program_prefix$program_suffix$program_transform_name" = \
3172 program_prefix
=${target_alias}-
3174 # Determine the noncanonical target name, for directory use.
3175 case ${build_alias} in
3176 "") build_noncanonical
=${build} ;;
3177 *) build_noncanonical
=${build_alias} ;;
3180 case ${host_alias} in
3181 "") host_noncanonical
=${build_noncanonical} ;;
3182 *) host_noncanonical
=${host_alias} ;;
3185 case ${target_alias} in
3186 "") target_noncanonical
=${host_noncanonical} ;;
3187 *) target_noncanonical
=${target_alias} ;;
3193 # Determine the target- and build-specific subdirectories
3195 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3196 # have matching libraries, they should use host libraries: Makefile.tpl
3197 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3198 # However, they still use the build modules, because the corresponding
3199 # host modules (e.g. bison) are only built for the host when bootstrap
3201 # - build_subdir is where we find build modules, and never changes.
3202 # - build_libsubdir is where we find build libraries, and can be overridden.
3204 # Prefix 'build-' so this never conflicts with target_subdir.
3205 build_subdir
="build-${build_noncanonical}"
3207 # Check whether --with-build-libsubdir was given.
3208 if test "${with_build_libsubdir+set}" = set; then :
3209 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3211 build_libsubdir
="$build_subdir"
3214 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3215 if ( test $srcdir = .
&& test -d gcc
) \
3216 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3217 host_subdir
="host-${host_noncanonical}"
3222 target_subdir
=${target_noncanonical}
3225 # Set program_transform_name
3226 test "$program_prefix" != NONE
&&
3227 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3228 # Use a double $ so make ignores it.
3229 test "$program_suffix" != NONE
&&
3230 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3231 # Double any \ or $.
3232 # By default was `s,x,x', remove it if useless.
3233 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3234 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3237 # Check for bogus environment variables.
3238 # Test if LIBRARY_PATH contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # LIBRARY_PATH contains the current directory if one of the following
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3246 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3247 case ${LIBRARY_PATH} in
3248 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3249 library_path_setting
="contains current directory"
3252 library_path_setting
="ok"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3256 $as_echo "$library_path_setting" >&6; }
3257 if test "$library_path_setting" != "ok"; then
3259 *** LIBRARY_PATH shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3264 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3265 # since this would lead to problems installing/building glibc.
3266 # GCC_EXEC_PREFIX contains the current directory if one of the following
3268 # - one of the terminals (":" and ";") is the first or last sign
3269 # - two terminals occur directly after each other
3270 # - the path contains an element with a dot in it
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3272 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3273 case ${GCC_EXEC_PREFIX} in
3274 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3275 gcc_exec_prefix_setting
="contains current directory"
3278 gcc_exec_prefix_setting
="ok"
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3282 $as_echo "$gcc_exec_prefix_setting" >&6; }
3283 if test "$gcc_exec_prefix_setting" != "ok"; then
3285 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3286 *** building gcc. Please change the environment variable
3287 *** and run configure again." "$LINENO" 5
3294 # Specify the local prefix
3297 # Check whether --with-local-prefix was given.
3298 if test "${with_local_prefix+set}" = set; then :
3299 withval
=$with_local_prefix; case "${withval}" in
3300 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3302 *) local_prefix
=$with_local_prefix ;;
3307 # Default local prefix if it is empty
3308 if test x
$local_prefix = x
; then
3309 local_prefix
=/usr
/local
3312 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3313 # passed in by the toplevel make and thus we'd get different behavior
3314 # depending on where we built the sources.
3315 gcc_gxx_include_dir
=
3316 # Specify the g++ header file directory
3318 # Check whether --with-gxx-include-dir was given.
3319 if test "${with_gxx_include_dir+set}" = set; then :
3320 withval
=$with_gxx_include_dir; case "${withval}" in
3321 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3323 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3328 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3329 if test x
${gcc_gxx_include_dir} = x
; then
3330 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3331 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3333 libstdcxx_incdir
='include/c++/$(version)'
3334 if test x
$host != x
$target; then
3335 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3337 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3341 gcc_gxx_include_dir_add_sysroot
=0
3342 if test "${with_sysroot+set}" = set; then
3343 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3344 if test "${gcc_gxx_without_sysroot}"; then
3345 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3346 gcc_gxx_include_dir_add_sysroot
=1
3351 # Check whether --with-cpp_install_dir was given.
3352 if test "${with_cpp_install_dir+set}" = set; then :
3353 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3354 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3355 elif test x
$withval != xno
; then
3356 cpp_install_dir
=$withval
3361 # We would like to our source tree to be readonly. However when releases or
3362 # pre-releases are generated, the flex/bison generated files as well as the
3363 # various formats of manuals need to be included along with the rest of the
3364 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3368 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3369 # Check whether --enable-generated-files-in-srcdir was given.
3370 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3371 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3373 generated_files_in_srcdir
=no
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3378 $as_echo "$generated_files_in_srcdir" >&6; }
3380 if test "$generated_files_in_srcdir" = "yes"; then
3387 # -------------------
3388 # Find default linker
3389 # -------------------
3393 # Check whether --with-gnu-ld was given.
3394 if test "${with_gnu_ld+set}" = set; then :
3395 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3401 # With pre-defined ld
3403 # Check whether --with-ld was given.
3404 if test "${with_ld+set}" = set; then :
3405 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3408 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3409 if test ! -x "$DEFAULT_LINKER"; then
3410 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3411 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3415 cat >>confdefs.h
<<_ACEOF
3416 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3422 $as_echo_n "checking whether a default linker was specified... " >&6; }
3423 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3424 if test x
"$gnu_ld_flag" = x
"no"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3426 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3429 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3436 # With demangler in GNU ld
3438 # Check whether --with-demangler-in-ld was given.
3439 if test "${with_demangler_in_ld+set}" = set; then :
3440 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3446 # ----------------------
3447 # Find default assembler
3448 # ----------------------
3452 # Check whether --with-gnu-as was given.
3453 if test "${with_gnu_as+set}" = set; then :
3454 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3461 # Check whether --with-as was given.
3462 if test "${with_as+set}" = set; then :
3463 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3466 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3467 if test ! -x "$DEFAULT_ASSEMBLER"; then
3468 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3469 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3473 cat >>confdefs.h
<<_ACEOF
3474 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3480 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3481 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3482 if test x
"$gas_flag" = x
"no"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3484 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3487 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3498 # If a non-executable a.out is present (e.g. created by GNU as above even if
3499 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3500 # file, even when creating an executable, so an execution test fails.
3501 # Remove possible default executable files to avoid this.
3503 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3504 # Autoconf includes it.
3505 rm -f a.out a.exe b.out
3507 # Find the native compiler
3509 ac_cpp
='$CPP $CPPFLAGS'
3510 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3515 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC
="$CC" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3552 if test -z "$ac_cv_prog_CC"; then
3554 # Extract the first word of "gcc", so it can be a program name with args.
3555 set dummy gcc
; ac_word
=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir
=.
3569 for ac_exec_ext
in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_ac_ct_CC
="gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3590 if test "x$ac_ct_CC" = x
; then
3593 case $cross_compiling:$ac_tool_warned in
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned
=yes ;;
3605 if test -z "$CC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3608 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if test "${ac_cv_prog_CC+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC
="$CC" # Let the user override the test.
3617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir
=.
3622 for ac_exec_ext
in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 # Extract the first word of "cc", so it can be a program name with args.
3648 set dummy cc
; ac_word
=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_CC+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC
="$CC" # Let the user override the test.
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir
=.
3663 for ac_exec_ext
in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3666 ac_prog_rejected
=yes
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 if test $ac_prog_rejected = yes; then
3678 # We found a bogon in the path, so make sure we never use it.
3679 set dummy
$ac_cv_prog_CC
3681 if test $# != 0; then
3682 # We chose a different compiler from the bogus one.
3683 # However, it has the same basename, so the bogon will be chosen
3684 # first if we set CC to just the basename; use the full file name.
3686 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog
in cl.exe
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_CC+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC
="$CC" # Let the user override the test.
3716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir
=.
3721 for ac_exec_ext
in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$CC" && break
3746 if test -z "$CC"; then
3748 for ac_prog
in cl.exe
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy
$ac_prog; ac_word
=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3757 if test -n "$ac_ct_CC"; then
3758 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir
=.
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_ac_ct_CC
="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780 $as_echo "$ac_ct_CC" >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$ac_ct_CC" && break
3790 if test "x$ac_ct_CC" = x
; then
3793 case $cross_compiling:$ac_tool_warned in
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned
=yes ;;
3806 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error
"no acceptable C compiler found in \$PATH
3809 See \`config.log' for more details." "$LINENO" 5; }
3811 # Provide some information about the compiler.
3812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3815 for ac_option
in --version -v -V -qversion; do
3816 { { ac_try
="$ac_compiler $ac_option >&5"
3818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 if test -s conftest.err; then
3827 ... rest of stderr output deleted ...
3828 10q' conftest.err >conftest.er1
3829 cat conftest.er1 >&5
3830 rm -f conftest.er1 conftest.err
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3847 ac_clean_files_save=$ac_clean_files
3848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3849 # Try to create an executable without -o first, disregard a.out.
3850 # It will help us diagnose broken compilers, and finding out an intuition
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3853 $as_echo_n "checking for C compiler default output file name... " >&6; }
3854 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3856 # The possible output files:
3857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3860 for ac_file in $ac_files
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869 if { { ac_try="$ac_link_default"
3871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3872 *) ac_try_echo
=$ac_try;;
3874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link_default") 2>&5
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3883 # so that the user can short-circuit this test for compilers unknown to
3885 for ac_file
in $ac_files ''
3887 test -f "$ac_file" ||
continue
3889 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3892 # We found the default executable, but exeext='' is most
3896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3898 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 # We set ac_cv_exeext here because the later test for it is not
3901 # safe: cross compilers may not add the suffix if given an `-o'
3902 # argument, so we may need to know it at that point already.
3903 # Even if this section looks crufty: it has the advantage of
3910 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3916 $as_echo "$ac_file" >&6; }
3917 if test -z "$ac_file"; then :
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.
$ac_ext >&5
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 { as_fn_set_status
77
3924 as_fn_error
"C compiler cannot create executables
3925 See \`config.log' for more details." "$LINENO" 5; }; }
3927 ac_exeext
=$ac_cv_exeext
3929 # Check that the compiler produces executables we can run. If not, either
3930 # the compiler is broken, or we cross compile.
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3932 $as_echo_n "checking whether the C compiler works... " >&6; }
3933 # If not cross compiling, check that we can run a simple program.
3934 if test "$cross_compiling" != yes; then
3935 if { ac_try
='./$ac_file'
3936 { { case "(($ac_try" in
3937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_try") 2>&5
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; }; then
3948 if test "$cross_compiling" = maybe; then
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error "cannot run C compiled programs.
3954 If you meant to cross compile
, use \
`--host'.
3955 See \`config.log
' for more details." "$LINENO" 5; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3963 ac_clean_files=$ac_clean_files_save
3964 # Check that the compiler produces executables we can run. If not, either
3965 # the compiler is broken, or we cross compile.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 $as_echo_n "checking whether we are cross compiling... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3969 $as_echo "$cross_compiling" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try="$ac_link"
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3985 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3988 for ac_file
in conftest.exe conftest conftest.
*; do
3989 test -f "$ac_file" ||
continue
3991 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3992 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details." "$LINENO" 5; }
4003 rm -f conftest
$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4007 rm -f conftest.
$ac_ext
4008 EXEEXT
=$ac_cv_exeext
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4011 $as_echo_n "checking for suffix of object files... " >&6; }
4012 if test "${ac_cv_objext+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4026 rm -f conftest.o conftest.obj
4027 if { { ac_try
="$ac_compile"
4029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_compile") 2>&5
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
4038 for ac_file in conftest.o conftest.obj conftest.*; do
4039 test -f "$ac_file" || continue;
4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4047 $as_echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error "cannot compute suffix of object files
: cannot compile
4053 See \
`config.log' for more details." "$LINENO" 5; }
4055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4058 $as_echo "$ac_cv_objext" >&6; }
4059 OBJEXT=$ac_cv_objext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4062 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4063 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4090 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4091 if test $ac_compiler_gnu = yes; then
4096 ac_test_CFLAGS=${CFLAGS+set}
4097 ac_save_CFLAGS=$CFLAGS
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4099 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4100 if test "${ac_cv_prog_cc_g+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4103 ac_save_c_werror_flag=$ac_c_werror_flag
4104 ac_c_werror_flag=yes
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4118 if ac_fn_c_try_compile "$LINENO"; then :
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4149 if ac_fn_c_try_compile "$LINENO"; then :
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 $as_echo "$ac_cv_prog_cc_g" >&6; }
4161 if test "$ac_test_CFLAGS" = set; then
4162 CFLAGS=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4170 if test "$GCC" = yes; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4178 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_cv_prog_cc_c89=no
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4187 #include <sys/types.h>
4188 #include <sys/stat.h>
4189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4190 struct buf { int x; };
4191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4192 static char *e (p, i)
4198 static char *f (char * (*g) (char **, int), char **p, ...)
4203 s = g (p, va_arg (v,int));
4208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4209 function prototypes and stuff, but not '\xHH' hex character constants.
4210 These don't provoke an error unfortunately, instead are silently treated
4211 as 'x'. The following induces an error, until -std is added to get
4212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4213 array size at least. It's necessary to write '\x00'==0 to get something
4214 that's true only with -std. */
4215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4218 inside strings and character constants. */
4220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222 int test (int i, double x);
4223 struct s1 {int (*f) (int a);};
4224 struct s2 {int (*f) (double a);};
4225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_cv_prog_cc_c89=$ac_arg
4243 rm -f core conftest.err conftest.$ac_objext
4244 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 rm -f conftest.$ac_ext
4251 case "x$ac_cv_prog_cc_c89" in
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4254 $as_echo "none needed" >&6; } ;;
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257 $as_echo "unsupported" >&6; } ;;
4259 CC="$CC $ac_cv_prog_cc_c89"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 if test "x$ac_cv_prog_cc_c89" != xno; then :
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273 if test "x$CC" != xcc; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4275 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4278 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4280 set dummy $CC; ac_cc=`$as_echo "$2" |
4281 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4282 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4283 $as_echo_n "(cached) " >&6
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4296 # Make sure it works both with $CC and with simple cc.
4297 # We do the test twice because some compilers refuse to overwrite an
4298 # existing .o file with -o, though they will create one.
4299 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4301 if { { case "(($ac_try" in
4302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4303 *) ac_try_echo
=$ac_try;;
4305 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; } &&
4311 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_try") 2>&5
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; };
4322 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4323 if test "x$CC" != xcc; then
4324 # Test first that cc exists at all.
4325 if { ac_try='cc -c conftest.$ac_ext >&5'
4326 { { case "(($ac_try" in
4327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4328 *) ac_try_echo
=$ac_try;;
4330 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }; }; then
4336 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4338 if { { case "(($ac_try" in
4339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; } &&
4348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4350 *) ac_try_echo
=$ac_try;;
4352 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; };
4362 # cc exists but doesn't like -o.
4363 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4368 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4370 rm -f core conftest
*
4373 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4380 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4384 # expand $ac_aux_dir to an absolute path
4385 am_aux_dir
=`cd $ac_aux_dir && pwd`
4387 # FIXME: we rely on the cache variable name because
4388 # there is no other way.
4390 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4391 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4392 if test "$am_t" != yes; then
4393 # Losing compiler, so override with the script.
4394 # FIXME: It is wrong to rewrite CC.
4395 # But if we don't then we get into trouble of one sort or another.
4396 # A longer-term fix would be to have automake use am__CC in this case,
4397 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4398 CC
="$am_aux_dir/compile $CC"
4403 ac_cpp
='$CXXCPP $CPPFLAGS'
4404 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4407 if test -z "$CXX"; then
4408 if test -n "$CCC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_CXX+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$CXX"; then
4422 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir
=.
4429 for ac_exec_ext
in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 if test -n "$CXX"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4444 $as_echo "$CXX" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$CXX" && break
4454 if test -z "$CXX"; then
4456 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy
$ac_prog; ac_word
=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4465 if test -n "$ac_ct_CXX"; then
4466 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir
=.
4473 for ac_exec_ext
in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4486 if test -n "$ac_ct_CXX"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4488 $as_echo "$ac_ct_CXX" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$ac_ct_CXX" && break
4498 if test "x$ac_ct_CXX" = x
; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned
=yes ;;
4513 # Provide some information about the compiler.
4514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4517 for ac_option
in --version -v -V -qversion; do
4518 { { ac_try
="$ac_compiler $ac_option >&5"
4520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4527 if test -s conftest.err; then
4529 ... rest of stderr output deleted ...
4530 10q' conftest.err >conftest.er1
4531 cat conftest.er1 >&5
4532 rm -f conftest.er1 conftest.err
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4539 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4540 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4567 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4568 if test $ac_compiler_gnu = yes; then
4573 ac_test_CXXFLAGS=${CXXFLAGS+set}
4574 ac_save_CXXFLAGS=$CXXFLAGS
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4576 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4577 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4581 ac_cxx_werror_flag=yes
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4595 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cv_prog_cxx_g=yes
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4626 if ac_fn_cxx_try_compile "$LINENO"; then :
4627 ac_cv_prog_cxx_g=yes
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4637 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4638 if test "$ac_test_CXXFLAGS" = set; then
4639 CXXFLAGS=$ac_save_CXXFLAGS
4640 elif test $ac_cv_prog_cxx_g = yes; then
4641 if test "$GXX" = yes; then
4647 if test "$GXX" = yes; then
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$GNATBIND"; then
4671 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 GNATBIND=$ac_cv_prog_GNATBIND
4691 if test -n "$GNATBIND"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4693 $as_echo "$GNATBIND" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4701 if test -z "$ac_cv_prog_GNATBIND"; then
4702 ac_ct_GNATBIND=$GNATBIND
4703 # Extract the first word of "gnatbind", so it can be a program name with args.
4704 set dummy gnatbind; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4710 if test -n "$ac_ct_GNATBIND"; then
4711 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4731 if test -n "$ac_ct_GNATBIND"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4733 $as_echo "$ac_ct_GNATBIND" >&6; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4739 if test "x$ac_ct_GNATBIND" = x; then
4742 case $cross_compiling:$ac_tool_warned in
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4746 ac_tool_warned=yes ;;
4748 GNATBIND=$ac_ct_GNATBIND
4751 GNATBIND="$ac_cv_prog_GNATBIND"
4754 if test -n "$ac_tool_prefix"; then
4755 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4756 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4760 $as_echo_n "(cached) " >&6
4762 if test -n "$GNATMAKE"; then
4763 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 GNATMAKE=$ac_cv_prog_GNATMAKE
4783 if test -n "$GNATMAKE"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4785 $as_echo "$GNATMAKE" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4793 if test -z "$ac_cv_prog_GNATMAKE"; then
4794 ac_ct_GNATMAKE=$GNATMAKE
4795 # Extract the first word of "gnatmake", so it can be a program name with args.
4796 set dummy gnatmake; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4823 if test -n "$ac_ct_GNATMAKE"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4825 $as_echo "$ac_ct_GNATMAKE" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4831 if test "x$ac_ct_GNATMAKE" = x; then
4834 case $cross_compiling:$ac_tool_warned in
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4840 GNATMAKE=$ac_ct_GNATMAKE
4843 GNATMAKE="$ac_cv_prog_GNATMAKE"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4847 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4848 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4851 cat >conftest.adb <<EOF
4852 procedure conftest is begin null; end conftest;
4854 acx_cv_cc_gcc_supports_ada=no
4855 # There is a bug in old released versions of GCC which causes the
4856 # driver to exit successfully when the appropriate language module
4857 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4858 # Therefore we must check for the error message as well as an
4859 # unsuccessful exit.
4860 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4861 # given a .adb file, but produce no object file. So we must check
4862 # if an object file was really produced to guard against this.
4863 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4864 if test x"$errors" = x && test -f conftest.$ac_objext; then
4865 acx_cv_cc_gcc_supports_ada=yes
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4870 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4872 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4879 # autoconf is lame and doesn't give us any substitution variable for this.
4880 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4881 NO_MINUS_C_MINUS_O=yes
4883 OUTPUT_OPTION='-o $@'
4888 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4889 # optimizations to be activated explicitly by the toplevel.
4891 */prev-gcc/xgcc*) ;;
4892 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4893 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4898 # Determine PICFLAG for target gnatlib.
4904 # PIC is the default on some targets or must not be used.
4906 # PIC is the default on this platform
4907 # Common symbols not allowed in MH_DYLIB files
4908 PICFLAG_FOR_TARGET=-fno-common
4911 # PIC is the default.
4914 # PIC is the default for 64-bit PA HP-UX.
4916 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4918 i[34567]86-*-interix[3-9]*)
4919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4920 # Instead, we relocate shared libraries at runtime.
4922 i[34567]86-*-nto-qnx*)
4923 # QNX uses GNU C++, but need to define -shared option too, otherwise
4925 PICFLAG_FOR_TARGET='-fPIC -shared'
4927 i[34567]86-pc-msdosdjgpp*)
4928 # DJGPP does not support shared libraries at all.
4931 # On IA64 HP-UX, PIC is the default but the pic flag
4932 # sets the default TLS model and affects inlining.
4933 PICFLAG_FOR_TARGET=-fPIC
4936 # PIC is the default.
4938 rs6000-ibm-aix* | powerpc-ibm-aix*)
4939 # All AIX code is PIC.
4942 # Some targets support both -fPIC and -fpic, but prefer the latter.
4944 i[34567]86-*-* | x86_64-*-*)
4945 PICFLAG_FOR_TARGET=-fpic
4948 PICFLAG_FOR_TARGET=-fpic
4950 # FIXME: Override -fPIC default in libgcc only?
4951 sh-*-linux* | sh[2346lbe]*-*-linux*)
4952 PICFLAG_FOR_TARGET=-fpic
4954 # FIXME: Simplify to sh*-*-netbsd*?
4955 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4956 sh64-*-netbsd* | sh64l*-*-netbsd*)
4957 PICFLAG_FOR_TARGET=-fpic
4959 # Default to -fPIC unless specified otherwise.
4961 PICFLAG_FOR_TARGET=-fPIC
4965 # If the user explicitly uses -fpic/-fPIC, keep that.
4966 case "${CFLAGS_FOR_TARGET}" in
4968 PICFLAG_FOR_TARGET=-fpic
4971 PICFLAG_FOR_TARGET=-fPIC
4977 # -------------------------
4978 # Check C compiler features
4979 # -------------------------
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4993 if test -z "$CPP"; then
4994 if test "${ac_cv_prog_CPP+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5012 # include <limits.h>
5014 # include <assert.h>
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5021 # Broken: fails on valid input.
5024 rm -f conftest.err conftest.$ac_ext
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <ac_nonexistent.h>
5032 if ac_fn_c_try_cpp "$LINENO"; then :
5033 # Broken: success on invalid input.
5036 # Passes both tests.
5040 rm -f conftest.err conftest.$ac_ext
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.err conftest.
$ac_ext
5045 if $ac_preproc_ok; then :
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5058 $as_echo "$CPP" >&6; }
5060 for ac_c_preproc_warn_flag
in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5071 # include <limits.h>
5073 # include <assert.h>
5077 if ac_fn_c_try_cpp
"$LINENO"; then :
5080 # Broken: fails on valid input.
5083 rm -f conftest.err conftest.
$ac_ext
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <ac_nonexistent.h>
5091 if ac_fn_c_try_cpp
"$LINENO"; then :
5092 # Broken: success on invalid input.
5095 # Passes both tests.
5099 rm -f conftest.err conftest.
$ac_ext
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.err conftest.
$ac_ext
5104 if $ac_preproc_ok; then :
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details." "$LINENO" 5; }
5114 ac_cpp
='$CPP $CPPFLAGS'
5115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if test "${ac_cv_path_GREP+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5125 if test -z "$GREP"; then
5126 ac_path_GREP_found
=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5129 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5132 test -z "$as_dir" && as_dir
=.
5133 for ac_prog
in grep ggrep
; do
5134 for ac_exec_ext
in '' $ac_executable_extensions; do
5135 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5136 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5141 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5144 $as_echo_n 0123456789 >"conftest.in"
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5152 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5153 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP
="$ac_path_GREP"
5157 ac_path_GREP_max
=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5162 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5165 $ac_path_GREP_found && break 3
5170 if test -z "$ac_cv_path_GREP"; then
5171 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5174 ac_cv_path_GREP
=$GREP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP
="$ac_cv_path_GREP"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if test "${ac_cv_path_EGREP+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5188 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5189 then ac_cv_path_EGREP
="$GREP -E"
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found
=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5195 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_prog
in egrep; do
5200 for ac_exec_ext
in '' $ac_executable_extensions; do
5201 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5207 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5210 $as_echo_n 0123456789 >"conftest.in"
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5218 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5219 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP
="$ac_path_EGREP"
5223 ac_path_EGREP_max
=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5228 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5231 $ac_path_EGREP_found && break 3
5236 if test -z "$ac_cv_path_EGREP"; then
5237 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240 ac_cv_path_EGREP
=$EGREP
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP
="$ac_cv_path_EGREP"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if test "${ac_cv_header_stdc+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5270 if ac_fn_c_try_compile
"$LINENO"; then :
5271 ac_cv_header_stdc
=yes
5273 ac_cv_header_stdc
=no
5275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5277 if test $ac_cv_header_stdc = yes; then
5278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev
/null
2>&1; then :
5288 ac_cv_header_stdc
=no
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev
/null
2>&1; then :
5305 ac_cv_header_stdc
=no
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then :
5316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5324 # define ISLOWER(c) \
5325 (('a' <= (c) && (c) <= 'i') \
5326 || ('j' <= (c) && (c) <= 'r') \
5327 || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5336 for (i = 0; i < 256; i++)
5337 if (XOR (islower (i), ISLOWER (i))
5338 || toupper (i) != TOUPPER (i))
5343 if ac_fn_c_try_run
"$LINENO"; then :
5346 ac_cv_header_stdc
=no
5348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5364 inttypes.h stdint.h unistd.h
5366 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5369 eval as_val
=\$
$as_ac_Header
5370 if test "x$as_val" = x
""yes; then :
5371 cat >>confdefs.h
<<_ACEOF
5372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5382 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5389 if test "$MINIX" = yes; then
5391 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5394 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5397 $as_echo "#define _MINIX 1" >>confdefs.h
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5403 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5404 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 # define __EXTENSIONS__ 1
5411 $ac_includes_default
5420 if ac_fn_c_try_compile
"$LINENO"; then :
5421 ac_cv_safe_to_define___extensions__
=yes
5423 ac_cv_safe_to_define___extensions__
=no
5425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5428 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5429 test $ac_cv_safe_to_define___extensions__ = yes &&
5430 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5432 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5434 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5436 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5438 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5442 ac_cpp
='$CPP $CPPFLAGS'
5443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5447 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5448 # On Suns, sometimes $CPP names a directory.
5449 if test -n "$CPP" && test -d "$CPP"; then
5452 if test -z "$CPP"; then
5453 if test "${ac_cv_prog_CPP+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5456 # Double quotes because CPP needs to be expanded
5457 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5460 for ac_c_preproc_warn_flag
in '' yes
5462 # Use a header file that comes with gcc, so configuring glibc
5463 # with a fresh cross-compiler works.
5464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465 # <limits.h> exists even on freestanding compilers.
5466 # On the NeXT, cc -E runs the code through the compiler's parser,
5467 # not just through cpp. "Syntax error" is here to catch this case.
5468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5471 # include <limits.h>
5473 # include <assert.h>
5477 if ac_fn_c_try_cpp
"$LINENO"; then :
5480 # Broken: fails on valid input.
5483 rm -f conftest.err conftest.
$ac_ext
5485 # OK, works on sane cases. Now check whether nonexistent headers
5486 # can be detected and how.
5487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 #include <ac_nonexistent.h>
5491 if ac_fn_c_try_cpp
"$LINENO"; then :
5492 # Broken: success on invalid input.
5495 # Passes both tests.
5499 rm -f conftest.err conftest.
$ac_ext
5502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5503 rm -f conftest.err conftest.
$ac_ext
5504 if $ac_preproc_ok; then :
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5517 $as_echo "$CPP" >&6; }
5519 for ac_c_preproc_warn_flag
in '' yes
5521 # Use a header file that comes with gcc, so configuring glibc
5522 # with a fresh cross-compiler works.
5523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524 # <limits.h> exists even on freestanding compilers.
5525 # On the NeXT, cc -E runs the code through the compiler's parser,
5526 # not just through cpp. "Syntax error" is here to catch this case.
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5530 # include <limits.h>
5532 # include <assert.h>
5536 if ac_fn_c_try_cpp
"$LINENO"; then :
5539 # Broken: fails on valid input.
5542 rm -f conftest.err conftest.
$ac_ext
5544 # OK, works on sane cases. Now check whether nonexistent headers
5545 # can be detected and how.
5546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <ac_nonexistent.h>
5550 if ac_fn_c_try_cpp
"$LINENO"; then :
5551 # Broken: success on invalid input.
5554 # Passes both tests.
5558 rm -f conftest.err conftest.
$ac_ext
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.
$ac_ext
5563 if $ac_preproc_ok; then :
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5569 See \`config.log' for more details." "$LINENO" 5; }
5573 ac_cpp
='$CPP $CPPFLAGS'
5574 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5579 $as_echo_n "checking for inline... " >&6; }
5580 if test "${ac_cv_c_inline+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5584 for ac_kw
in inline __inline__ __inline
; do
5585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5589 static $ac_kw foo_t static_foo () {return 0; }
5590 $ac_kw foo_t foo () {return 0; }
5594 if ac_fn_c_try_compile
"$LINENO"; then :
5595 ac_cv_c_inline
=$ac_kw
5597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5598 test "$ac_cv_c_inline" != no
&& break
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5603 $as_echo "$ac_cv_c_inline" >&6; }
5605 case $ac_cv_c_inline in
5608 case $ac_cv_c_inline in
5610 *) ac_val
=$ac_cv_c_inline;;
5612 cat >>confdefs.h
<<_ACEOF
5614 #define inline $ac_val
5621 # Check whether --enable-largefile was given.
5622 if test "${enable_largefile+set}" = set; then :
5623 enableval
=$enable_largefile;
5626 if test "$enable_largefile" != no
; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5629 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5630 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 ac_cv_sys_largefile_CC
=no
5634 if test "$GCC" != yes; then
5637 # IRIX 6.2 and later do not support large files by default,
5638 # so use the C compiler's -n32 option if that helps.
5639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #include <sys/types.h>
5642 /* Check that off_t can represent 2**63 - 1 correctly.
5643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5644 since some C++ compilers masquerading as C compilers
5645 incorrectly reject 9223372036854775807. */
5646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5648 && LARGE_OFF_T % 2147483647 == 1)
5658 if ac_fn_c_try_compile
"$LINENO"; then :
5661 rm -f core conftest.err conftest.
$ac_objext
5663 if ac_fn_c_try_compile
"$LINENO"; then :
5664 ac_cv_sys_largefile_CC
=' -n32'; break
5666 rm -f core conftest.err conftest.
$ac_objext
5670 rm -f conftest.
$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5674 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5675 if test "$ac_cv_sys_largefile_CC" != no
; then
5676 CC
=$CC$ac_cv_sys_largefile_CC
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5680 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5681 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5704 if ac_fn_c_try_compile
"$LINENO"; then :
5705 ac_cv_sys_file_offset_bits
=no
; break
5707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 #define _FILE_OFFSET_BITS 64
5711 #include <sys/types.h>
5712 /* Check that off_t can represent 2**63 - 1 correctly.
5713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5714 since some C++ compilers masquerading as C compilers
5715 incorrectly reject 9223372036854775807. */
5716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5718 && LARGE_OFF_T % 2147483647 == 1)
5728 if ac_fn_c_try_compile
"$LINENO"; then :
5729 ac_cv_sys_file_offset_bits
=64; break
5731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5732 ac_cv_sys_file_offset_bits
=unknown
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5737 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5738 case $ac_cv_sys_file_offset_bits in #(
5741 cat >>confdefs.h
<<_ACEOF
5742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5747 if test $ac_cv_sys_file_offset_bits = unknown
; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5749 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5750 if test "${ac_cv_sys_large_files+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 /* Check that off_t can represent 2**63 - 1 correctly.
5758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5759 since some C++ compilers masquerading as C compilers
5760 incorrectly reject 9223372036854775807. */
5761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5763 && LARGE_OFF_T % 2147483647 == 1)
5773 if ac_fn_c_try_compile
"$LINENO"; then :
5774 ac_cv_sys_large_files
=no
; break
5776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #define _LARGE_FILES 1
5780 #include <sys/types.h>
5781 /* Check that off_t can represent 2**63 - 1 correctly.
5782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5783 since some C++ compilers masquerading as C compilers
5784 incorrectly reject 9223372036854775807. */
5785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5787 && LARGE_OFF_T % 2147483647 == 1)
5797 if ac_fn_c_try_compile
"$LINENO"; then :
5798 ac_cv_sys_large_files
=1; break
5800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5801 ac_cv_sys_large_files
=unknown
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5806 $as_echo "$ac_cv_sys_large_files" >&6; }
5807 case $ac_cv_sys_large_files in #(
5810 cat >>confdefs.h
<<_ACEOF
5811 #define _LARGE_FILES $ac_cv_sys_large_files
5820 # sizeof(char) is 1 by definition.
5821 # The cast to long int works around a bug in the HP C Compiler
5822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5824 # This bug is HP SR number 8606223364.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5826 $as_echo_n "checking size of void *... " >&6; }
5827 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5830 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5833 if test "$ac_cv_type_void_p" = yes; then
5834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836 { as_fn_set_status
77
5837 as_fn_error
"cannot compute sizeof (void *)
5838 See \`config.log' for more details." "$LINENO" 5; }; }
5840 ac_cv_sizeof_void_p
=0
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5846 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5850 cat >>confdefs.h
<<_ACEOF
5851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5855 # The cast to long int works around a bug in the HP C Compiler
5856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5858 # This bug is HP SR number 8606223364.
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5860 $as_echo_n "checking size of short... " >&6; }
5861 if test "${ac_cv_sizeof_short+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5867 if test "$ac_cv_type_short" = yes; then
5868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5870 { as_fn_set_status
77
5871 as_fn_error
"cannot compute sizeof (short)
5872 See \`config.log' for more details." "$LINENO" 5; }; }
5874 ac_cv_sizeof_short
=0
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5880 $as_echo "$ac_cv_sizeof_short" >&6; }
5884 cat >>confdefs.h
<<_ACEOF
5885 #define SIZEOF_SHORT $ac_cv_sizeof_short
5889 # The cast to long int works around a bug in the HP C Compiler
5890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5892 # This bug is HP SR number 8606223364.
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5894 $as_echo_n "checking size of int... " >&6; }
5895 if test "${ac_cv_sizeof_int+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5898 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5901 if test "$ac_cv_type_int" = yes; then
5902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5904 { as_fn_set_status
77
5905 as_fn_error
"cannot compute sizeof (int)
5906 See \`config.log' for more details." "$LINENO" 5; }; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5914 $as_echo "$ac_cv_sizeof_int" >&6; }
5918 cat >>confdefs.h
<<_ACEOF
5919 #define SIZEOF_INT $ac_cv_sizeof_int
5923 # The cast to long int works around a bug in the HP C Compiler
5924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5926 # This bug is HP SR number 8606223364.
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5928 $as_echo_n "checking size of long... " >&6; }
5929 if test "${ac_cv_sizeof_long+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5935 if test "$ac_cv_type_long" = yes; then
5936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5938 { as_fn_set_status
77
5939 as_fn_error
"cannot compute sizeof (long)
5940 See \`config.log' for more details." "$LINENO" 5; }; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5948 $as_echo "$ac_cv_sizeof_long" >&6; }
5952 cat >>confdefs.h
<<_ACEOF
5953 #define SIZEOF_LONG $ac_cv_sizeof_long
5957 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5958 if test "x$ac_cv_type_long_long" = x
""yes; then :
5960 cat >>confdefs.h
<<_ACEOF
5961 #define HAVE_LONG_LONG 1
5964 # The cast to long int works around a bug in the HP C Compiler
5965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5967 # This bug is HP SR number 8606223364.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5969 $as_echo_n "checking size of long long... " >&6; }
5970 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5973 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5976 if test "$ac_cv_type_long_long" = yes; then
5977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5979 { as_fn_set_status
77
5980 as_fn_error
"cannot compute sizeof (long long)
5981 See \`config.log' for more details." "$LINENO" 5; }; }
5983 ac_cv_sizeof_long_long
=0
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5989 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5993 cat >>confdefs.h
<<_ACEOF
5994 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6000 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
6001 if test "x$ac_cv_type___int64" = x
""yes; then :
6003 cat >>confdefs.h
<<_ACEOF
6004 #define HAVE___INT64 1
6007 # The cast to long int works around a bug in the HP C Compiler
6008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6010 # This bug is HP SR number 8606223364.
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6012 $as_echo_n "checking size of __int64... " >&6; }
6013 if test "${ac_cv_sizeof___int64+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6016 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6019 if test "$ac_cv_type___int64" = yes; then
6020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6022 { as_fn_set_status
77
6023 as_fn_error
"cannot compute sizeof (__int64)
6024 See \`config.log' for more details." "$LINENO" 5; }; }
6026 ac_cv_sizeof___int64
=0
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6032 $as_echo "$ac_cv_sizeof___int64" >&6; }
6036 cat >>confdefs.h
<<_ACEOF
6037 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6043 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6044 case $ac_cv_c_int8_t in #(
6048 cat >>confdefs.h
<<_ACEOF
6049 #define int8_t $ac_cv_c_int8_t
6054 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6055 case $ac_cv_c_int16_t in #(
6059 cat >>confdefs.h
<<_ACEOF
6060 #define int16_t $ac_cv_c_int16_t
6065 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6066 case $ac_cv_c_int32_t in #(
6070 cat >>confdefs.h
<<_ACEOF
6071 #define int32_t $ac_cv_c_int32_t
6076 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6077 case $ac_cv_c_int64_t in #(
6081 cat >>confdefs.h
<<_ACEOF
6082 #define int64_t $ac_cv_c_int64_t
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6089 $as_echo_n "checking for long long int... " >&6; }
6090 if test "${ac_cv_type_long_long_int+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6096 /* For now, do not test the preprocessor; as of 2007 there are too many
6097 implementations with broken preprocessors. Perhaps this can
6098 be revisited in 2012. In the meantime, code should not expect
6099 #if to work with literals wider than 32 bits. */
6100 /* Test literals. */
6101 long long int ll = 9223372036854775807ll;
6102 long long int nll = -9223372036854775807LL;
6103 unsigned long long int ull = 18446744073709551615ULL;
6104 /* Test constant expressions. */
6105 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6107 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6113 /* Test availability of runtime routines for shift and division. */
6114 long long int llmax = 9223372036854775807ll;
6115 unsigned long long int ullmax = 18446744073709551615ull;
6116 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6117 | (llmax / ll) | (llmax % ll)
6118 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6119 | (ullmax / ull) | (ullmax % ull));
6125 if ac_fn_c_try_link
"$LINENO"; then :
6126 if test "$cross_compiling" = yes; then :
6127 ac_cv_type_long_long_int
=yes
6129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6134 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6135 # define LLONG_MAX (HALF - 1 + HALF)
6140 long long int n = 1;
6144 long long int m = n << i;
6147 if (LLONG_MAX / 2 < m)
6155 if ac_fn_c_try_run
"$LINENO"; then :
6156 ac_cv_type_long_long_int
=yes
6158 ac_cv_type_long_long_int
=no
6160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6165 ac_cv_type_long_long_int
=no
6167 rm -f core conftest.err conftest.
$ac_objext \
6168 conftest
$ac_exeext conftest.
$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6171 $as_echo "$ac_cv_type_long_long_int" >&6; }
6172 if test $ac_cv_type_long_long_int = yes; then
6174 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6180 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6183 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6186 test $ac_cv_type_long_long_int = yes \
6187 && ac_type
='long long int' \
6188 || ac_type
='long int'
6190 cat >>confdefs.h
<<_ACEOF
6191 #define intmax_t $ac_type
6198 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6199 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6201 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6204 for ac_type
in 'int' 'long int' 'long long int'; do
6205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 $ac_includes_default
6211 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6218 if ac_fn_c_try_compile
"$LINENO"; then :
6220 cat >>confdefs.h
<<_ACEOF
6221 #define intptr_t $ac_type
6226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6227 test -z "$ac_type" && break
6232 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6233 case $ac_cv_c_uint8_t in #(
6237 $as_echo "#define _UINT8_T 1" >>confdefs.h
6240 cat >>confdefs.h
<<_ACEOF
6241 #define uint8_t $ac_cv_c_uint8_t
6246 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6247 case $ac_cv_c_uint16_t in #(
6252 cat >>confdefs.h
<<_ACEOF
6253 #define uint16_t $ac_cv_c_uint16_t
6258 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6259 case $ac_cv_c_uint32_t in #(
6263 $as_echo "#define _UINT32_T 1" >>confdefs.h
6266 cat >>confdefs.h
<<_ACEOF
6267 #define uint32_t $ac_cv_c_uint32_t
6272 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6273 case $ac_cv_c_uint64_t in #(
6277 $as_echo "#define _UINT64_T 1" >>confdefs.h
6280 cat >>confdefs.h
<<_ACEOF
6281 #define uint64_t $ac_cv_c_uint64_t
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6288 $as_echo_n "checking for unsigned long long int... " >&6; }
6289 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6295 /* For now, do not test the preprocessor; as of 2007 there are too many
6296 implementations with broken preprocessors. Perhaps this can
6297 be revisited in 2012. In the meantime, code should not expect
6298 #if to work with literals wider than 32 bits. */
6299 /* Test literals. */
6300 long long int ll = 9223372036854775807ll;
6301 long long int nll = -9223372036854775807LL;
6302 unsigned long long int ull = 18446744073709551615ULL;
6303 /* Test constant expressions. */
6304 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6306 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6312 /* Test availability of runtime routines for shift and division. */
6313 long long int llmax = 9223372036854775807ll;
6314 unsigned long long int ullmax = 18446744073709551615ull;
6315 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6316 | (llmax / ll) | (llmax % ll)
6317 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6318 | (ullmax / ull) | (ullmax % ull));
6324 if ac_fn_c_try_link
"$LINENO"; then :
6325 ac_cv_type_unsigned_long_long_int
=yes
6327 ac_cv_type_unsigned_long_long_int
=no
6329 rm -f core conftest.err conftest.
$ac_objext \
6330 conftest
$ac_exeext conftest.
$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6333 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6334 if test $ac_cv_type_unsigned_long_long_int = yes; then
6336 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6342 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6345 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6348 test $ac_cv_type_unsigned_long_long_int = yes \
6349 && ac_type
='unsigned long long int' \
6350 || ac_type
='unsigned long int'
6352 cat >>confdefs.h
<<_ACEOF
6353 #define uintmax_t $ac_type
6360 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6361 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6363 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6366 for ac_type
in 'unsigned int' 'unsigned long int' \
6367 'unsigned long long int'; do
6368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370 $ac_includes_default
6374 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6381 if ac_fn_c_try_compile
"$LINENO"; then :
6383 cat >>confdefs.h
<<_ACEOF
6384 #define uintptr_t $ac_type
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 test -z "$ac_type" && break
6408 # ---------------------
6409 # Warnings and checking
6410 # ---------------------
6412 # Check $CC warning features (if it's GCC).
6413 # We want to use -pedantic, but we don't want warnings about
6416 # * overlong strings
6417 # * C++11 narrowing conversions in { }
6418 # So, we only use -pedantic if we can disable those warnings.
6421 save_CFLAGS
="$CFLAGS"
6422 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6423 # Do the check with the no- prefix removed since gcc silently
6424 # accepts any -Wno-* option on purpose
6425 case $real_option in
6426 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6427 *) option
=$real_option ;;
6429 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6432 $as_echo_n "checking whether $CC supports $option... " >&6; }
6433 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6434 $as_echo_n "(cached) " >&6
6437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6448 if ac_fn_c_try_compile
"$LINENO"; then :
6449 eval "$as_acx_Woption=yes"
6451 eval "$as_acx_Woption=no"
6453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6456 eval ac_res
=\$
$as_acx_Woption
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6458 $as_echo "$ac_res" >&6; }
6459 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6460 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6463 CFLAGS
="$save_CFLAGS"
6466 save_CFLAGS
="$CFLAGS"
6467 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6468 # Do the check with the no- prefix removed since gcc silently
6469 # accepts any -Wno-* option on purpose
6470 case $real_option in
6471 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6472 *) option
=$real_option ;;
6474 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6477 $as_echo_n "checking whether $CC supports $option... " >&6; }
6478 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6479 $as_echo_n "(cached) " >&6
6482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6493 if ac_fn_c_try_compile
"$LINENO"; then :
6494 eval "$as_acx_Woption=yes"
6496 eval "$as_acx_Woption=no"
6498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6501 eval ac_res
=\$
$as_acx_Woption
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6503 $as_echo "$ac_res" >&6; }
6504 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6505 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6508 CFLAGS
="$save_CFLAGS"
6511 save_CFLAGS
="$CFLAGS"
6512 for real_option
in -Wmissing-format-attribute; do
6513 # Do the check with the no- prefix removed since gcc silently
6514 # accepts any -Wno-* option on purpose
6515 case $real_option in
6516 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6517 *) option
=$real_option ;;
6519 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6522 $as_echo_n "checking whether $CC supports $option... " >&6; }
6523 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6524 $as_echo_n "(cached) " >&6
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6538 if ac_fn_c_try_compile
"$LINENO"; then :
6539 eval "$as_acx_Woption=yes"
6541 eval "$as_acx_Woption=no"
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 eval ac_res
=\$
$as_acx_Woption
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6548 $as_echo "$ac_res" >&6; }
6549 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6550 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6553 CFLAGS
="$save_CFLAGS"
6556 save_CFLAGS
="$CFLAGS"
6557 for real_option
in -Wold-style-definition -Wc++-compat; do
6558 # Do the check with the no- prefix removed since gcc silently
6559 # accepts any -Wno-* option on purpose
6560 case $real_option in
6561 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6562 *) option
=$real_option ;;
6564 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6567 $as_echo_n "checking whether $CC supports $option... " >&6; }
6568 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6569 $as_echo_n "(cached) " >&6
6572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6583 if ac_fn_c_try_compile
"$LINENO"; then :
6584 eval "$as_acx_Woption=yes"
6586 eval "$as_acx_Woption=no"
6588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6591 eval ac_res
=\$
$as_acx_Woption
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6593 $as_echo "$ac_res" >&6; }
6594 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6595 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6598 CFLAGS
="$save_CFLAGS"
6600 # Do the check with the no- prefix removed from the warning options
6601 # since gcc silently accepts any -Wno-* option on purpose
6602 if test "$GCC" = yes; then :
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6604 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6605 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6608 save_CFLAGS
="$CFLAGS"
6609 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6621 if ac_fn_c_try_compile
"$LINENO"; then :
6622 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6624 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6627 CFLAGS
="$save_CFLAGS"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6630 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6631 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6632 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6637 # Check whether --enable-werror-always was given.
6638 if test "${enable_werror_always+set}" = set; then :
6639 enableval
=$enable_werror_always;
6641 enable_werror_always
=no
6644 if test $enable_werror_always = yes; then :
6645 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6650 # The above macros do nothing if the compiler is not GCC. However, the
6651 # Makefile has more goo to add other flags, so these variables are used
6652 # to enable warnings only for GCC.
6655 if test "x$GCC" = "xyes"; then
6656 warn_cflags
='$(GCC_WARN_CFLAGS)'
6657 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6662 # Disable exceptions and RTTI if building with g++
6664 save_CFLAGS
="$CFLAGS"
6665 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6666 # Do the check with the no- prefix removed since gcc silently
6667 # accepts any -Wno-* option on purpose
6668 case $real_option in
6669 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6670 *) option
=$real_option ;;
6672 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6675 $as_echo_n "checking whether $CC supports $option... " >&6; }
6676 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6677 $as_echo_n "(cached) " >&6
6680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6691 if ac_fn_c_try_compile
"$LINENO"; then :
6692 eval "$as_acx_Woption=yes"
6694 eval "$as_acx_Woption=no"
6696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6699 eval ac_res
=\$
$as_acx_Woption
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6701 $as_echo "$ac_res" >&6; }
6702 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6703 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6706 CFLAGS
="$save_CFLAGS"
6709 # Enable expensive internal checks
6711 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6715 # Check whether --enable-checking was given.
6716 if test "${enable_checking+set}" = set; then :
6717 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6720 # Determine the default checks.
6721 if test x
$is_release = x
; then
6722 ac_checking_flags
=yes
6724 ac_checking_flags
=release
6728 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6729 for check
in release
$ac_checking_flags
6732 # these set all the flags to specific states
6733 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6734 ac_fold_checking
= ; ac_gc_checking
=1 ;
6735 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6736 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6737 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6738 ac_types_checking
=1 ;;
6739 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6740 ac_fold_checking
= ; ac_gc_checking
= ;
6741 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6742 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6743 ac_tree_checking
= ; ac_valgrind_checking
= ;
6744 ac_types_checking
= ;;
6745 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6746 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6747 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6748 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6749 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6750 ac_types_checking
=1 ;;
6751 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6752 ac_fold_checking
= ; ac_gc_checking
= ;
6753 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6754 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6755 ac_tree_checking
= ; ac_valgrind_checking
= ;
6756 ac_types_checking
= ;;
6757 # these enable particular checks
6758 assert
) ac_assert_checking
=1 ;;
6759 df
) ac_df_checking
=1 ;;
6760 fold) ac_fold_checking
=1 ;;
6761 gc
) ac_gc_checking
=1 ;;
6762 gcac
) ac_gc_always_collect
=1 ;;
6763 gimple
) ac_gimple_checking
=1 ;;
6764 misc
) ac_checking
=1 ;;
6765 rtl
) ac_rtl_checking
=1 ;;
6766 rtlflag
) ac_rtlflag_checking
=1 ;;
6767 runtime
) ac_runtime_checking
=1 ;;
6768 tree
) ac_tree_checking
=1 ;;
6769 types
) ac_types_checking
=1 ;;
6770 valgrind
) ac_valgrind_checking
=1 ;;
6771 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6777 if test x
$ac_checking != x
; then
6779 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6781 nocommon_flag
=-fno-common
6784 if test x
$ac_df_checking != x
; then
6786 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6789 if test x
$ac_assert_checking != x
; then
6791 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6794 if test x
$ac_gimple_checking != x
; then
6796 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6800 if test x
$ac_runtime_checking != x
; then
6802 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6805 if test x
$ac_tree_checking != x
; then
6807 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6809 TREEBROWSER
=tree-browser.o
6812 if test x
$ac_types_checking != x
; then
6814 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6819 if test x
$ac_rtl_checking != x
; then
6821 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6824 if test x
$ac_rtlflag_checking != x
; then
6826 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6829 if test x
$ac_gc_checking != x
; then
6831 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6834 if test x
$ac_gc_always_collect != x
; then
6836 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6839 if test x
$ac_fold_checking != x
; then
6841 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6844 valgrind_path_defines
=
6847 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6848 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6856 if test x
$ac_valgrind_checking != x
; then
6857 # It is certainly possible that there's valgrind but no valgrind.h.
6858 # GCC relies on making annotations so we must have both.
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6860 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <valgrind/memcheck.h>
6864 #ifndef VALGRIND_DISCARD
6865 #error VALGRIND_DISCARD not defined
6868 if ac_fn_c_try_cpp
"$LINENO"; then :
6869 gcc_cv_header_valgrind_memcheck_h
=yes
6871 gcc_cv_header_valgrind_memcheck_h
=no
6873 rm -f conftest.err conftest.
$ac_ext
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6875 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6877 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #include <memcheck.h>
6881 #ifndef VALGRIND_DISCARD
6882 #error VALGRIND_DISCARD not defined
6885 if ac_fn_c_try_cpp
"$LINENO"; then :
6886 gcc_cv_header_memcheck_h
=yes
6888 gcc_cv_header_memcheck_h
=no
6890 rm -f conftest.err conftest.
$ac_ext
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6892 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6894 # Prepare PATH_SEPARATOR.
6895 # The user is always right.
6896 if test "${PATH_SEPARATOR+set}" != set; then
6897 echo "#! /bin/sh" >conf$$.sh
6898 echo "exit 0" >>conf$$.sh
6900 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6908 # Find out how to test for executable files. Don't use a zero-byte file,
6909 # as systems may use methods other than mode bits to determine executability.
6910 cat >conf$$.
file <<_ASEOF
6914 chmod +x conf$$.
file
6915 if test -x conf$$.
file >/dev
/null
2>&1; then
6916 ac_executable_p
="test -x"
6918 ac_executable_p
="test -f"
6922 # Extract the first word of "valgrind", so it can be a program name with args.
6923 set dummy valgrind
; ac_word
=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6929 case "$valgrind_path" in
6931 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6934 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6935 for ac_dir
in $PATH; do
6937 test -z "$ac_dir" && ac_dir
=.
6938 for ac_exec_ext
in '' $ac_executable_extensions; do
6939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6940 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6941 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6951 valgrind_path
="$ac_cv_path_valgrind_path"
6952 if test -n "$valgrind_path"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6954 $as_echo "$valgrind_path" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$valgrind_path" = "x" \
6961 ||
(test $have_valgrind_h = no \
6962 && test $gcc_cv_header_memcheck_h = no \
6963 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6964 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6966 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6967 valgrind_command
="$valgrind_path -q"
6969 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6971 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6973 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6976 if test $gcc_cv_header_memcheck_h = yes; then
6978 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6985 # Enable code coverage collection
6986 # Check whether --enable-coverage was given.
6987 if test "${enable_coverage+set}" = set; then :
6988 enableval
=$enable_coverage; case "${enableval}" in
6990 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6993 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6996 # a.k.a. --disable-coverage
7000 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7009 # Check whether --enable-gather-detailed-mem-stats was given.
7010 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7011 enableval
=$enable_gather_detailed_mem_stats;
7013 enable_gather_detailed_mem_stats
=no
7016 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7018 cat >>confdefs.h
<<_ACEOF
7019 #define GATHER_STATISTICS $gather_stats
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval
=$with_stabs; stabs
="$with_stabs"
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval
=$enable_multilib;
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval
=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto
) enable_multiarch
=$enableval;;
7052 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7055 enable_multiarch
=auto
7058 if test x
${enable_multiarch} = xauto
; then
7059 if test x
${with_native_system_header_dir} != x
; then
7060 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7063 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7064 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval
=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval
=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7092 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7099 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7101 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7103 enable_decimal_float
=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float
=no
7115 # x86's use BID format instead of DPD
7116 case x
$enable_decimal_float in
7119 i?
86*-*-* | x86_64
*-*-*)
7120 enable_decimal_float
=bid
7123 enable_decimal_float
=dpd
7126 default_decimal_float
=$enable_decimal_float
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float
=dpd
7138 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h
<<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float
=$default_decimal_float
7148 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h
<<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval
=$enable_fixed_point;
7163 enable_fixed_point
=yes
7167 enable_fixed_point
=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point
=no
7180 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h
<<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval
=$enable_threads;
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval
=$enable_tls;
7203 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7224 case ,${enable_languages}, in
7225 *,upc
,) lang_upc_enabled
="yes" ;;
7230 # Check whether --with-upc-pts was given.
7231 if test "${with_upc_pts+set}" = set; then :
7232 withval
=$with_upc_pts;
7233 if test x
"$lang_upc_enabled" = x
"yes" ; then
7235 packed|struct
) upc_pts_rep
="$withval" ;;
7236 *) as_fn_error
"$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7241 support has been enabled" >&5
7242 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7243 support has been enabled" >&2;}
7248 if test x
"$lang_upc_enabled" = x
"yes" ; then
7249 upc_pts_rep
="packed"
7256 # Perl is required for checking pts representation
7257 # Extract the first word of "perl", so it can be a program name with args.
7258 set dummy perl
; ac_word
=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_PERL+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$PERL"; then
7265 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir
=.
7272 for ac_exec_ext
in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_PERL
="perl"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 PERL
=$ac_cv_prog_PERL
7285 if test -n "$PERL"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7287 $as_echo "$PERL" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7296 # Check whether --with-upc-pts-vaddr-order was given.
7297 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7298 withval
=$with_upc_pts_vaddr_order;
7299 if test x
"$lang_upc_enabled" = x
"yes" ; then
7300 upc_vaddr_order
="$withval"
7301 case "$upc_vaddr_order" in
7303 *) as_fn_error
"$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7307 support has been enabled" >&5
7308 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7309 support has been enabled" >&2;}
7314 if test x
"$lang_upc_enabled" = x
"yes" ; then
7315 # Default UPC PTS vaddr order to "first"
7316 upc_vaddr_order
="first"
7323 # Check whether --with-upc-packed-bits was given.
7324 if test "${with_upc_packed_bits+set}" = set; then :
7325 withval
=$with_upc_packed_bits;
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7327 Use --with-upc-pts-packed-bits instead." >&5
7328 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7329 Use --with-upc-pts-packed-bits instead." >&2;}
7330 with_upc_pts_packed_bits
="$withval";
7336 # Check whether --with-upc-pts-packed-bits was given.
7337 if test "${with_upc_pts_packed_bits+set}" = set; then :
7338 withval
=$with_upc_pts_packed_bits;
7339 if test x
"$lang_upc_enabled" = x
"yes" ; then
7340 if test x
"$upc_pts_rep" = x
"packed"; then
7341 UPC_PTS_PHASE_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7342 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7343 UPC_PTS_THREAD_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7344 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7345 UPC_PTS_VADDR_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7346 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7347 if test -z "$UPC_PTS_PHASE_SIZE" \
7348 ||
test -z "$UPC_PTS_THREAD_SIZE" \
7349 ||
test -z "$UPC_PTS_VADDR_SIZE" ; then
7350 as_fn_error
"--with-upc-pts-packed-bits=phase,thread,vaddr requires
7351 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7354 as_fn_error
"--with-upc-pts-packed-bits is only supported for
7355 the packed UPC pointer-to-shared representation" "$LINENO" 5
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7359 support has been enabled" >&5
7360 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7361 support has been enabled" >&2;}
7366 if test x
"$lang_upc_enabled" = x
"yes" ; then
7367 # GNU UPC packed pointer representation defaults.
7370 UPC_PTS_PHASE_SIZE
=20
7371 UPC_PTS_THREAD_SIZE
=12
7372 UPC_PTS_VADDR_SIZE
=32
7375 UPC_PTS_PHASE_SIZE
=20
7376 UPC_PTS_THREAD_SIZE
=10
7377 UPC_PTS_VADDR_SIZE
=34
7384 # Check whether --enable-upc-link-script was given.
7385 if test "${enable_upc_link_script+set}" = set; then :
7386 enableval
=$enable_upc_link_script;
7387 if test x
"$lang_upc_enabled" = x
"yes" ; then
7391 as_fn_error
"--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7395 support has been enabled" >&5
7396 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7397 support has been enabled" >&2;}
7402 if test x
"$lang_upc_enabled" = x
"yes" ; then
7403 enable_upc_link_script
=no
7409 if test x
"$lang_upc_enabled" = x
"yes" ; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7411 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7413 $as_echo "$upc_pts_rep" >&6; }
7414 case "$upc_pts_rep" in
7417 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7422 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7427 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7429 $as_echo "$upc_vaddr_order" >&6; }
7430 if test x
"$upc_vaddr_order" = x
"first"; then
7432 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7435 if test x
"$upc_pts_rep" = x
"packed"; then
7437 cat >>confdefs.h
<<_ACEOF
7438 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7442 cat >>confdefs.h
<<_ACEOF
7443 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7447 cat >>confdefs.h
<<_ACEOF
7448 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7452 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7454 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7455 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7456 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7459 $as_echo_n "checking for UPC link script support... " >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7461 $as_echo "$enable_upc_link_script" >&6; }
7462 if test "$enable_upc_link_script" = yes; then
7464 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7470 # Check whether --with-dwarf2 was given.
7471 if test "${with_dwarf2+set}" = set; then :
7472 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7478 # Check whether --enable-shared was given.
7479 if test "${enable_shared+set}" = set; then :
7480 enableval
=$enable_shared;
7481 case $enable_shared in
7485 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7486 for pkg
in $enableval; do
7487 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7502 # Check whether --with-native-system-header-dir was given.
7503 if test "${with_native_system_header_dir+set}" = set; then :
7504 withval
=$with_native_system_header_dir;
7505 case ${with_native_system_header_dir} in
7506 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7507 /* |
[A-Za-z
]:[\\/]*) ;;
7508 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7510 configured_native_system_header_dir
="${withval}"
7513 configured_native_system_header_dir
=
7518 # Check whether --with-build-sysroot was given.
7519 if test "${with_build_sysroot+set}" = set; then :
7520 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7521 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7524 SYSROOT_CFLAGS_FOR_TARGET
=
7529 if test "x$prefix" = xNONE
; then
7530 test_prefix
=/usr
/local
7534 if test "x$exec_prefix" = xNONE
; then
7535 test_exec_prefix
=$test_prefix
7537 test_exec_prefix
=$exec_prefix
7541 # Check whether --with-sysroot was given.
7542 if test "${with_sysroot+set}" = set; then :
7543 withval
=$with_sysroot;
7544 case ${with_sysroot} in
7545 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7546 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7549 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7550 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7552 case ${TARGET_SYSTEM_ROOT} in
7553 "${test_prefix}"|
"${test_prefix}/"*|\
7554 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7555 '${prefix}'|
'${prefix}/'*|\
7556 '${exec_prefix}'|
'${exec_prefix}/'*)
7557 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7558 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7565 TARGET_SYSTEM_ROOT_DEFINE
=
7566 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7575 # Check whether --with-specs was given.
7576 if test "${with_specs+set}" = set; then :
7577 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7587 # Check whether --with-pkgversion was given.
7588 if test "${with_pkgversion+set}" = set; then :
7589 withval
=$with_pkgversion; case "$withval" in
7590 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7592 *) PKGVERSION
="($withval) " ;;
7603 # Check whether --with-bugurl was given.
7604 if test "${with_bugurl+set}" = set; then :
7605 withval
=$with_bugurl; case "$withval" in
7606 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7609 *) BUGURL
="$withval"
7613 BUGURL
="http://gccupc.org/bugs"
7623 REPORT_BUGS_TO
="<$BUGURL>"
7624 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7631 # Sanity check enable_languages in case someone does not run the toplevel
7632 # configure # script.
7633 # Check whether --enable-languages was given.
7634 if test "${enable_languages+set}" = set; then :
7635 enableval
=$enable_languages; case ,${enable_languages}, in
7637 # go safe -- we cannot be much sure without the toplevel
7639 # analysis of which target libs are present and usable
7643 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7648 enable_languages
=c
,${enable_languages}
7657 # Check whether --with-multilib-list was given.
7658 if test "${with_multilib_list+set}" = set; then :
7659 withval
=$with_multilib_list; :
7661 with_multilib_list
=default
7665 # -------------------------
7666 # Checks for other programs
7667 # -------------------------
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7672 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7673 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7674 $as_echo_n "(cached) " >&6
7676 cat >conftest.
make <<\_ACEOF
7679 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7684 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7686 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7690 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692 $as_echo "yes" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 SET_MAKE
="MAKE=${MAKE-make}"
7701 # Find some useful tools
7702 for ac_prog
in gawk mawk nawk
awk
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy
$ac_prog; ac_word
=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_AWK+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$AWK"; then
7712 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir
=.
7719 for ac_exec_ext
in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_AWK
="$ac_prog"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 if test -n "$AWK"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7734 $as_echo "$AWK" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7741 test -n "$AWK" && break
7744 # We need awk to create options.c and options.h.
7745 # Bail out if it's missing.
7747 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7751 $as_echo_n "checking whether ln -s works... " >&6; }
7752 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 rm -f conftestdata_t
7756 echo >conftestdata_f
7757 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7759 gcc_cv_prog_LN_S
="ln -s"
7761 if ln conftestdata_f conftestdata_t
2>/dev
/null
7765 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7767 gcc_cv_prog_LN_S
="cp -p"
7773 rm -f conftestdata_f conftestdata_t
7776 LN_S
="$gcc_cv_prog_LN_S"
7777 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7779 $as_echo "yes" >&6; }
7781 if test "$gcc_cv_prog_LN_S" = "ln"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7783 $as_echo "no, using ln" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7786 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7791 $as_echo_n "checking whether ln works... " >&6; }
7792 if test "${acx_cv_prog_LN+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7795 rm -f conftestdata_t
7796 echo >conftestdata_f
7797 if ln conftestdata_f conftestdata_t
2>/dev
/null
7803 rm -f conftestdata_f conftestdata_t
7806 if test $acx_cv_prog_LN = no
; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7809 $as_echo "no, using $LN" >&6; }
7811 LN
="$acx_cv_prog_LN"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7813 $as_echo "yes" >&6; }
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7818 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$RANLIB"; then
7825 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir
=.
7832 for ac_exec_ext
in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 RANLIB
=$ac_cv_prog_RANLIB
7845 if test -n "$RANLIB"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7847 $as_echo "$RANLIB" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7855 if test -z "$ac_cv_prog_RANLIB"; then
7856 ac_ct_RANLIB
=$RANLIB
7857 # Extract the first word of "ranlib", so it can be a program name with args.
7858 set dummy ranlib
; ac_word
=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$ac_ct_RANLIB"; then
7865 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir
=.
7872 for ac_exec_ext
in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7885 if test -n "$ac_ct_RANLIB"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7887 $as_echo "$ac_ct_RANLIB" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7893 if test "x$ac_ct_RANLIB" = x
; then
7896 case $cross_compiling:$ac_tool_warned in
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned
=yes ;;
7902 RANLIB
=$ac_ct_RANLIB
7905 RANLIB
="$ac_cv_prog_RANLIB"
7911 # Find a good install program. We prefer a C program (faster),
7912 # so one script is as good as another. But avoid the broken or
7913 # incompatible versions:
7914 # SysV /etc/install, /usr/sbin/install
7915 # SunOS /usr/etc/install
7916 # IRIX /sbin/install
7918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7920 # ./install, which can be erroneously created by make from ./install.sh.
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7922 $as_echo_n "checking for a BSD compatible install... " >&6; }
7923 if test -z "$INSTALL"; then
7924 if test "${ac_cv_path_install+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7927 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7928 for ac_dir
in $PATH; do
7929 # Account for people who put trailing slashes in PATH elements.
7931 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7933 # OSF1 and SCO ODT 3.0 have their own names for install.
7934 for ac_prog
in ginstall scoinst
install; do
7935 if test -f $ac_dir/$ac_prog; then
7936 if test $ac_prog = install &&
7937 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7938 # AIX install. It has an incompatible calling convention.
7939 # OSF/1 installbsd also uses dspmsg, but is usable.
7942 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7953 if test "${ac_cv_path_install+set}" = set; then
7954 INSTALL
="$ac_cv_path_install"
7956 # As a last resort, use the slow shell script. We don't cache a
7957 # path for INSTALL within a source directory, because that will
7958 # break other packages using the cache if that directory is
7959 # removed, or if the path is relative.
7960 INSTALL
="$ac_install_sh"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7964 $as_echo "$INSTALL" >&6; }
7966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7967 # It thinks the first close brace ends the variable substitution.
7968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7970 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7973 # See if cmp has --ignore-initial.
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7975 $as_echo_n "checking for cmp's capabilities... " >&6; }
7976 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7981 gcc_cv_prog_cmp_skip
=slowcompare
7982 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7983 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7986 gcc_cv_prog_cmp_skip
=gnucompare
7989 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7990 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7991 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7994 gcc_cv_prog_cmp_skip
=fastcompare
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8002 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8003 make_compare_target
=$gcc_cv_prog_cmp_skip
8007 # See if we have the mktemp command.
8008 # Extract the first word of "mktemp", so it can be a program name with args.
8009 set dummy mktemp
; ac_word
=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8015 if test -n "$have_mktemp_command"; then
8016 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir
=.
8023 for ac_exec_ext
in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_have_mktemp_command
="yes"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8036 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8037 if test -n "$have_mktemp_command"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8039 $as_echo "$have_mktemp_command" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8047 # See if makeinfo has been installed and is modern enough
8048 # that we can use it.
8050 # Extract the first word of "makeinfo", so it can be a program name with args.
8051 set dummy makeinfo
; ac_word
=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8057 if test -n "$MAKEINFO"; then
8058 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir
=.
8065 for ac_exec_ext
in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_prog_MAKEINFO
="makeinfo"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 MAKEINFO
=$ac_cv_prog_MAKEINFO
8078 if test -n "$MAKEINFO"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8080 $as_echo "$MAKEINFO" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8087 if test -n "$MAKEINFO"; then
8088 # Found it, now check the version.
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8090 $as_echo_n "checking for modern makeinfo... " >&6; }
8091 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8094 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8095 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8097 case $ac_prog_version in
8098 '') gcc_cv_prog_makeinfo_modern
=no
;;
8099 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8100 *) gcc_cv_prog_makeinfo_modern
=no
;;
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8105 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8107 gcc_cv_prog_makeinfo_modern
=no
8109 if test $gcc_cv_prog_makeinfo_modern = no
; then
8110 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8113 if test $gcc_cv_prog_makeinfo_modern = no
; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8115 *** Makeinfo is missing or too old.
8116 *** Info documentation will not be built." >&5
8117 $as_echo "$as_me: WARNING:
8118 *** Makeinfo is missing or too old.
8119 *** Info documentation will not be built." >&2;}
8126 # Is pod2man recent enough to regenerate manpages?
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8128 $as_echo_n "checking for recent Pod::Man... " >&6; }
8129 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 GENERATED_MANPAGES
=generated-manpages
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8140 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy
$ac_prog; ac_word
=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_FLEX+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8152 if test -n "$FLEX"; then
8153 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8159 test -z "$as_dir" && as_dir
=.
8160 for ac_exec_ext
in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_FLEX
="$ac_prog"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 FLEX
=$ac_cv_prog_FLEX
8173 if test -n "$FLEX"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8175 $as_echo "$FLEX" >&6; }
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8182 test -n "$FLEX" && break
8184 test -n "$FLEX" || FLEX
="$MISSING flex"
8188 for ac_prog
in bison
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy
$ac_prog; ac_word
=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_prog_BISON+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8197 if test -n "$BISON"; then
8198 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8204 test -z "$as_dir" && as_dir
=.
8205 for ac_exec_ext
in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_prog_BISON
="$ac_prog"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 BISON
=$ac_cv_prog_BISON
8218 if test -n "$BISON"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8220 $as_echo "$BISON" >&6; }
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8227 test -n "$BISON" && break
8229 test -n "$BISON" || BISON
="$MISSING bison"
8232 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8233 # check for build == host before using them.
8236 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8237 && test -d ..
/binutils
; then
8238 NM
='${objdir}/../binutils/nm-new'
8240 # Extract the first word of "nm", so it can be a program name with args.
8241 set dummy nm
; ac_word
=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_NM+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8247 if test -n "$NM"; then
8248 ac_cv_prog_NM
="$NM" # Let the user override the test.
8250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir
=.
8255 for ac_exec_ext
in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8269 if test -n "$NM"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8271 $as_echo "$NM" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8281 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8282 && test -d ..
/binutils
; then
8283 AR
='${objdir}/../binutils/ar'
8285 # Extract the first word of "ar", so it can be a program name with args.
8286 set dummy
ar; ac_word
=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_prog_AR+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8292 if test -n "$AR"; then
8293 ac_cv_prog_AR
="$AR" # Let the user override the test.
8295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir
=.
8300 for ac_exec_ext
in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8314 if test -n "$AR"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8316 $as_echo "$AR" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8326 # --------------------
8327 # Checks for C headers
8328 # --------------------
8330 # Need to reject headers which give warnings, so that the -Werror bootstrap
8331 # works later. *sigh* This needs to come before all header checks.
8333 ac_c_preproc_warn_flag
=yes
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8336 $as_echo_n "checking for ANSI C header files... " >&6; }
8337 if test "${ac_cv_header_stdc+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8355 if ac_fn_c_try_compile
"$LINENO"; then :
8356 ac_cv_header_stdc
=yes
8358 ac_cv_header_stdc
=no
8360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 if test $ac_cv_header_stdc = yes; then
8363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370 $EGREP "memchr" >/dev
/null
2>&1; then :
8373 ac_cv_header_stdc
=no
8379 if test $ac_cv_header_stdc = yes; then
8380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 $EGREP "free" >/dev
/null
2>&1; then :
8390 ac_cv_header_stdc
=no
8396 if test $ac_cv_header_stdc = yes; then
8397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8398 if test "$cross_compiling" = yes; then :
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8405 #if ((' ' & 0x0FF) == 0x020)
8406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8409 # define ISLOWER(c) \
8410 (('a' <= (c) && (c) <= 'i') \
8411 || ('j' <= (c) && (c) <= 'r') \
8412 || ('s' <= (c) && (c) <= 'z'))
8413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8421 for (i = 0; i < 256; i++)
8422 if (XOR (islower (i), ISLOWER (i))
8423 || toupper (i) != TOUPPER (i))
8428 if ac_fn_c_try_run
"$LINENO"; then :
8431 ac_cv_header_stdc
=no
8433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8440 $as_echo "$ac_cv_header_stdc" >&6; }
8441 if test $ac_cv_header_stdc = yes; then
8443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8448 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8449 if test "${ac_cv_header_time+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <sys/types.h>
8455 #include <sys/time.h>
8461 if ((struct tm *) 0)
8467 if ac_fn_c_try_compile
"$LINENO"; then :
8468 ac_cv_header_time
=yes
8470 ac_cv_header_time
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8475 $as_echo "$ac_cv_header_time" >&6; }
8476 if test $ac_cv_header_time = yes; then
8478 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8483 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8484 if test "${gcc_cv_header_string+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8490 #include <strings.h>
8499 if ac_fn_c_try_compile
"$LINENO"; then :
8500 gcc_cv_header_string
=yes
8502 gcc_cv_header_string
=no
8504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8507 $as_echo "$gcc_cv_header_string" >&6; }
8508 if test $gcc_cv_header_string = yes; then
8510 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8515 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8516 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <sys/types.h>
8522 #include <sys/wait.h>
8524 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8527 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8540 if ac_fn_c_try_compile
"$LINENO"; then :
8541 ac_cv_header_sys_wait_h
=yes
8543 ac_cv_header_sys_wait_h
=no
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8548 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8549 if test $ac_cv_header_sys_wait_h = yes; then
8551 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8555 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8556 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8557 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8558 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8560 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8561 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8562 eval as_val
=\$
$as_ac_Header
8563 if test "x$as_val" = x
""yes; then :
8564 cat >>confdefs.h
<<_ACEOF
8565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 # Check for thread headers.
8573 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8574 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8580 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8581 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8588 # These tests can't be done till we know if we have limits.h.
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8590 $as_echo_n "checking for CHAR_BIT... " >&6; }
8591 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #ifdef HAVE_LIMITS_H
8603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8604 $EGREP "found" >/dev
/null
2>&1; then :
8605 gcc_cv_decl_char_bit
=yes
8607 gcc_cv_decl_char_bit
=no
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8614 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8615 if test $gcc_cv_decl_char_bit = no
; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8617 $as_echo_n "checking number of bits in a byte... " >&6; }
8618 if test "${gcc_cv_c_nbby+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8623 while test $i -lt 65; do
8624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8631 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8632 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8638 if ac_fn_c_try_compile
"$LINENO"; then :
8639 gcc_cv_c_nbby
=$i; break
8641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8644 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8648 $as_echo "$gcc_cv_c_nbby" >&6; }
8649 if test $gcc_cv_c_nbby = failed
; then
8650 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8653 cat >>confdefs.h
<<_ACEOF
8654 #define CHAR_BIT $gcc_cv_c_nbby
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8660 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8661 if test "${ac_cv_c_bigendian+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8664 ac_cv_c_bigendian
=unknown
8665 # See if we're dealing with a universal compiler.
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #ifndef __APPLE_CC__
8669 not a universal capable compiler
8674 if ac_fn_c_try_compile
"$LINENO"; then :
8676 # Check for potential -arch flags. It is not universal unless
8677 # there are at least two -arch flags with different values.
8680 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8681 if test -n "$ac_prev"; then
8683 i?
86 | x86_64 | ppc | ppc64
)
8684 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8687 ac_cv_c_bigendian
=universal
8693 elif test "x$ac_word" = "x-arch"; then
8698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8699 if test $ac_cv_c_bigendian = unknown
; then
8700 # See if sys/param.h defines the BYTE_ORDER macro.
8701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/param.h>
8709 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8710 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8719 if ac_fn_c_try_compile
"$LINENO"; then :
8720 # It does; now see whether it defined to BIG_ENDIAN or not.
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <sys/types.h>
8724 #include <sys/param.h>
8729 #if BYTE_ORDER != BIG_ENDIAN
8737 if ac_fn_c_try_compile
"$LINENO"; then :
8738 ac_cv_c_bigendian
=yes
8740 ac_cv_c_bigendian
=no
8742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8746 if test $ac_cv_c_bigendian = unknown
; then
8747 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8755 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8763 if ac_fn_c_try_compile
"$LINENO"; then :
8764 # It does; now see whether it defined to _BIG_ENDIAN or not.
8765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8780 if ac_fn_c_try_compile
"$LINENO"; then :
8781 ac_cv_c_bigendian
=yes
8783 ac_cv_c_bigendian
=no
8785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 if test $ac_cv_c_bigendian = unknown
; then
8790 # Compile a test program.
8791 if test "$cross_compiling" = yes; then :
8792 # Try to guess by grepping values from an object file.
8793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 short int ascii_mm[] =
8796 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8797 short int ascii_ii[] =
8798 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8799 int use_ascii (int i) {
8800 return ascii_mm[i] + ascii_ii[i];
8802 short int ebcdic_ii[] =
8803 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8804 short int ebcdic_mm[] =
8805 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8806 int use_ebcdic (int i) {
8807 return ebcdic_mm[i] + ebcdic_ii[i];
8814 return use_ascii (foo) == use_ebcdic (foo);
8819 if ac_fn_c_try_compile
"$LINENO"; then :
8820 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8821 ac_cv_c_bigendian
=yes
8823 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8824 if test "$ac_cv_c_bigendian" = unknown
; then
8825 ac_cv_c_bigendian
=no
8827 # finding both strings is unlikely to happen, but who knows?
8828 ac_cv_c_bigendian
=unknown
8832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 $ac_includes_default
8841 /* Are we little or big endian? From Harbison&Steele. */
8845 char c[sizeof (long int)];
8848 return u.c[sizeof (long int) - 1] == 1;
8854 if ac_fn_c_try_run
"$LINENO"; then :
8855 ac_cv_c_bigendian
=no
8857 ac_cv_c_bigendian
=yes
8859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8866 $as_echo "$ac_cv_c_bigendian" >&6; }
8867 case $ac_cv_c_bigendian in #(
8869 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8875 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8879 as_fn_error
"unknown endianness
8880 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8884 # ----------------------
8885 # Checks for C++ headers
8886 # ----------------------
8889 ac_cpp
='$CXXCPP $CPPFLAGS'
8890 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8894 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8895 if test -z "$CXXCPP"; then
8896 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8899 # Double quotes because CXXCPP needs to be expanded
8900 for CXXCPP
in "$CXX -E" "/lib/cpp"
8903 for ac_cxx_preproc_warn_flag
in '' yes
8905 # Use a header file that comes with gcc, so configuring glibc
8906 # with a fresh cross-compiler works.
8907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908 # <limits.h> exists even on freestanding compilers.
8909 # On the NeXT, cc -E runs the code through the compiler's parser,
8910 # not just through cpp. "Syntax error" is here to catch this case.
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8914 # include <limits.h>
8916 # include <assert.h>
8920 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8923 # Broken: fails on valid input.
8926 rm -f conftest.err conftest.
$ac_ext
8928 # OK, works on sane cases. Now check whether nonexistent headers
8929 # can be detected and how.
8930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <ac_nonexistent.h>
8934 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8935 # Broken: success on invalid input.
8938 # Passes both tests.
8942 rm -f conftest.err conftest.
$ac_ext
8945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8946 rm -f conftest.err conftest.
$ac_ext
8947 if $ac_preproc_ok; then :
8952 ac_cv_prog_CXXCPP
=$CXXCPP
8955 CXXCPP
=$ac_cv_prog_CXXCPP
8957 ac_cv_prog_CXXCPP
=$CXXCPP
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8960 $as_echo "$CXXCPP" >&6; }
8962 for ac_cxx_preproc_warn_flag
in '' yes
8964 # Use a header file that comes with gcc, so configuring glibc
8965 # with a fresh cross-compiler works.
8966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967 # <limits.h> exists even on freestanding compilers.
8968 # On the NeXT, cc -E runs the code through the compiler's parser,
8969 # not just through cpp. "Syntax error" is here to catch this case.
8970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8973 # include <limits.h>
8975 # include <assert.h>
8979 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8982 # Broken: fails on valid input.
8985 rm -f conftest.err conftest.
$ac_ext
8987 # OK, works on sane cases. Now check whether nonexistent headers
8988 # can be detected and how.
8989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 #include <ac_nonexistent.h>
8993 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8994 # Broken: success on invalid input.
8997 # Passes both tests.
9001 rm -f conftest.err conftest.
$ac_ext
9004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9005 rm -f conftest.err conftest.
$ac_ext
9006 if $ac_preproc_ok; then :
9009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9012 See \`config.log' for more details." >&5
9013 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9014 See \`config.log' for more details." >&2;}; }
9018 ac_cpp
='$CPP $CPPFLAGS'
9019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9025 ac_cpp
='$CXXCPP $CPPFLAGS'
9026 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9033 for ac_header
in unordered_map
9035 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9036 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9037 cat >>confdefs.h
<<_ACEOF
9038 #define HAVE_UNORDERED_MAP 1
9044 for ac_header
in tr1/unordered_map
9046 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9047 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9048 cat >>confdefs.h
<<_ACEOF
9049 #define HAVE_TR1_UNORDERED_MAP 1
9055 for ac_header
in ext
/hash_map
9057 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9058 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9059 cat >>confdefs.h
<<_ACEOF
9060 #define HAVE_EXT_HASH_MAP 1
9068 ac_cpp
='$CPP $CPPFLAGS'
9069 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9070 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9071 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9079 # These libraries may be used by collect2.
9080 # We may need a special search path to get them linked.
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9082 $as_echo_n "checking for collect2 libraries... " >&6; }
9083 if test "${gcc_cv_collect2_libs+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9087 for libs
in '' -lld -lmld \
9088 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9089 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9110 if ac_fn_c_try_link
"$LINENO"; then :
9111 gcc_cv_collect2_libs
="$libs"; break
9113 rm -f core conftest.err conftest.
$ac_objext \
9114 conftest
$ac_exeext conftest.
$ac_ext
9117 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9120 $as_echo "$gcc_cv_collect2_libs" >&6; }
9121 case $gcc_cv_collect2_libs in
9123 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9127 # When building Ada code on Alpha, we need exc_resume which is usually in
9128 # -lexc. So test for it.
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9132 $as_echo_n "checking for library containing exc_resume... " >&6; }
9133 if test "${ac_cv_search_exc_resume+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9136 ac_func_search_save_LIBS
=$LIBS
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9150 return exc_resume ();
9155 for ac_lib
in '' exc
; do
9156 if test -z "$ac_lib"; then
9157 ac_res
="none required"
9160 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9162 if ac_fn_c_try_link
"$LINENO"; then :
9163 ac_cv_search_exc_resume
=$ac_res
9165 rm -f core conftest.err conftest.
$ac_objext \
9167 if test "${ac_cv_search_exc_resume+set}" = set; then :
9171 if test "${ac_cv_search_exc_resume+set}" = set; then :
9174 ac_cv_search_exc_resume
=no
9177 LIBS
=$ac_func_search_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9180 $as_echo "$ac_cv_search_exc_resume" >&6; }
9181 ac_res
=$ac_cv_search_exc_resume
9182 if test "$ac_res" != no
; then :
9183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9191 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9195 $as_echo_n "checking for library containing kstat_open... " >&6; }
9196 if test "${ac_cv_search_kstat_open+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9199 ac_func_search_save_LIBS
=$LIBS
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9213 return kstat_open ();
9218 for ac_lib
in '' kstat
; do
9219 if test -z "$ac_lib"; then
9220 ac_res
="none required"
9223 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9225 if ac_fn_c_try_link
"$LINENO"; then :
9226 ac_cv_search_kstat_open
=$ac_res
9228 rm -f core conftest.err conftest.
$ac_objext \
9230 if test "${ac_cv_search_kstat_open+set}" = set; then :
9234 if test "${ac_cv_search_kstat_open+set}" = set; then :
9237 ac_cv_search_kstat_open
=no
9240 LIBS
=$ac_func_search_save_LIBS
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9243 $as_echo "$ac_cv_search_kstat_open" >&6; }
9244 ac_res
=$ac_cv_search_kstat_open
9245 if test "$ac_res" != no
; then :
9246 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9250 EXTRA_GCC_LIBS
="$LIBS"
9254 # Some systems put ldexp and frexp in libm instead of libc; assume
9255 # they're both in the same place. jcf-dump needs them.
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9259 $as_echo_n "checking for library containing ldexp... " >&6; }
9260 if test "${ac_cv_search_ldexp+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9263 ac_func_search_save_LIBS
=$LIBS
9264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9267 /* Override any GCC internal prototype to avoid an error.
9268 Use char because int might match the return type of a GCC
9269 builtin and then its argument prototype would still apply. */
9282 for ac_lib
in '' m
; do
9283 if test -z "$ac_lib"; then
9284 ac_res
="none required"
9287 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9289 if ac_fn_c_try_link
"$LINENO"; then :
9290 ac_cv_search_ldexp
=$ac_res
9292 rm -f core conftest.err conftest.
$ac_objext \
9294 if test "${ac_cv_search_ldexp+set}" = set; then :
9298 if test "${ac_cv_search_ldexp+set}" = set; then :
9301 ac_cv_search_ldexp
=no
9304 LIBS
=$ac_func_search_save_LIBS
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9307 $as_echo "$ac_cv_search_ldexp" >&6; }
9308 ac_res
=$ac_cv_search_ldexp
9309 if test "$ac_res" != no
; then :
9310 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9318 # Use <inttypes.h> only if it exists,
9319 # doesn't clash with <sys/types.h>, and declares intmax_t.
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9321 $as_echo_n "checking for inttypes.h... " >&6; }
9322 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 #include <sys/types.h>
9328 #include <inttypes.h>
9337 if ac_fn_c_try_compile
"$LINENO"; then :
9338 gcc_cv_header_inttypes_h
=yes
9340 gcc_cv_header_inttypes_h
=no
9342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9346 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9347 if test $gcc_cv_header_inttypes_h = yes; then
9349 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9355 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9356 sysconf strsignal getrusage nl_langinfo \
9357 gettimeofday mbstowcs wcswidth mmap setlocale \
9358 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9360 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9361 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9362 eval as_val
=\$
$as_ac_var
9363 if test "x$as_val" = x
""yes; then :
9364 cat >>confdefs.h
<<_ACEOF
9365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9372 if test x
$ac_cv_func_mbstowcs = xyes
; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9374 $as_echo_n "checking whether mbstowcs works... " >&6; }
9375 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9378 if test "$cross_compiling" = yes; then :
9379 gcc_cv_func_mbstowcs_works
=yes
9381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9390 if ac_fn_c_try_run
"$LINENO"; then :
9391 gcc_cv_func_mbstowcs_works
=yes
9393 gcc_cv_func_mbstowcs_works
=no
9395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9401 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9402 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9404 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9409 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9410 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9414 cat >>confdefs.h
<<_ACEOF
9420 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9421 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9425 cat >>confdefs.h
<<_ACEOF
9426 #define caddr_t char *
9433 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9434 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9435 gcc_header_sys_mman_h
=yes
9437 gcc_header_sys_mman_h
=no
9440 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9441 if test "x$ac_cv_func_mmap" = x
""yes; then :
9447 if test "$gcc_header_sys_mman_h" != yes \
9448 ||
test "$gcc_func_mmap" != yes; then
9449 gcc_cv_func_mmap_file
=no
9450 gcc_cv_func_mmap_dev_zero
=no
9451 gcc_cv_func_mmap_anon
=no
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9454 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9455 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9458 # Add a system to this blacklist if
9459 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9460 # memory area containing the same data that you'd get if you applied
9461 # read() to the same fd. The only system known to have a problem here
9462 # is VMS, where text files have record structure.
9465 gcc_cv_func_mmap_file
=no
;;
9467 gcc_cv_func_mmap_file
=yes;;
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9471 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9473 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9474 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9477 # Add a system to this blacklist if it has mmap() but /dev/zero
9478 # does not exist, or if mmapping /dev/zero does not give anonymous
9479 # zeroed pages with both the following properties:
9480 # 1. If you map N consecutive pages in with one call, and then
9481 # unmap any subset of those pages, the pages that were not
9482 # explicitly unmapped remain accessible.
9483 # 2. If you map two adjacent blocks of memory and then unmap them
9484 # both at once, they must both go away.
9485 # Systems known to be in this category are Windows (all variants),
9488 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9489 gcc_cv_func_mmap_dev_zero
=no
;;
9491 gcc_cv_func_mmap_dev_zero
=yes;;
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9495 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9497 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9499 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9500 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 #include <sys/types.h>
9506 #include <sys/mman.h>
9509 #ifndef MAP_ANONYMOUS
9510 #define MAP_ANONYMOUS MAP_ANON
9516 int n = MAP_ANONYMOUS;
9521 if ac_fn_c_try_compile
"$LINENO"; then :
9522 gcc_cv_decl_map_anon
=yes
9524 gcc_cv_decl_map_anon
=no
9526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9529 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9531 if test $gcc_cv_decl_map_anon = no
; then
9532 gcc_cv_func_mmap_anon
=no
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9535 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9536 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9539 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9540 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9541 # doesn't give anonymous zeroed pages with the same properties listed
9542 # above for use of /dev/zero.
9543 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9545 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9546 gcc_cv_func_mmap_anon
=no
;;
9548 gcc_cv_func_mmap_anon
=yes;;
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9552 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9556 if test $gcc_cv_func_mmap_file = yes; then
9558 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9561 if test $gcc_cv_func_mmap_dev_zero = yes; then
9563 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9566 if test $gcc_cv_func_mmap_anon = yes; then
9568 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9575 # Under VMS, vfork works very differently than on Unix. The standard test
9576 # won't work, and it isn't easily adaptable. It makes more sense to
9578 ac_cv_func_vfork_works
=yes
9581 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9582 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9586 cat >>confdefs.h
<<_ACEOF
9592 for ac_header
in vfork.h
9594 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9595 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9596 cat >>confdefs.h
<<_ACEOF
9597 #define HAVE_VFORK_H 1
9603 for ac_func
in fork vfork
9605 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9607 eval as_val
=\$
$as_ac_var
9608 if test "x$as_val" = x
""yes; then :
9609 cat >>confdefs.h
<<_ACEOF
9610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9616 if test "x$ac_cv_func_fork" = xyes
; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9618 $as_echo_n "checking for working fork... " >&6; }
9619 if test "${ac_cv_func_fork_works+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9622 if test "$cross_compiling" = yes; then :
9623 ac_cv_func_fork_works
=cross
9625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 $ac_includes_default
9632 /* By Ruediger Kuhlmann. */
9639 if ac_fn_c_try_run
"$LINENO"; then :
9640 ac_cv_func_fork_works
=yes
9642 ac_cv_func_fork_works
=no
9644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9650 $as_echo "$ac_cv_func_fork_works" >&6; }
9653 ac_cv_func_fork_works
=$ac_cv_func_fork
9655 if test "x$ac_cv_func_fork_works" = xcross
; then
9657 *-*-amigaos* |
*-*-msdosdjgpp*)
9658 # Override, as these systems have only a dummy fork() stub
9659 ac_cv_func_fork_works
=no
9662 ac_cv_func_fork_works
=yes
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9666 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9668 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9669 if test "x$ac_cv_func_vfork" = xyes
; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9671 $as_echo_n "checking for working vfork... " >&6; }
9672 if test "${ac_cv_func_vfork_works+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9675 if test "$cross_compiling" = yes; then :
9676 ac_cv_func_vfork_works
=cross
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 /* Thanks to Paul Eggert for this test. */
9681 $ac_includes_default
9682 #include <sys/wait.h>
9686 /* On some sparc systems, changes by the child to local and incoming
9687 argument registers are propagated back to the parent. The compiler
9688 is told about this with #include <vfork.h>, but some compilers
9689 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9690 static variable whose address is put into a register that is
9691 clobbered by the vfork. */
9694 sparc_address_test (int arg)
9696 sparc_address_test (arg) int arg;
9717 pid_t parent = getpid ();
9720 sparc_address_test (0);
9725 /* Here is another test for sparc vfork register problems. This
9726 test uses lots of local variables, at least as many local
9727 variables as main has allocated so far including compiler
9728 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9729 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9730 reuse the register of parent for one of the local variables,
9731 since it will think that parent can't possibly be used any more
9732 in this routine. Assigning to the local variable will thus
9733 munge parent in the parent process. */
9735 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9736 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9737 /* Convince the compiler that p..p7 are live; otherwise, it might
9738 use the same hardware register for all 8 local variables. */
9739 if (p != p1 || p != p2 || p != p3 || p != p4
9740 || p != p5 || p != p6 || p != p7)
9743 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9744 from child file descriptors. If the child closes a descriptor
9745 before it execs or exits, this munges the parent's descriptor
9746 as well. Test for this by closing stdout in the child. */
9747 _exit(close(fileno(stdout)) != 0);
9752 while (wait(&status) != child)
9755 /* Was there some problem with vforking? */
9758 /* Did the child fail? (This shouldn't happen.) */
9761 /* Did the vfork/compiler bug occur? */
9762 || parent != getpid()
9764 /* Did the file descriptor bug occur? */
9765 || fstat(fileno(stdout), &st) != 0
9770 if ac_fn_c_try_run
"$LINENO"; then :
9771 ac_cv_func_vfork_works
=yes
9773 ac_cv_func_vfork_works
=no
9775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9781 $as_echo "$ac_cv_func_vfork_works" >&6; }
9784 if test "x$ac_cv_func_fork_works" = xcross
; then
9785 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9787 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9790 if test "x$ac_cv_func_vfork_works" = xyes
; then
9792 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9796 $as_echo "#define vfork fork" >>confdefs.h
9799 if test "x$ac_cv_func_fork_works" = xyes
; then
9801 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9806 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9807 # iconv() prototype.
9809 ac_cpp
='$CXXCPP $CPPFLAGS'
9810 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9815 if test "X$prefix" = "XNONE"; then
9816 acl_final_prefix
="$ac_default_prefix"
9818 acl_final_prefix
="$prefix"
9820 if test "X$exec_prefix" = "XNONE"; then
9821 acl_final_exec_prefix
='${prefix}'
9823 acl_final_exec_prefix
="$exec_prefix"
9825 acl_save_prefix
="$prefix"
9826 prefix
="$acl_final_prefix"
9827 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9828 prefix
="$acl_save_prefix"
9831 # Check whether --with-gnu-ld was given.
9832 if test "${with_gnu_ld+set}" = set; then :
9833 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9838 # Prepare PATH_SEPARATOR.
9839 # The user is always right.
9840 if test "${PATH_SEPARATOR+set}" != set; then
9841 echo "#! /bin/sh" >conf$$.sh
9842 echo "exit 0" >>conf$$.sh
9844 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9852 if test "$GCC" = yes; then
9853 # Check if gcc -print-prog-name=ld gives a path.
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9855 $as_echo_n "checking for ld used by GCC... " >&6; }
9858 # gcc leaves a trailing carriage return which upsets mingw
9859 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9861 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9864 # Accept absolute paths.
9865 [\\/]* |
[A-Za-z
]:[\\/]*)
9866 re_direlt
='/[^/][^/]*/\.\./'
9867 # Canonicalize the path of ld
9868 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9869 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9870 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9872 test -z "$LD" && LD
="$ac_prog"
9875 # If it fails, then pretend we aren't using GCC.
9879 # If it is relative, then search for the first ld in PATH.
9883 elif test "$with_gnu_ld" = yes; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9885 $as_echo_n "checking for GNU ld... " >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9888 $as_echo_n "checking for non-GNU ld... " >&6; }
9890 if test "${acl_cv_path_LD+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9893 if test -z "$LD"; then
9894 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9895 for ac_dir
in $PATH; do
9896 test -z "$ac_dir" && ac_dir
=.
9897 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9898 acl_cv_path_LD
="$ac_dir/$ac_prog"
9899 # Check to see if the program is GNU ld. I'd rather use --version,
9900 # but apparently some GNU ld's only accept -v.
9901 # Break only if it was the GNU/non-GNU ld that we prefer.
9902 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9903 test "$with_gnu_ld" != no
&& break
9905 test "$with_gnu_ld" != yes && break
9911 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9915 LD
="$acl_cv_path_LD"
9916 if test -n "$LD"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9918 $as_echo "$LD" >&6; }
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9923 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9926 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9929 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9930 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9931 acl_cv_prog_gnu_ld
=yes
9933 acl_cv_prog_gnu_ld
=no
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9937 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9938 with_gnu_ld
=$acl_cv_prog_gnu_ld
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9943 $as_echo_n "checking for shared library run path origin... " >&6; }
9944 if test "${acl_cv_rpath+set}" = set; then :
9945 $as_echo_n "(cached) " >&6
9948 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9949 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9956 $as_echo "$acl_cv_rpath" >&6; }
9958 libext
="$acl_cv_libext"
9959 shlibext
="$acl_cv_shlibext"
9960 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9961 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9962 hardcode_direct
="$acl_cv_hardcode_direct"
9963 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9964 # Check whether --enable-rpath was given.
9965 if test "${enable_rpath+set}" = set; then :
9966 enableval
=$enable_rpath; :
9980 acl_save_prefix
="$prefix"
9981 prefix
="$acl_final_prefix"
9982 acl_save_exec_prefix
="$exec_prefix"
9983 exec_prefix
="$acl_final_exec_prefix"
9985 eval additional_includedir
=\"$includedir\"
9986 eval additional_libdir
=\"$libdir\"
9988 exec_prefix
="$acl_save_exec_prefix"
9989 prefix
="$acl_save_prefix"
9992 # Check whether --with-libiconv-prefix was given.
9993 if test "${with_libiconv_prefix+set}" = set; then :
9994 withval
=$with_libiconv_prefix;
9995 if test "X$withval" = "Xno"; then
9998 if test "X$withval" = "X"; then
10000 acl_save_prefix
="$prefix"
10001 prefix
="$acl_final_prefix"
10002 acl_save_exec_prefix
="$exec_prefix"
10003 exec_prefix
="$acl_final_exec_prefix"
10005 eval additional_includedir
=\"$includedir\"
10006 eval additional_libdir
=\"$libdir\"
10008 exec_prefix
="$acl_save_exec_prefix"
10009 prefix
="$acl_save_prefix"
10012 additional_includedir
="$withval/include"
10013 additional_libdir
="$withval/lib"
10024 names_already_handled
=
10025 names_next_round
='iconv '
10026 while test -n "$names_next_round"; do
10027 names_this_round
="$names_next_round"
10029 for name
in $names_this_round; do
10031 for n
in $names_already_handled; do
10032 if test "$n" = "$name"; then
10033 already_handled
=yes
10037 if test -z "$already_handled"; then
10038 names_already_handled
="$names_already_handled $name"
10039 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10040 eval value
=\"\
$HAVE_LIB$uppername\"
10041 if test -n "$value"; then
10042 if test "$value" = yes; then
10043 eval value
=\"\
$LIB$uppername\"
10044 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10045 eval value
=\"\
$LTLIB$uppername\"
10046 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10055 if test $use_additional = yes; then
10056 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10057 found_dir
="$additional_libdir"
10058 found_so
="$additional_libdir/lib$name.$shlibext"
10059 if test -f "$additional_libdir/lib$name.la"; then
10060 found_la
="$additional_libdir/lib$name.la"
10063 if test -f "$additional_libdir/lib$name.$libext"; then
10064 found_dir
="$additional_libdir"
10065 found_a
="$additional_libdir/lib$name.$libext"
10066 if test -f "$additional_libdir/lib$name.la"; then
10067 found_la
="$additional_libdir/lib$name.la"
10072 if test "X$found_dir" = "X"; then
10073 for x
in $LDFLAGS $LTLIBICONV; do
10075 acl_save_prefix
="$prefix"
10076 prefix
="$acl_final_prefix"
10077 acl_save_exec_prefix
="$exec_prefix"
10078 exec_prefix
="$acl_final_exec_prefix"
10080 exec_prefix
="$acl_save_exec_prefix"
10081 prefix
="$acl_save_prefix"
10085 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10086 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10088 found_so
="$dir/lib$name.$shlibext"
10089 if test -f "$dir/lib$name.la"; then
10090 found_la
="$dir/lib$name.la"
10093 if test -f "$dir/lib$name.$libext"; then
10095 found_a
="$dir/lib$name.$libext"
10096 if test -f "$dir/lib$name.la"; then
10097 found_la
="$dir/lib$name.la"
10103 if test "X$found_dir" != "X"; then
10108 if test "X$found_dir" != "X"; then
10109 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10110 if test "X$found_so" != "X"; then
10111 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10112 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10115 for x
in $ltrpathdirs; do
10116 if test "X$x" = "X$found_dir"; then
10121 if test -z "$haveit"; then
10122 ltrpathdirs
="$ltrpathdirs $found_dir"
10124 if test "$hardcode_direct" = yes; then
10125 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10127 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10128 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10130 for x
in $rpathdirs; do
10131 if test "X$x" = "X$found_dir"; then
10136 if test -z "$haveit"; then
10137 rpathdirs
="$rpathdirs $found_dir"
10141 for x
in $LDFLAGS $LIBICONV; do
10143 acl_save_prefix
="$prefix"
10144 prefix
="$acl_final_prefix"
10145 acl_save_exec_prefix
="$exec_prefix"
10146 exec_prefix
="$acl_final_exec_prefix"
10148 exec_prefix
="$acl_save_exec_prefix"
10149 prefix
="$acl_save_prefix"
10151 if test "X$x" = "X-L$found_dir"; then
10156 if test -z "$haveit"; then
10157 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10159 if test "$hardcode_minus_L" != no
; then
10160 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10162 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10168 if test "X$found_a" != "X"; then
10169 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10171 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10174 additional_includedir
=
10175 case "$found_dir" in
10177 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10178 additional_includedir
="$basedir/include"
10181 if test "X$additional_includedir" != "X"; then
10182 if test "X$additional_includedir" != "X/usr/include"; then
10184 if test "X$additional_includedir" = "X/usr/local/include"; then
10185 if test -n "$GCC"; then
10187 linux
*) haveit
=yes;;
10191 if test -z "$haveit"; then
10192 for x
in $CPPFLAGS $INCICONV; do
10194 acl_save_prefix
="$prefix"
10195 prefix
="$acl_final_prefix"
10196 acl_save_exec_prefix
="$exec_prefix"
10197 exec_prefix
="$acl_final_exec_prefix"
10199 exec_prefix
="$acl_save_exec_prefix"
10200 prefix
="$acl_save_prefix"
10202 if test "X$x" = "X-I$additional_includedir"; then
10207 if test -z "$haveit"; then
10208 if test -d "$additional_includedir"; then
10209 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10215 if test -n "$found_la"; then
10216 save_libdir
="$libdir"
10217 case "$found_la" in
10218 */* |
*\\*) .
"$found_la" ;;
10219 *) .
"./$found_la" ;;
10221 libdir
="$save_libdir"
10222 for dep
in $dependency_libs; do
10225 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10226 if test "X$additional_libdir" != "X/usr/lib"; then
10228 if test "X$additional_libdir" = "X/usr/local/lib"; then
10229 if test -n "$GCC"; then
10231 linux
*) haveit
=yes;;
10235 if test -z "$haveit"; then
10237 for x
in $LDFLAGS $LIBICONV; do
10239 acl_save_prefix
="$prefix"
10240 prefix
="$acl_final_prefix"
10241 acl_save_exec_prefix
="$exec_prefix"
10242 exec_prefix
="$acl_final_exec_prefix"
10244 exec_prefix
="$acl_save_exec_prefix"
10245 prefix
="$acl_save_prefix"
10247 if test "X$x" = "X-L$additional_libdir"; then
10252 if test -z "$haveit"; then
10253 if test -d "$additional_libdir"; then
10254 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10258 for x
in $LDFLAGS $LTLIBICONV; do
10260 acl_save_prefix
="$prefix"
10261 prefix
="$acl_final_prefix"
10262 acl_save_exec_prefix
="$exec_prefix"
10263 exec_prefix
="$acl_final_exec_prefix"
10265 exec_prefix
="$acl_save_exec_prefix"
10266 prefix
="$acl_save_prefix"
10268 if test "X$x" = "X-L$additional_libdir"; then
10273 if test -z "$haveit"; then
10274 if test -d "$additional_libdir"; then
10275 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10282 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10283 if test "$enable_rpath" != no
; then
10285 for x
in $rpathdirs; do
10286 if test "X$x" = "X$dir"; then
10291 if test -z "$haveit"; then
10292 rpathdirs
="$rpathdirs $dir"
10295 for x
in $ltrpathdirs; do
10296 if test "X$x" = "X$dir"; then
10301 if test -z "$haveit"; then
10302 ltrpathdirs
="$ltrpathdirs $dir"
10307 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10310 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10313 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10314 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10320 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10321 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10327 if test "X$rpathdirs" != "X"; then
10328 if test -n "$hardcode_libdir_separator"; then
10330 for found_dir
in $rpathdirs; do
10331 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10333 acl_save_libdir
="$libdir"
10335 eval flag
=\"$hardcode_libdir_flag_spec\"
10336 libdir
="$acl_save_libdir"
10337 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10339 for found_dir
in $rpathdirs; do
10340 acl_save_libdir
="$libdir"
10341 libdir
="$found_dir"
10342 eval flag
=\"$hardcode_libdir_flag_spec\"
10343 libdir
="$acl_save_libdir"
10344 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10348 if test "X$ltrpathdirs" != "X"; then
10349 for found_dir
in $ltrpathdirs; do
10350 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10360 am_save_CPPFLAGS
="$CPPFLAGS"
10362 for element
in $INCICONV; do
10364 for x
in $CPPFLAGS; do
10366 acl_save_prefix
="$prefix"
10367 prefix
="$acl_final_prefix"
10368 acl_save_exec_prefix
="$exec_prefix"
10369 exec_prefix
="$acl_final_exec_prefix"
10371 exec_prefix
="$acl_save_exec_prefix"
10372 prefix
="$acl_save_prefix"
10374 if test "X$x" = "X$element"; then
10379 if test -z "$haveit"; then
10380 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10386 $as_echo_n "checking for iconv... " >&6; }
10387 if test "${am_cv_func_iconv+set}" = set; then :
10388 $as_echo_n "(cached) " >&6
10391 am_cv_func_iconv
="no, consider installing GNU libiconv"
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <stdlib.h>
10400 iconv_t cd = iconv_open("","");
10401 iconv(cd,NULL,NULL,NULL,NULL);
10407 if ac_fn_cxx_try_link
"$LINENO"; then :
10408 am_cv_func_iconv
=yes
10410 rm -f core conftest.err conftest.
$ac_objext \
10411 conftest
$ac_exeext conftest.
$ac_ext
10412 if test "$am_cv_func_iconv" != yes; then
10413 am_save_LIBS
="$LIBS"
10414 LIBS
="$LIBS $LIBICONV"
10415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <stdlib.h>
10422 iconv_t cd = iconv_open("","");
10423 iconv(cd,NULL,NULL,NULL,NULL);
10429 if ac_fn_cxx_try_link
"$LINENO"; then :
10430 am_cv_lib_iconv
=yes
10431 am_cv_func_iconv
=yes
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10435 LIBS
="$am_save_LIBS"
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10440 $as_echo "$am_cv_func_iconv" >&6; }
10441 if test "$am_cv_func_iconv" = yes; then
10443 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10446 if test "$am_cv_lib_iconv" = yes; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10448 $as_echo_n "checking how to link with libiconv... " >&6; }
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10450 $as_echo "$LIBICONV" >&6; }
10452 CPPFLAGS
="$am_save_CPPFLAGS"
10459 if test "$am_cv_func_iconv" = yes; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10461 $as_echo_n "checking for iconv declaration... " >&6; }
10462 if test "${am_cv_proto_iconv+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10469 #include <stdlib.h>
10475 #if defined(__STDC__) || defined(__cplusplus)
10476 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10489 if ac_fn_cxx_try_compile
"$LINENO"; then :
10490 am_cv_proto_iconv_arg1
=""
10492 am_cv_proto_iconv_arg1
="const"
10494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10495 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);"
10498 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10500 }$am_cv_proto_iconv" >&5
10502 }$am_cv_proto_iconv" >&6; }
10504 cat >>confdefs.h
<<_ACEOF
10505 #define ICONV_CONST $am_cv_proto_iconv_arg1
10511 ac_cpp
='$CPP $CPPFLAGS'
10512 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10513 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10514 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10517 # Until we have in-tree GNU iconv:
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10523 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10524 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 #include <locale.h>
10538 if ac_fn_c_try_link
"$LINENO"; then :
10539 am_cv_val_LC_MESSAGES
=yes
10541 am_cv_val_LC_MESSAGES
=no
10543 rm -f core conftest.err conftest.
$ac_objext \
10544 conftest
$ac_exeext conftest.
$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10547 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10548 if test $am_cv_val_LC_MESSAGES = yes; then
10550 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10557 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10558 if test "${am_cv_langinfo_codeset+set}" = set; then :
10559 $as_echo_n "(cached) " >&6
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include <langinfo.h>
10567 char* cs = nl_langinfo(CODESET);
10572 if ac_fn_c_try_link
"$LINENO"; then :
10573 am_cv_langinfo_codeset
=yes
10575 am_cv_langinfo_codeset
=no
10577 rm -f core conftest.err conftest.
$ac_objext \
10578 conftest
$ac_exeext conftest.
$ac_ext
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10582 $as_echo "$am_cv_langinfo_codeset" >&6; }
10583 if test $am_cv_langinfo_codeset = yes; then
10585 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10590 # We will need to find libiberty.h and ansidecl.h
10591 saved_CFLAGS
="$CFLAGS"
10592 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10593 saved_CXXFLAGS
="$CXXFLAGS"
10594 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10595 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10596 strsignal strstr stpcpy strverscmp \
10597 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10598 free
basename getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10600 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10603 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10604 $as_echo_n "(cached) " >&6
10606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 #define $ac_tr_decl 1
10611 #include "ansidecl.h"
10612 #include "system.h"
10618 char *(*pfn) = (char *(*)) $ac_func ;
10624 if ac_fn_c_try_compile
"$LINENO"; then :
10625 eval "gcc_cv_have_decl_$ac_func=yes"
10627 eval "gcc_cv_have_decl_$ac_func=no"
10629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10632 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10634 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10635 #define $ac_tr_decl 1
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10641 #define $ac_tr_decl 0
10649 for ac_func
in getrlimit setrlimit getrusage
10651 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10653 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10654 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10655 $as_echo_n "(cached) " >&6
10657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 #define $ac_tr_decl 1
10662 #include "ansidecl.h"
10663 #include "system.h"
10664 #ifdef HAVE_SYS_RESOURCE_H
10665 #include <sys/resource.h>
10673 char *(*pfn) = (char *(*)) $ac_func ;
10679 if ac_fn_c_try_compile
"$LINENO"; then :
10680 eval "gcc_cv_have_decl_$ac_func=yes"
10682 eval "gcc_cv_have_decl_$ac_func=no"
10684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10687 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10689 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10690 #define $ac_tr_decl 1
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10696 #define $ac_tr_decl 0
10704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 #include "ansidecl.h"
10708 #include "system.h"
10709 #ifdef HAVE_SYS_RESOURCE_H
10710 #include <sys/resource.h>
10721 if ac_fn_c_try_compile
"$LINENO"; then :
10725 $as_echo "#define rlim_t long" >>confdefs.h
10728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10730 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10731 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10732 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10733 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10734 for ac_func
in ldgetname
10736 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10738 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10739 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10740 $as_echo_n "(cached) " >&6
10742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 #define $ac_tr_decl 1
10747 #include "ansidecl.h"
10748 #include "system.h"
10749 #ifdef HAVE_LDFCN_H
10760 char *(*pfn) = (char *(*)) $ac_func ;
10766 if ac_fn_c_try_compile
"$LINENO"; then :
10767 eval "gcc_cv_have_decl_$ac_func=yes"
10769 eval "gcc_cv_have_decl_$ac_func=no"
10771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10774 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10776 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10777 #define $ac_tr_decl 1
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10783 #define $ac_tr_decl 0
10791 for ac_func
in times
10793 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10795 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10796 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 #define $ac_tr_decl 1
10804 #include "ansidecl.h"
10805 #include "system.h"
10806 #ifdef HAVE_SYS_TIMES_H
10807 #include <sys/times.h>
10815 char *(*pfn) = (char *(*)) $ac_func ;
10821 if ac_fn_c_try_compile
"$LINENO"; then :
10822 eval "gcc_cv_have_decl_$ac_func=yes"
10824 eval "gcc_cv_have_decl_$ac_func=no"
10826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10829 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10832 #define $ac_tr_decl 1
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10838 #define $ac_tr_decl 0
10846 for ac_func
in sigaltstack
10848 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10850 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10851 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10852 $as_echo_n "(cached) " >&6
10854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 #define $ac_tr_decl 1
10859 #include "ansidecl.h"
10860 #include "system.h"
10861 #include <signal.h>
10868 char *(*pfn) = (char *(*)) $ac_func ;
10874 if ac_fn_c_try_compile
"$LINENO"; then :
10875 eval "gcc_cv_have_decl_$ac_func=yes"
10877 eval "gcc_cv_have_decl_$ac_func=no"
10879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10882 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10885 #define $ac_tr_decl 1
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10891 #define $ac_tr_decl 0
10899 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10902 ac_cpp
='$CXXCPP $CPPFLAGS'
10903 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10904 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10905 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10907 for ac_func
in madvise
10909 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10911 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10912 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10913 $as_echo_n "(cached) " >&6
10915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10918 #define $ac_tr_decl 1
10920 #include "ansidecl.h"
10921 #include "system.h"
10928 char *(*pfn) = (char *(*)) $ac_func ;
10934 if ac_fn_cxx_try_compile
"$LINENO"; then :
10935 eval "gcc_cv_have_decl_$ac_func=yes"
10937 eval "gcc_cv_have_decl_$ac_func=no"
10939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10942 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10944 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10945 #define $ac_tr_decl 1
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10951 #define $ac_tr_decl 0
10959 ac_cpp
='$CPP $CPPFLAGS'
10960 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10965 # More time-related stuff.
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10967 $as_echo_n "checking for struct tms... " >&6; }
10968 if test "${ac_cv_struct_tms+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10975 #include "ansidecl.h"
10976 #include "system.h"
10977 #ifdef HAVE_SYS_TIMES_H
10978 #include <sys/times.h>
10989 if ac_fn_c_try_compile
"$LINENO"; then :
10990 ac_cv_struct_tms
=yes
10992 ac_cv_struct_tms
=no
10994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10997 $as_echo "$ac_cv_struct_tms" >&6; }
10998 if test $ac_cv_struct_tms = yes; then
11000 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11004 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11005 # revisit after autoconf 2.50.
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11007 $as_echo_n "checking for clock_t... " >&6; }
11008 if test "${gcc_cv_type_clock_t+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11015 #include "ansidecl.h"
11016 #include "system.h"
11026 if ac_fn_c_try_compile
"$LINENO"; then :
11027 gcc_cv_type_clock_t
=yes
11029 gcc_cv_type_clock_t
=no
11031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11034 $as_echo "$gcc_cv_type_clock_t" >&6; }
11035 if test $gcc_cv_type_clock_t = yes; then
11037 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11041 # Check if F_SETLKW is supported by fcntl.
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11043 $as_echo_n "checking for F_SETLKW... " >&6; }
11044 if test "${ac_cv_f_setlkw+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11061 return fcntl (1, F_SETLKW, &fl);
11066 if ac_fn_c_try_compile
"$LINENO"; then :
11071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11074 $as_echo "$ac_cv_f_setlkw" >&6; }
11075 if test $ac_cv_f_setlkw = yes; then
11077 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11081 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11082 CFLAGS
="$saved_CFLAGS"
11083 CXXFLAGS
="$saved_CXXFLAGS"
11085 # mkdir takes a single argument on some systems.
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11087 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11088 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #include <sys/types.h>
11095 #ifdef HAVE_SYS_STAT_H
11096 # include <sys/stat.h>
11098 #ifdef HAVE_UNISTD_H
11099 # include <unistd.h>
11101 #ifdef HAVE_DIRECT_H
11102 # include <direct.h>
11112 if ac_fn_c_try_compile
"$LINENO"; then :
11113 gcc_cv_mkdir_takes_one_arg
=no
11115 gcc_cv_mkdir_takes_one_arg
=yes
11117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11120 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11121 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11123 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11134 # With Setjmp/Longjmp based exception handling.
11135 # Check whether --enable-sjlj-exceptions was given.
11136 if test "${enable_sjlj_exceptions+set}" = set; then :
11137 enableval
=$enable_sjlj_exceptions; case $target in
11139 if test $enableval != yes; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11141 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11146 force_sjlj_exceptions
=yes
11150 force_sjlj_exceptions
=yes
11154 force_sjlj_exceptions
=no
11159 if test $force_sjlj_exceptions = yes; then
11160 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11162 cat >>confdefs.h
<<_ACEOF
11163 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11168 # --------------------------------------------------------
11169 # Build, host, and target specific configuration fragments
11170 # --------------------------------------------------------
11172 # Collect build-machine-specific information.
11173 .
${srcdir}/config.build
11175 # Collect host-machine-specific information.
11176 .
${srcdir}/config.
host
11180 # Collect target-machine-specific information.
11181 .
${srcdir}/config.gcc
11183 extra_objs
="${host_extra_objs} ${extra_objs}"
11184 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11186 # Default the target-machine variables that were not explicitly set.
11187 if test x
"$tm_file" = x
11188 then tm_file
=$cpu_type/$cpu_type.h
; fi
11190 if test x
"$extra_headers" = x
11191 then extra_headers
=; fi
11193 if test x
$md_file = x
11194 then md_file
=$cpu_type/$cpu_type.md
; fi
11196 if test x
$out_file = x
11197 then out_file
=$cpu_type/$cpu_type.c
; fi
11199 if test x
"$tmake_file" = x
11200 then tmake_file
=$cpu_type/t-
$cpu_type
11203 # Support --enable-initfini-array.
11204 if test x
$enable_initfini_array != xno
; then
11205 tm_file
="${tm_file} initfini-array.h"
11208 if test x
"$dwarf2" = xyes
11209 then tm_file
="$tm_file tm-dwarf2.h"
11212 # Say what files are being used for the output code and MD file.
11213 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11214 echo "Using \`$srcdir/config/$md_file' as machine description file."
11216 # If any of the xm_file variables contain nonexistent files, warn
11217 # about them and drop them.
11220 for x
in $build_xm_file; do
11221 if test -f $srcdir/config
/$x
11223 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11224 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11227 build_xm_file
="$bx"
11230 for x
in $host_xm_file; do
11231 if test -f $srcdir/config
/$x
11233 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11234 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11240 for x
in $xm_file; do
11241 if test -f $srcdir/config
/$x
11243 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11244 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11250 for f
in $tm_file; do
11253 if test $count = ax
; then
11254 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11256 echo "Using the following target machine macro files:"
11257 for f
in $tm_file; do
11258 echo " $srcdir/config/$f"
11262 if test x
$need_64bit_hwint = xyes
; then
11264 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11268 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11270 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11274 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11276 cat >>confdefs.h
<<_ACEOF
11277 #define HAVE_GNU_LD $gnu_ld_bool
11281 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11283 cat >>confdefs.h
<<_ACEOF
11284 #define HAVE_GNU_AS $gnu_as_bool
11289 for f
in $host_xm_file; do
11292 if test $count = a
; then
11294 elif test $count = ax
; then
11295 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11297 echo "Using the following host machine macro files:"
11298 for f
in $host_xm_file; do
11299 echo " $srcdir/config/$f"
11302 echo "Using ${out_host_hook_obj} for host machine hooks."
11304 if test "$host_xm_file" != "$build_xm_file"; then
11306 for f
in $build_xm_file; do
11309 if test $count = a
; then
11311 elif test $count = ax
; then
11312 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11314 echo "Using the following build machine macro files:"
11315 for f
in $build_xm_file; do
11316 echo " $srcdir/config/$f"
11321 if test -n "$configured_native_system_header_dir"; then
11322 native_system_header_dir
=$configured_native_system_header_dir
11324 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11328 powerpc
*-*-darwin*)
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11330 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11331 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11337 #include <sys/cdefs.h>
11338 #include <sys/signal.h>
11339 #include <ucontext.h>
11340 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11343 if ac_fn_c_try_compile
"$LINENO"; then :
11344 gcc_cv_mcontext_underscores
=no
11346 gcc_cv_mcontext_underscores
=yes
11348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11351 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11352 if test $gcc_cv_mcontext_underscores = yes; then
11354 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11364 # Check if a valid thread package
11365 case ${enable_threads} in
11368 target_thread_file
='single'
11372 target_thread_file
='single'
11374 aix | dce | lynx | mipssde | posix | rtems | \
11375 single | tpf | vxworks | win32
)
11376 target_thread_file
=${enable_threads}
11379 echo "${enable_threads} is an unknown thread package" 1>&2
11384 if test x
${thread_file} = x
; then
11385 # No thread file set by target-specific clauses in config.gcc,
11386 # so use file chosen by default logic above
11387 thread_file
=${target_thread_file}
11395 if test x
$enable___cxa_atexit = xyes || \
11396 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11397 if test x
$host = x
$target; then
11399 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11400 # keyed to flag_use_cxa_atexit
11405 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11406 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11409 echo "__cxa_atexit can't be enabled on this target"
11415 # We can't check for __cxa_atexit when building a cross, so assume
11419 if test x
$use_cxa_atexit = xyes
; then
11421 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11426 # Look for a file containing extra machine modes.
11427 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11428 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11431 cat >>confdefs.h
<<_ACEOF
11432 #define EXTRA_MODES_FILE "config/$extra_modes"
11437 # Convert extra_options into a form suitable for Makefile use.
11440 for f
in $extra_options; do
11441 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11442 all_opt_files
="$all_opt_files $srcdir/config/$f"
11446 # auto-host.h is the file containing items generated by autoconf and is
11447 # the first file included by config.h.
11448 # If host=build, it is correct to have bconfig include auto-host.h
11449 # as well. If host!=build, we are in error and need to do more
11450 # work to find out the build config parameters.
11451 if test x
$host = x
$build
11453 build_auto
=auto-host.h
11455 # We create a subdir, then run autoconf in the subdir.
11456 # To prevent recursion we set host and build for the new
11457 # invocation of configure to the build for this invocation
11464 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11465 *) realsrcdir
=..
/${srcdir};;
11467 saved_CFLAGS
="${CFLAGS}"
11468 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11469 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11470 ${realsrcdir}/configure \
11471 --enable-languages=${enable_languages-all} \
11472 --target=$target_alias --host=$build_alias --build=$build_alias
11473 CFLAGS
="${saved_CFLAGS}"
11475 # We just finished tests for the build machine, so rename
11476 # the file auto-build.h in the gcc directory.
11477 mv auto-host.h ..
/auto-build.h
11480 build_auto
=auto-build.h
11484 tm_file
="${tm_file} defaults.h"
11485 tm_p_file
="${tm_p_file} tm-preds.h"
11486 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11487 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11488 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11489 # put this back in temporarily.
11490 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11496 # Compile in configure arguments.
11497 if test -f configargs.h
; then
11498 # Being re-configured.
11499 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11500 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11502 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11505 # Double all backslashes and backslash all quotes to turn
11506 # gcc_config_arguments into a C string.
11507 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11508 $gcc_config_arguments
11510 gcc_config_arguments_str
=`cat conftest.out`
11513 cat > configargs.h
<<EOF
11514 /* Generated automatically. */
11515 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11516 static const char thread_model[] = "$thread_file";
11518 static const struct {
11519 const char *name, *value;
11520 } configure_default_options[] = $configure_default_options;
11523 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11524 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11525 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11526 if test -f $srcdir/REVISION
; then
11527 gcc_REVISION
=`cat $srcdir/REVISION`
11531 cat > plugin-version.h
<<EOF
11532 #include "configargs.h"
11534 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11535 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11536 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11537 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11539 static char basever[] = "$gcc_BASEVER";
11540 static char datestamp[] = "$gcc_DATESTAMP";
11541 static char devphase[] = "$gcc_DEVPHASE";
11542 static char revision[] = "$gcc_REVISION";
11544 /* FIXME plugins: We should make the version information more precise.
11545 One way to do is to add a checksum. */
11547 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11548 devphase, revision,
11549 configuration_arguments};
11552 # Internationalization
11553 # If we haven't got the data from the intl directory,
11554 # assume NLS is disabled.
11563 if test -f ..
/intl
/config.intl
; then
11564 . ..
/intl
/config.intl
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11567 $as_echo_n "checking whether NLS is requested... " >&6; }
11568 if test x
"$USE_NLS" != xyes
; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11573 $as_echo "yes" >&6; }
11575 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11579 $as_echo_n "checking for catalogs to be installed... " >&6; }
11580 # Look for .po and .gmo files in the source directory.
11583 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11584 # If there aren't any .gmo files the shell will give us the
11585 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11587 case "$cat" in *\
**)
11590 # The quadruple backslash is collapsed to a double backslash
11591 # by the backticks, then collapsed again by the double quotes,
11592 # leaving us with one backslash in the sed expression (right
11593 # before the dot that mustn't act as a wildcard).
11594 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11595 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11596 # The user is allowed to set LINGUAS to a list of languages to
11597 # install catalogs for. If it's empty that means "all of them."
11598 if test "x$LINGUAS" = x
; then
11599 CATALOGS
="$CATALOGS $cat"
11600 XLINGUAS
="$XLINGUAS $lang"
11602 case "$LINGUAS" in *$lang*)
11603 CATALOGS
="$CATALOGS $cat"
11604 XLINGUAS
="$XLINGUAS $lang"
11609 LINGUAS
="$XLINGUAS"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11611 $as_echo "$LINGUAS" >&6; }
11624 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11625 # -liconv on the link line twice.
11626 case "$LIBINTL" in *$LIBICONV*)
11630 # Check whether --enable-secureplt was given.
11631 if test "${enable_secureplt+set}" = set; then :
11632 enableval
=$enable_secureplt;
11636 # Check whether --enable-leading-mingw64-underscores was given.
11637 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11638 enableval
=$enable_leading_mingw64_underscores;
11641 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11643 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11647 # Check whether --enable-cld was given.
11648 if test "${enable_cld+set}" = set; then :
11649 enableval
=$enable_cld;
11655 # Check whether --enable-frame-pointer was given.
11656 if test "${enable_frame_pointer+set}" = set; then :
11657 enableval
=$enable_frame_pointer;
11661 linux
* | darwin
[8912]*)
11662 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11664 enable_frame_pointer
=no
11667 enable_frame_pointer
=yes
11674 # Windows32 Registry support for specifying GCC installation paths.
11675 # Check whether --enable-win32-registry was given.
11676 if test "${enable_win32_registry+set}" = set; then :
11677 enableval
=$enable_win32_registry;
11682 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11683 if test "x$enable_win32_registry" != xno
; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11685 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11686 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11689 ac_func_search_save_LIBS
=$LIBS
11690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11693 /* Override any GCC internal prototype to avoid an error.
11694 Use char because int might match the return type of a GCC
11695 builtin and then its argument prototype would still apply. */
11699 char RegOpenKeyExA ();
11703 return RegOpenKeyExA ();
11708 for ac_lib
in '' advapi32
; do
11709 if test -z "$ac_lib"; then
11710 ac_res
="none required"
11713 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11715 if ac_fn_c_try_link
"$LINENO"; then :
11716 ac_cv_search_RegOpenKeyExA
=$ac_res
11718 rm -f core conftest.err conftest.
$ac_objext \
11720 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11724 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11727 ac_cv_search_RegOpenKeyExA
=no
11729 rm conftest.
$ac_ext
11730 LIBS
=$ac_func_search_save_LIBS
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11733 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11734 ac_res
=$ac_cv_search_RegOpenKeyExA
11735 if test "$ac_res" != no
; then :
11736 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11739 enable_win32_registry
=no
11744 if test "x$enable_win32_registry" != xno
; then
11746 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11749 if test "x$enable_win32_registry" != xyes \
11750 && test "x$enable_win32_registry" != x
; then
11752 cat >>confdefs.h
<<_ACEOF
11753 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11761 # Get an absolute path to the GCC top-level source directory
11762 holddir
=`${PWDCMD-pwd}`
11764 topdir
=`${PWDCMD-pwd}`
11767 # Conditionalize the makefile for this host machine.
11769 for f
in ${host_xmake_file}
11771 if test -f ${srcdir}/config
/$f
11773 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11777 # Conditionalize the makefile for this target machine.
11779 for f
in ${tmake_file}
11781 if test -f ${srcdir}/config
/$f
11783 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11786 tmake_file
="${tmake_file_}"
11788 out_object_file
=`basename $out_file .c`.o
11789 common_out_object_file
=`basename $common_out_file .c`.o
11791 tm_file_list
="options.h"
11792 tm_include_list
="options.h insn-constants.h"
11793 for f
in $tm_file; do
11796 f
=`echo $f | sed 's/^..//'`
11797 tm_file_list
="${tm_file_list} $f"
11798 tm_include_list
="${tm_include_list} $f"
11801 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11802 tm_include_list
="${tm_include_list} $f"
11805 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11806 tm_include_list
="${tm_include_list} config/$f"
11813 for f
in $tm_p_file; do
11816 tm_p_file_list
="${tm_p_file_list} $f"
11817 tm_p_include_list
="${tm_p_include_list} $f"
11820 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11821 tm_p_include_list
="${tm_p_include_list} config/$f"
11827 for f
in $xm_file; do
11830 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11831 xm_include_list
="${xm_include_list} $f"
11834 xm_file_list
="${xm_file_list} $f"
11835 xm_include_list
="${xm_include_list} $f"
11838 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11839 xm_include_list
="${xm_include_list} config/$f"
11845 host_xm_include_list
=
11846 for f
in $host_xm_file; do
11849 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11850 host_xm_include_list
="${host_xm_include_list} $f"
11853 host_xm_file_list
="${host_xm_file_list} $f"
11854 host_xm_include_list
="${host_xm_include_list} $f"
11857 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11858 host_xm_include_list
="${host_xm_include_list} config/$f"
11863 build_xm_file_list
=
11864 for f
in $build_xm_file; do
11867 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11868 build_xm_include_list
="${build_xm_include_list} $f"
11870 auto-build.h | auto-host.h
)
11871 build_xm_file_list
="${build_xm_file_list} $f"
11872 build_xm_include_list
="${build_xm_include_list} $f"
11875 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11876 build_xm_include_list
="${build_xm_include_list} config/$f"
11881 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11882 # cross-compiler which does not use the native headers and libraries.
11883 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11886 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11888 if test "x$with_build_sysroot" != x
; then
11889 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11891 # This value is used, even on a native system, because
11892 # CROSS_SYSTEM_HEADER_DIR is just
11893 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11894 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11897 if test x
$host != x
$target
11899 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11901 SYSTEM_HEADER_DIR
=$build_system_header_dir
11902 case "$host","$target" in
11903 # Darwin crosses can use the host system's libraries and headers,
11904 # because of the fat library support. Of course, it must be the
11905 # same version of Darwin on both sides. Allow the user to
11906 # just say --target=foo-darwin without a version number to mean
11907 # "the version on this system".
11908 *-*-darwin*,*-*-darwin*)
11909 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11910 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11911 if test $hostos = $targetos -o $targetos = darwin
; then
11913 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11918 i?
86-*-*,x86_64-
*-* \
11919 | powerpc
*-*-*,powerpc64
*-*-*)
11920 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11925 if test "x$with_headers" = x
; then
11932 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11933 SYSTEM_HEADER_DIR
=$build_system_header_dir
11936 # If this is a cross-compiler that does not
11937 # have its own set of headers then define
11940 # If this is using newlib, without having the headers available now,
11941 # then define inhibit_libc in LIBGCC2_CFLAGS.
11942 # This prevents libgcc2 from containing any code which requires libc
11944 : ${inhibit_libc=false}
11945 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11946 test x
$with_newlib = xyes
; } &&
11947 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11952 # When building gcc with a cross-compiler, we need to adjust things so
11953 # that the generator programs are still built with the native compiler.
11954 # Also, we cannot run fixincludes.
11956 # These are the normal (build=host) settings:
11957 CC_FOR_BUILD
='$(CC)'
11958 CXX_FOR_BUILD
='$(CXX)'
11959 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11960 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11961 BUILD_LDFLAGS
='$(LDFLAGS)'
11962 STMP_FIXINC
=stmp-fixinc
11964 # And these apply if build != host, or we are generating coverage data
11965 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11967 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11968 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11971 # Expand extra_headers to include complete path.
11972 # This substitutes for lots of t-* files.
11973 extra_headers_list
=
11974 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11975 for file in ${extra_headers} ; do
11976 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11979 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11980 if test x
"$use_gcc_tgmath" = xyes
11981 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11984 # Define collect2 in Makefile.
11985 case $host_can_use_collect2 in
11987 *) collect2
='collect2$(exeext)' ;;
11991 # Add a definition of USE_COLLECT2 if system wants one.
11992 case $use_collect2 in
11993 no
) use_collect2
= ;;
11996 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11997 xm_defines
="${xm_defines} USE_COLLECT2"
11998 case $host_can_use_collect2 in
12000 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12007 cat >>confdefs.h
<<_ACEOF
12008 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12012 # ---------------------------
12013 # Assembler & linker features
12014 # ---------------------------
12016 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12017 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12018 # However when ld-new is first executed from the build tree, libtool will
12019 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12020 # to the build tree. While doing this we need to use the previous-stage
12021 # linker, or we have an infinite loop. The presence of a shell script as
12022 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12023 # the gcc/collect-ld script. So we need to know how libtool works, or
12024 # exec-tool will fail.
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12030 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12035 macro_version
='2.2.7a'
12036 macro_revision
='1.3134'
12050 ltmain
="$ac_aux_dir/ltmain.sh"
12052 # Backslashify metacharacters that are still active within
12053 # double-quoted strings.
12054 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12056 # Same as above, but do not quote variable references.
12057 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12059 # Sed substitution to delay expansion of an escaped shell variable in a
12060 # double_quote_subst'ed string.
12061 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12063 # Sed substitution to delay expansion of an escaped single quote.
12064 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12066 # Sed substitution to avoid accidental globbing in evaled expressions
12067 no_glob_subst
='s/\*/\\\*/g'
12069 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12070 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12074 $as_echo_n "checking how to print strings... " >&6; }
12075 # Test print first, because it will be a builtin if present.
12076 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12077 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12079 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12082 # Use this function as a fallback that always works.
12083 func_fallback_echo ()
12085 eval 'cat <<_LTECHO_EOF
12089 ECHO='func_fallback_echo
'
12092 # func_echo_all arg...
12093 # Invoke $ECHO with all args, space-separated.
12100 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12101 $as_echo "printf" >&6; } ;;
12102 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12103 $as_echo "print -r" >&6; } ;;
12104 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12105 $as_echo "cat" >&6; } ;;
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12123 if test "${ac_cv_path_SED+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12127 for ac_i in 1 2 3 4 5 6 7; do
12128 ac_script="$ac_script$as_nl$ac_script"
12130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12131 { ac_script=; unset ac_script;}
12132 if test -z "$SED"; then
12133 ac_path_SED_found=false
12134 # Loop through the user's path and
test for each of PROGNAME-LIST
12135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12136 for as_dir
in $PATH
12139 test -z "$as_dir" && as_dir
=.
12140 for ac_prog
in sed gsed
; do
12141 for ac_exec_ext
in '' $ac_executable_extensions; do
12142 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12143 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12144 # Check for GNU ac_path_SED and select it if it is found.
12145 # Check for GNU $ac_path_SED
12146 case `"$ac_path_SED" --version 2>&1` in
12148 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12151 $as_echo_n 0123456789 >"conftest.in"
12154 cat "conftest.in" "conftest.in" >"conftest.tmp"
12155 mv "conftest.tmp" "conftest.in"
12156 cp "conftest.in" "conftest.nl"
12157 $as_echo '' >> "conftest.nl"
12158 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12159 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12160 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12161 if test $ac_count -gt ${ac_path_SED_max-0}; then
12162 # Best one so far, save it but keep looking for a better one
12163 ac_cv_path_SED
="$ac_path_SED"
12164 ac_path_SED_max
=$ac_count
12166 # 10*(2^10) chars as input seems more than enough
12167 test $ac_count -gt 10 && break
12169 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12172 $ac_path_SED_found && break 3
12177 if test -z "$ac_cv_path_SED"; then
12178 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12181 ac_cv_path_SED
=$SED
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12186 $as_echo "$ac_cv_path_SED" >&6; }
12187 SED
="$ac_cv_path_SED"
12190 test -z "$SED" && SED
=sed
12191 Xsed
="$SED -e 1s/^X//"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12204 $as_echo_n "checking for fgrep... " >&6; }
12205 if test "${ac_cv_path_FGREP+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12208 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12209 then ac_cv_path_FGREP
="$GREP -F"
12211 if test -z "$FGREP"; then
12212 ac_path_FGREP_found
=false
12213 # Loop through the user's path and test for each of PROGNAME-LIST
12214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12215 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12218 test -z "$as_dir" && as_dir
=.
12219 for ac_prog
in fgrep
; do
12220 for ac_exec_ext
in '' $ac_executable_extensions; do
12221 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12222 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12223 # Check for GNU ac_path_FGREP and select it if it is found.
12224 # Check for GNU $ac_path_FGREP
12225 case `"$ac_path_FGREP" --version 2>&1` in
12227 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12230 $as_echo_n 0123456789 >"conftest.in"
12233 cat "conftest.in" "conftest.in" >"conftest.tmp"
12234 mv "conftest.tmp" "conftest.in"
12235 cp "conftest.in" "conftest.nl"
12236 $as_echo 'FGREP' >> "conftest.nl"
12237 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12238 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12239 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12241 # Best one so far, save it but keep looking for a better one
12242 ac_cv_path_FGREP
="$ac_path_FGREP"
12243 ac_path_FGREP_max
=$ac_count
12245 # 10*(2^10) chars as input seems more than enough
12246 test $ac_count -gt 10 && break
12248 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12251 $ac_path_FGREP_found && break 3
12256 if test -z "$ac_cv_path_FGREP"; then
12257 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12260 ac_cv_path_FGREP
=$FGREP
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12266 $as_echo "$ac_cv_path_FGREP" >&6; }
12267 FGREP
="$ac_cv_path_FGREP"
12270 test -z "$GREP" && GREP
=grep
12290 # Check whether --with-gnu-ld was given.
12291 if test "${with_gnu_ld+set}" = set; then :
12292 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12298 if test "$GCC" = yes; then
12299 # Check if gcc -print-prog-name=ld gives a path.
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12301 $as_echo_n "checking for ld used by $CC... " >&6; }
12304 # gcc leaves a trailing carriage return which upsets mingw
12305 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12307 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12310 # Accept absolute paths.
12312 re_direlt
='/[^/][^/]*/\.\./'
12313 # Canonicalize the pathname of ld
12314 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12315 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12316 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12318 test -z "$LD" && LD
="$ac_prog"
12321 # If it fails, then pretend we aren't using GCC.
12325 # If it is relative, then search for the first ld in PATH.
12326 with_gnu_ld
=unknown
12329 elif test "$with_gnu_ld" = yes; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12331 $as_echo_n "checking for GNU ld... " >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12334 $as_echo_n "checking for non-GNU ld... " >&6; }
12336 if test "${lt_cv_path_LD+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12339 if test -z "$LD"; then
12340 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12341 for ac_dir
in $PATH; do
12343 test -z "$ac_dir" && ac_dir
=.
12344 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12345 lt_cv_path_LD
="$ac_dir/$ac_prog"
12346 # Check to see if the program is GNU ld. I'd rather use --version,
12347 # but apparently some variants of GNU ld only accept -v.
12348 # Break only if it was the GNU/non-GNU ld that we prefer.
12349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12350 *GNU
* |
*'with BFD'*)
12351 test "$with_gnu_ld" != no
&& break
12354 test "$with_gnu_ld" != yes && break
12361 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12365 LD
="$lt_cv_path_LD"
12366 if test -n "$LD"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12368 $as_echo "$LD" >&6; }
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12373 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12376 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12380 case `$LD -v 2>&1 </dev/null` in
12381 *GNU
* |
*'with BFD'*)
12382 lt_cv_prog_gnu_ld
=yes
12385 lt_cv_prog_gnu_ld
=no
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12391 with_gnu_ld
=$lt_cv_prog_gnu_ld
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12403 if test "${lt_cv_path_NM+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12406 if test -n "$NM"; then
12407 # Let the user override the test.
12408 lt_cv_path_NM
="$NM"
12410 lt_nm_to_check
="${ac_tool_prefix}nm"
12411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12412 lt_nm_to_check
="$lt_nm_to_check nm"
12414 for lt_tmp_nm
in $lt_nm_to_check; do
12415 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12416 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12418 test -z "$ac_dir" && ac_dir
=.
12419 tmp_nm
="$ac_dir/$lt_tmp_nm"
12420 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12421 # Check to see if the nm accepts a BSD-compat flag.
12422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12423 # nm: unknown option "B" ignored
12424 # Tru64's nm complains that /dev/null is an invalid object file
12425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12426 */dev
/null
* |
*'Invalid file or object type'*)
12427 lt_cv_path_NM
="$tmp_nm -B"
12431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12433 lt_cv_path_NM
="$tmp_nm -p"
12437 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12438 continue # so that we can try to find one that supports BSD flags
12447 : ${lt_cv_path_NM=no}
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12451 $as_echo "$lt_cv_path_NM" >&6; }
12452 if test "$lt_cv_path_NM" != "no"; then
12453 NM
="$lt_cv_path_NM"
12455 # Didn't find any BSD compatible name lister, look for dumpbin.
12456 if test -n "$DUMPBIN"; then :
12457 # Let the user override the test.
12459 if test -n "$ac_tool_prefix"; then
12460 for ac_prog
in dumpbin
"link -dump"
12462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12463 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12469 if test -n "$DUMPBIN"; then
12470 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12473 for as_dir
in $PATH
12476 test -z "$as_dir" && as_dir
=.
12477 for ac_exec_ext
in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12479 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 DUMPBIN
=$ac_cv_prog_DUMPBIN
12490 if test -n "$DUMPBIN"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12492 $as_echo "$DUMPBIN" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495 $as_echo "no" >&6; }
12499 test -n "$DUMPBIN" && break
12502 if test -z "$DUMPBIN"; then
12503 ac_ct_DUMPBIN
=$DUMPBIN
12504 for ac_prog
in dumpbin
"link -dump"
12506 # Extract the first word of "$ac_prog", so it can be a program name with args.
12507 set dummy
$ac_prog; ac_word
=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12513 if test -n "$ac_ct_DUMPBIN"; then
12514 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12517 for as_dir
in $PATH
12520 test -z "$as_dir" && as_dir
=.
12521 for ac_exec_ext
in '' $ac_executable_extensions; do
12522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12534 if test -n "$ac_ct_DUMPBIN"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12536 $as_echo "$ac_ct_DUMPBIN" >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12543 test -n "$ac_ct_DUMPBIN" && break
12546 if test "x$ac_ct_DUMPBIN" = x
; then
12549 case $cross_compiling:$ac_tool_warned in
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12553 ac_tool_warned
=yes ;;
12555 DUMPBIN
=$ac_ct_DUMPBIN
12559 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12561 DUMPBIN
="$DUMPBIN -symbols"
12569 if test "$DUMPBIN" != ":"; then
12573 test -z "$NM" && NM
=nm
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12581 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12582 if test "${lt_cv_nm_interface+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
12585 lt_cv_nm_interface
="BSD nm"
12586 echo "int some_variable = 0;" > conftest.
$ac_ext
12587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12588 (eval "$ac_compile" 2>conftest.err
)
12589 cat conftest.err
>&5
12590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12592 cat conftest.err
>&5
12593 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12594 cat conftest.out
>&5
12595 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12596 lt_cv_nm_interface
="MS dumpbin"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12601 $as_echo "$lt_cv_nm_interface" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12604 $as_echo_n "checking whether ln -s works... " >&6; }
12606 if test "$LN_S" = "ln -s"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12611 $as_echo "no, using $LN_S" >&6; }
12614 # find the maximum length of command line arguments
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12616 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12617 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12625 # On DJGPP, this test can blow up pretty badly due to problems in libc
12626 # (any single argument exceeding 2000 bytes causes a buffer overrun
12627 # during glob expansion). Even if it were fixed, the result of this
12628 # check would be larger than it should be.
12629 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12633 # Under GNU Hurd, this test is not required because there is
12634 # no limit to the length of command line arguments.
12635 # Libtool will interpret -1 as no limit whatsoever
12636 lt_cv_sys_max_cmd_len
=-1;
12639 cygwin
* | mingw
* | cegcc
*)
12640 # On Win9x/ME, this test blows up -- it succeeds, but takes
12641 # about 5 minutes as the teststring grows exponentially.
12642 # Worse, since 9x/ME are not pre-emptively multitasking,
12643 # you end up with a "frozen" computer, even though with patience
12644 # the test eventually succeeds (with a max line length of 256k).
12645 # Instead, let's just punt: use the minimum linelength reported by
12646 # all of the supported platforms: 8192 (on NT/2K/XP).
12647 lt_cv_sys_max_cmd_len
=8192;
12651 # On MiNT this can take a long time and run out of memory.
12652 lt_cv_sys_max_cmd_len
=8192;
12656 # On AmigaOS with pdksh, this test takes hours, literally.
12657 # So we just punt and use a minimum line length of 8192.
12658 lt_cv_sys_max_cmd_len
=8192;
12661 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12662 # This has been around since 386BSD, at least. Likely further.
12663 if test -x /sbin
/sysctl
; then
12664 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12665 elif test -x /usr
/sbin
/sysctl
; then
12666 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12668 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12670 # And add a safety zone
12671 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12672 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12676 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12677 lt_cv_sys_max_cmd_len
=196608
12681 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12682 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12683 # nice to cause kernel panics so lets avoid the loop below.
12684 # First set a reasonable default.
12685 lt_cv_sys_max_cmd_len
=16384
12687 if test -x /sbin
/sysconfig
; then
12688 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12689 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12694 lt_cv_sys_max_cmd_len
=102400
12696 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12697 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12698 if test -n "$kargmax"; then
12699 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12701 lt_cv_sys_max_cmd_len
=32768
12705 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12706 if test -n "$lt_cv_sys_max_cmd_len"; then
12707 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12708 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12710 # Make teststring a little bigger before we do anything with it.
12711 # a 1K string should be a reasonable start.
12712 for i
in 1 2 3 4 5 6 7 8 ; do
12713 teststring
=$teststring$teststring
12715 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12716 # If test is not a shell built-in, we'll probably end up computing a
12717 # maximum length that is only half of the actual maximum length, but
12719 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12720 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12721 test $i != 17 # 1/2 MB should be enough
12724 teststring
=$teststring$teststring
12726 # Only check the string length outside the loop.
12727 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12729 # Add a significant safety factor because C++ compilers can tack on
12730 # massive amounts of additional arguments before passing them to the
12731 # linker. It appears as though 1/2 is a usable value.
12732 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12739 if test -n $lt_cv_sys_max_cmd_len ; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12741 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12744 $as_echo "none" >&6; }
12746 max_cmd_len
=$lt_cv_sys_max_cmd_len
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12758 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12759 # Try some XSI features
12761 ( _lt_dummy
="a/b/c"
12762 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12764 && eval 'test $(( 1 + 1 )) -eq 2 \
12765 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12768 $as_echo "$xsi_shell" >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12772 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12774 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12776 && lt_shell_append=yes
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12778 $as_echo "$lt_shell_append" >&6; }
12781 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12791 # test EBCDIC or ASCII
12792 case `echo X|tr X '\101'` in
12793 A) # ASCII based system
12794 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12795 lt_SP2NL='tr \040 \012'
12796 lt_NL2SP='tr \015\012 \040\040'
12798 *) # EBCDIC based system
12799 lt_SP2NL='tr \100 \n'
12800 lt_NL2SP='tr \r\n \100\100'
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12813 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12814 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12815 $as_echo_n "(cached
) " >&6
12817 lt_cv_ld_reload_flag='-r'
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12820 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12821 reload_flag=$lt_cv_ld_reload_flag
12822 case $reload_flag in
12824 *) reload_flag=" $reload_flag" ;;
12826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12829 if test "$GCC" = yes; then
12830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12845 if test -n "$ac_tool_prefix"; then
12846 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12849 $as_echo_n "checking
for $ac_word...
" >&6; }
12850 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12851 $as_echo_n "(cached
) " >&6
12853 if test -n "$OBJDUMP"; then
12854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12873 OBJDUMP=$ac_cv_prog_OBJDUMP
12874 if test -n "$OBJDUMP"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12876 $as_echo "$OBJDUMP" >&6; }
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12879 $as_echo "no
" >&6; }
12884 if test -z "$ac_cv_prog_OBJDUMP"; then
12885 ac_ct_OBJDUMP=$OBJDUMP
12886 # Extract the first word of "objdump
", so it can be a program name with args.
12887 set dummy objdump; ac_word=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12889 $as_echo_n "checking
for $ac_word...
" >&6; }
12890 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12891 $as_echo_n "(cached
) " >&6
12893 if test -n "$ac_ct_OBJDUMP"; then
12894 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12914 if test -n "$ac_ct_OBJDUMP"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12916 $as_echo "$ac_ct_OBJDUMP" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12919 $as_echo "no
" >&6; }
12922 if test "x
$ac_ct_OBJDUMP" = x; then
12925 case $cross_compiling:$ac_tool_warned in
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12928 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12929 ac_tool_warned=yes ;;
12931 OBJDUMP=$ac_ct_OBJDUMP
12934 OBJDUMP="$ac_cv_prog_OBJDUMP"
12937 test -z "$OBJDUMP" && OBJDUMP=objdump
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12948 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12949 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12950 $as_echo_n "(cached
) " >&6
12952 lt_cv_file_magic_cmd='$MAGIC_CMD'
12953 lt_cv_file_magic_test_file=
12954 lt_cv_deplibs_check_method='unknown'
12955 # Need to set the preceding variable on all platforms that support
12956 # interlibrary dependencies.
12957 # 'none' -- dependencies not supported.
12958 # `unknown' -- same as none, but documents that we really don't know.
12959 # 'pass_all' -- all dependencies passed with no checks.
12960 # 'test_compile' -- check by making test program.
12961 # 'file_magic [[regex]]' -- check by looking for files in library path
12962 # which responds to the $file_magic_cmd with a given extended regex.
12963 # If you have `file' or equivalent on your system and you're not sure
12964 # whether `pass_all' will *always* work, you probably want this one.
12968 lt_cv_deplibs_check_method=pass_all
12972 lt_cv_deplibs_check_method=pass_all
12976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12977 lt_cv_file_magic_cmd='/usr/bin/file -L'
12978 lt_cv_file_magic_test_file=/shlib/libc.so
12982 # func_win32_libid is a shell function defined in ltmain.sh
12983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12984 lt_cv_file_magic_cmd='func_win32_libid'
12988 # Base MSYS/MinGW do not provide the 'file' command needed by
12989 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12990 # unless we find 'file', for example because we are cross-compiling.
12991 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12992 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12994 lt_cv_file_magic_cmd='func_win32_libid'
12996 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12997 lt_cv_file_magic_cmd='$OBJDUMP -f'
13002 # use the weaker test based on 'objdump'. See mingw*.
13003 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13004 lt_cv_file_magic_cmd='$OBJDUMP -f'
13007 darwin* | rhapsody*)
13008 lt_cv_deplibs_check_method=pass_all
13011 freebsd* | dragonfly*)
13012 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13015 # Not sure whether the presence of OpenBSD here was a mistake.
13016 # Let's accept both of them until this is cleared up.
13017 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13018 lt_cv_file_magic_cmd=/usr/bin/file
13019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13023 lt_cv_deplibs_check_method=pass_all
13028 lt_cv_deplibs_check_method=pass_all
13032 lt_cv_deplibs_check_method=pass_all
13035 hpux10.20* | hpux11*)
13036 lt_cv_file_magic_cmd=/usr/bin/file
13039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13043 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]'
13044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13058 irix5* | irix6* | nonstopux*)
13060 *-32|*"-32 ") libmagic=32-bit;;
13061 *-n32|*"-n32 ") libmagic=N32;;
13062 *-64|*"-64 ") libmagic=64-bit;;
13063 *) libmagic=never-match;;
13065 lt_cv_deplibs_check_method=pass_all
13068 # This must be Linux ELF.
13069 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13070 lt_cv_deplibs_check_method=pass_all
13074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13083 lt_cv_file_magic_cmd=/usr/bin/file
13084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13088 lt_cv_deplibs_check_method=pass_all
13092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13099 osf3* | osf4* | osf5*)
13100 lt_cv_deplibs_check_method=pass_all
13104 lt_cv_deplibs_check_method=pass_all
13108 lt_cv_deplibs_check_method=pass_all
13111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13112 lt_cv_deplibs_check_method=pass_all
13116 case $host_vendor in
13118 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]'
13119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13122 lt_cv_deplibs_check_method=pass_all
13125 lt_cv_file_magic_cmd='/bin/file'
13126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13129 lt_cv_file_magic_cmd='/bin/file'
13130 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13131 lt_cv_file_magic_test_file=/lib/libc.so
13134 lt_cv_deplibs_check_method=pass_all
13137 lt_cv_deplibs_check_method=pass_all
13143 lt_cv_deplibs_check_method=pass_all
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13149 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13150 file_magic_cmd=$lt_cv_file_magic_cmd
13151 deplibs_check_method=$lt_cv_deplibs_check_method
13152 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13165 if test -n "$ac_tool_prefix"; then
13166 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13167 set dummy ${ac_tool_prefix}ar; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13169 $as_echo_n "checking
for $ac_word...
" >&6; }
13170 if test "${ac_cv_prog_AR+set}" = set; then :
13171 $as_echo_n "(cached
) " >&6
13173 if test -n "$AR"; then
13174 ac_cv_prog_AR="$AR" # Let the user override the test.
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13180 test -z "$as_dir" && as_dir=.
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183 ac_cv_prog_AR="${ac_tool_prefix}ar"
13184 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13194 if test -n "$AR"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13196 $as_echo "$AR" >&6; }
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13199 $as_echo "no
" >&6; }
13204 if test -z "$ac_cv_prog_AR"; then
13206 # Extract the first word of "ar", so it can be a program name with args.
13207 set dummy ar; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13209 $as_echo_n "checking
for $ac_word...
" >&6; }
13210 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13211 $as_echo_n "(cached
) " >&6
13213 if test -n "$ac_ct_AR"; then
13214 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13223 ac_cv_prog_ac_ct_AR="ar"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13233 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13234 if test -n "$ac_ct_AR"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13236 $as_echo "$ac_ct_AR" >&6; }
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13239 $as_echo "no
" >&6; }
13242 if test "x
$ac_ct_AR" = x; then
13245 case $cross_compiling:$ac_tool_warned in
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13248 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13249 ac_tool_warned=yes ;;
13254 AR="$ac_cv_prog_AR"
13257 test -z "$AR" && AR=ar
13258 test -z "$AR_FLAGS" && AR_FLAGS=cru
13270 if test -n "$ac_tool_prefix"; then
13271 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13272 set dummy ${ac_tool_prefix}strip; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13274 $as_echo_n "checking
for $ac_word...
" >&6; }
13275 if test "${ac_cv_prog_STRIP+set}" = set; then :
13276 $as_echo_n "(cached
) " >&6
13278 if test -n "$STRIP"; then
13279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13298 STRIP=$ac_cv_prog_STRIP
13299 if test -n "$STRIP"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13301 $as_echo "$STRIP" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13304 $as_echo "no
" >&6; }
13309 if test -z "$ac_cv_prog_STRIP"; then
13311 # Extract the first word of "strip
", so it can be a program name with args.
13312 set dummy strip; ac_word=$2
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13314 $as_echo_n "checking
for $ac_word...
" >&6; }
13315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13316 $as_echo_n "(cached
) " >&6
13318 if test -n "$ac_ct_STRIP"; then
13319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322 for as_dir in $PATH
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13328 ac_cv_prog_ac_ct_STRIP="strip
"
13329 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13339 if test -n "$ac_ct_STRIP"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13341 $as_echo "$ac_ct_STRIP" >&6; }
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13344 $as_echo "no
" >&6; }
13347 if test "x
$ac_ct_STRIP" = x; then
13350 case $cross_compiling:$ac_tool_warned in
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13353 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13354 ac_tool_warned=yes ;;
13359 STRIP="$ac_cv_prog_STRIP"
13362 test -z "$STRIP" && STRIP=:
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13373 $as_echo_n "checking
for $ac_word...
" >&6; }
13374 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13375 $as_echo_n "(cached
) " >&6
13377 if test -n "$RANLIB"; then
13378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13397 RANLIB=$ac_cv_prog_RANLIB
13398 if test -n "$RANLIB"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13400 $as_echo "$RANLIB" >&6; }
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13403 $as_echo "no
" >&6; }
13408 if test -z "$ac_cv_prog_RANLIB"; then
13409 ac_ct_RANLIB=$RANLIB
13410 # Extract the first word of "ranlib
", so it can be a program name with args.
13411 set dummy ranlib; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13413 $as_echo_n "checking
for $ac_word...
" >&6; }
13414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13415 $as_echo_n "(cached
) " >&6
13417 if test -n "$ac_ct_RANLIB"; then
13418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13438 if test -n "$ac_ct_RANLIB"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13440 $as_echo "$ac_ct_RANLIB" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13443 $as_echo "no
" >&6; }
13446 if test "x
$ac_ct_RANLIB" = x; then
13449 case $cross_compiling:$ac_tool_warned in
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13452 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13453 ac_tool_warned=yes ;;
13455 RANLIB=$ac_ct_RANLIB
13458 RANLIB="$ac_cv_prog_RANLIB"
13461 test -z "$RANLIB" && RANLIB=:
13468 # Determine commands to create old-style static archives.
13469 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13470 old_postinstall_cmds='chmod 644 $oldlib'
13471 old_postuninstall_cmds=
13473 if test -n "$RANLIB"; then
13476 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13479 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13482 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13487 lock_old_archive_extraction=yes ;;
13489 lock_old_archive_extraction=no ;;
13530 # If no C compiler was specified, use CC.
13533 # If no C compiler flags were specified, use CFLAGS.
13534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13536 # Allow CC to be a program name with arguments.
13540 # Check for command to grab the raw symbol name followed by C symbol from nm.
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13542 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13543 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13544 $as_echo_n "(cached
) " >&6
13547 # These are sane defaults that work on at least a few old systems.
13548 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13550 # Character class describing NM global symbol codes.
13551 symcode='[BCDEGRST]'
13553 # Regexp to match symbols that can be accessed directly from C.
13554 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13556 # Define system-specific variables.
13561 cygwin* | mingw* | pw32* | cegcc*)
13562 symcode='[ABCDGISTW]'
13565 if test "$host_cpu" = ia64; then
13566 symcode='[ABCDEGRST]'
13569 irix* | nonstopux*)
13570 symcode='[BCDEGRST]'
13573 symcode='[BCDEGQRST]'
13584 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13592 # If we're using GNU nm, then use its standard symbol codes.
13593 case `$NM -V 2>&1` in
13594 *GNU* | *'with BFD'*)
13595 symcode='[ABCDGIRSTW]' ;;
13598 # Transform an extracted symbol line into a proper C declaration.
13599 # Some systems (esp. on ia64) link data and code symbols differently,
13600 # so use this general approach.
13601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13603 # Transform an extracted symbol line into symbol name and symbol address
13604 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13605 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'"
13607 # Handle CRLF in mingw tool chain
13611 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13615 # Try without a prefix underscore, then with it.
13616 for ac_symprfx in "" "_
"; do
13618 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13619 symxfrm="\\1 $ac_symprfx\\2 \\2"
13621 # Write the raw and C identifiers.
13622 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13623 # Fake it for dumpbin and say T for any non-static function
13624 # and D for any global variable.
13625 # Also find C++ and __fastcall symbols from MSVC++,
13626 # which start with @ or ?.
13627 lt_cv_sys_global_symbol_pipe="$AWK '"\
13628 " {last_section=section; section=\$ 3};"\
13629 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13630 " \$ 0!~/External *\|/{next};"\
13631 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13632 " {if(hide[section]) next};"\
13633 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13634 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13635 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13636 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13637 " ' prfx
=^
$ac_symprfx"
13639 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13642 # Check to see that the pipe works correctly.
13646 cat > conftest.$ac_ext <<_LT_EOF
13651 void nm_test_func(void);
13652 void nm_test_func(void){}
13656 int main(){nm_test_var='a';nm_test_func();return(0);}
13659 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13660 (eval $ac_compile) 2>&5
13662 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13663 test $ac_status = 0; }; then
13664 # Now try to grab the symbols.
13666 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13667 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13669 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13670 test $ac_status = 0; } && test -s "$nlist"; then
13671 # Try sorting and uniquifying the output.
13672 if sort "$nlist" | uniq > "$nlist"T; then
13673 mv -f "$nlist"T "$nlist"
13678 # Make sure that we snagged all the symbols we need.
13679 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13680 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13681 cat <<_LT_EOF > conftest.$ac_ext
13687 # Now generate the symbol file.
13688 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13690 cat <<_LT_EOF >> conftest.$ac_ext
13692 /* The mapping between symbol names and symbols. */
13697 lt__PROGRAM__LTX_preloaded_symbols[] =
13699 { "@PROGRAM@
", (void *) 0 },
13701 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13702 cat <<\_LT_EOF >> conftest.$ac_ext
13706 /* This works around a problem in FreeBSD linker */
13707 #ifdef FREEBSD_WORKAROUND
13708 static const void *lt_preloaded_setup() {
13709 return lt__PROGRAM__LTX_preloaded_symbols;
13717 # Now try linking the two files.
13718 mv conftest.$ac_objext conftstm.$ac_objext
13719 lt_save_LIBS="$LIBS"
13720 lt_save_CFLAGS="$CFLAGS"
13721 LIBS="conftstm.
$ac_objext"
13722 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13723 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13724 (eval $ac_link) 2>&5
13726 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13727 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13730 LIBS="$lt_save_LIBS"
13731 CFLAGS="$lt_save_CFLAGS"
13733 echo "cannot
find nm_test_func
in $nlist" >&5
13736 echo "cannot
find nm_test_var
in $nlist" >&5
13739 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13742 echo "$progname: failed program was
:" >&5
13743 cat conftest.$ac_ext >&5
13745 rm -rf conftest* conftst*
13747 # Do not use the global_symbol_pipe unless it works.
13748 if test "$pipe_works" = yes; then
13751 lt_cv_sys_global_symbol_pipe=
13757 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13758 lt_cv_sys_global_symbol_to_cdecl=
13760 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13762 $as_echo "failed
" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13765 $as_echo "ok
" >&6; }
13789 # Check whether --enable-libtool-lock was given.
13790 if test "${enable_libtool_lock+set}" = set; then :
13791 enableval=$enable_libtool_lock;
13794 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13796 # Some flags need to be propagated to the compiler or linker for good
13800 # Find out which ABI we are using.
13801 echo 'int i;' > conftest.$ac_ext
13802 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13803 (eval $ac_compile) 2>&5
13805 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13806 test $ac_status = 0; }; then
13807 case `/usr/bin/file conftest.$ac_objext` in
13809 HPUX_IA64_MODE="32"
13812 HPUX_IA64_MODE="64"
13819 # Find out which ABI we are using.
13820 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13821 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 if test "$lt_cv_prog_gnu_ld" = yes; then
13827 case `/usr/bin/file conftest.$ac_objext` in
13829 LD="${LD-ld} -melf32bsmip"
13832 LD="${LD-ld} -melf32bmipn32"
13835 LD="${LD-ld} -melf64bmip"
13839 case `/usr/bin/file conftest.$ac_objext` in
13855 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13856 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13857 # Find out which ABI we are using.
13858 echo 'int i;' > conftest.$ac_ext
13859 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13860 (eval $ac_compile) 2>&5
13862 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13863 test $ac_status = 0; }; then
13864 case `/usr/bin/file conftest.o` in
13867 x86_64-*kfreebsd*-gnu)
13868 LD="${LD-ld} -m elf_i386_fbsd
"
13871 case `/usr/bin/file conftest.o` in
13873 LD="${LD-ld} -m elf32_x86_64
"
13876 LD="${LD-ld} -m elf_i386
"
13880 ppc64-*linux*|powerpc64-*linux*)
13881 LD="${LD-ld} -m elf32ppclinux
"
13884 LD="${LD-ld} -m elf_s390
"
13887 LD="${LD-ld} -m elf32_sparc
"
13893 x86_64-*kfreebsd*-gnu)
13894 LD="${LD-ld} -m elf_x86_64_fbsd
"
13897 LD="${LD-ld} -m elf_x86_64
"
13899 ppc*-*linux*|powerpc*-*linux*)
13900 LD="${LD-ld} -m elf64ppc
"
13902 s390*-*linux*|s390*-*tpf*)
13903 LD="${LD-ld} -m elf64_s390
"
13906 LD="${LD-ld} -m elf64_sparc
"
13916 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13917 SAVE_CFLAGS="$CFLAGS"
13918 CFLAGS="$CFLAGS -belf"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13920 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13921 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13922 $as_echo_n "(cached
) " >&6
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13941 if ac_fn_c_try_link "$LINENO"; then :
13942 lt_cv_cc_needs_belf=yes
13944 lt_cv_cc_needs_belf=no
13946 rm -f core conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13949 ac_cpp='$CPP $CPPFLAGS'
13950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13956 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13959 CFLAGS="$SAVE_CFLAGS"
13963 # Find out which ABI we are using.
13964 echo 'int i;' > conftest.$ac_ext
13965 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13966 (eval $ac_compile) 2>&5
13968 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13969 test $ac_status = 0; }; then
13970 case `/usr/bin/file conftest.o` in
13972 case $lt_cv_prog_gnu_ld in
13973 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13987 need_locks="$enable_libtool_lock"
13991 rhapsody* | darwin*)
13992 if test -n "$ac_tool_prefix"; then
13993 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13996 $as_echo_n "checking
for $ac_word...
" >&6; }
13997 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13998 $as_echo_n "(cached
) " >&6
14000 if test -n "$DSYMUTIL"; then
14001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14004 for as_dir in $PATH
14007 test -z "$as_dir" && as_dir=.
14008 for ac_exec_ext in '' $ac_executable_extensions; do
14009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14011 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14021 if test -n "$DSYMUTIL"; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14023 $as_echo "$DSYMUTIL" >&6; }
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14026 $as_echo "no
" >&6; }
14031 if test -z "$ac_cv_prog_DSYMUTIL"; then
14032 ac_ct_DSYMUTIL=$DSYMUTIL
14033 # Extract the first word of "dsymutil
", so it can be a program name with args.
14034 set dummy dsymutil; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14036 $as_echo_n "checking
for $ac_word...
" >&6; }
14037 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14038 $as_echo_n "(cached
) " >&6
14040 if test -n "$ac_ct_DSYMUTIL"; then
14041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14061 if test -n "$ac_ct_DSYMUTIL"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14066 $as_echo "no
" >&6; }
14069 if test "x
$ac_ct_DSYMUTIL" = x; then
14072 case $cross_compiling:$ac_tool_warned in
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14075 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14076 ac_tool_warned=yes ;;
14078 DSYMUTIL=$ac_ct_DSYMUTIL
14081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14084 if test -n "$ac_tool_prefix"; then
14085 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14088 $as_echo_n "checking
for $ac_word...
" >&6; }
14089 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14090 $as_echo_n "(cached
) " >&6
14092 if test -n "$NMEDIT"; then
14093 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096 for as_dir in $PATH
14099 test -z "$as_dir" && as_dir=.
14100 for ac_exec_ext in '' $ac_executable_extensions; do
14101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14102 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14103 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14112 NMEDIT=$ac_cv_prog_NMEDIT
14113 if test -n "$NMEDIT"; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14115 $as_echo "$NMEDIT" >&6; }
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14118 $as_echo "no
" >&6; }
14123 if test -z "$ac_cv_prog_NMEDIT"; then
14124 ac_ct_NMEDIT=$NMEDIT
14125 # Extract the first word of "nmedit
", so it can be a program name with args.
14126 set dummy nmedit; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14128 $as_echo_n "checking
for $ac_word...
" >&6; }
14129 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14130 $as_echo_n "(cached
) " >&6
14132 if test -n "$ac_ct_NMEDIT"; then
14133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14142 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14143 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14153 if test -n "$ac_ct_NMEDIT"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14155 $as_echo "$ac_ct_NMEDIT" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14158 $as_echo "no
" >&6; }
14161 if test "x
$ac_ct_NMEDIT" = x; then
14164 case $cross_compiling:$ac_tool_warned in
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14167 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14168 ac_tool_warned=yes ;;
14170 NMEDIT=$ac_ct_NMEDIT
14173 NMEDIT="$ac_cv_prog_NMEDIT"
14176 if test -n "$ac_tool_prefix"; then
14177 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14180 $as_echo_n "checking
for $ac_word...
" >&6; }
14181 if test "${ac_cv_prog_LIPO+set}" = set; then :
14182 $as_echo_n "(cached
) " >&6
14184 if test -n "$LIPO"; then
14185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14191 test -z "$as_dir" && as_dir=.
14192 for ac_exec_ext in '' $ac_executable_extensions; do
14193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14194 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14204 LIPO=$ac_cv_prog_LIPO
14205 if test -n "$LIPO"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14207 $as_echo "$LIPO" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14210 $as_echo "no
" >&6; }
14215 if test -z "$ac_cv_prog_LIPO"; then
14217 # Extract the first word of "lipo
", so it can be a program name with args.
14218 set dummy lipo; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14220 $as_echo_n "checking
for $ac_word...
" >&6; }
14221 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14222 $as_echo_n "(cached
) " >&6
14224 if test -n "$ac_ct_LIPO"; then
14225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14234 ac_cv_prog_ac_ct_LIPO="lipo
"
14235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14245 if test -n "$ac_ct_LIPO"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14247 $as_echo "$ac_ct_LIPO" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14250 $as_echo "no
" >&6; }
14253 if test "x
$ac_ct_LIPO" = x; then
14256 case $cross_compiling:$ac_tool_warned in
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14259 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14260 ac_tool_warned=yes ;;
14265 LIPO="$ac_cv_prog_LIPO"
14268 if test -n "$ac_tool_prefix"; then
14269 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14270 set dummy ${ac_tool_prefix}otool; ac_word=$2
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14272 $as_echo_n "checking
for $ac_word...
" >&6; }
14273 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14274 $as_echo_n "(cached
) " >&6
14276 if test -n "$OTOOL"; then
14277 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14296 OTOOL=$ac_cv_prog_OTOOL
14297 if test -n "$OTOOL"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14299 $as_echo "$OTOOL" >&6; }
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14302 $as_echo "no
" >&6; }
14307 if test -z "$ac_cv_prog_OTOOL"; then
14309 # Extract the first word of "otool
", so it can be a program name with args.
14310 set dummy otool; ac_word=$2
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14312 $as_echo_n "checking
for $ac_word...
" >&6; }
14313 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14314 $as_echo_n "(cached
) " >&6
14316 if test -n "$ac_ct_OTOOL"; then
14317 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14326 ac_cv_prog_ac_ct_OTOOL="otool
"
14327 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14337 if test -n "$ac_ct_OTOOL"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14339 $as_echo "$ac_ct_OTOOL" >&6; }
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14342 $as_echo "no
" >&6; }
14345 if test "x
$ac_ct_OTOOL" = x; then
14348 case $cross_compiling:$ac_tool_warned in
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14351 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14352 ac_tool_warned=yes ;;
14357 OTOOL="$ac_cv_prog_OTOOL"
14360 if test -n "$ac_tool_prefix"; then
14361 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14364 $as_echo_n "checking
for $ac_word...
" >&6; }
14365 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14366 $as_echo_n "(cached
) " >&6
14368 if test -n "$OTOOL64"; then
14369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $PATH
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14378 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14388 OTOOL64=$ac_cv_prog_OTOOL64
14389 if test -n "$OTOOL64"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14391 $as_echo "$OTOOL64" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14394 $as_echo "no
" >&6; }
14399 if test -z "$ac_cv_prog_OTOOL64"; then
14400 ac_ct_OTOOL64=$OTOOL64
14401 # Extract the first word of "otool64
", so it can be a program name with args.
14402 set dummy otool64; ac_word=$2
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14404 $as_echo_n "checking
for $ac_word...
" >&6; }
14405 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14406 $as_echo_n "(cached
) " >&6
14408 if test -n "$ac_ct_OTOOL64"; then
14409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14412 for as_dir in $PATH
14415 test -z "$as_dir" && as_dir=.
14416 for ac_exec_ext in '' $ac_executable_extensions; do
14417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14418 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14419 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14429 if test -n "$ac_ct_OTOOL64"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14431 $as_echo "$ac_ct_OTOOL64" >&6; }
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14434 $as_echo "no
" >&6; }
14437 if test "x
$ac_ct_OTOOL64" = x; then
14440 case $cross_compiling:$ac_tool_warned in
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14443 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14444 ac_tool_warned=yes ;;
14446 OTOOL64=$ac_ct_OTOOL64
14449 OTOOL64="$ac_cv_prog_OTOOL64"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14479 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14480 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14481 $as_echo_n "(cached
) " >&6
14483 lt_cv_apple_cc_single_mod=no
14484 if test -z "${LT_MULTI_MODULE}"; then
14485 # By default we will add the -single_module flag. You can override
14486 # by either setting the environment variable LT_MULTI_MODULE
14487 # non-empty at configure time, or by adding -multi_module to the
14489 rm -rf libconftest.dylib*
14490 echo "int foo
(void
){return 1;}" > conftest.c
14491 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14492 -dynamiclib -Wl,-single_module conftest.c
" >&5
14493 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14494 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14496 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14497 lt_cv_apple_cc_single_mod=yes
14499 cat conftest.err >&5
14501 rm -rf libconftest.dylib*
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14508 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14509 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14510 $as_echo_n "(cached
) " >&6
14512 lt_cv_ld_exported_symbols_list=no
14513 save_LDFLAGS=$LDFLAGS
14514 echo "_main
" > conftest.sym
14515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14527 if ac_fn_c_try_link "$LINENO"; then :
14528 lt_cv_ld_exported_symbols_list=yes
14530 lt_cv_ld_exported_symbols_list=no
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534 LDFLAGS="$save_LDFLAGS"
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14538 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14540 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14541 if test "${lt_cv_ld_force_load+set}" = set; then :
14542 $as_echo_n "(cached
) " >&6
14544 lt_cv_ld_force_load=no
14545 cat > conftest.c << _LT_EOF
14546 int forced_loaded() { return 2;}
14548 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14549 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14550 echo "$AR cru libconftest.a conftest.o
" >&5
14551 $AR cru libconftest.a conftest.o 2>&5
14552 cat > conftest.c << _LT_EOF
14553 int main() { return 0;}
14555 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14556 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14558 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14559 lt_cv_ld_force_load=yes
14561 cat conftest.err >&5
14563 rm -f conftest.err libconftest.a conftest conftest.c
14564 rm -rf conftest.dSYM
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14568 $as_echo "$lt_cv_ld_force_load" >&6; }
14570 rhapsody* | darwin1.[012])
14571 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14573 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14574 darwin*) # darwin 5.x on
14575 # if running on 10.5 or later, the deployment target defaults
14576 # to the OS version, if on x86, and 10.4, the deployment
14577 # target defaults to 10.4. Don't you love it?
14578 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14579 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14580 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14584 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14588 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14589 _lt_dar_single_mod='$single_module'
14591 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14592 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14594 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14596 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14597 _lt_dsymutil='~$DSYMUTIL $lib || :'
14604 for ac_header in dlfcn.h
14606 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14607 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_DLFCN_H 1
14626 enable_win32_dll=no
14629 # Check whether --enable-shared was given.
14630 if test "${enable_shared+set}" = set; then :
14631 enableval=$enable_shared; p=${PACKAGE-default}
14633 yes) enable_shared=yes ;;
14634 no) enable_shared=no ;;
14637 # Look at the argument we got. We use all the common list separators.
14638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14639 for pkg in $enableval; do
14641 if test "X
$pkg" = "X
$p"; then
14660 # Check whether --enable-static was given.
14661 if test "${enable_static+set}" = set; then :
14662 enableval=$enable_static; p=${PACKAGE-default}
14664 yes) enable_static=yes ;;
14665 no) enable_static=no ;;
14668 # Look at the argument we got. We use all the common list separators.
14669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14670 for pkg in $enableval; do
14672 if test "X
$pkg" = "X
$p"; then
14692 # Check whether --with-pic was given.
14693 if test "${with_pic+set}" = set; then :
14694 withval=$with_pic; pic_mode="$withval"
14700 test -z "$pic_mode" && pic_mode=default
14708 # Check whether --enable-fast-install was given.
14709 if test "${enable_fast_install+set}" = set; then :
14710 enableval=$enable_fast_install; p=${PACKAGE-default}
14712 yes) enable_fast_install=yes ;;
14713 no) enable_fast_install=no ;;
14715 enable_fast_install=no
14716 # Look at the argument we got. We use all the common list separators.
14717 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14718 for pkg in $enableval; do
14720 if test "X
$pkg" = "X
$p"; then
14721 enable_fast_install=yes
14728 enable_fast_install=yes
14741 # This can be used to rebuild libtool when needed
14742 LIBTOOL_DEPS="$ltmain"
14744 # Always use our own libtool.
14745 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14772 test -z "$LN_S" && LN_S="ln -s"
14787 if test -n "${ZSH_VERSION+set}" ; then
14788 setopt NO_GLOB_SUBST
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14792 $as_echo_n "checking
for objdir...
" >&6; }
14793 if test "${lt_cv_objdir+set}" = set; then :
14794 $as_echo_n "(cached
) " >&6
14796 rm -f .libs 2>/dev/null
14797 mkdir .libs 2>/dev/null
14798 if test -d .libs; then
14801 # MS-DOS does not allow filenames that begin with a dot.
14804 rmdir .libs 2>/dev/null
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14807 $as_echo "$lt_cv_objdir" >&6; }
14808 objdir=$lt_cv_objdir
14814 cat >>confdefs.h <<_ACEOF
14815 #define LT_OBJDIR "$lt_cv_objdir/"
14823 # AIX sometimes has problems with the GCC collect2 program. For some
14824 # reason, if we set the COLLECT_NAMES environment variable, the problems
14825 # vanish in a puff of smoke.
14826 if test "X
${COLLECT_NAMES+set}" != Xset; then
14828 export COLLECT_NAMES
14833 # Global variables:
14835 can_build_shared=yes
14837 # All known linkers require a `.a' archive for static linking (except MSVC,
14838 # which needs '.lib').
14841 with_gnu_ld="$lt_cv_prog_gnu_ld"
14844 old_CFLAGS="$CFLAGS"
14846 # Set sane defaults for various variables
14847 test -z "$CC" && CC=cc
14848 test -z "$LTCC" && LTCC=$CC
14849 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14850 test -z "$LD" && LD=ld
14851 test -z "$ac_objext" && ac_objext=o
14853 for cc_temp in $compiler""; do
14855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14861 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14864 # Only perform the check for file, if the check method requires it
14865 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14866 case $deplibs_check_method in
14868 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14870 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14871 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14872 $as_echo_n "(cached
) " >&6
14876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14879 lt_save_MAGIC_CMD="$MAGIC_CMD"
14880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14881 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14882 for ac_dir in $ac_dummy; do
14884 test -z "$ac_dir" && ac_dir=.
14885 if test -f $ac_dir/${ac_tool_prefix}file; then
14886 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14887 if test -n "$file_magic_test_file"; then
14888 case $deplibs_check_method in
14890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14893 $EGREP "$file_magic_regex" > /dev/null; then
14898 *** Warning: the command libtool uses to detect shared libraries,
14899 *** $file_magic_cmd, produces output that libtool cannot recognize.
14900 *** The result is that libtool may fail to recognize shared libraries
14901 *** as such. This will affect the creation of libtool libraries that
14902 *** depend on shared libraries, but programs linked with such libtool
14903 *** libraries will work regardless of this problem. Nevertheless, you
14904 *** may want to report the problem to your system manager and/or to
14905 *** bug-libtool@gnu.org
14915 MAGIC_CMD="$lt_save_MAGIC_CMD"
14920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14921 if test -n "$MAGIC_CMD"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14923 $as_echo "$MAGIC_CMD" >&6; }
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14926 $as_echo "no
" >&6; }
14933 if test -z "$lt_cv_path_MAGIC_CMD"; then
14934 if test -n "$ac_tool_prefix"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14936 $as_echo_n "checking
for file...
" >&6; }
14937 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14938 $as_echo_n "(cached
) " >&6
14942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14945 lt_save_MAGIC_CMD="$MAGIC_CMD"
14946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14947 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14948 for ac_dir in $ac_dummy; do
14950 test -z "$ac_dir" && ac_dir=.
14951 if test -f $ac_dir/file; then
14952 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14953 if test -n "$file_magic_test_file"; then
14954 case $deplibs_check_method in
14956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14959 $EGREP "$file_magic_regex" > /dev/null; then
14964 *** Warning: the command libtool uses to detect shared libraries,
14965 *** $file_magic_cmd, produces output that libtool cannot recognize.
14966 *** The result is that libtool may fail to recognize shared libraries
14967 *** as such. This will affect the creation of libtool libraries that
14968 *** depend on shared libraries, but programs linked with such libtool
14969 *** libraries will work regardless of this problem. Nevertheless, you
14970 *** may want to report the problem to your system manager and/or to
14971 *** bug-libtool@gnu.org
14981 MAGIC_CMD="$lt_save_MAGIC_CMD"
14986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14987 if test -n "$MAGIC_CMD"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14989 $as_echo "$MAGIC_CMD" >&6; }
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14992 $as_echo "no
" >&6; }
15005 # Use C for the default configuration in the libtool script
15009 ac_cpp='$CPP $CPPFLAGS'
15010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15015 # Source file extension for C test sources.
15018 # Object file extension for compiled C test sources.
15022 # Code to be used in simple compile tests
15023 lt_simple_compile_test_code="int some_variable
= 0;"
15025 # Code to be used in simple link tests
15026 lt_simple_link_test_code='int main(){return(0);}'
15034 # If no C compiler was specified, use CC.
15037 # If no C compiler flags were specified, use CFLAGS.
15038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15040 # Allow CC to be a program name with arguments.
15043 # Save the default compiler, since it gets overwritten when the other
15044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15045 compiler_DEFAULT=$CC
15047 # save warnings/boilerplate of simple test code
15048 ac_outfile=conftest.$ac_objext
15049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15051 _lt_compiler_boilerplate=`cat conftest.err`
15054 ac_outfile=conftest.$ac_objext
15055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15057 _lt_linker_boilerplate=`cat conftest.err`
15062 ## There is no encapsulation within the following macros, do not change
15063 ## the running order or otherwise move them around unless you know exactly
15064 ## what you are doing...
15065 if test -n "$compiler"; then
15067 lt_prog_compiler_no_builtin_flag=
15069 if test "$GCC" = yes; then
15070 case $cc_basename in
15072 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15074 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15078 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15079 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15080 $as_echo_n "(cached
) " >&6
15082 lt_cv_prog_compiler_rtti_exceptions=no
15083 ac_outfile=conftest.$ac_objext
15084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15085 lt_compiler_flag="-fno-rtti -fno-exceptions"
15086 # Insert the option either (1) after the last *FLAGS variable, or
15087 # (2) before a word containing "conftest.
", or (3) at the end.
15088 # Note that $ac_compile itself does not contain backslashes and begins
15089 # with a dollar sign (not a hyphen), so the echo should work correctly.
15090 # The option is referenced via a variable to avoid confusing sed.
15091 lt_compile=`echo "$ac_compile" | $SED \
15092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15094 -e 's:$: $lt_compiler_flag:'`
15095 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15096 (eval "$lt_compile" 2>conftest.err)
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15100 if (exit $ac_status) && test -s "$ac_outfile"; then
15101 # The compiler can only warn and ignore the option if not recognized
15102 # So say no if there are warnings other than the usual output.
15103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15106 lt_cv_prog_compiler_rtti_exceptions=yes
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15113 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15116 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15128 lt_prog_compiler_wl=
15129 lt_prog_compiler_pic=
15130 lt_prog_compiler_static=
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15133 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15135 if test "$GCC" = yes; then
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_static='-static'
15141 # All AIX code is PIC.
15142 if test "$host_cpu" = ia64; then
15143 # AIX 5 now supports IA64 processor
15144 lt_prog_compiler_static='-Bstatic'
15146 lt_prog_compiler_pic='-fPIC'
15152 # see comment about AmigaOS4 .so support
15153 lt_prog_compiler_pic='-fPIC'
15156 # FIXME: we need at least 68020 code to build shared libraries, but
15157 # adding the `-m68020' flag to GCC prevents building anything better,
15159 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15164 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15165 # PIC is the default for these OSes.
15168 mingw* | cygwin* | pw32* | os2* | cegcc*)
15169 # This hack is so that the source file can tell whether it is being
15170 # built for inclusion in a dll (and should export symbols for example).
15171 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15172 # (--disable-auto-import) libraries
15173 lt_prog_compiler_pic='-DDLL_EXPORT'
15176 darwin* | rhapsody*)
15177 # PIC is the default on this platform
15178 # Common symbols not allowed in MH_DYLIB files
15179 lt_prog_compiler_pic='-fno-common'
15183 # PIC is the default for Haiku.
15184 # The "-static" flag exists, but is broken.
15185 lt_prog_compiler_static=
15189 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15190 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15191 # sets the default TLS model and affects inlining.
15197 lt_prog_compiler_pic='-fPIC'
15203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15204 # Instead, we relocate shared libraries at runtime.
15208 # Just because we use GCC doesn't mean we suddenly get shared libraries
15209 # on systems that don't support them.
15210 lt_prog_compiler_can_build_shared=no
15215 # QNX uses GNU C++, but need to define -shared option too, otherwise
15216 # it will coredump.
15217 lt_prog_compiler_pic='-fPIC -shared'
15221 if test -d /usr/nec; then
15222 lt_prog_compiler_pic=-Kconform_pic
15227 lt_prog_compiler_pic='-fPIC'
15231 case $cc_basename in
15232 nvcc*) # Cuda Compiler Driver 2.2
15233 lt_prog_compiler_wl='-Xlinker '
15234 lt_prog_compiler_pic='-Xcompiler -fPIC'
15238 # PORTME Check for flag to pass linker flags through the system compiler.
15241 lt_prog_compiler_wl='-Wl,'
15242 if test "$host_cpu" = ia64; then
15243 # AIX 5 now supports IA64 processor
15244 lt_prog_compiler_static='-Bstatic'
15246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15250 mingw* | cygwin* | pw32* | os2* | cegcc*)
15251 # This hack is so that the source file can tell whether it is being
15252 # built for inclusion in a dll (and should export symbols for example).
15253 lt_prog_compiler_pic='-DDLL_EXPORT'
15256 hpux9* | hpux10* | hpux11*)
15257 lt_prog_compiler_wl='-Wl,'
15258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15259 # not for PA HP-UX.
15265 lt_prog_compiler_pic='+Z'
15268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15269 lt_prog_compiler_static='${wl}-a ${wl}archive'
15272 irix5* | irix6* | nonstopux*)
15273 lt_prog_compiler_wl='-Wl,'
15274 # PIC (with -KPIC) is the default.
15275 lt_prog_compiler_static='-non_shared'
15278 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15279 case $cc_basename in
15280 # old Intel for x86_64 which still supported -KPIC.
15282 lt_prog_compiler_wl='-Wl,'
15283 lt_prog_compiler_pic='-KPIC'
15284 lt_prog_compiler_static='-static'
15286 # icc used to be incompatible with GCC.
15287 # ICC 10 doesn't accept -KPIC any more.
15289 lt_prog_compiler_wl='-Wl,'
15290 lt_prog_compiler_pic='-fPIC'
15291 lt_prog_compiler_static='-static'
15293 # Lahey Fortran 8.1.
15295 lt_prog_compiler_wl='-Wl,'
15296 lt_prog_compiler_pic='--shared'
15297 lt_prog_compiler_static='--static'
15299 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15300 # Portland Group compilers (*not* the Pentium gcc compiler,
15301 # which looks to be a dead project)
15302 lt_prog_compiler_wl='-Wl,'
15303 lt_prog_compiler_pic='-fpic'
15304 lt_prog_compiler_static='-Bstatic'
15307 lt_prog_compiler_wl='-Wl,'
15308 # All Alpha code is PIC.
15309 lt_prog_compiler_static='-non_shared'
15311 xl* | bgxl* | bgf* | mpixl*)
15312 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15313 lt_prog_compiler_wl='-Wl,'
15314 lt_prog_compiler_pic='-qpic'
15315 lt_prog_compiler_static='-qstaticlink'
15318 case `$CC -V 2>&1 | sed 5q` in
15319 *Sun\ F* | *Sun*Fortran*)
15320 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15321 lt_prog_compiler_pic='-KPIC'
15322 lt_prog_compiler_static='-Bstatic'
15323 lt_prog_compiler_wl=''
15327 lt_prog_compiler_pic='-KPIC'
15328 lt_prog_compiler_static='-Bstatic'
15329 lt_prog_compiler_wl='-Wl,'
15337 lt_prog_compiler_pic='-KPIC'
15338 lt_prog_compiler_static='-Bstatic'
15342 # QNX uses GNU C++, but need to define -shared option too, otherwise
15343 # it will coredump.
15344 lt_prog_compiler_pic='-fPIC -shared'
15347 osf3* | osf4* | osf5*)
15348 lt_prog_compiler_wl='-Wl,'
15349 # All OSF/1 code is PIC.
15350 lt_prog_compiler_static='-non_shared'
15354 lt_prog_compiler_static='-non_shared'
15358 lt_prog_compiler_pic='-KPIC'
15359 lt_prog_compiler_static='-Bstatic'
15360 case $cc_basename in
15361 f77* | f90* | f95*)
15362 lt_prog_compiler_wl='-Qoption ld ';;
15364 lt_prog_compiler_wl='-Wl,';;
15369 lt_prog_compiler_wl='-Qoption ld '
15370 lt_prog_compiler_pic='-PIC'
15371 lt_prog_compiler_static='-Bstatic'
15374 sysv4 | sysv4.2uw2* | sysv4.3*)
15375 lt_prog_compiler_wl='-Wl,'
15376 lt_prog_compiler_pic='-KPIC'
15377 lt_prog_compiler_static='-Bstatic'
15381 if test -d /usr/nec ;then
15382 lt_prog_compiler_pic='-Kconform_pic'
15383 lt_prog_compiler_static='-Bstatic'
15387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15388 lt_prog_compiler_wl='-Wl,'
15389 lt_prog_compiler_pic='-KPIC'
15390 lt_prog_compiler_static='-Bstatic'
15394 lt_prog_compiler_wl='-Wl,'
15395 lt_prog_compiler_can_build_shared=no
15399 lt_prog_compiler_pic='-pic'
15400 lt_prog_compiler_static='-Bstatic'
15404 lt_prog_compiler_can_build_shared=no
15410 # For platforms which do not support PIC, -DPIC is meaningless:
15412 lt_prog_compiler_pic=
15415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15419 $as_echo "$lt_prog_compiler_pic" >&6; }
15427 # Check to make sure the PIC flag actually works.
15429 if test -n "$lt_prog_compiler_pic"; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15431 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15432 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15433 $as_echo_n "(cached
) " >&6
15435 lt_cv_prog_compiler_pic_works=no
15436 ac_outfile=conftest.$ac_objext
15437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15439 # Insert the option either (1) after the last *FLAGS variable, or
15440 # (2) before a word containing "conftest.
", or (3) at the end.
15441 # Note that $ac_compile itself does not contain backslashes and begins
15442 # with a dollar sign (not a hyphen), so the echo should work correctly.
15443 # The option is referenced via a variable to avoid confusing sed.
15444 lt_compile=`echo "$ac_compile" | $SED \
15445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15447 -e 's:$: $lt_compiler_flag:'`
15448 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15449 (eval "$lt_compile" 2>conftest.err)
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15453 if (exit $ac_status) && test -s "$ac_outfile"; then
15454 # The compiler can only warn and ignore the option if not recognized
15455 # So say no if there are warnings other than the usual output.
15456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15459 lt_cv_prog_compiler_pic_works=yes
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15469 case $lt_prog_compiler_pic in
15471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15474 lt_prog_compiler_pic=
15475 lt_prog_compiler_can_build_shared=no
15486 # Check to make sure the static flag actually works.
15488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15490 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15491 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15492 $as_echo_n "(cached
) " >&6
15494 lt_cv_prog_compiler_static_works=no
15495 save_LDFLAGS="$LDFLAGS"
15496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15499 # The linker can only warn and ignore the option if not recognized
15500 # So say no if there are warnings
15501 if test -s conftest.err; then
15502 # Append any errors to the config.log.
15503 cat conftest.err 1>&5
15504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15506 if diff conftest.exp conftest.er2 >/dev/null; then
15507 lt_cv_prog_compiler_static_works=yes
15510 lt_cv_prog_compiler_static_works=yes
15514 LDFLAGS="$save_LDFLAGS"
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15523 lt_prog_compiler_static=
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15533 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15535 $as_echo_n "(cached
) " >&6
15537 lt_cv_prog_compiler_c_o=no
15538 $RM -r conftest 2>/dev/null
15542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15544 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15545 # Insert the option either (1) after the last *FLAGS variable, or
15546 # (2) before a word containing "conftest.
", or (3) at the end.
15547 # Note that $ac_compile itself does not contain backslashes and begins
15548 # with a dollar sign (not a hyphen), so the echo should work correctly.
15549 lt_compile=`echo "$ac_compile" | $SED \
15550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15552 -e 's:$: $lt_compiler_flag:'`
15553 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15554 (eval "$lt_compile" 2>out/conftest.err)
15556 cat out/conftest.err >&5
15557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15560 # The compiler can only warn and ignore the option if not recognized
15561 # So say no if there are warnings
15562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15565 lt_cv_prog_compiler_c_o=yes
15570 # SGI C++ compiler will create directory out/ii_files/ for
15571 # template instantiation
15572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15573 $RM out/* && rmdir out
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15588 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15590 $as_echo_n "(cached
) " >&6
15592 lt_cv_prog_compiler_c_o=no
15593 $RM -r conftest 2>/dev/null
15597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15599 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15600 # Insert the option either (1) after the last *FLAGS variable, or
15601 # (2) before a word containing "conftest.
", or (3) at the end.
15602 # Note that $ac_compile itself does not contain backslashes and begins
15603 # with a dollar sign (not a hyphen), so the echo should work correctly.
15604 lt_compile=`echo "$ac_compile" | $SED \
15605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15607 -e 's:$: $lt_compiler_flag:'`
15608 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15609 (eval "$lt_compile" 2>out/conftest.err)
15611 cat out/conftest.err >&5
15612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15615 # The compiler can only warn and ignore the option if not recognized
15616 # So say no if there are warnings
15617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15620 lt_cv_prog_compiler_c_o=yes
15625 # SGI C++ compiler will create directory out/ii_files/ for
15626 # template instantiation
15627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15628 $RM out/* && rmdir out
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15640 hard_links="nottested
"
15641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15642 # do not overwrite the value of need_locks provided by the user
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15644 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15649 ln conftest.a conftest.b 2>&5 || hard_links=no
15650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15652 $as_echo "$hard_links" >&6; }
15653 if test "$hard_links" = no; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15655 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15668 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15671 allow_undefined_flag=
15672 always_export_symbols=no
15674 archive_expsym_cmds=
15675 compiler_needs_object=no
15676 enable_shared_with_static_runtimes=no
15677 export_dynamic_flag_spec=
15678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15679 hardcode_automatic=no
15681 hardcode_direct_absolute=no
15682 hardcode_libdir_flag_spec=
15683 hardcode_libdir_flag_spec_ld=
15684 hardcode_libdir_separator=
15685 hardcode_minus_L=no
15686 hardcode_shlibpath_var=unsupported
15688 link_all_deplibs=unknown
15690 module_expsym_cmds=
15691 old_archive_from_new_cmds=
15692 old_archive_from_expsyms_cmds=
15693 thread_safe_flag_spec=
15694 whole_archive_flag_spec=
15695 # include_expsyms should be a list of space-separated symbols to be *always*
15696 # included in the symbol list
15698 # exclude_expsyms can be an extended regexp of symbols to exclude
15699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15701 # as well as any symbol that contains `d'.
15702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15704 # platforms (ab)use it in PIC code, but their linkers get confused if
15705 # the symbol is explicitly referenced. Since portable code cannot
15706 # rely on this symbol name, it's probably fine to never include it in
15707 # preloaded symbol tables.
15708 # Exclude shared library initialization/finalization symbols.
15709 extract_expsyms_cmds=
15712 cygwin* | mingw* | pw32* | cegcc*)
15713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15714 # When not using gcc, we currently assume that we are using
15715 # Microsoft Visual C++.
15716 if test "$GCC" != yes; then
15721 # we just hope/assume this is gcc and not c89 (= MSVC++)
15731 # On some targets, GNU ld is compatible enough with the native linker
15732 # that we're better off using the native interface for both.
15733 lt_use_gnu_ld_interface=no
15734 if test "$with_gnu_ld" = yes; then
15737 # The AIX port of GNU ld has always aspired to compatibility
15738 # with the native linker. However, as the warning in the GNU ld
15739 # block says, versions before 2.19.5* couldn't really create working
15740 # shared libraries, regardless of the interface used.
15741 case `$LD -v 2>&1` in
15742 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15743 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15744 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15746 lt_use_gnu_ld_interface=yes
15751 lt_use_gnu_ld_interface=yes
15756 if test "$lt_use_gnu_ld_interface" = yes; then
15757 # If archive_cmds runs LD, not CC, wlarc should be empty
15760 # Set some defaults for GNU ld with shared library support. These
15761 # are reset later if shared libraries are not supported. Putting them
15762 # here allows them to be overridden if necessary.
15763 runpath_var=LD_RUN_PATH
15764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15765 export_dynamic_flag_spec='${wl}--export-dynamic'
15766 # ancient GNU ld didn't support --whole-archive et. al.
15767 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15768 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15770 whole_archive_flag_spec=
15772 supports_anon_versioning=no
15773 case `$LD -v 2>&1` in
15774 *GNU\ gold*) supports_anon_versioning=yes ;;
15775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15778 *\ 2.11.*) ;; # other 2.11 versions
15779 *) supports_anon_versioning=yes ;;
15782 # See if GNU ld supports shared libraries.
15785 # On AIX/PPC, the GNU linker is very broken
15786 if test "$host_cpu" != ia64; then
15790 *** Warning: the GNU linker, at least up to release 2.19, is reported
15791 *** to be unable to reliably create shared libraries on AIX.
15792 *** Therefore, libtool is disabling shared libraries support. If you
15793 *** really care for shared libraries, you may want to install binutils
15794 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15795 *** You will then need to restart the configuration process.
15804 # see comment about AmigaOS4 .so support
15805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 archive_expsym_cmds=''
15809 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)'
15810 hardcode_libdir_flag_spec
='-L$libdir'
15811 hardcode_minus_L
=yes
15817 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15818 allow_undefined_flag
=unsupported
15819 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15820 # support --undefined. This deserves some investigation. FIXME
15821 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 cygwin
* | mingw
* | pw32
* | cegcc
*)
15828 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15829 # as there is no search path for DLLs.
15830 hardcode_libdir_flag_spec
='-L$libdir'
15831 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15832 allow_undefined_flag
=unsupported
15833 always_export_symbols
=no
15834 enable_shared_with_static_runtimes
=yes
15835 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15837 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15838 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15839 # If the export-symbols file already is a .def file (1st line
15840 # is EXPORTS), use it as is; otherwise, prepend...
15841 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15842 cp $export_symbols $output_objdir/$soname.def;
15844 echo EXPORTS > $output_objdir/$soname.def;
15845 cat $export_symbols >> $output_objdir/$soname.def;
15847 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15854 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855 link_all_deplibs
=yes
15860 hardcode_shlibpath_var
=no
15861 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15862 export_dynamic_flag_spec
='${wl}-E'
15863 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15864 # Instead, shared libraries are loaded at an image base (0x10000000 by
15865 # default) and relocated if they conflict, which is a slow very memory
15866 # consuming and fragmenting process. To avoid this, we pick a random,
15867 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15868 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15869 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15870 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'
15873 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15875 if test "$host_os" = linux-dietlibc
; then
15876 case $cc_basename in
15877 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15880 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15881 && test "$tmp_diet" = no
15884 tmp_sharedflag
='-shared'
15885 case $cc_basename,$host_cpu in
15886 pgcc
*) # Portland Group C compiler
15887 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'
15888 tmp_addflag
=' $pic_flag'
15890 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15891 # Portland Group f77 and f90 compilers
15892 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'
15893 tmp_addflag
=' $pic_flag -Mnomain' ;;
15894 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15895 tmp_addflag
=' -i_dynamic' ;;
15896 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15897 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15898 ifc
* | ifort
*) # Intel Fortran compiler
15899 tmp_addflag
=' -nofor_main' ;;
15900 lf95
*) # Lahey Fortran 8.1
15901 whole_archive_flag_spec
=
15902 tmp_sharedflag
='--shared' ;;
15903 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15904 tmp_sharedflag
='-qmkshrobj'
15906 nvcc
*) # Cuda Compiler Driver 2.2
15907 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'
15908 compiler_needs_object
=yes
15911 case `$CC -V 2>&1 | sed 5q` in
15912 *Sun\ C
*) # Sun C 5.9
15913 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'
15914 compiler_needs_object
=yes
15915 tmp_sharedflag
='-G' ;;
15916 *Sun\ F
*) # Sun Fortran 8.3
15917 tmp_sharedflag
='-G' ;;
15919 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15921 if test "x$supports_anon_versioning" = xyes
; then
15922 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15924 echo "local: *; };" >> $output_objdir/$libname.ver~
15925 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15928 case $cc_basename in
15929 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15930 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15931 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15932 hardcode_libdir_flag_spec
=
15933 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15934 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15935 if test "x$supports_anon_versioning" = xyes
; then
15936 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15938 echo "local: *; };" >> $output_objdir/$libname.ver~
15939 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15949 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15950 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15953 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15954 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15959 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15964 *** create shared libraries on Solaris systems. Therefore, libtool
15965 *** is disabling shared libraries support. We urge you to upgrade GNU
15966 *** binutils to release 2.9.1 or newer. Another option is to modify
15967 *** your PATH or compiler configuration so that the native linker is
15968 *** used, and then restart.
15971 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15972 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15979 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15980 case `$LD -v 2>&1` in
15981 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15986 *** reliably create shared libraries on SCO systems. Therefore, libtool
15987 *** is disabling shared libraries support. We urge you to upgrade GNU
15988 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15989 *** your PATH or compiler configuration so that the native linker is
15990 *** used, and then restart.
15995 # For security reasons, it is highly recommended that you always
15996 # use absolute paths for naming shared libraries, and exclude the
15997 # DT_RUNPATH tag from executables and libraries. But doing so
15998 # requires that you compile everything twice, which is a pain.
15999 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16000 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16001 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16002 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16011 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16013 hardcode_direct
=yes
16014 hardcode_shlibpath_var
=no
16018 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16019 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16020 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16027 if test "$ld_shlibs" = no
; then
16029 hardcode_libdir_flag_spec
=
16030 export_dynamic_flag_spec
=
16031 whole_archive_flag_spec
=
16034 # PORTME fill in a description of your system's linker (not GNU ld)
16037 allow_undefined_flag
=unsupported
16038 always_export_symbols
=yes
16039 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'
16040 # Note: this linker hardcodes the directories in LIBPATH if there
16041 # are no directories specified by -L.
16042 hardcode_minus_L
=yes
16043 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16044 # Neither direct hardcoding nor static linking is supported with a
16046 hardcode_direct
=unsupported
16051 if test "$host_cpu" = ia64
; then
16052 # On IA64, the linker does run time linking by default, so we don't
16053 # have to do anything special.
16054 aix_use_runtimelinking
=no
16055 exp_sym_flag
='-Bexport'
16058 # If we're using GNU nm, then we don't want the "-C" option.
16059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16060 # Also, AIX nm treats weak defined symbols like other global
16061 # defined symbols, whereas GNU nm marks them as "W".
16062 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16063 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'
16065 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'
16067 aix_use_runtimelinking
=no
16069 # Test if we are trying to use run time linking or normal
16070 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16071 # need to do runtime linking.
16072 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16073 for ld_flag
in $LDFLAGS; do
16074 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16075 aix_use_runtimelinking
=yes
16082 exp_sym_flag
='-bexport'
16083 no_entry_flag
='-bnoentry'
16086 # When large executables or shared objects are built, AIX ld can
16087 # have problems creating the table of contents. If linking a library
16088 # or program results in "error TOC overflow" add -mminimal-toc to
16089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16093 hardcode_direct
=yes
16094 hardcode_direct_absolute
=yes
16095 hardcode_libdir_separator
=':'
16096 link_all_deplibs
=yes
16097 file_list_spec
='${wl}-f,'
16099 if test "$GCC" = yes; then
16100 case $host_os in aix4.
[012]|aix4.
[012].
*)
16101 # We only want to do this on AIX 4.2 and lower, the check
16102 # below for broken collect2 doesn't work under 4.3+
16103 collect2name
=`${CC} -print-prog-name=collect2`
16104 if test -f "$collect2name" &&
16105 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16107 # We have reworked collect2
16110 # We have old collect2
16111 hardcode_direct
=unsupported
16112 # It fails to find uninstalled libraries when the uninstalled
16113 # path is not listed in the libpath. Setting hardcode_minus_L
16114 # to unsupported forces relinking
16115 hardcode_minus_L
=yes
16116 hardcode_libdir_flag_spec
='-L$libdir'
16117 hardcode_libdir_separator
=
16121 shared_flag
='-shared'
16122 if test "$aix_use_runtimelinking" = yes; then
16123 shared_flag
="$shared_flag "'${wl}-G'
16127 if test "$host_cpu" = ia64
; then
16128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16129 # chokes on -Wl,-G. The following line is correct:
16132 if test "$aix_use_runtimelinking" = yes; then
16133 shared_flag
='${wl}-G'
16135 shared_flag
='${wl}-bM:SRE'
16140 export_dynamic_flag_spec
='${wl}-bexpall'
16141 # It seems that -bexpall does not export symbols beginning with
16142 # underscore (_), so it is better to generate a list of symbols to export.
16143 always_export_symbols
=yes
16144 if test "$aix_use_runtimelinking" = yes; then
16145 # Warning - without using the other runtime loading flags (-brtl),
16146 # -berok will link without error, but may produce a broken library.
16147 allow_undefined_flag
='-berok'
16148 # Determine the default libpath from the value encoded in an
16149 # empty executable.
16150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16161 if ac_fn_c_try_link
"$LINENO"; then :
16163 lt_aix_libpath_sed
='
16164 /Import File Strings/,/^$/ {
16170 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16171 # Check for a 64-bit object if we didn't find anything.
16172 if test -z "$aix_libpath"; then
16173 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16176 rm -f core conftest.err conftest.
$ac_objext \
16177 conftest
$ac_exeext conftest.
$ac_ext
16178 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16180 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16181 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"
16183 if test "$host_cpu" = ia64
; then
16184 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16185 allow_undefined_flag
="-z nodefs"
16186 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"
16188 # Determine the default libpath from the value encoded in an
16189 # empty executable.
16190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16201 if ac_fn_c_try_link
"$LINENO"; then :
16203 lt_aix_libpath_sed
='
16204 /Import File Strings/,/^$/ {
16210 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16211 # Check for a 64-bit object if we didn't find anything.
16212 if test -z "$aix_libpath"; then
16213 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16216 rm -f core conftest.err conftest.
$ac_objext \
16217 conftest
$ac_exeext conftest.
$ac_ext
16218 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16220 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16221 # Warning - without using the other run time loading flags,
16222 # -berok will link without error, but may produce a broken library.
16223 no_undefined_flag
=' ${wl}-bernotok'
16224 allow_undefined_flag
=' ${wl}-berok'
16225 if test "$with_gnu_ld" = yes; then
16226 # We only use this code for GNU lds that support --whole-archive.
16227 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16229 # Exported symbols can be pulled into shared objects from archives
16230 whole_archive_flag_spec
='$convenience'
16232 archive_cmds_need_lc
=yes
16233 # This is similar to how AIX traditionally builds its shared libraries.
16234 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'
16242 # see comment about AmigaOS4 .so support
16243 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244 archive_expsym_cmds
=''
16247 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)'
16248 hardcode_libdir_flag_spec
='-L$libdir'
16249 hardcode_minus_L
=yes
16255 export_dynamic_flag_spec
=-rdynamic
16258 cygwin
* | mingw
* | pw32
* | cegcc
*)
16259 # When not using gcc, we currently assume that we are using
16260 # Microsoft Visual C++.
16261 # hardcode_libdir_flag_spec is actually meaningless, as there is
16262 # no search path for DLLs.
16263 hardcode_libdir_flag_spec
=' '
16264 allow_undefined_flag
=unsupported
16265 # Tell ltmain to make .lib files, not .a files.
16267 # Tell ltmain to make .dll files, not .so files.
16269 # FIXME: Setting linknames here is a bad hack.
16270 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16271 # The linker will automatically build a .lib file if we build a DLL.
16272 old_archive_from_new_cmds
='true'
16273 # FIXME: Should let the user specify the lib program.
16274 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16275 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16276 enable_shared_with_static_runtimes
=yes
16279 darwin
* | rhapsody
*)
16282 archive_cmds_need_lc
=no
16284 hardcode_automatic
=yes
16285 hardcode_shlibpath_var
=unsupported
16286 if test "$lt_cv_ld_force_load" = "yes"; then
16287 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\"`'
16289 whole_archive_flag_spec
=''
16291 link_all_deplibs
=yes
16292 allow_undefined_flag
="$_lt_dar_allow_undefined"
16293 case $cc_basename in
16294 ifort
*) _lt_dar_can_shared
=yes ;;
16295 *) _lt_dar_can_shared
=$GCC ;;
16297 if test "$_lt_dar_can_shared" = "yes"; then
16298 output_verbose_link_cmd
=func_echo_all
16299 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16300 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16301 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}"
16302 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}"
16311 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_libdir_flag_spec
='-L$libdir'
16313 hardcode_shlibpath_var
=no
16316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16317 # support. Future versions do this automatically, but an explicit c++rt0.o
16318 # does not break anything, and helps significantly (at the cost of a little
16321 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16322 hardcode_libdir_flag_spec
='-R$libdir'
16323 hardcode_direct
=yes
16324 hardcode_shlibpath_var
=no
16327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16329 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16330 hardcode_direct
=yes
16331 hardcode_minus_L
=yes
16332 hardcode_shlibpath_var
=no
16335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16336 freebsd
* | dragonfly
*)
16337 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16338 hardcode_libdir_flag_spec
='-R$libdir'
16339 hardcode_direct
=yes
16340 hardcode_shlibpath_var
=no
16344 if test "$GCC" = yes; then
16345 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'
16347 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'
16349 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16350 hardcode_libdir_separator
=:
16351 hardcode_direct
=yes
16353 # hardcode_minus_L: Not really in the search PATH,
16354 # but as the default location of the library.
16355 hardcode_minus_L
=yes
16356 export_dynamic_flag_spec
='${wl}-E'
16360 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16361 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16363 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16365 if test "$with_gnu_ld" = no
; then
16366 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16367 hardcode_libdir_flag_spec_ld
='+b $libdir'
16368 hardcode_libdir_separator
=:
16369 hardcode_direct
=yes
16370 hardcode_direct_absolute
=yes
16371 export_dynamic_flag_spec
='${wl}-E'
16372 # hardcode_minus_L: Not really in the search PATH,
16373 # but as the default location of the library.
16374 hardcode_minus_L
=yes
16379 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16382 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16385 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16388 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16394 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16397 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16401 # Older versions of the 11.00 compiler do not understand -b yet
16402 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16404 $as_echo_n "checking if $CC understands -b... " >&6; }
16405 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16406 $as_echo_n "(cached) " >&6
16408 lt_cv_prog_compiler__b
=no
16409 save_LDFLAGS
="$LDFLAGS"
16410 LDFLAGS
="$LDFLAGS -b"
16411 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16412 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16413 # The linker can only warn and ignore the option if not recognized
16414 # So say no if there are warnings
16415 if test -s conftest.err
; then
16416 # Append any errors to the config.log.
16417 cat conftest.err
1>&5
16418 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16419 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16420 if diff conftest.exp conftest.er2
>/dev
/null
; then
16421 lt_cv_prog_compiler__b
=yes
16424 lt_cv_prog_compiler__b
=yes
16428 LDFLAGS
="$save_LDFLAGS"
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16432 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16434 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16435 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16437 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16443 if test "$with_gnu_ld" = no
; then
16444 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16445 hardcode_libdir_separator
=:
16450 hardcode_shlibpath_var
=no
16453 hardcode_direct
=yes
16454 hardcode_direct_absolute
=yes
16455 export_dynamic_flag_spec
='${wl}-E'
16457 # hardcode_minus_L: Not really in the search PATH,
16458 # but as the default location of the library.
16459 hardcode_minus_L
=yes
16465 irix5
* | irix6
* | nonstopux
*)
16466 if test "$GCC" = yes; then
16467 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'
16468 # Try to use the -exported_symbol ld option, if it does not
16469 # work, assume that -exports_file does not work either and
16470 # implicitly export all symbols.
16471 save_LDFLAGS
="$LDFLAGS"
16472 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16477 if ac_fn_c_try_link
"$LINENO"; then :
16478 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'
16481 rm -f core conftest.err conftest.
$ac_objext \
16482 conftest
$ac_exeext conftest.
$ac_ext
16483 LDFLAGS
="$save_LDFLAGS"
16485 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'
16486 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'
16488 archive_cmds_need_lc
='no'
16489 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16490 hardcode_libdir_separator
=:
16492 link_all_deplibs
=yes
16496 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16497 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16499 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16501 hardcode_libdir_flag_spec
='-R$libdir'
16502 hardcode_direct
=yes
16503 hardcode_shlibpath_var
=no
16507 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct
=yes
16509 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16510 hardcode_libdir_separator
=:
16511 hardcode_shlibpath_var
=no
16518 if test -f /usr
/libexec
/ld.so
; then
16519 hardcode_direct
=yes
16520 hardcode_shlibpath_var
=no
16521 hardcode_direct_absolute
=yes
16522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16523 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16524 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16525 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16526 export_dynamic_flag_spec
='${wl}-E'
16529 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16530 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16531 hardcode_libdir_flag_spec
='-R$libdir'
16534 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16535 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16545 hardcode_libdir_flag_spec
='-L$libdir'
16546 hardcode_minus_L
=yes
16547 allow_undefined_flag
=unsupported
16548 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'
16549 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16553 if test "$GCC" = yes; then
16554 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16555 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'
16557 allow_undefined_flag
=' -expect_unresolved \*'
16558 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'
16560 archive_cmds_need_lc
='no'
16561 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16562 hardcode_libdir_separator
=:
16565 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16566 if test "$GCC" = yes; then
16567 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16568 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'
16569 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16571 allow_undefined_flag
=' -expect_unresolved \*'
16572 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'
16573 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~
16574 $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'
16576 # Both c and cxx compiler support -rpath directly
16577 hardcode_libdir_flag_spec
='-rpath $libdir'
16579 archive_cmds_need_lc
='no'
16580 hardcode_libdir_separator
=:
16584 no_undefined_flag
=' -z defs'
16585 if test "$GCC" = yes; then
16587 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16589 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16591 case `$CC -V 2>&1` in
16594 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16595 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16600 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16601 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16602 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16606 hardcode_libdir_flag_spec
='-R$libdir'
16607 hardcode_shlibpath_var
=no
16609 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16611 # The compiler driver will combine and reorder linker options,
16612 # but understands `-z linker_flag'. GCC discards it without `$wl',
16613 # but is careful enough not to reorder.
16614 # Supported since Solaris 2.6 (maybe 2.5.1?)
16615 if test "$GCC" = yes; then
16616 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16618 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16622 link_all_deplibs
=yes
16626 if test "x$host_vendor" = xsequent
; then
16627 # Use $CC to link under sequent, because it throws in some extra .o
16628 # files that make .init and .fini sections work.
16629 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16633 hardcode_libdir_flag_spec
='-L$libdir'
16634 hardcode_direct
=yes
16635 hardcode_minus_L
=yes
16636 hardcode_shlibpath_var
=no
16640 case $host_vendor in
16642 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_direct
=yes # is this really true???
16646 ## LD is ld it makes a PLAMLIB
16647 ## CC just makes a GrossModule.
16648 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16649 reload_cmds
='$CC -r -o $output$reload_objs'
16653 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16657 runpath_var
='LD_RUN_PATH'
16658 hardcode_shlibpath_var
=no
16662 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16663 hardcode_shlibpath_var
=no
16664 export_dynamic_flag_spec
='-Bexport'
16668 if test -d /usr
/nec
; then
16669 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_shlibpath_var
=no
16671 runpath_var
=LD_RUN_PATH
16672 hardcode_runpath_var
=yes
16677 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16678 no_undefined_flag
='${wl}-z,text'
16679 archive_cmds_need_lc
=no
16680 hardcode_shlibpath_var
=no
16681 runpath_var
='LD_RUN_PATH'
16683 if test "$GCC" = yes; then
16684 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16685 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16687 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 sysv5
* | sco3.2v5
* | sco5v6
*)
16693 # Note: We can NOT use -z defs as we might desire, because we do not
16694 # link with -lc, and that would cause any symbols used from libc to
16695 # always be unresolved, which means just about no library would
16696 # ever link correctly. If we're not using GNU ld we use -z text
16697 # though, which does catch some bad symbols but isn't as heavy-handed
16699 no_undefined_flag
='${wl}-z,text'
16700 allow_undefined_flag
='${wl}-z,nodefs'
16701 archive_cmds_need_lc
=no
16702 hardcode_shlibpath_var
=no
16703 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16704 hardcode_libdir_separator
=':'
16705 link_all_deplibs
=yes
16706 export_dynamic_flag_spec
='${wl}-Bexport'
16707 runpath_var
='LD_RUN_PATH'
16709 if test "$GCC" = yes; then
16710 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16713 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16719 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16720 hardcode_libdir_flag_spec
='-L$libdir'
16721 hardcode_shlibpath_var
=no
16729 if test x
$host_vendor = xsni
; then
16731 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16732 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16739 $as_echo "$ld_shlibs" >&6; }
16740 test "$ld_shlibs" = no
&& can_build_shared
=no
16742 with_gnu_ld
=$with_gnu_ld
16759 # Do we need to explicitly link libc?
16761 case "x$archive_cmds_need_lc" in
16763 # Assume -lc should be added
16764 archive_cmds_need_lc
=yes
16766 if test "$enable_shared" = yes && test "$GCC" = yes; then
16767 case $archive_cmds in
16769 # FIXME: we may have to deal with multi-command sequences.
16772 # Test whether the compiler implicitly links with -lc since on some
16773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16774 # to ld, don't add -lc before -lgcc.
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16776 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16777 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16778 $as_echo_n "(cached) " >&6
16781 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16784 (eval $ac_compile) 2>&5
16786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16787 test $ac_status = 0; } 2>conftest.err
; then
16790 libobjs
=conftest.
$ac_objext
16792 wl
=$lt_prog_compiler_wl
16793 pic_flag
=$lt_prog_compiler_pic
16799 lt_save_allow_undefined_flag
=$allow_undefined_flag
16800 allow_undefined_flag
=
16801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16802 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16805 test $ac_status = 0; }
16807 lt_cv_archive_cmds_need_lc
=no
16809 lt_cv_archive_cmds_need_lc
=yes
16811 allow_undefined_flag
=$lt_save_allow_undefined_flag
16813 cat conftest.err
1>&5
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16819 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16820 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16984 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16986 if test "$GCC" = yes; then
16988 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16989 *) lt_awk_arg
="/^libraries:/" ;;
16992 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16993 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16995 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16996 case $lt_search_path_spec in
16998 # if the path contains ";" then we assume it to be the separator
16999 # otherwise default to the standard path separator (i.e. ":") - it is
17000 # assumed that no part of a normal pathname contains ";" but that should
17001 # okay in the real world where ";" in dirpaths is itself problematic.
17002 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17005 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17008 # Ok, now we have the path, separated by spaces, we can step through it
17009 # and add multilib dir if necessary.
17010 lt_tmp_lt_search_path_spec
=
17011 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17012 for lt_sys_path
in $lt_search_path_spec; do
17013 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17014 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17016 test -d "$lt_sys_path" && \
17017 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17020 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17021 BEGIN {RS=" "; FS="/|\n";} {
17024 for (lt_i = NF; lt_i > 0; lt_i--) {
17025 if ($lt_i != "" && $lt_i != ".") {
17026 if ($lt_i == "..") {
17029 if (lt_count == 0) {
17030 lt_foo="/" $lt_i lt_foo;
17037 if (lt_foo != "") { lt_freq[lt_foo]++; }
17038 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17040 # AWK program above erroneously prepends '/' to C:/dos/paths
17043 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17044 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17046 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17048 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17050 library_names_spec
=
17051 libname_spec
='lib$name'
17055 postuninstall_cmds
=
17059 shlibpath_overrides_runpath
=unknown
17061 dynamic_linker
="$host_os ld.so"
17062 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17063 need_lib_prefix
=unknown
17064 hardcode_into_libs
=no
17066 # when you set need_version to no, make sure it does not cause -set_version
17067 # flags to be left without arguments
17068 need_version
=unknown
17073 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17074 shlibpath_var
=LIBPATH
17076 # AIX 3 has no versioning support, so we append a major version to the name.
17077 soname_spec
='${libname}${release}${shared_ext}$major'
17084 hardcode_into_libs
=yes
17085 if test "$host_cpu" = ia64
; then
17086 # AIX 5 supports IA64
17087 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17088 shlibpath_var
=LD_LIBRARY_PATH
17090 # With GCC up to 2.95.x, collect2 would create an import file
17091 # for dependence libraries. The import file would start with
17092 # the line `#! .'. This would cause the generated library to
17093 # depend on `.', always an invalid library. This was fixed in
17094 # development snapshots of GCC prior to 3.0.
17096 aix4 | aix4.
[01] | aix4.
[01].
*)
17097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17099 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17102 can_build_shared
=no
17106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17107 # soname into executable. Probably we can add versioning support to
17108 # collect2, so additional links can be useful in future.
17109 if test "$aix_use_runtimelinking" = yes; then
17110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17111 # instead of lib<name>.a to let people know that these are not
17112 # typical AIX shared libraries.
17113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 # We preserve .a as extension for shared libraries through AIX4.2
17116 # and later when we are not doing run time linking.
17117 library_names_spec
='${libname}${release}.a $libname.a'
17118 soname_spec
='${libname}${release}${shared_ext}$major'
17120 shlibpath_var
=LIBPATH
17127 # Since July 2007 AmigaOS4 officially supports .so libraries.
17128 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17132 library_names_spec
='$libname.ixlibrary $libname.a'
17133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17134 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'
17140 library_names_spec
='${libname}${shared_ext}'
17141 dynamic_linker
="$host_os ld.so"
17142 shlibpath_var
=LIBRARY_PATH
17148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec
='${libname}${release}${shared_ext}$major'
17150 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17151 shlibpath_var
=LD_LIBRARY_PATH
17152 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17153 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17154 # the default ld.so.conf also contains /usr/contrib/lib and
17155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17156 # libtool to hard-code these into programs
17159 cygwin
* | mingw
* | pw32
* | cegcc
*)
17160 version_type
=windows
17165 case $GCC,$host_os in
17166 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17167 library_names_spec
='$libname.dll.a'
17168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17169 postinstall_cmds
='base_file=`basename \${file}`~
17170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17171 dldir=$destdir/`dirname \$dlpath`~
17172 test -d \$dldir || mkdir -p \$dldir~
17173 $install_prog $dir/$dlname \$dldir/$dlname~
17174 chmod a+x \$dldir/$dlname~
17175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17178 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17179 dlpath=$dir/\$dldll~
17181 shlibpath_overrides_runpath
=yes
17185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17186 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17188 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17191 # MinGW DLLs use traditional 'lib' prefix
17192 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17195 # pw32 DLLs use 'pw' prefix rather than 'lib'
17196 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17202 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17205 dynamic_linker
='Win32 ld.exe'
17206 # FIXME: first we should search . and the directory the executable is in
17210 darwin
* | rhapsody
*)
17211 dynamic_linker
="$host_os dyld"
17212 version_type
=darwin
17215 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17216 soname_spec
='${libname}${release}${major}$shared_ext'
17217 shlibpath_overrides_runpath
=yes
17218 shlibpath_var
=DYLD_LIBRARY_PATH
17219 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17221 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17222 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17230 soname_spec
='${libname}${release}${shared_ext}$major'
17231 shlibpath_var
=LD_LIBRARY_PATH
17234 freebsd
* | dragonfly
*)
17235 # DragonFly does not have aout. When/if they implement a new
17236 # versioning mechanism, adjust this.
17237 if test -x /usr
/bin
/objformat
; then
17238 objformat
=`/usr/bin/objformat`
17241 freebsd
[23].
*) objformat
=aout
;;
17242 *) objformat
=elf
;;
17245 version_type
=freebsd-
$objformat
17246 case $version_type in
17248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17253 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17257 shlibpath_var
=LD_LIBRARY_PATH
17260 shlibpath_overrides_runpath
=yes
17262 freebsd3.
[01]* | freebsdelf3.
[01]*)
17263 shlibpath_overrides_runpath
=yes
17264 hardcode_into_libs
=yes
17266 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17267 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17268 shlibpath_overrides_runpath
=no
17269 hardcode_into_libs
=yes
17271 *) # from 4.6 on, and DragonFly
17272 shlibpath_overrides_runpath
=yes
17273 hardcode_into_libs
=yes
17282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17283 soname_spec
='${libname}${release}${shared_ext}$major'
17284 shlibpath_var
=LD_LIBRARY_PATH
17285 hardcode_into_libs
=yes
17292 dynamic_linker
="$host_os runtime_loader"
17293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17294 soname_spec
='${libname}${release}${shared_ext}$major'
17295 shlibpath_var
=LIBRARY_PATH
17296 shlibpath_overrides_runpath
=yes
17297 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17298 hardcode_into_libs
=yes
17301 hpux9
* | hpux10
* | hpux11
*)
17302 # Give a soname corresponding to the major version so that dld.sl refuses to
17303 # link against other versions.
17310 hardcode_into_libs
=yes
17311 dynamic_linker
="$host_os dld.so"
17312 shlibpath_var
=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec
='${libname}${release}${shared_ext}$major'
17316 if test "X$HPUX_IA64_MODE" = X32
; then
17317 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17319 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17321 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17325 hardcode_into_libs
=yes
17326 dynamic_linker
="$host_os dld.sl"
17327 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17328 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330 soname_spec
='${libname}${release}${shared_ext}$major'
17331 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17332 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17336 dynamic_linker
="$host_os dld.sl"
17337 shlibpath_var
=SHLIB_PATH
17338 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec
='${libname}${release}${shared_ext}$major'
17343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17344 postinstall_cmds
='chmod 555 $lib'
17345 # or fails outright, so override atomically:
17346 install_override_mode
=555
17353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17354 soname_spec
='${libname}${release}${shared_ext}$major'
17355 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17356 shlibpath_var
=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath
=no
17358 hardcode_into_libs
=yes
17361 irix5
* | irix6
* | nonstopux
*)
17363 nonstopux
*) version_type
=nonstopux
;;
17365 if test "$lt_cv_prog_gnu_ld" = yes; then
17373 soname_spec
='${libname}${release}${shared_ext}$major'
17374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17376 irix5
* | nonstopux
*)
17377 libsuff
= shlibsuff
=
17380 case $LD in # libtool.m4 will add one of these switches to LD
17381 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17382 libsuff
= shlibsuff
= libmagic
=32-bit;;
17383 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17384 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17385 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17386 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17387 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17391 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17392 shlibpath_overrides_runpath
=no
17393 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17394 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17395 hardcode_into_libs
=yes
17398 # No shared lib support for Linux oldld, aout, or coff.
17399 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17403 # This must be Linux ELF.
17404 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec
='${libname}${release}${shared_ext}$major'
17410 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17411 shlibpath_var
=LD_LIBRARY_PATH
17412 shlibpath_overrides_runpath
=no
17414 # Some binutils ld are patched to set DT_RUNPATH
17415 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17416 $as_echo_n "(cached) " >&6
17418 lt_cv_shlibpath_overrides_runpath
=no
17419 save_LDFLAGS
=$LDFLAGS
17420 save_libdir
=$libdir
17421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17424 /* end confdefs.h. */
17434 if ac_fn_c_try_link
"$LINENO"; then :
17435 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17436 lt_cv_shlibpath_overrides_runpath
=yes
17439 rm -f core conftest.err conftest.
$ac_objext \
17440 conftest
$ac_exeext conftest.
$ac_ext
17441 LDFLAGS
=$save_LDFLAGS
17442 libdir
=$save_libdir
17446 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17448 # This implies no fast_install, which is unacceptable.
17449 # Some rework will be needed to allow for fast_install
17450 # before this can be enabled.
17451 hardcode_into_libs
=yes
17453 # Append ld.so.conf contents to the search path
17454 if test -f /etc
/ld.so.conf
; then
17455 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' ' '`
17456 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17459 # We used to test for /lib/ld.so.1 and disable shared libraries on
17460 # powerpc, because MkLinux only supported shared libraries with the
17461 # GNU dynamic linker. Since this was broken with cross compilers,
17462 # most powerpc-linux boxes support dynamic linking these days and
17463 # people can always --disable-shared, the test was removed, and we
17464 # assume the GNU/Linux dynamic linker is in use.
17465 dynamic_linker
='GNU/Linux ld.so'
17472 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475 dynamic_linker
='NetBSD (a.out) ld.so'
17477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17478 soname_spec
='${libname}${release}${shared_ext}$major'
17479 dynamic_linker
='NetBSD ld.elf_so'
17481 shlibpath_var
=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath
=yes
17483 hardcode_into_libs
=yes
17488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var
=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath
=yes
17497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 soname_spec
='${libname}${release}${shared_ext}$major'
17499 shlibpath_var
=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath
=no
17501 hardcode_into_libs
=yes
17502 dynamic_linker
='ldqnx.so'
17507 sys_lib_dlsearch_path_spec
="/usr/lib"
17509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17511 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17512 *) need_version
=no
;;
17514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17515 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17516 shlibpath_var
=LD_LIBRARY_PATH
17517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17519 openbsd2.
[89] | openbsd2.
[89].
*)
17520 shlibpath_overrides_runpath
=no
17523 shlibpath_overrides_runpath
=yes
17527 shlibpath_overrides_runpath
=yes
17532 libname_spec
='$name'
17535 library_names_spec
='$libname${shared_ext} $libname.a'
17536 dynamic_linker
='OS/2 ld.exe'
17537 shlibpath_var
=LIBPATH
17540 osf3
* | osf4
* | osf5
*)
17544 soname_spec
='${libname}${release}${shared_ext}$major'
17545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546 shlibpath_var
=LD_LIBRARY_PATH
17547 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17548 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 soname_spec
='${libname}${release}${shared_ext}$major'
17561 shlibpath_var
=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath
=yes
17563 hardcode_into_libs
=yes
17564 # ldd complains unless libraries are executable
17565 postinstall_cmds
='chmod +x $lib'
17570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17571 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17572 shlibpath_var
=LD_LIBRARY_PATH
17573 shlibpath_overrides_runpath
=yes
17574 if test "$with_gnu_ld" = yes; then
17582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 soname_spec
='${libname}${release}${shared_ext}$major'
17584 shlibpath_var
=LD_LIBRARY_PATH
17585 case $host_vendor in
17587 shlibpath_overrides_runpath
=no
17589 runpath_var
=LD_RUN_PATH
17597 shlibpath_overrides_runpath
=no
17598 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17604 if test -d /usr
/nec
;then
17606 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17607 soname_spec
='$libname${shared_ext}.$major'
17608 shlibpath_var
=LD_LIBRARY_PATH
17612 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17613 version_type
=freebsd-elf
17616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17617 soname_spec
='${libname}${release}${shared_ext}$major'
17618 shlibpath_var
=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath
=yes
17620 hardcode_into_libs
=yes
17621 if test "$with_gnu_ld" = yes; then
17622 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17624 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17627 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17631 sys_lib_dlsearch_path_spec
='/usr/lib'
17635 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 shlibpath_var
=LD_LIBRARY_PATH
17641 shlibpath_overrides_runpath
=no
17642 hardcode_into_libs
=yes
17647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648 soname_spec
='${libname}${release}${shared_ext}$major'
17649 shlibpath_var
=LD_LIBRARY_PATH
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17657 $as_echo "$dynamic_linker" >&6; }
17658 test "$dynamic_linker" = no
&& can_build_shared
=no
17660 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17661 if test "$GCC" = yes; then
17662 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17666 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17668 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17669 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17766 if test -n "$hardcode_libdir_flag_spec" ||
17767 test -n "$runpath_var" ||
17768 test "X$hardcode_automatic" = "Xyes" ; then
17770 # We can hardcode non-existent directories.
17771 if test "$hardcode_direct" != no
&&
17772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17773 # have to relink, otherwise we might link with an installed library
17774 # when we should be linking with a yet-to-be-installed one
17775 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17776 test "$hardcode_minus_L" != no
; then
17777 # Linking always hardcodes the temporary library directory.
17778 hardcode_action
=relink
17780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17781 hardcode_action
=immediate
17784 # We cannot hardcode anything, or else we can only hardcode existing
17786 hardcode_action
=unsupported
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17789 $as_echo "$hardcode_action" >&6; }
17791 if test "$hardcode_action" = relink ||
17792 test "$inherit_rpath" = yes; then
17793 # Fast installation is not supported
17794 enable_fast_install
=no
17795 elif test "$shlibpath_overrides_runpath" = yes ||
17796 test "$enable_shared" = no
; then
17797 # Fast installation is not necessary
17798 enable_fast_install
=needless
17806 if test "x$enable_dlopen" != xyes
; then
17807 enable_dlopen
=unknown
17808 enable_dlopen_self
=unknown
17809 enable_dlopen_self_static
=unknown
17816 lt_cv_dlopen
="load_add_on"
17818 lt_cv_dlopen_self
=yes
17821 mingw
* | pw32
* | cegcc
*)
17822 lt_cv_dlopen
="LoadLibrary"
17827 lt_cv_dlopen
="dlopen"
17832 # if libdl is installed we need to link against it
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17838 ac_check_lib_save_LIBS
=$LIBS
17840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17858 if ac_fn_c_try_link
"$LINENO"; then :
17859 ac_cv_lib_dl_dlopen
=yes
17861 ac_cv_lib_dl_dlopen
=no
17863 rm -f core conftest.err conftest.
$ac_objext \
17864 conftest
$ac_exeext conftest.
$ac_ext
17865 LIBS
=$ac_check_lib_save_LIBS
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17869 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17870 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17873 lt_cv_dlopen
="dyld"
17875 lt_cv_dlopen_self
=yes
17882 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17883 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17884 lt_cv_dlopen
="shl_load"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17887 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17891 ac_check_lib_save_LIBS
=$LIBS
17893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17906 return shl_load ();
17911 if ac_fn_c_try_link
"$LINENO"; then :
17912 ac_cv_lib_dld_shl_load
=yes
17914 ac_cv_lib_dld_shl_load
=no
17916 rm -f core conftest.err conftest.
$ac_objext \
17917 conftest
$ac_exeext conftest.
$ac_ext
17918 LIBS
=$ac_check_lib_save_LIBS
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17922 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17923 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17925 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17926 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17927 lt_cv_dlopen
="dlopen"
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17932 $as_echo_n "(cached) " >&6
17934 ac_check_lib_save_LIBS
=$LIBS
17936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17954 if ac_fn_c_try_link
"$LINENO"; then :
17955 ac_cv_lib_dl_dlopen
=yes
17957 ac_cv_lib_dl_dlopen
=no
17959 rm -f core conftest.err conftest.
$ac_objext \
17960 conftest
$ac_exeext conftest.
$ac_ext
17961 LIBS
=$ac_check_lib_save_LIBS
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17965 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17966 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17969 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17973 ac_check_lib_save_LIBS
=$LIBS
17974 LIBS
="-lsvld $LIBS"
17975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17978 /* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17993 if ac_fn_c_try_link
"$LINENO"; then :
17994 ac_cv_lib_svld_dlopen
=yes
17996 ac_cv_lib_svld_dlopen
=no
17998 rm -f core conftest.err conftest.
$ac_objext \
17999 conftest
$ac_exeext conftest.
$ac_ext
18000 LIBS
=$ac_check_lib_save_LIBS
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18003 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18004 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18005 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18008 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18010 $as_echo_n "(cached) " >&6
18012 ac_check_lib_save_LIBS
=$LIBS
18014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18015 /* end confdefs.h. */
18017 /* Override any GCC internal prototype to avoid an error.
18018 Use char because int might match the return type of a GCC
18019 builtin and then its argument prototype would still apply. */
18027 return dld_link ();
18032 if ac_fn_c_try_link
"$LINENO"; then :
18033 ac_cv_lib_dld_dld_link
=yes
18035 ac_cv_lib_dld_dld_link
=no
18037 rm -f core conftest.err conftest.
$ac_objext \
18038 conftest
$ac_exeext conftest.
$ac_ext
18039 LIBS
=$ac_check_lib_save_LIBS
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18042 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18043 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18044 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18065 if test "x$lt_cv_dlopen" != xno
; then
18071 case $lt_cv_dlopen in
18073 save_CPPFLAGS
="$CPPFLAGS"
18074 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18076 save_LDFLAGS
="$LDFLAGS"
18077 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18080 LIBS
="$lt_cv_dlopen_libs $LIBS"
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18083 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18084 if test "${lt_cv_dlopen_self+set}" = set; then :
18085 $as_echo_n "(cached) " >&6
18087 if test "$cross_compiling" = yes; then :
18088 lt_cv_dlopen_self
=cross
18090 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18091 lt_status
=$lt_dlunknown
18092 cat > conftest.
$ac_ext <<_LT_EOF
18093 #line 18093 "configure"
18094 #include "confdefs.h"
18103 # define LT_DLGLOBAL RTLD_GLOBAL
18106 # define LT_DLGLOBAL DL_GLOBAL
18108 # define LT_DLGLOBAL 0
18112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18113 find out it does not work in some platform. */
18114 #ifndef LT_DLLAZY_OR_NOW
18116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18119 # define LT_DLLAZY_OR_NOW DL_LAZY
18122 # define LT_DLLAZY_OR_NOW RTLD_NOW
18125 # define LT_DLLAZY_OR_NOW DL_NOW
18127 # define LT_DLLAZY_OR_NOW 0
18134 /* When -fvisbility=hidden is used, assume the code has been annotated
18135 correspondingly for the symbols needed. */
18136 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18137 void fnord () __attribute__((visibility("default")));
18140 void fnord () { int i=42; }
18143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18144 int status = $lt_dlunknown;
18148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18151 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18152 else puts (dlerror ());
18154 /* dlclose (self); */
18162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18163 (eval $ac_link) 2>&5
18165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18166 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18167 (.
/conftest
; exit; ) >&5 2>/dev
/null
18169 case x
$lt_status in
18170 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18171 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18172 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18175 # compilation failed
18176 lt_cv_dlopen_self
=no
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18184 $as_echo "$lt_cv_dlopen_self" >&6; }
18186 if test "x$lt_cv_dlopen_self" = xyes
; then
18187 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18189 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18190 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18191 $as_echo_n "(cached) " >&6
18193 if test "$cross_compiling" = yes; then :
18194 lt_cv_dlopen_self_static
=cross
18196 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18197 lt_status
=$lt_dlunknown
18198 cat > conftest.
$ac_ext <<_LT_EOF
18199 #line 18199 "configure"
18200 #include "confdefs.h"
18209 # define LT_DLGLOBAL RTLD_GLOBAL
18212 # define LT_DLGLOBAL DL_GLOBAL
18214 # define LT_DLGLOBAL 0
18218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18219 find out it does not work in some platform. */
18220 #ifndef LT_DLLAZY_OR_NOW
18222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18225 # define LT_DLLAZY_OR_NOW DL_LAZY
18228 # define LT_DLLAZY_OR_NOW RTLD_NOW
18231 # define LT_DLLAZY_OR_NOW DL_NOW
18233 # define LT_DLLAZY_OR_NOW 0
18240 /* When -fvisbility=hidden is used, assume the code has been annotated
18241 correspondingly for the symbols needed. */
18242 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18243 void fnord () __attribute__((visibility("default")));
18246 void fnord () { int i=42; }
18249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18250 int status = $lt_dlunknown;
18254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18257 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18258 else puts (dlerror ());
18260 /* dlclose (self); */
18268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18269 (eval $ac_link) 2>&5
18271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18272 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18273 (.
/conftest
; exit; ) >&5 2>/dev
/null
18275 case x
$lt_status in
18276 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18277 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18278 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18281 # compilation failed
18282 lt_cv_dlopen_self_static
=no
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18290 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18293 CPPFLAGS
="$save_CPPFLAGS"
18294 LDFLAGS
="$save_LDFLAGS"
18299 case $lt_cv_dlopen_self in
18300 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18301 *) enable_dlopen_self
=unknown
;;
18304 case $lt_cv_dlopen_self_static in
18305 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18306 *) enable_dlopen_self_static
=unknown
;;
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18329 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18330 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18331 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18332 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334 $as_echo "yes" >&6; }
18336 # FIXME - insert some real tests, host_os isn't really good enough
18339 if test -n "$STRIP" ; then
18340 striplib
="$STRIP -x"
18341 old_striplib
="$STRIP -S"
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18343 $as_echo "yes" >&6; }
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18346 $as_echo "no" >&6; }
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 $as_echo "no" >&6; }
18367 # Report which library types will actually be built
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18369 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18371 $as_echo "$can_build_shared" >&6; }
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18374 $as_echo_n "checking whether to build shared libraries... " >&6; }
18375 test "$can_build_shared" = "no" && enable_shared
=no
18377 # On AIX, shared libraries and static libraries use the same namespace, and
18378 # are all built from PIC.
18381 test "$enable_shared" = yes && enable_static
=no
18382 if test -n "$RANLIB"; then
18383 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18384 postinstall_cmds
='$RANLIB $lib'
18389 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18390 test "$enable_shared" = yes && enable_static
=no
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18395 $as_echo "$enable_shared" >&6; }
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18398 $as_echo_n "checking whether to build static libraries... " >&6; }
18399 # Make sure either enable_shared or enable_static is yes.
18400 test "$enable_shared" = yes || enable_static
=yes
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18402 $as_echo "$enable_static" >&6; }
18409 ac_cpp
='$CPP $CPPFLAGS'
18410 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18411 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18412 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18416 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18417 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18418 (test "X$CXX" != "Xg++"))) ; then
18420 ac_cpp
='$CXXCPP $CPPFLAGS'
18421 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18425 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18426 if test -z "$CXXCPP"; then
18427 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18428 $as_echo_n "(cached) " >&6
18430 # Double quotes because CXXCPP needs to be expanded
18431 for CXXCPP
in "$CXX -E" "/lib/cpp"
18433 ac_preproc_ok
=false
18434 for ac_cxx_preproc_warn_flag
in '' yes
18436 # Use a header file that comes with gcc, so configuring glibc
18437 # with a fresh cross-compiler works.
18438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 # <limits.h> exists even on freestanding compilers.
18440 # On the NeXT, cc -E runs the code through the compiler's parser,
18441 # not just through cpp. "Syntax error" is here to catch this case.
18442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18445 # include <limits.h>
18447 # include <assert.h>
18451 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18454 # Broken: fails on valid input.
18457 rm -f conftest.err conftest.
$ac_ext
18459 # OK, works on sane cases. Now check whether nonexistent headers
18460 # can be detected and how.
18461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463 #include <ac_nonexistent.h>
18465 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18466 # Broken: success on invalid input.
18469 # Passes both tests.
18473 rm -f conftest.err conftest.
$ac_ext
18476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18477 rm -f conftest.err conftest.
$ac_ext
18478 if $ac_preproc_ok; then :
18483 ac_cv_prog_CXXCPP
=$CXXCPP
18486 CXXCPP
=$ac_cv_prog_CXXCPP
18488 ac_cv_prog_CXXCPP
=$CXXCPP
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18491 $as_echo "$CXXCPP" >&6; }
18492 ac_preproc_ok
=false
18493 for ac_cxx_preproc_warn_flag
in '' yes
18495 # Use a header file that comes with gcc, so configuring glibc
18496 # with a fresh cross-compiler works.
18497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18498 # <limits.h> exists even on freestanding compilers.
18499 # On the NeXT, cc -E runs the code through the compiler's parser,
18500 # not just through cpp. "Syntax error" is here to catch this case.
18501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18504 # include <limits.h>
18506 # include <assert.h>
18510 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18513 # Broken: fails on valid input.
18516 rm -f conftest.err conftest.
$ac_ext
18518 # OK, works on sane cases. Now check whether nonexistent headers
18519 # can be detected and how.
18520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 #include <ac_nonexistent.h>
18524 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18525 # Broken: success on invalid input.
18528 # Passes both tests.
18532 rm -f conftest.err conftest.
$ac_ext
18535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18536 rm -f conftest.err conftest.
$ac_ext
18537 if $ac_preproc_ok; then :
18540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18542 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18543 See \`config.log' for more details." "$LINENO" 5; }
18547 ac_cpp
='$CPP $CPPFLAGS'
18548 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18549 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18550 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18553 _lt_caught_CXX_error
=yes
18557 ac_cpp
='$CXXCPP $CPPFLAGS'
18558 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18562 archive_cmds_need_lc_CXX
=no
18563 allow_undefined_flag_CXX
=
18564 always_export_symbols_CXX
=no
18565 archive_expsym_cmds_CXX
=
18566 compiler_needs_object_CXX
=no
18567 export_dynamic_flag_spec_CXX
=
18568 hardcode_direct_CXX
=no
18569 hardcode_direct_absolute_CXX
=no
18570 hardcode_libdir_flag_spec_CXX
=
18571 hardcode_libdir_flag_spec_ld_CXX
=
18572 hardcode_libdir_separator_CXX
=
18573 hardcode_minus_L_CXX
=no
18574 hardcode_shlibpath_var_CXX
=unsupported
18575 hardcode_automatic_CXX
=no
18576 inherit_rpath_CXX
=no
18578 module_expsym_cmds_CXX
=
18579 link_all_deplibs_CXX
=unknown
18580 old_archive_cmds_CXX
=$old_archive_cmds
18581 reload_flag_CXX
=$reload_flag
18582 reload_cmds_CXX
=$reload_cmds
18583 no_undefined_flag_CXX
=
18584 whole_archive_flag_spec_CXX
=
18585 enable_shared_with_static_runtimes_CXX
=no
18587 # Source file extension for C++ test sources.
18590 # Object file extension for compiled C++ test sources.
18594 # No sense in running all these tests if we already determined that
18595 # the CXX compiler isn't working. Some variables (like enable_shared)
18596 # are currently assumed to apply to all compilers on this platform,
18597 # and will be corrupted by setting them based on a non-working compiler.
18598 if test "$_lt_caught_CXX_error" != yes; then
18599 # Code to be used in simple compile tests
18600 lt_simple_compile_test_code
="int some_variable = 0;"
18602 # Code to be used in simple link tests
18603 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18612 # If no C compiler was specified, use CC.
18615 # If no C compiler flags were specified, use CFLAGS.
18616 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18618 # Allow CC to be a program name with arguments.
18622 # save warnings/boilerplate of simple test code
18623 ac_outfile
=conftest.
$ac_objext
18624 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18625 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18626 _lt_compiler_boilerplate
=`cat conftest.err`
18629 ac_outfile
=conftest.
$ac_objext
18630 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18631 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18632 _lt_linker_boilerplate
=`cat conftest.err`
18636 # Allow CC to be a program name with arguments.
18641 lt_save_with_gnu_ld
=$with_gnu_ld
18642 lt_save_path_LD
=$lt_cv_path_LD
18643 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18644 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18646 $as_unset lt_cv_prog_gnu_ld
18648 if test -n "${lt_cv_path_LDCXX+set}"; then
18649 lt_cv_path_LD
=$lt_cv_path_LDCXX
18651 $as_unset lt_cv_path_LD
18653 test -z "${LDCXX+set}" || LD
=$LDCXX
18657 for cc_temp
in $compiler""; do
18659 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18660 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18665 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18668 if test -n "$compiler"; then
18669 # We don't want -fno-exception when compiling C++ code, so set the
18670 # no_builtin_flag separately
18671 if test "$GXX" = yes; then
18672 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18674 lt_prog_compiler_no_builtin_flag_CXX
=
18677 if test "$GXX" = yes; then
18678 # Set up default GNU C++ configuration
18682 # Check whether --with-gnu-ld was given.
18683 if test "${with_gnu_ld+set}" = set; then :
18684 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18690 if test "$GCC" = yes; then
18691 # Check if gcc -print-prog-name=ld gives a path.
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18693 $as_echo_n "checking for ld used by $CC... " >&6; }
18696 # gcc leaves a trailing carriage return which upsets mingw
18697 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18699 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18702 # Accept absolute paths.
18704 re_direlt
='/[^/][^/]*/\.\./'
18705 # Canonicalize the pathname of ld
18706 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18707 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18708 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18710 test -z "$LD" && LD
="$ac_prog"
18713 # If it fails, then pretend we aren't using GCC.
18717 # If it is relative, then search for the first ld in PATH.
18718 with_gnu_ld
=unknown
18721 elif test "$with_gnu_ld" = yes; then
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18723 $as_echo_n "checking for GNU ld... " >&6; }
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18726 $as_echo_n "checking for non-GNU ld... " >&6; }
18728 if test "${lt_cv_path_LD+set}" = set; then :
18729 $as_echo_n "(cached) " >&6
18731 if test -z "$LD"; then
18732 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18733 for ac_dir
in $PATH; do
18735 test -z "$ac_dir" && ac_dir
=.
18736 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18737 lt_cv_path_LD
="$ac_dir/$ac_prog"
18738 # Check to see if the program is GNU ld. I'd rather use --version,
18739 # but apparently some variants of GNU ld only accept -v.
18740 # Break only if it was the GNU/non-GNU ld that we prefer.
18741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18742 *GNU
* |
*'with BFD'*)
18743 test "$with_gnu_ld" != no
&& break
18746 test "$with_gnu_ld" != yes && break
18753 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18757 LD
="$lt_cv_path_LD"
18758 if test -n "$LD"; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18760 $as_echo "$LD" >&6; }
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763 $as_echo "no" >&6; }
18765 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18767 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18768 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18769 $as_echo_n "(cached) " >&6
18771 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18772 case `$LD -v 2>&1 </dev/null` in
18773 *GNU
* |
*'with BFD'*)
18774 lt_cv_prog_gnu_ld
=yes
18777 lt_cv_prog_gnu_ld
=no
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18782 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18783 with_gnu_ld
=$lt_cv_prog_gnu_ld
18791 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18792 # archiving commands below assume that GNU ld is being used.
18793 if test "$with_gnu_ld" = yes; then
18794 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18795 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'
18797 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18798 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18800 # If archive_cmds runs LD, not CC, wlarc should be empty
18801 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18802 # investigate it a little bit more. (MM)
18805 # ancient GNU ld didn't support --whole-archive et. al.
18806 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18807 $GREP 'no-whole-archive' > /dev
/null
; then
18808 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18810 whole_archive_flag_spec_CXX
=
18816 # A generic and very simple default shared library creation
18817 # command for GNU C++ for the case where it uses the native
18818 # linker, instead of GNU ld. If possible, this setting should
18819 # overridden to take advantage of the native linker features on
18820 # the platform it is being used on.
18821 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18824 # Commands to make compiler produce verbose output that lists
18825 # what "hidden" libraries, object files and flags are used when
18826 # linking a shared library.
18827 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18835 # PORTME: fill in a description of your system's C++ link characteristics
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18837 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18841 # FIXME: insert proper C++ library support
18845 if test "$host_cpu" = ia64
; then
18846 # On IA64, the linker does run time linking by default, so we don't
18847 # have to do anything special.
18848 aix_use_runtimelinking
=no
18849 exp_sym_flag
='-Bexport'
18852 aix_use_runtimelinking
=no
18854 # Test if we are trying to use run time linking or normal
18855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18856 # need to do runtime linking.
18857 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18858 for ld_flag
in $LDFLAGS; do
18861 aix_use_runtimelinking
=yes
18869 exp_sym_flag
='-bexport'
18870 no_entry_flag
='-bnoentry'
18873 # When large executables or shared objects are built, AIX ld can
18874 # have problems creating the table of contents. If linking a library
18875 # or program results in "error TOC overflow" add -mminimal-toc to
18876 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18877 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18879 archive_cmds_CXX
=''
18880 hardcode_direct_CXX
=yes
18881 hardcode_direct_absolute_CXX
=yes
18882 hardcode_libdir_separator_CXX
=':'
18883 link_all_deplibs_CXX
=yes
18884 file_list_spec_CXX
='${wl}-f,'
18886 if test "$GXX" = yes; then
18887 case $host_os in aix4.
[012]|aix4.
[012].
*)
18888 # We only want to do this on AIX 4.2 and lower, the check
18889 # below for broken collect2 doesn't work under 4.3+
18890 collect2name
=`${CC} -print-prog-name=collect2`
18891 if test -f "$collect2name" &&
18892 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18894 # We have reworked collect2
18897 # We have old collect2
18898 hardcode_direct_CXX
=unsupported
18899 # It fails to find uninstalled libraries when the uninstalled
18900 # path is not listed in the libpath. Setting hardcode_minus_L
18901 # to unsupported forces relinking
18902 hardcode_minus_L_CXX
=yes
18903 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18904 hardcode_libdir_separator_CXX
=
18907 shared_flag
='-shared'
18908 if test "$aix_use_runtimelinking" = yes; then
18909 shared_flag
="$shared_flag "'${wl}-G'
18913 if test "$host_cpu" = ia64
; then
18914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18915 # chokes on -Wl,-G. The following line is correct:
18918 if test "$aix_use_runtimelinking" = yes; then
18919 shared_flag
='${wl}-G'
18921 shared_flag
='${wl}-bM:SRE'
18926 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18927 # It seems that -bexpall does not export symbols beginning with
18928 # underscore (_), so it is better to generate a list of symbols to
18930 always_export_symbols_CXX
=yes
18931 if test "$aix_use_runtimelinking" = yes; then
18932 # Warning - without using the other runtime loading flags (-brtl),
18933 # -berok will link without error, but may produce a broken library.
18934 allow_undefined_flag_CXX
='-berok'
18935 # Determine the default libpath from the value encoded in an empty
18937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18948 if ac_fn_cxx_try_link
"$LINENO"; then :
18950 lt_aix_libpath_sed
='
18951 /Import File Strings/,/^$/ {
18957 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 # Check for a 64-bit object if we didn't find anything.
18959 if test -z "$aix_libpath"; then
18960 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18963 rm -f core conftest.err conftest.
$ac_objext \
18964 conftest
$ac_exeext conftest.
$ac_ext
18965 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18967 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18969 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"
18971 if test "$host_cpu" = ia64
; then
18972 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18973 allow_undefined_flag_CXX
="-z nodefs"
18974 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"
18976 # Determine the default libpath from the value encoded in an
18977 # empty executable.
18978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18989 if ac_fn_cxx_try_link
"$LINENO"; then :
18991 lt_aix_libpath_sed
='
18992 /Import File Strings/,/^$/ {
18998 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18999 # Check for a 64-bit object if we didn't find anything.
19000 if test -z "$aix_libpath"; then
19001 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19004 rm -f core conftest.err conftest.
$ac_objext \
19005 conftest
$ac_exeext conftest.
$ac_ext
19006 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19008 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19009 # Warning - without using the other run time loading flags,
19010 # -berok will link without error, but may produce a broken library.
19011 no_undefined_flag_CXX
=' ${wl}-bernotok'
19012 allow_undefined_flag_CXX
=' ${wl}-berok'
19013 if test "$with_gnu_ld" = yes; then
19014 # We only use this code for GNU lds that support --whole-archive.
19015 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19017 # Exported symbols can be pulled into shared objects from archives
19018 whole_archive_flag_spec_CXX
='$convenience'
19020 archive_cmds_need_lc_CXX
=yes
19021 # This is similar to how AIX traditionally builds its shared
19023 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'
19029 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19030 allow_undefined_flag_CXX
=unsupported
19031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19032 # support --undefined. This deserves some investigation. FIXME
19033 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19040 case $cc_basename in
19042 # FIXME: insert proper C++ library support
19048 cygwin
* | mingw
* | pw32
* | cegcc
*)
19049 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19050 # as there is no search path for DLLs.
19051 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19052 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19053 allow_undefined_flag_CXX
=unsupported
19054 always_export_symbols_CXX
=no
19055 enable_shared_with_static_runtimes_CXX
=yes
19057 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19058 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'
19059 # If the export-symbols file already is a .def file (1st line
19060 # is EXPORTS), use it as is; otherwise, prepend...
19061 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19062 cp $export_symbols $output_objdir/$soname.def;
19064 echo EXPORTS > $output_objdir/$soname.def;
19065 cat $export_symbols >> $output_objdir/$soname.def;
19067 $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'
19072 darwin
* | rhapsody
*)
19075 archive_cmds_need_lc_CXX
=no
19076 hardcode_direct_CXX
=no
19077 hardcode_automatic_CXX
=yes
19078 hardcode_shlibpath_var_CXX
=unsupported
19079 if test "$lt_cv_ld_force_load" = "yes"; then
19080 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\"`'
19082 whole_archive_flag_spec_CXX
=''
19084 link_all_deplibs_CXX
=yes
19085 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19086 case $cc_basename in
19087 ifort
*) _lt_dar_can_shared
=yes ;;
19088 *) _lt_dar_can_shared
=$GCC ;;
19090 if test "$_lt_dar_can_shared" = "yes"; then
19091 output_verbose_link_cmd
=func_echo_all
19092 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}"
19093 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19094 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}"
19095 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}"
19096 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19097 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}"
19098 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}"
19108 case $cc_basename in
19110 # FIXME: insert proper C++ library support
19114 # Green Hills C++ Compiler
19115 # FIXME: insert proper C++ library support
19119 # FIXME: insert proper C++ library support
19126 # C++ shared libraries reported to be fairly broken before
19132 archive_cmds_need_lc_CXX
=no
19135 freebsd
* | dragonfly
*)
19136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19145 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19146 link_all_deplibs_CXX
=yes
19150 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19151 hardcode_libdir_separator_CXX
=:
19152 export_dynamic_flag_spec_CXX
='${wl}-E'
19153 hardcode_direct_CXX
=yes
19154 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19155 # but as the default
19156 # location of the library.
19158 case $cc_basename in
19160 # FIXME: insert proper C++ library support
19164 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'
19165 # Commands to make compiler produce verbose output that lists
19166 # what "hidden" libraries, object files and flags are used when
19167 # linking a shared library.
19169 # There doesn't appear to be a way to prevent this compiler from
19170 # explicitly linking system object files so we need to strip them
19171 # from the output so that they don't get included in the library
19173 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"'
19176 if test "$GXX" = yes; then
19177 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'
19179 # FIXME: insert proper C++ library support
19187 if test $with_gnu_ld = no
; then
19188 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19189 hardcode_libdir_separator_CXX
=:
19195 export_dynamic_flag_spec_CXX
='${wl}-E'
19201 hardcode_direct_CXX
=no
19202 hardcode_shlibpath_var_CXX
=no
19205 hardcode_direct_CXX
=yes
19206 hardcode_direct_absolute_CXX
=yes
19207 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19208 # but as the default
19209 # location of the library.
19213 case $cc_basename in
19215 # FIXME: insert proper C++ library support
19221 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19224 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19227 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 # Commands to make compiler produce verbose output that lists
19231 # what "hidden" libraries, object files and flags are used when
19232 # linking a shared library.
19234 # There doesn't appear to be a way to prevent this compiler from
19235 # explicitly linking system object files so we need to strip them
19236 # from the output so that they don't get included in the library
19238 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"'
19241 if test "$GXX" = yes; then
19242 if test $with_gnu_ld = no
; then
19245 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19248 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 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'
19256 # FIXME: insert proper C++ library support
19264 hardcode_direct_CXX
=no
19265 hardcode_shlibpath_var_CXX
=no
19266 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19267 export_dynamic_flag_spec_CXX
='${wl}-E'
19268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19269 # Instead, shared libraries are loaded at an image base (0x10000000 by
19270 # default) and relocated if they conflict, which is a slow very memory
19271 # consuming and fragmenting process. To avoid this, we pick a random,
19272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19274 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'
19275 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'
19278 case $cc_basename in
19281 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'
19283 # Archives containing C++ object files must be created using
19284 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19285 # necessary to make sure instantiated templates are included
19287 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19290 if test "$GXX" = yes; then
19291 if test "$with_gnu_ld" = no
; then
19292 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'
19294 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'
19297 link_all_deplibs_CXX
=yes
19300 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19301 hardcode_libdir_separator_CXX
=:
19302 inherit_rpath_CXX
=yes
19305 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19306 case $cc_basename in
19308 # Kuck and Associates, Inc. (KAI) C++ Compiler
19310 # KCC will only create a shared library if the output file
19311 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19312 # to its proper name (with version) after linking.
19313 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'
19314 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'
19315 # Commands to make compiler produce verbose output that lists
19316 # what "hidden" libraries, object files and flags are used when
19317 # linking a shared library.
19319 # There doesn't appear to be a way to prevent this compiler from
19320 # explicitly linking system object files so we need to strip them
19321 # from the output so that they don't get included in the library
19323 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"'
19325 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19326 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19328 # Archives containing C++ object files must be created using
19329 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19330 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19335 # version 8.0 and above of icpc choke on multiply defined symbols
19336 # if we add $predep_objects and $postdep_objects, however 7.1 and
19337 # earlier do not add the objects themselves.
19338 case `$CC -V 2>&1` in
19340 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19341 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'
19343 *) # Version 8.0 or newer
19346 ia64
*) tmp_idyn
=' -i_dynamic';;
19348 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19349 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'
19352 archive_cmds_need_lc_CXX
=no
19353 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19354 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19355 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19358 # Portland Group C++ compiler
19360 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19361 prelink_cmds_CXX
='tpldir=Template.dir~
19363 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19364 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19365 old_archive_cmds_CXX
='tpldir=Template.dir~
19367 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19368 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19370 archive_cmds_CXX
='tpldir=Template.dir~
19372 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19373 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19374 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19376 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19377 $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'
19379 *) # Version 6 and above use weak symbols
19380 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19381 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'
19385 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19386 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19387 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'
19391 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19392 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'
19394 runpath_var
=LD_RUN_PATH
19395 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19396 hardcode_libdir_separator_CXX
=:
19398 # Commands to make compiler produce verbose output that lists
19399 # what "hidden" libraries, object files and flags are used when
19400 # linking a shared library.
19402 # There doesn't appear to be a way to prevent this compiler from
19403 # explicitly linking system object files so we need to strip them
19404 # from the output so that they don't get included in the library
19406 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'
19408 xl
* | mpixl
* | bgxl
*)
19409 # IBM XL 8.0 on PPC, with GNU ld
19410 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19411 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19412 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19413 if test "x$supports_anon_versioning" = xyes
; then
19414 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19416 echo "local: *; };" >> $output_objdir/$libname.ver~
19417 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19421 case `$CC -V 2>&1 | sed 5q` in
19424 no_undefined_flag_CXX
=' -zdefs'
19425 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19426 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'
19427 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19428 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'
19429 compiler_needs_object_CXX
=yes
19431 # Not sure whether something based on
19432 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19434 output_verbose_link_cmd
='func_echo_all'
19436 # Archives containing C++ object files must be created using
19437 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19438 # necessary to make sure instantiated templates are included
19440 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19448 # FIXME: insert proper C++ library support
19453 # FIXME: insert proper C++ library support
19458 case $cc_basename in
19460 # FIXME: insert proper C++ library support
19464 # FIXME: insert proper C++ library support
19471 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19472 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19474 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19475 hardcode_direct_CXX
=yes
19476 hardcode_shlibpath_var_CXX
=no
19478 # Workaround some broken pre-1.5 toolchains
19479 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19487 # C++ shared libraries are fairly broken
19492 if test -f /usr
/libexec
/ld.so
; then
19493 hardcode_direct_CXX
=yes
19494 hardcode_shlibpath_var_CXX
=no
19495 hardcode_direct_absolute_CXX
=yes
19496 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19497 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19499 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19500 export_dynamic_flag_spec_CXX
='${wl}-E'
19501 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19503 output_verbose_link_cmd
=func_echo_all
19509 osf3
* | osf4
* | osf5
*)
19510 case $cc_basename in
19512 # Kuck and Associates, Inc. (KAI) C++ Compiler
19514 # KCC will only create a shared library if the output file
19515 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19516 # to its proper name (with version) after linking.
19517 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'
19519 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19520 hardcode_libdir_separator_CXX
=:
19522 # Archives containing C++ object files must be created using
19523 # the KAI C++ compiler.
19525 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19526 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19530 # Rational C++ 2.4.1
19531 # FIXME: insert proper C++ library support
19537 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19538 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'
19539 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19542 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19543 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'
19544 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19545 echo "-hidden">> $lib.exp~
19546 $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~
19548 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19552 hardcode_libdir_separator_CXX
=:
19554 # Commands to make compiler produce verbose output that lists
19555 # what "hidden" libraries, object files and flags are used when
19556 # linking a shared library.
19558 # There doesn't appear to be a way to prevent this compiler from
19559 # explicitly linking system object files so we need to strip them
19560 # from the output so that they don't get included in the library
19562 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"'
19565 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19566 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19569 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'
19572 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'
19576 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19577 hardcode_libdir_separator_CXX
=:
19579 # Commands to make compiler produce verbose output that lists
19580 # what "hidden" libraries, object files and flags are used when
19581 # linking a shared library.
19582 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19585 # FIXME: insert proper C++ library support
19593 # FIXME: insert proper C++ library support
19598 case $cc_basename in
19601 # FIXME: insert proper C++ library support
19606 # FIXME: insert proper C++ library support
19610 # FIXME: insert proper C++ library support
19617 case $cc_basename in
19619 # Sun C++ 4.2, 5.x and Centerline C++
19620 archive_cmds_need_lc_CXX
=yes
19621 no_undefined_flag_CXX
=' -zdefs'
19622 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19623 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19624 $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'
19626 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19627 hardcode_shlibpath_var_CXX
=no
19629 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19631 # The compiler driver will combine and reorder linker options,
19632 # but understands `-z linker_flag'.
19633 # Supported since Solaris 2.6 (maybe 2.5.1?)
19634 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19637 link_all_deplibs_CXX
=yes
19639 output_verbose_link_cmd
='func_echo_all'
19641 # Archives containing C++ object files must be created using
19642 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19643 # necessary to make sure instantiated templates are included
19645 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19648 # Green Hills C++ Compiler
19649 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19651 # The C++ compiler must be used to create the archive.
19652 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19655 # GNU C++ compiler with Solaris linker
19656 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19657 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19658 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19659 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19660 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19661 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19663 # Commands to make compiler produce verbose output that lists
19664 # what "hidden" libraries, object files and flags are used when
19665 # linking a shared library.
19666 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19668 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19670 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19671 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19672 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19674 # Commands to make compiler produce verbose output that lists
19675 # what "hidden" libraries, object files and flags are used when
19676 # linking a shared library.
19677 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19680 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19682 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19684 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19692 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19693 no_undefined_flag_CXX
='${wl}-z,text'
19694 archive_cmds_need_lc_CXX
=no
19695 hardcode_shlibpath_var_CXX
=no
19696 runpath_var
='LD_RUN_PATH'
19698 case $cc_basename in
19700 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19701 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19704 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19705 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19710 sysv5
* | sco3.2v5
* | sco5v6
*)
19711 # Note: We can NOT use -z defs as we might desire, because we do not
19712 # link with -lc, and that would cause any symbols used from libc to
19713 # always be unresolved, which means just about no library would
19714 # ever link correctly. If we're not using GNU ld we use -z text
19715 # though, which does catch some bad symbols but isn't as heavy-handed
19717 no_undefined_flag_CXX
='${wl}-z,text'
19718 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19719 archive_cmds_need_lc_CXX
=no
19720 hardcode_shlibpath_var_CXX
=no
19721 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19722 hardcode_libdir_separator_CXX
=':'
19723 link_all_deplibs_CXX
=yes
19724 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19725 runpath_var
='LD_RUN_PATH'
19727 case $cc_basename in
19729 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19730 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19731 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19732 '"$old_archive_cmds_CXX"
19733 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19734 '"$reload_cmds_CXX"
19737 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19738 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19744 case $cc_basename in
19746 # NonStop-UX NCC 3.20
19747 # FIXME: insert proper C++ library support
19751 # FIXME: insert proper C++ library support
19758 # FIXME: insert proper C++ library support
19763 # FIXME: insert proper C++ library support
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19769 $as_echo "$ld_shlibs_CXX" >&6; }
19770 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19776 ## There is no encapsulation within the following macros, do not change
19777 ## the running order or otherwise move them around unless you know exactly
19778 ## what you are doing...
19779 # Dependencies to place before and after the object being linked:
19780 predep_objects_CXX
=
19781 postdep_objects_CXX
=
19784 compiler_lib_search_path_CXX
=
19786 cat > conftest.
$ac_ext <<_LT_EOF
19790 Foo (void) { a = 0; }
19796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19797 (eval $ac_compile) 2>&5
19799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19800 test $ac_status = 0; }; then
19801 # Parse the compiler output and extract the necessary
19802 # objects, libraries and library flags.
19804 # Sentinel used to keep track of whether or not we are before
19805 # the conftest object file.
19806 pre_test_object_deps_done
=no
19808 for p
in `eval "$output_verbose_link_cmd"`; do
19812 # Some compilers place space between "-{L,R}" and the path.
19813 # Remove the space.
19814 if test $p = "-L" ||
19815 test $p = "-R"; then
19822 if test "$pre_test_object_deps_done" = no
; then
19825 # Internal compiler library paths should come after those
19826 # provided the user. The postdeps already come after the
19827 # user supplied libs so there is no need to process them.
19828 if test -z "$compiler_lib_search_path_CXX"; then
19829 compiler_lib_search_path_CXX
="${prev}${p}"
19831 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19834 # The "-l" case would never come before the object being
19835 # linked, so don't bother handling this case.
19838 if test -z "$postdeps_CXX"; then
19839 postdeps_CXX
="${prev}${p}"
19841 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19847 # This assumes that the test object file only shows up
19848 # once in the compiler output.
19849 if test "$p" = "conftest.$objext"; then
19850 pre_test_object_deps_done
=yes
19854 if test "$pre_test_object_deps_done" = no
; then
19855 if test -z "$predep_objects_CXX"; then
19856 predep_objects_CXX
="$p"
19858 predep_objects_CXX
="$predep_objects_CXX $p"
19861 if test -z "$postdep_objects_CXX"; then
19862 postdep_objects_CXX
="$p"
19864 postdep_objects_CXX
="$postdep_objects_CXX $p"
19869 *) ;; # Ignore the rest.
19877 echo "libtool.m4: error: problem compiling CXX test program"
19880 $RM -f confest.
$objext
19882 # PORTME: override above test on systems where it is broken
19885 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19886 # hack all around it, let's just trust "g++" to DTRT.
19887 predep_objects_CXX
=
19888 postdep_objects_CXX
=
19893 case `$CC -V 2>&1 | sed 5q` in
19897 # The more standards-conforming stlport4 library is
19898 # incompatible with the Cstd library. Avoid specifying
19899 # it if it's in CXXFLAGS. Ignore libCrun as
19900 # -library=stlport4 depends on it.
19901 case " $CXX $CXXFLAGS " in
19902 *" -library=stlport4 "*)
19903 solaris_use_stlport4
=yes
19907 if test "$solaris_use_stlport4" != yes; then
19908 postdeps_CXX
='-library=Cstd -library=Crun'
19915 case $cc_basename in
19917 # The more standards-conforming stlport4 library is
19918 # incompatible with the Cstd library. Avoid specifying
19919 # it if it's in CXXFLAGS. Ignore libCrun as
19920 # -library=stlport4 depends on it.
19921 case " $CXX $CXXFLAGS " in
19922 *" -library=stlport4 "*)
19923 solaris_use_stlport4
=yes
19927 # Adding this requires a known-good setup of shared libraries for
19928 # Sun compiler versions before 5.6, else PIC objects from an old
19929 # archive will be linked into the output, leading to subtle bugs.
19930 if test "$solaris_use_stlport4" != yes; then
19931 postdeps_CXX
='-library=Cstd -library=Crun'
19939 case " $postdeps_CXX " in
19940 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19942 compiler_lib_search_dirs_CXX
=
19943 if test -n "${compiler_lib_search_path_CXX}"; then
19944 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19977 lt_prog_compiler_wl_CXX
=
19978 lt_prog_compiler_pic_CXX
=
19979 lt_prog_compiler_static_CXX
=
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19982 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19984 # C++ specific cases for pic, static, wl, etc.
19985 if test "$GXX" = yes; then
19986 lt_prog_compiler_wl_CXX
='-Wl,'
19987 lt_prog_compiler_static_CXX
='-static'
19991 # All AIX code is PIC.
19992 if test "$host_cpu" = ia64
; then
19993 # AIX 5 now supports IA64 processor
19994 lt_prog_compiler_static_CXX
='-Bstatic'
19996 lt_prog_compiler_pic_CXX
='-fPIC'
20002 # see comment about AmigaOS4 .so support
20003 lt_prog_compiler_pic_CXX
='-fPIC'
20006 # FIXME: we need at least 68020 code to build shared libraries, but
20007 # adding the `-m68020' flag to GCC prevents building anything better,
20009 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20014 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20015 # PIC is the default for these OSes.
20017 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20018 # This hack is so that the source file can tell whether it is being
20019 # built for inclusion in a dll (and should export symbols for example).
20020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20021 # (--disable-auto-import) libraries
20022 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20024 darwin
* | rhapsody
*)
20025 # PIC is the default on this platform
20026 # Common symbols not allowed in MH_DYLIB files
20027 lt_prog_compiler_pic_CXX
='-fno-common'
20030 # DJGPP does not support shared libraries at all
20031 lt_prog_compiler_pic_CXX
=
20034 # PIC is the default for Haiku.
20035 # The "-static" flag exists, but is broken.
20036 lt_prog_compiler_static_CXX
=
20039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20040 # Instead, we relocate shared libraries at runtime.
20043 if test -d /usr
/nec
; then
20044 lt_prog_compiler_pic_CXX
=-Kconform_pic
20048 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20049 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20050 # sets the default TLS model and affects inlining.
20055 lt_prog_compiler_pic_CXX
='-fPIC'
20060 # QNX uses GNU C++, but need to define -shared option too, otherwise
20061 # it will coredump.
20062 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20065 lt_prog_compiler_pic_CXX
='-fPIC'
20071 # All AIX code is PIC.
20072 if test "$host_cpu" = ia64
; then
20073 # AIX 5 now supports IA64 processor
20074 lt_prog_compiler_static_CXX
='-Bstatic'
20076 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20080 case $cc_basename in
20082 # Green Hills C++ Compiler
20083 # _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"
20088 case $cc_basename in
20090 lt_prog_compiler_pic_CXX
='-KPIC'
20093 # Green Hills C++ Compiler
20094 lt_prog_compiler_pic_CXX
='-pic'
20100 freebsd
* | dragonfly
*)
20101 # FreeBSD uses GNU C++
20103 hpux9
* | hpux10
* | hpux11
*)
20104 case $cc_basename in
20106 lt_prog_compiler_wl_CXX
='-Wl,'
20107 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20108 if test "$host_cpu" != ia64
; then
20109 lt_prog_compiler_pic_CXX
='+Z'
20113 lt_prog_compiler_wl_CXX
='-Wl,'
20114 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20120 lt_prog_compiler_pic_CXX
='+Z'
20129 # This is c89, which is MS Visual C++ (no shared libs)
20130 # Anyone wants to do a port?
20132 irix5
* | irix6
* | nonstopux
*)
20133 case $cc_basename in
20135 lt_prog_compiler_wl_CXX
='-Wl,'
20136 lt_prog_compiler_static_CXX
='-non_shared'
20137 # CC pic flag -KPIC is the default.
20143 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20144 case $cc_basename in
20147 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20148 lt_prog_compiler_pic_CXX
='-fPIC'
20151 # old Intel C++ for x86_64 which still supported -KPIC.
20152 lt_prog_compiler_wl_CXX
='-Wl,'
20153 lt_prog_compiler_pic_CXX
='-KPIC'
20154 lt_prog_compiler_static_CXX
='-static'
20157 # Intel C++, used to be incompatible with GCC.
20158 # ICC 10 doesn't accept -KPIC any more.
20159 lt_prog_compiler_wl_CXX
='-Wl,'
20160 lt_prog_compiler_pic_CXX
='-fPIC'
20161 lt_prog_compiler_static_CXX
='-static'
20164 # Portland Group C++ compiler
20165 lt_prog_compiler_wl_CXX
='-Wl,'
20166 lt_prog_compiler_pic_CXX
='-fpic'
20167 lt_prog_compiler_static_CXX
='-Bstatic'
20171 # Make sure the PIC flag is empty. It appears that all Alpha
20172 # Linux and Compaq Tru64 Unix objects are PIC.
20173 lt_prog_compiler_pic_CXX
=
20174 lt_prog_compiler_static_CXX
='-non_shared'
20176 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20177 # IBM XL 8.0, 9.0 on PPC and BlueGene
20178 lt_prog_compiler_wl_CXX
='-Wl,'
20179 lt_prog_compiler_pic_CXX
='-qpic'
20180 lt_prog_compiler_static_CXX
='-qstaticlink'
20183 case `$CC -V 2>&1 | sed 5q` in
20186 lt_prog_compiler_pic_CXX
='-KPIC'
20187 lt_prog_compiler_static_CXX
='-Bstatic'
20188 lt_prog_compiler_wl_CXX
='-Qoption ld '
20199 case $cc_basename in
20201 lt_prog_compiler_pic_CXX
='-W c,exportall'
20210 # QNX uses GNU C++, but need to define -shared option too, otherwise
20211 # it will coredump.
20212 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20214 osf3
* | osf4
* | osf5
*)
20215 case $cc_basename in
20217 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20220 # Rational C++ 2.4.1
20221 lt_prog_compiler_pic_CXX
='-pic'
20224 # Digital/Compaq C++
20225 lt_prog_compiler_wl_CXX
='-Wl,'
20226 # Make sure the PIC flag is empty. It appears that all Alpha
20227 # Linux and Compaq Tru64 Unix objects are PIC.
20228 lt_prog_compiler_pic_CXX
=
20229 lt_prog_compiler_static_CXX
='-non_shared'
20238 case $cc_basename in
20240 # Sun C++ 4.2, 5.x and Centerline C++
20241 lt_prog_compiler_pic_CXX
='-KPIC'
20242 lt_prog_compiler_static_CXX
='-Bstatic'
20243 lt_prog_compiler_wl_CXX
='-Qoption ld '
20246 # Green Hills C++ Compiler
20247 lt_prog_compiler_pic_CXX
='-PIC'
20254 case $cc_basename in
20257 lt_prog_compiler_pic_CXX
='-pic'
20258 lt_prog_compiler_static_CXX
='-Bstatic'
20262 lt_prog_compiler_pic_CXX
='-pic'
20268 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20269 case $cc_basename in
20271 lt_prog_compiler_wl_CXX
='-Wl,'
20272 lt_prog_compiler_pic_CXX
='-KPIC'
20273 lt_prog_compiler_static_CXX
='-Bstatic'
20278 case $cc_basename in
20280 # NonStop-UX NCC 3.20
20281 lt_prog_compiler_pic_CXX
='-KPIC'
20290 lt_prog_compiler_can_build_shared_CXX
=no
20296 # For platforms which do not support PIC, -DPIC is meaningless:
20298 lt_prog_compiler_pic_CXX
=
20301 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20305 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20310 # Check to make sure the PIC flag actually works.
20312 if test -n "$lt_prog_compiler_pic_CXX"; then
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20315 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20316 $as_echo_n "(cached) " >&6
20318 lt_cv_prog_compiler_pic_works_CXX
=no
20319 ac_outfile
=conftest.
$ac_objext
20320 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20321 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20322 # Insert the option either (1) after the last *FLAGS variable, or
20323 # (2) before a word containing "conftest.", or (3) at the end.
20324 # Note that $ac_compile itself does not contain backslashes and begins
20325 # with a dollar sign (not a hyphen), so the echo should work correctly.
20326 # The option is referenced via a variable to avoid confusing sed.
20327 lt_compile
=`echo "$ac_compile" | $SED \
20328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20330 -e 's:$: $lt_compiler_flag:'`
20331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20332 (eval "$lt_compile" 2>conftest.err
)
20334 cat conftest.err
>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 if (exit $ac_status) && test -s "$ac_outfile"; then
20337 # The compiler can only warn and ignore the option if not recognized
20338 # So say no if there are warnings other than the usual output.
20339 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20340 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20341 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20342 lt_cv_prog_compiler_pic_works_CXX
=yes
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20349 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20351 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20352 case $lt_prog_compiler_pic_CXX in
20354 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20357 lt_prog_compiler_pic_CXX
=
20358 lt_prog_compiler_can_build_shared_CXX
=no
20366 # Check to make sure the static flag actually works.
20368 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20370 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20371 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20372 $as_echo_n "(cached) " >&6
20374 lt_cv_prog_compiler_static_works_CXX
=no
20375 save_LDFLAGS
="$LDFLAGS"
20376 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20377 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20378 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20379 # The linker can only warn and ignore the option if not recognized
20380 # So say no if there are warnings
20381 if test -s conftest.err
; then
20382 # Append any errors to the config.log.
20383 cat conftest.err
1>&5
20384 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20385 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20386 if diff conftest.exp conftest.er2
>/dev
/null
; then
20387 lt_cv_prog_compiler_static_works_CXX
=yes
20390 lt_cv_prog_compiler_static_works_CXX
=yes
20394 LDFLAGS
="$save_LDFLAGS"
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20398 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20400 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20403 lt_prog_compiler_static_CXX
=
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20412 $as_echo_n "(cached) " >&6
20414 lt_cv_prog_compiler_c_o_CXX
=no
20415 $RM -r conftest
2>/dev
/null
20419 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20421 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20422 # Insert the option either (1) after the last *FLAGS variable, or
20423 # (2) before a word containing "conftest.", or (3) at the end.
20424 # Note that $ac_compile itself does not contain backslashes and begins
20425 # with a dollar sign (not a hyphen), so the echo should work correctly.
20426 lt_compile
=`echo "$ac_compile" | $SED \
20427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20429 -e 's:$: $lt_compiler_flag:'`
20430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20431 (eval "$lt_compile" 2>out
/conftest.err
)
20433 cat out
/conftest.err
>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20437 # The compiler can only warn and ignore the option if not recognized
20438 # So say no if there are warnings
20439 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20440 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20441 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20442 lt_cv_prog_compiler_c_o_CXX
=yes
20447 # SGI C++ compiler will create directory out/ii_files/ for
20448 # template instantiation
20449 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20450 $RM out
/* && rmdir out
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20457 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20463 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20464 $as_echo_n "(cached) " >&6
20466 lt_cv_prog_compiler_c_o_CXX
=no
20467 $RM -r conftest
2>/dev
/null
20471 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20473 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20474 # Insert the option either (1) after the last *FLAGS variable, or
20475 # (2) before a word containing "conftest.", or (3) at the end.
20476 # Note that $ac_compile itself does not contain backslashes and begins
20477 # with a dollar sign (not a hyphen), so the echo should work correctly.
20478 lt_compile
=`echo "$ac_compile" | $SED \
20479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20481 -e 's:$: $lt_compiler_flag:'`
20482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20483 (eval "$lt_compile" 2>out
/conftest.err
)
20485 cat out
/conftest.err
>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20489 # The compiler can only warn and ignore the option if not recognized
20490 # So say no if there are warnings
20491 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20492 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20493 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20494 lt_cv_prog_compiler_c_o_CXX
=yes
20499 # SGI C++ compiler will create directory out/ii_files/ for
20500 # template instantiation
20501 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20502 $RM out
/* && rmdir out
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20509 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20514 hard_links
="nottested"
20515 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20516 # do not overwrite the value of need_locks provided by the user
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20518 $as_echo_n "checking if we can lock with hard links... " >&6; }
20521 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20523 ln conftest.a conftest.b
2>&5 || hard_links
=no
20524 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20526 $as_echo "$hard_links" >&6; }
20527 if test "$hard_links" = no
; then
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20541 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20544 # If we're using GNU nm, then we don't want the "-C" option.
20545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20546 # Also, AIX nm treats weak defined symbols like other global defined
20547 # symbols, whereas GNU nm marks them as "W".
20548 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20549 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'
20551 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'
20555 export_symbols_cmds_CXX
="$ltdll_cmds"
20557 cygwin
* | mingw
* | cegcc
*)
20558 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'
20561 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20564 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20567 $as_echo "$ld_shlibs_CXX" >&6; }
20568 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20570 with_gnu_ld_CXX
=$with_gnu_ld
20578 # Do we need to explicitly link libc?
20580 case "x$archive_cmds_need_lc_CXX" in
20582 # Assume -lc should be added
20583 archive_cmds_need_lc_CXX
=yes
20585 if test "$enable_shared" = yes && test "$GCC" = yes; then
20586 case $archive_cmds_CXX in
20588 # FIXME: we may have to deal with multi-command sequences.
20591 # Test whether the compiler implicitly links with -lc since on some
20592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20593 # to ld, don't add -lc before -lgcc.
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20596 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20597 $as_echo_n "(cached) " >&6
20600 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20603 (eval $ac_compile) 2>&5
20605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20606 test $ac_status = 0; } 2>conftest.err
; then
20609 libobjs
=conftest.
$ac_objext
20611 wl
=$lt_prog_compiler_wl_CXX
20612 pic_flag
=$lt_prog_compiler_pic_CXX
20618 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20619 allow_undefined_flag_CXX
=
20620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20621 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20624 test $ac_status = 0; }
20626 lt_cv_archive_cmds_need_lc_CXX
=no
20628 lt_cv_archive_cmds_need_lc_CXX
=yes
20630 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20632 cat conftest.err
1>&5
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20638 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20639 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20710 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20712 library_names_spec
=
20713 libname_spec
='lib$name'
20717 postuninstall_cmds
=
20721 shlibpath_overrides_runpath
=unknown
20723 dynamic_linker
="$host_os ld.so"
20724 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20725 need_lib_prefix
=unknown
20726 hardcode_into_libs
=no
20728 # when you set need_version to no, make sure it does not cause -set_version
20729 # flags to be left without arguments
20730 need_version
=unknown
20735 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20736 shlibpath_var
=LIBPATH
20738 # AIX 3 has no versioning support, so we append a major version to the name.
20739 soname_spec
='${libname}${release}${shared_ext}$major'
20746 hardcode_into_libs
=yes
20747 if test "$host_cpu" = ia64
; then
20748 # AIX 5 supports IA64
20749 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20750 shlibpath_var
=LD_LIBRARY_PATH
20752 # With GCC up to 2.95.x, collect2 would create an import file
20753 # for dependence libraries. The import file would start with
20754 # the line `#! .'. This would cause the generated library to
20755 # depend on `.', always an invalid library. This was fixed in
20756 # development snapshots of GCC prior to 3.0.
20758 aix4 | aix4.
[01] | aix4.
[01].
*)
20759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20761 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20764 can_build_shared
=no
20768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20769 # soname into executable. Probably we can add versioning support to
20770 # collect2, so additional links can be useful in future.
20771 if test "$aix_use_runtimelinking" = yes; then
20772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20773 # instead of lib<name>.a to let people know that these are not
20774 # typical AIX shared libraries.
20775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20777 # We preserve .a as extension for shared libraries through AIX4.2
20778 # and later when we are not doing run time linking.
20779 library_names_spec
='${libname}${release}.a $libname.a'
20780 soname_spec
='${libname}${release}${shared_ext}$major'
20782 shlibpath_var
=LIBPATH
20789 # Since July 2007 AmigaOS4 officially supports .so libraries.
20790 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 library_names_spec
='$libname.ixlibrary $libname.a'
20795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20796 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'
20802 library_names_spec
='${libname}${shared_ext}'
20803 dynamic_linker
="$host_os ld.so"
20804 shlibpath_var
=LIBRARY_PATH
20810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20811 soname_spec
='${libname}${release}${shared_ext}$major'
20812 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20813 shlibpath_var
=LD_LIBRARY_PATH
20814 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20815 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20816 # the default ld.so.conf also contains /usr/contrib/lib and
20817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20818 # libtool to hard-code these into programs
20821 cygwin
* | mingw
* | pw32
* | cegcc
*)
20822 version_type
=windows
20827 case $GCC,$host_os in
20828 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20829 library_names_spec
='$libname.dll.a'
20830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20831 postinstall_cmds
='base_file=`basename \${file}`~
20832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20833 dldir=$destdir/`dirname \$dlpath`~
20834 test -d \$dldir || mkdir -p \$dldir~
20835 $install_prog $dir/$dlname \$dldir/$dlname~
20836 chmod a+x \$dldir/$dlname~
20837 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20838 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20840 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20841 dlpath=$dir/\$dldll~
20843 shlibpath_overrides_runpath
=yes
20847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20848 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20852 # MinGW DLLs use traditional 'lib' prefix
20853 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20856 # pw32 DLLs use 'pw' prefix rather than 'lib'
20857 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20863 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20866 dynamic_linker
='Win32 ld.exe'
20867 # FIXME: first we should search . and the directory the executable is in
20871 darwin
* | rhapsody
*)
20872 dynamic_linker
="$host_os dyld"
20873 version_type
=darwin
20876 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20877 soname_spec
='${libname}${release}${major}$shared_ext'
20878 shlibpath_overrides_runpath
=yes
20879 shlibpath_var
=DYLD_LIBRARY_PATH
20880 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20882 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20890 soname_spec
='${libname}${release}${shared_ext}$major'
20891 shlibpath_var
=LD_LIBRARY_PATH
20894 freebsd
* | dragonfly
*)
20895 # DragonFly does not have aout. When/if they implement a new
20896 # versioning mechanism, adjust this.
20897 if test -x /usr
/bin
/objformat
; then
20898 objformat
=`/usr/bin/objformat`
20901 freebsd
[23].
*) objformat
=aout
;;
20902 *) objformat
=elf
;;
20905 version_type
=freebsd-
$objformat
20906 case $version_type in
20908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20913 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20917 shlibpath_var
=LD_LIBRARY_PATH
20920 shlibpath_overrides_runpath
=yes
20922 freebsd3.
[01]* | freebsdelf3.
[01]*)
20923 shlibpath_overrides_runpath
=yes
20924 hardcode_into_libs
=yes
20926 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20927 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20928 shlibpath_overrides_runpath
=no
20929 hardcode_into_libs
=yes
20931 *) # from 4.6 on, and DragonFly
20932 shlibpath_overrides_runpath
=yes
20933 hardcode_into_libs
=yes
20942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20943 soname_spec
='${libname}${release}${shared_ext}$major'
20944 shlibpath_var
=LD_LIBRARY_PATH
20945 hardcode_into_libs
=yes
20952 dynamic_linker
="$host_os runtime_loader"
20953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20954 soname_spec
='${libname}${release}${shared_ext}$major'
20955 shlibpath_var
=LIBRARY_PATH
20956 shlibpath_overrides_runpath
=yes
20957 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20958 hardcode_into_libs
=yes
20961 hpux9
* | hpux10
* | hpux11
*)
20962 # Give a soname corresponding to the major version so that dld.sl refuses to
20963 # link against other versions.
20970 hardcode_into_libs
=yes
20971 dynamic_linker
="$host_os dld.so"
20972 shlibpath_var
=LD_LIBRARY_PATH
20973 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20975 soname_spec
='${libname}${release}${shared_ext}$major'
20976 if test "X$HPUX_IA64_MODE" = X32
; then
20977 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20979 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20981 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20985 hardcode_into_libs
=yes
20986 dynamic_linker
="$host_os dld.sl"
20987 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20988 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990 soname_spec
='${libname}${release}${shared_ext}$major'
20991 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20992 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20996 dynamic_linker
="$host_os dld.sl"
20997 shlibpath_var
=SHLIB_PATH
20998 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 soname_spec
='${libname}${release}${shared_ext}$major'
21003 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21004 postinstall_cmds
='chmod 555 $lib'
21005 # or fails outright, so override atomically:
21006 install_override_mode
=555
21013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21014 soname_spec
='${libname}${release}${shared_ext}$major'
21015 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21016 shlibpath_var
=LD_LIBRARY_PATH
21017 shlibpath_overrides_runpath
=no
21018 hardcode_into_libs
=yes
21021 irix5
* | irix6
* | nonstopux
*)
21023 nonstopux
*) version_type
=nonstopux
;;
21025 if test "$lt_cv_prog_gnu_ld" = yes; then
21033 soname_spec
='${libname}${release}${shared_ext}$major'
21034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21036 irix5
* | nonstopux
*)
21037 libsuff
= shlibsuff
=
21040 case $LD in # libtool.m4 will add one of these switches to LD
21041 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21042 libsuff
= shlibsuff
= libmagic
=32-bit;;
21043 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21044 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21045 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21046 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21047 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21051 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21052 shlibpath_overrides_runpath
=no
21053 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21054 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21055 hardcode_into_libs
=yes
21058 # No shared lib support for Linux oldld, aout, or coff.
21059 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21063 # This must be Linux ELF.
21064 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21069 soname_spec
='${libname}${release}${shared_ext}$major'
21070 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21071 shlibpath_var
=LD_LIBRARY_PATH
21072 shlibpath_overrides_runpath
=no
21074 # Some binutils ld are patched to set DT_RUNPATH
21075 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21078 lt_cv_shlibpath_overrides_runpath
=no
21079 save_LDFLAGS
=$LDFLAGS
21080 save_libdir
=$libdir
21081 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21082 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21084 /* end confdefs.h. */
21094 if ac_fn_cxx_try_link
"$LINENO"; then :
21095 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21096 lt_cv_shlibpath_overrides_runpath
=yes
21099 rm -f core conftest.err conftest.
$ac_objext \
21100 conftest
$ac_exeext conftest.
$ac_ext
21101 LDFLAGS
=$save_LDFLAGS
21102 libdir
=$save_libdir
21106 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21108 # This implies no fast_install, which is unacceptable.
21109 # Some rework will be needed to allow for fast_install
21110 # before this can be enabled.
21111 hardcode_into_libs
=yes
21113 # Append ld.so.conf contents to the search path
21114 if test -f /etc
/ld.so.conf
; then
21115 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' ' '`
21116 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21119 # We used to test for /lib/ld.so.1 and disable shared libraries on
21120 # powerpc, because MkLinux only supported shared libraries with the
21121 # GNU dynamic linker. Since this was broken with cross compilers,
21122 # most powerpc-linux boxes support dynamic linking these days and
21123 # people can always --disable-shared, the test was removed, and we
21124 # assume the GNU/Linux dynamic linker is in use.
21125 dynamic_linker
='GNU/Linux ld.so'
21132 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21134 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21135 dynamic_linker
='NetBSD (a.out) ld.so'
21137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21138 soname_spec
='${libname}${release}${shared_ext}$major'
21139 dynamic_linker
='NetBSD ld.elf_so'
21141 shlibpath_var
=LD_LIBRARY_PATH
21142 shlibpath_overrides_runpath
=yes
21143 hardcode_into_libs
=yes
21148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21149 shlibpath_var
=LD_LIBRARY_PATH
21150 shlibpath_overrides_runpath
=yes
21157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21158 soname_spec
='${libname}${release}${shared_ext}$major'
21159 shlibpath_var
=LD_LIBRARY_PATH
21160 shlibpath_overrides_runpath
=no
21161 hardcode_into_libs
=yes
21162 dynamic_linker
='ldqnx.so'
21167 sys_lib_dlsearch_path_spec
="/usr/lib"
21169 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21171 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21172 *) need_version
=no
;;
21174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21175 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21176 shlibpath_var
=LD_LIBRARY_PATH
21177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21179 openbsd2.
[89] | openbsd2.
[89].
*)
21180 shlibpath_overrides_runpath
=no
21183 shlibpath_overrides_runpath
=yes
21187 shlibpath_overrides_runpath
=yes
21192 libname_spec
='$name'
21195 library_names_spec
='$libname${shared_ext} $libname.a'
21196 dynamic_linker
='OS/2 ld.exe'
21197 shlibpath_var
=LIBPATH
21200 osf3
* | osf4
* | osf5
*)
21204 soname_spec
='${libname}${release}${shared_ext}$major'
21205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206 shlibpath_var
=LD_LIBRARY_PATH
21207 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21208 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21220 soname_spec
='${libname}${release}${shared_ext}$major'
21221 shlibpath_var
=LD_LIBRARY_PATH
21222 shlibpath_overrides_runpath
=yes
21223 hardcode_into_libs
=yes
21224 # ldd complains unless libraries are executable
21225 postinstall_cmds
='chmod +x $lib'
21230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21231 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21232 shlibpath_var
=LD_LIBRARY_PATH
21233 shlibpath_overrides_runpath
=yes
21234 if test "$with_gnu_ld" = yes; then
21242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243 soname_spec
='${libname}${release}${shared_ext}$major'
21244 shlibpath_var
=LD_LIBRARY_PATH
21245 case $host_vendor in
21247 shlibpath_overrides_runpath
=no
21249 runpath_var
=LD_RUN_PATH
21257 shlibpath_overrides_runpath
=no
21258 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21264 if test -d /usr
/nec
;then
21266 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21267 soname_spec
='$libname${shared_ext}.$major'
21268 shlibpath_var
=LD_LIBRARY_PATH
21272 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21273 version_type
=freebsd-elf
21276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21277 soname_spec
='${libname}${release}${shared_ext}$major'
21278 shlibpath_var
=LD_LIBRARY_PATH
21279 shlibpath_overrides_runpath
=yes
21280 hardcode_into_libs
=yes
21281 if test "$with_gnu_ld" = yes; then
21282 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21284 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21287 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21291 sys_lib_dlsearch_path_spec
='/usr/lib'
21295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300 shlibpath_var
=LD_LIBRARY_PATH
21301 shlibpath_overrides_runpath
=no
21302 hardcode_into_libs
=yes
21307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21308 soname_spec
='${libname}${release}${shared_ext}$major'
21309 shlibpath_var
=LD_LIBRARY_PATH
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21317 $as_echo "$dynamic_linker" >&6; }
21318 test "$dynamic_linker" = no
&& can_build_shared
=no
21320 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21321 if test "$GCC" = yes; then
21322 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21325 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21326 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21328 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21329 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21371 hardcode_action_CXX
=
21372 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21373 test -n "$runpath_var_CXX" ||
21374 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21376 # We can hardcode non-existent directories.
21377 if test "$hardcode_direct_CXX" != no
&&
21378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21379 # have to relink, otherwise we might link with an installed library
21380 # when we should be linking with a yet-to-be-installed one
21381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21382 test "$hardcode_minus_L_CXX" != no
; then
21383 # Linking always hardcodes the temporary library directory.
21384 hardcode_action_CXX
=relink
21386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21387 hardcode_action_CXX
=immediate
21390 # We cannot hardcode anything, or else we can only hardcode existing
21392 hardcode_action_CXX
=unsupported
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21395 $as_echo "$hardcode_action_CXX" >&6; }
21397 if test "$hardcode_action_CXX" = relink ||
21398 test "$inherit_rpath_CXX" = yes; then
21399 # Fast installation is not supported
21400 enable_fast_install
=no
21401 elif test "$shlibpath_overrides_runpath" = yes ||
21402 test "$enable_shared" = no
; then
21403 # Fast installation is not necessary
21404 enable_fast_install
=needless
21413 fi # test -n "$compiler"
21419 with_gnu_ld
=$lt_save_with_gnu_ld
21420 lt_cv_path_LDCXX
=$lt_cv_path_LD
21421 lt_cv_path_LD
=$lt_save_path_LD
21422 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21423 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21424 fi # test "$_lt_caught_CXX_error" != yes
21427 ac_cpp
='$CPP $CPPFLAGS'
21428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21447 # Only expand once:
21453 # Identify the assembler which will work hand-in-glove with the newly
21454 # built GCC, so that we can examine its features. This is the assembler
21455 # which will be driven by the driver program.
21457 # If build != host, and we aren't building gas in-tree, we identify a
21458 # build->target assembler and hope that it will have the same features
21459 # as the host->target assembler we'll be using.
21460 gcc_cv_gas_major_version
=
21461 gcc_cv_gas_minor_version
=
21462 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21464 if test "${gcc_cv_as+set}" = set; then :
21468 if test -x "$DEFAULT_ASSEMBLER"; then
21469 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21470 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21471 && test -f ..
/gas
/Makefile \
21472 && test x
$build = x
$host; then
21473 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21474 elif test -x as
$build_exeext; then
21475 # Build using assembler in the current directory.
21476 gcc_cv_as
=.
/as
$build_exeext
21477 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21478 gcc_cv_as
="$AS_FOR_TARGET"
21480 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21481 set dummy
$AS_FOR_TARGET; ac_word
=$2
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21483 $as_echo_n "checking for $ac_word... " >&6; }
21484 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21489 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21493 for as_dir
in $PATH
21496 test -z "$as_dir" && as_dir
=.
21497 for ac_exec_ext
in '' $ac_executable_extensions; do
21498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21499 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21510 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21511 if test -n "$gcc_cv_as"; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21513 $as_echo "$gcc_cv_as" >&6; }
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516 $as_echo "no" >&6; }
21523 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21525 case "$ORIGINAL_AS_FOR_TARGET" in
21526 .
/as | .
/as
$build_exeext) ;;
21527 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21532 $as_echo_n "checking what assembler to use... " >&6; }
21533 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21534 # Single tree build which includes gas. We want to prefer it
21535 # over whatever linker top-level may have detected, since
21536 # we'll use what we're building after installation anyway.
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21538 $as_echo "newly built gas" >&6; }
21540 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21541 for f
in $gcc_cv_as_bfd_srcdir/configure \
21542 $gcc_cv_as_gas_srcdir/configure \
21543 $gcc_cv_as_gas_srcdir/configure.
in \
21544 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21545 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21546 if test x
$gcc_cv_gas_version != x
; then
21550 case $gcc_cv_gas_version in
21552 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21554 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21555 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21556 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21557 case $gcc_cv_gas_patch_version in
21558 "") gcc_cv_gas_patch_version
="0" ;;
21560 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21561 + $gcc_cv_gas_minor_version \) \* 1000 \
21562 + $gcc_cv_gas_patch_version`
21564 in_tree_gas_is_elf
=no
21565 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21566 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21567 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21569 in_tree_gas_is_elf
=yes
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21573 $as_echo "$gcc_cv_as" >&6; }
21577 # Identify the linker which will work hand-in-glove with the newly
21578 # built GCC, so that we can examine its features. This is the linker
21579 # which will be driven by the driver program.
21581 # If build != host, and we aren't building gas in-tree, we identify a
21582 # build->target linker and hope that it will have the same features
21583 # as the host->target linker we'll be using.
21584 gcc_cv_gld_major_version
=
21585 gcc_cv_gld_minor_version
=
21586 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21587 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21589 if test "${gcc_cv_ld+set}" = set; then :
21593 if test -x "$DEFAULT_LINKER"; then
21594 gcc_cv_ld
="$DEFAULT_LINKER"
21595 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21596 && test -f ..
/ld
/Makefile \
21597 && test x
$build = x
$host; then
21598 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21599 elif test -x collect-ld
$build_exeext; then
21600 # Build using linker in the current directory.
21601 gcc_cv_ld
=.
/collect-ld
$build_exeext
21602 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21603 gcc_cv_ld
="$LD_FOR_TARGET"
21605 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21606 set dummy
$LD_FOR_TARGET; ac_word
=$2
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21608 $as_echo_n "checking for $ac_word... " >&6; }
21609 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21610 $as_echo_n "(cached) " >&6
21614 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21618 for as_dir
in $PATH
21621 test -z "$as_dir" && as_dir
=.
21622 for ac_exec_ext
in '' $ac_executable_extensions; do
21623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21624 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21635 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21636 if test -n "$gcc_cv_ld"; then
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21638 $as_echo "$gcc_cv_ld" >&6; }
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21641 $as_echo "no" >&6; }
21648 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21649 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21650 # if the PLUGIN_LD is set ld-new, just have it as ld
21651 # as that is the installed named.
21652 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21653 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21654 PLUGIN_LD_SUFFIX
=ld
21657 # Check whether --with-plugin-ld was given.
21658 if test "${with_plugin_ld+set}" = set; then :
21659 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21660 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21661 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21667 cat >>confdefs.h
<<_ACEOF
21668 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21672 # Check to see if we are using gold instead of ld
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21674 $as_echo_n "checking whether we are using gold... " >&6; }
21676 if test x
$gcc_cv_ld != x
; then
21677 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21678 |
grep "GNU gold" > /dev
/null
; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21683 $as_echo "$ld_is_gold" >&6; }
21685 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21687 case "$ORIGINAL_LD_FOR_TARGET" in
21688 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21689 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21694 $as_echo_n "checking what linker to use... " >&6; }
21695 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21696 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21697 # Single tree build which includes ld. We want to prefer it
21698 # over whatever linker top-level may have detected, since
21699 # we'll use what we're building after installation anyway.
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21701 $as_echo "newly built ld" >&6; }
21703 in_tree_ld_is_elf
=no
21704 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21705 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21706 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21707 in_tree_ld_is_elf
=yes
21708 elif test "$ld_is_gold" = yes; then
21709 in_tree_ld_is_elf
=yes
21711 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
21713 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21714 if test x
$gcc_cv_gld_version != x
; then
21718 case $gcc_cv_gld_version in
21720 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21722 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21723 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21726 $as_echo "$gcc_cv_ld" >&6; }
21730 # Figure out what nm we will be using.
21731 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21732 if test "${gcc_cv_nm+set}" = set; then :
21736 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21737 && test -f ..
/binutils
/Makefile \
21738 && test x
$build = x
$host; then
21739 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21740 elif test -x nm
$build_exeext; then
21741 gcc_cv_nm
=.
/nm
$build_exeext
21742 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21743 gcc_cv_nm
="$NM_FOR_TARGET"
21745 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21746 set dummy
$NM_FOR_TARGET; ac_word
=$2
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21748 $as_echo_n "checking for $ac_word... " >&6; }
21749 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21754 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21758 for as_dir
in $PATH
21761 test -z "$as_dir" && as_dir
=.
21762 for ac_exec_ext
in '' $ac_executable_extensions; do
21763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21764 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21775 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21776 if test -n "$gcc_cv_nm"; then
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21778 $as_echo "$gcc_cv_nm" >&6; }
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21781 $as_echo "no" >&6; }
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21789 $as_echo_n "checking what nm to use... " >&6; }
21790 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21791 # Single tree build which includes binutils.
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21793 $as_echo "newly built nm" >&6; }
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21797 $as_echo "$gcc_cv_nm" >&6; }
21801 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21803 case "$ORIGINAL_NM_FOR_TARGET" in
21804 .
/nm | .
/nm
$build_exeext) ;;
21805 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21810 # Figure out what objdump we will be using.
21811 if test "${gcc_cv_objdump+set}" = set; then :
21815 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21816 && test -f ..
/binutils
/Makefile \
21817 && test x
$build = x
$host; then
21818 # Single tree build which includes binutils.
21819 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21820 elif test -x objdump
$build_exeext; then
21821 gcc_cv_objdump
=.
/objdump
$build_exeext
21822 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21823 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21825 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21826 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21828 $as_echo_n "checking for $ac_word... " >&6; }
21829 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21830 $as_echo_n "(cached) " >&6
21832 case $gcc_cv_objdump in
21834 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21838 for as_dir
in $PATH
21841 test -z "$as_dir" && as_dir
=.
21842 for ac_exec_ext
in '' $ac_executable_extensions; do
21843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21844 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21855 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21856 if test -n "$gcc_cv_objdump"; then
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21858 $as_echo "$gcc_cv_objdump" >&6; }
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21861 $as_echo "no" >&6; }
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21869 $as_echo_n "checking what objdump to use... " >&6; }
21870 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21871 # Single tree build which includes binutils.
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21873 $as_echo "newly built objdump" >&6; }
21874 elif test x
$gcc_cv_objdump = x
; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21876 $as_echo "not found" >&6; }
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21879 $as_echo "$gcc_cv_objdump" >&6; }
21882 # Figure out what readelf we will be using.
21883 if test "${gcc_cv_readelf+set}" = set; then :
21887 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21888 && test -f ..
/binutils
/Makefile \
21889 && test x
$build = x
$host; then
21890 # Single tree build which includes binutils.
21891 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21892 elif test -x readelf
$build_exeext; then
21893 gcc_cv_readelf
=.
/readelf
$build_exeext
21895 # Extract the first word of "readelf", so it can be a program name with args.
21896 set dummy readelf
; ac_word
=$2
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21898 $as_echo_n "checking for $ac_word... " >&6; }
21899 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21900 $as_echo_n "(cached) " >&6
21902 case $gcc_cv_readelf in
21904 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21908 for as_dir
in $PATH
21911 test -z "$as_dir" && as_dir
=.
21912 for ac_exec_ext
in '' $ac_executable_extensions; do
21913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21914 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21925 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21926 if test -n "$gcc_cv_readelf"; then
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21928 $as_echo "$gcc_cv_readelf" >&6; }
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21931 $as_echo "no" >&6; }
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21939 $as_echo_n "checking what readelf to use... " >&6; }
21940 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21941 # Single tree build which includes binutils.
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21943 $as_echo "newly built readelf" >&6; }
21944 elif test x
$gcc_cv_readelf = x
; then
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21946 $as_echo "not found" >&6; }
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21949 $as_echo "$gcc_cv_readelf" >&6; }
21952 # Figure out what assembler alignment features are present.
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21954 $as_echo_n "checking assembler flags... " >&6; }
21955 if test "${gcc_cv_as_flags+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21959 i
[34567]86-*-linux*)
21960 gcc_cv_as_flags
="--32"
21962 powerpc
*-*-darwin*)
21963 gcc_cv_as_flags
="-arch ppc"
21966 gcc_cv_as_flags
=" "
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21971 $as_echo "$gcc_cv_as_flags" >&6; }
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21974 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21975 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21976 $as_echo_n "(cached) " >&6
21978 gcc_cv_as_balign_and_p2align
=no
21979 if test $in_tree_gas = yes; then
21980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21981 then gcc_cv_as_balign_and_p2align
=yes
21983 elif test x
$gcc_cv_as != x
; then
21984 $as_echo '.balign 4
21985 .p2align 2' > conftest.s
21986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }
21993 gcc_cv_as_balign_and_p2align
=yes
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_balign_and_p2align" >&5
22002 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22003 if test $gcc_cv_as_balign_and_p2align = yes; then
22005 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22010 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22011 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22014 gcc_cv_as_max_skip_p2align
=no
22015 if test $in_tree_gas = yes; then
22016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22017 then gcc_cv_as_max_skip_p2align
=yes
22019 elif test x
$gcc_cv_as != x
; then
22020 $as_echo '.p2align 4,,7' > conftest.s
22021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22023 (eval $ac_try) 2>&5
22025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22026 test $ac_status = 0; }; }
22028 gcc_cv_as_max_skip_p2align
=yes
22030 echo "configure: failed program was" >&5
22033 rm -f conftest.o conftest.s
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22037 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22038 if test $gcc_cv_as_max_skip_p2align = yes; then
22040 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22045 $as_echo_n "checking assembler for .literal16... " >&6; }
22046 if test "${gcc_cv_as_literal16+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
22049 gcc_cv_as_literal16
=no
22050 if test $in_tree_gas = yes; then
22051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22052 then gcc_cv_as_literal16
=yes
22054 elif test x
$gcc_cv_as != x
; then
22055 $as_echo '.literal16' > conftest.s
22056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_literal16
=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_literal16" >&5
22072 $as_echo "$gcc_cv_as_literal16" >&6; }
22073 if test $gcc_cv_as_literal16 = yes; then
22075 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22080 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22081 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22082 $as_echo_n "(cached) " >&6
22084 gcc_cv_as_subsection_m1
=no
22085 if test $in_tree_gas = yes; then
22086 if test $in_tree_gas_is_elf = yes \
22087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22088 then gcc_cv_as_subsection_m1
=yes
22090 elif test x
$gcc_cv_as != x
; then
22091 $as_echo 'conftest_label1: .word 0
22093 conftest_label2: .word 0
22094 .previous' > conftest.s
22095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22102 if test x
$gcc_cv_nm != x
; then
22103 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22104 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22105 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22107 else gcc_cv_as_subsection_m1
=yes
22109 rm -f conftest.nm1 conftest.nm2
22112 echo "configure: failed program was" >&5
22115 rm -f conftest.o conftest.s
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22119 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22120 if test $gcc_cv_as_subsection_m1 = yes; then
22122 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22127 $as_echo_n "checking assembler for .weak... " >&6; }
22128 if test "${gcc_cv_as_weak+set}" = set; then :
22129 $as_echo_n "(cached) " >&6
22132 if test $in_tree_gas = yes; then
22133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22134 then gcc_cv_as_weak
=yes
22136 elif test x
$gcc_cv_as != x
; then
22137 $as_echo ' .weak foobar' > conftest.s
22138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22140 (eval $ac_try) 2>&5
22142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22143 test $ac_status = 0; }; }
22147 echo "configure: failed program was" >&5
22150 rm -f conftest.o conftest.s
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22154 $as_echo "$gcc_cv_as_weak" >&6; }
22155 if test $gcc_cv_as_weak = yes; then
22157 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22162 $as_echo_n "checking assembler for .weakref... " >&6; }
22163 if test "${gcc_cv_as_weakref+set}" = set; then :
22164 $as_echo_n "(cached) " >&6
22166 gcc_cv_as_weakref
=no
22167 if test $in_tree_gas = yes; then
22168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22169 then gcc_cv_as_weakref
=yes
22171 elif test x
$gcc_cv_as != x
; then
22172 $as_echo ' .weakref foobar, barfnot' > conftest.s
22173 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22175 (eval $ac_try) 2>&5
22177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22178 test $ac_status = 0; }; }
22180 gcc_cv_as_weakref
=yes
22182 echo "configure: failed program was" >&5
22185 rm -f conftest.o conftest.s
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22189 $as_echo "$gcc_cv_as_weakref" >&6; }
22190 if test $gcc_cv_as_weakref = yes; then
22192 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22197 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22198 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22199 $as_echo_n "(cached) " >&6
22201 gcc_cv_as_nsubspa_comdat
=no
22202 if test $in_tree_gas = yes; then
22203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22204 then gcc_cv_as_nsubspa_comdat
=yes
22206 elif test x
$gcc_cv_as != x
; then
22207 $as_echo ' .SPACE $TEXT$
22208 .NSUBSPA $CODE$,COMDAT' > conftest.s
22209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22211 (eval $ac_try) 2>&5
22213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22214 test $ac_status = 0; }; }
22216 gcc_cv_as_nsubspa_comdat
=yes
22218 echo "configure: failed program was" >&5
22221 rm -f conftest.o conftest.s
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22225 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22226 if test $gcc_cv_as_nsubspa_comdat = yes; then
22228 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22232 # .hidden needs to be supported in both the assembler and the linker,
22233 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22234 # This is irritatingly difficult to feature test for; we have to check the
22235 # date string after the version number. If we've got an in-tree
22236 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22238 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22240 $as_echo_n "checking assembler for .hidden... " >&6; }
22241 if test "${gcc_cv_as_hidden+set}" = set; then :
22242 $as_echo_n "(cached) " >&6
22244 gcc_cv_as_hidden
=no
22245 if test $in_tree_gas = yes; then
22246 if test $in_tree_gas_is_elf = yes \
22247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22248 then gcc_cv_as_hidden
=yes
22250 elif test x
$gcc_cv_as != x
; then
22251 $as_echo ' .hidden foobar
22252 foobar:' > conftest.s
22253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22255 (eval $ac_try) 2>&5
22257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22258 test $ac_status = 0; }; }
22261 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22262 # STV_HIDDEN, so disable .hidden support if so.
22263 case "${target}" in
22264 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22265 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22266 cat > conftest.s
<<EOF
22271 .set default,hidden
22273 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22274 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22275 grep '\.hidden default' > /dev
/null
; then
22276 gcc_cv_as_hidden
=no
22278 gcc_cv_as_hidden
=yes
22281 # Assume bug is present if objdump is missing.
22282 gcc_cv_as_hidden
=no
22286 gcc_cv_as_hidden
=yes
22290 echo "configure: failed program was" >&5
22293 rm -f conftest.o conftest.s
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22297 $as_echo "$gcc_cv_as_hidden" >&6; }
22299 case "${target}" in
22301 # Darwin as has some visibility support, though with a different syntax.
22302 gcc_cv_as_hidden
=yes
22306 # gnu_indirect_function type is an extension proposed at
22307 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22308 # selection of function implementation
22309 # Check whether --enable-gnu-indirect-function was given.
22310 if test "${enable_gnu_indirect_function+set}" = set; then :
22311 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22313 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22314 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22317 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22320 if test x
$enable_gnu_indirect_function = xyes
; then
22322 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22326 if test $in_tree_ld != yes ; then
22327 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22328 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22329 if test x
"$ld_is_gold" = xyes
; then
22330 # GNU gold --version looks like this:
22332 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22334 # We extract the binutils version which is more familiar and specific
22335 # than the gold version.
22336 ld_vers
=`echo $ld_ver | sed -n \
22337 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22339 # GNU ld --version looks like this:
22341 # GNU ld (GNU Binutils) 2.21.51.20110225
22342 ld_vers
=`echo $ld_ver | sed -n \
22343 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22345 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'`
22346 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22347 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22348 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22350 case "${target}" in
22352 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22355 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22356 # /usr/ccs/bin/ld has been configured.
22357 ld_ver
=`$gcc_cv_ld -V 2>&1`
22358 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22359 ld_vers
=`echo $ld_ver | sed -n \
22360 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22361 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22362 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22370 $as_echo_n "checking linker for .hidden support... " >&6; }
22371 if test "${gcc_cv_ld_hidden+set}" = set; then :
22372 $as_echo_n "(cached) " >&6
22374 if test $in_tree_ld = yes ; then
22375 gcc_cv_ld_hidden
=no
22376 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 \
22377 && test $in_tree_ld_is_elf = yes; then
22378 gcc_cv_ld_hidden
=yes
22381 gcc_cv_ld_hidden
=yes
22382 if test x
"$ld_is_gold" = xyes
; then
22384 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22385 case "${target}" in
22386 mmix-knuth-mmixware
)
22387 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22388 gcc_cv_ld_hidden
=no
22391 if test 0"$ld_date" -lt 20020404; then
22392 if test -n "$ld_date"; then
22393 # If there was date string, but was earlier than 2002-04-04, fail
22394 gcc_cv_ld_hidden
=no
22395 elif test -z "$ld_vers"; then
22396 # If there was no date string nor ld version number, something is wrong
22397 gcc_cv_ld_hidden
=no
22399 test -z "$ld_vers_patch" && ld_vers_patch
=0
22400 if test "$ld_vers_major" -lt 2; then
22401 gcc_cv_ld_hidden
=no
22402 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22403 gcc_cv_ld_hidden
="no"
22404 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22405 gcc_cv_ld_hidden
=no
22410 case "${target}" in
22412 # Darwin ld has some visibility support.
22413 gcc_cv_ld_hidden
=yes
22415 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22416 gcc_cv_ld_hidden
=yes
22418 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22419 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22420 # .symbolic was only added in Solaris 9 12/02.
22421 gcc_cv_ld_hidden
=yes
22424 gcc_cv_ld_hidden
=no
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22431 $as_echo "$gcc_cv_ld_hidden" >&6; }
22432 libgcc_visibility
=no
22435 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22436 libgcc_visibility
=yes
22438 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22443 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22444 gcc_cv_ld_ro_rw_mix
=unknown
22445 if test $in_tree_ld = yes ; then
22446 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 \
22447 && test $in_tree_ld_is_elf = yes; then
22448 gcc_cv_ld_ro_rw_mix
=read-write
22450 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22451 echo '.section myfoosect, "a"' > conftest1.s
22452 echo '.section myfoosect, "aw"' > conftest2.s
22453 echo '.byte 1' >> conftest2.s
22454 echo '.section myfoosect, "a"' > conftest3.s
22455 echo '.byte 0' >> conftest3.s
22456 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22457 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22458 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22459 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22460 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22461 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22462 | sed -e '/myfoosect/!d' -e N`
22463 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22464 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22465 gcc_cv_ld_ro_rw_mix
=read-only
22467 gcc_cv_ld_ro_rw_mix
=read-write
22471 rm -f conftest.
* conftest
[123].
*
22473 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22475 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22479 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22481 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22482 case "${target}" in
22485 # Solaris 2 ld -V output looks like this for a regular version:
22487 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22489 # but test versions add stuff at the end:
22491 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22493 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22494 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22495 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22496 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22497 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22498 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22504 # Check whether --enable-initfini-array was given.
22505 if test "${enable_initfini_array+set}" = set; then :
22506 enableval
=$enable_initfini_array;
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22510 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22511 if test "${gcc_cv_initfini_array+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22514 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22515 case "${target}" in
22517 if test "$cross_compiling" = yes; then :
22518 gcc_cv_initfini_array
=no
22520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h. */
22524 #error Not an ELF OS
22526 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22527 if it can be used. */
22529 int main (void) { return x; }
22530 int foo (void) { x = 0; }
22531 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22534 if ac_fn_c_try_run
"$LINENO"; then :
22535 gcc_cv_initfini_array
=yes
22537 gcc_cv_initfini_array
=no
22539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22544 gcc_cv_initfini_array
=no
22545 if test $in_tree_ld = yes ; then
22546 if test "$gcc_cv_gld_major_version" -eq 2 \
22547 -a "$gcc_cv_gld_minor_version" -ge 22 \
22548 -o "$gcc_cv_gld_major_version" -gt 2 \
22549 && test $in_tree_ld_is_elf = yes; then
22550 gcc_cv_initfini_array
=yes
22552 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22553 cat > conftest.s
<<\EOF
22554 .section .dtors
,"a",%progbits
22556 .byte
'A', 'A', 'A', 'A'
22557 .section .ctors
,"a",%progbits
22559 .byte
'B', 'B', 'B', 'B'
22560 .section .fini_array
.65530,"a",%progbits
22562 .byte
'C', 'C', 'C', 'C'
22563 .section .init_array
.65530,"a",%progbits
22565 .byte
'D', 'D', 'D', 'D'
22566 .section .dtors
.64528,"a",%progbits
22568 .byte
'E', 'E', 'E', 'E'
22569 .section .ctors
.64528,"a",%progbits
22571 .byte
'F', 'F', 'F', 'F'
22572 .section .fini_array
.01005,"a",%progbits
22574 .byte
'G', 'G', 'G', 'G'
22575 .section .init_array
.01005,"a",%progbits
22577 .byte
'H', 'H', 'H', 'H'
22582 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22583 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22584 && $gcc_cv_objdump -s -j .init_array conftest \
22585 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22586 && $gcc_cv_objdump -s -j .fini_array conftest \
22587 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22588 gcc_cv_initfini_array
=yes
22590 rm -f conftest conftest.
*
22592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h. */
22596 # error Not an ELF OS
22598 #include <stdlib.h>
22599 #if defined __GLIBC_PREREQ
22600 # if __GLIBC_PREREQ (2, 4)
22602 # error GLIBC 2.4 required
22605 # if defined __sun__ && defined __svr4__
22606 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22608 # error The C library not known to support .init_array/.fini_array
22613 if ac_fn_c_try_cpp
"$LINENO"; then :
22616 gcc_cv_initfini_array
=no
22618 rm -f conftest.err conftest.
$ac_ext;;
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22622 $as_echo_n "checking cross compile... guessing... " >&6; }
22623 gcc_cv_initfini_array
=no
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22627 $as_echo "$gcc_cv_initfini_array" >&6; }
22628 enable_initfini_array
=$gcc_cv_initfini_array
22632 if test $enable_initfini_array = yes; then
22634 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22638 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22640 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22641 if test "${gcc_cv_as_leb128+set}" = set; then :
22642 $as_echo_n "(cached) " >&6
22644 gcc_cv_as_leb128
=no
22645 if test $in_tree_gas = yes; then
22646 if test $in_tree_gas_is_elf = yes \
22647 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22648 then gcc_cv_as_leb128
=yes
22650 elif test x
$gcc_cv_as != x
; then
22657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22659 (eval $ac_try) 2>&5
22661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22662 test $ac_status = 0; }; }
22664 # GAS versions before 2.11 do not support uleb128,
22665 # despite appearing to.
22666 # ??? There exists an elf-specific test that will crash
22667 # the assembler. Perhaps it's better to figure out whether
22668 # arbitrary sections are supported and try the test.
22669 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22670 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22671 as_vers
=`echo $as_ver | sed -n \
22672 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22673 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22674 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22675 if test $as_major -eq 2 && test $as_minor -lt 11
22677 else gcc_cv_as_leb128
=yes
22681 echo "configure: failed program was" >&5
22684 rm -f conftest.o conftest.s
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22688 $as_echo "$gcc_cv_as_leb128" >&6; }
22689 if test $gcc_cv_as_leb128 = yes; then
22691 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22695 # Check if we have assembler support for unwind directives.
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22697 $as_echo_n "checking assembler for cfi directives... " >&6; }
22698 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22699 $as_echo_n "(cached) " >&6
22701 gcc_cv_as_cfi_directive
=no
22702 if test x
$gcc_cv_as != x
; then
22708 .cfi_escape 1, 2, 3, 4, 5
22709 .cfi_endproc' > conftest.s
22710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22712 (eval $ac_try) 2>&5
22714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715 test $ac_status = 0; }; }
22719 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22720 # read-only and read-write sections, we need to make sure that the
22721 # assembler used emits read-write .eh_frame sections.
22722 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22723 if test "x$gcc_cv_objdump" != x
; then
22724 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22725 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22726 gcc_cv_as_cfi_directive
=no
22729 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22730 # On Solaris/x86, make sure that GCC and gas agree on using
22731 # read-only .eh_frame sections for 64-bit.
22732 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22733 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22734 sed -e /.eh_frame
/!d
-e N | \
22735 grep READONLY
> /dev
/null
; then
22736 gcc_cv_as_cfi_directive
=yes
22738 gcc_cv_as_cfi_directive
=no
22742 gcc_cv_as_cfi_directive
=yes
22747 # no objdump, err on the side of caution
22748 gcc_cv_as_cfi_directive
=no
22751 gcc_cv_as_cfi_directive
=yes
22755 gcc_cv_as_cfi_directive
=yes
22759 echo "configure: failed program was" >&5
22762 rm -f conftest.o conftest.s
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22766 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22768 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22770 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22771 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22774 gcc_cv_as_cfi_advance_working
=no
22775 if test x
$gcc_cv_as != x
; then
22778 .cfi_adjust_cfa_offset 64
22780 .cfi_adjust_cfa_offset 128
22781 .cfi_endproc' > conftest.s
22782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22790 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22791 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22792 gcc_cv_as_cfi_advance_working
=yes
22796 echo "configure: failed program was" >&5
22799 rm -f conftest.o conftest.s
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22803 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22806 # no objdump, err on the side of caution
22807 gcc_cv_as_cfi_advance_working
=no
22811 cat >>confdefs.h
<<_ACEOF
22812 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22813 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22819 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22820 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22821 $as_echo_n "(cached) " >&6
22823 gcc_cv_as_cfi_personality_directive
=no
22824 if test x
$gcc_cv_as != x
; then
22827 .cfi_personality 0, symbol
22828 .cfi_endproc' > conftest.s
22829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22836 gcc_cv_as_cfi_personality_directive
=yes
22838 echo "configure: failed program was" >&5
22841 rm -f conftest.o conftest.s
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22845 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22848 cat >>confdefs.h
<<_ACEOF
22849 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22850 then echo 1; else echo 0; fi`
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22855 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22856 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22859 gcc_cv_as_cfi_sections_directive
=no
22860 if test x
$gcc_cv_as != x
; then
22862 .cfi_sections .debug_frame, .eh_frame
22864 .cfi_endproc' > conftest.s
22865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22873 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22874 # Need to check that we generated the correct relocation for the
22875 # .debug_frame section. This was fixed for binutils 2.21.
22876 gcc_cv_as_cfi_sections_directive
=no
22877 if test "x$gcc_cv_objdump" != x
; then
22878 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22879 grep secrel
> /dev
/null
; then
22880 gcc_cv_as_cfi_sections_directive
=yes
22885 gcc_cv_as_cfi_sections_directive
=yes
22889 echo "configure: failed program was" >&5
22892 rm -f conftest.o conftest.s
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22896 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22900 cat >>confdefs.h
<<_ACEOF
22901 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22902 then echo 1; else echo 0; fi`
22906 # GAS versions up to and including 2.11.0 may mis-optimize
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22909 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22910 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22913 gcc_cv_as_eh_frame
=no
22914 if test $in_tree_gas = yes; then
22915 if test $in_tree_gas_is_elf = yes \
22916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22917 then gcc_cv_as_eh_frame
=yes
22919 elif test x
$gcc_cv_as != x
; then
22926 .section .eh_frame,"aw",@progbits
22928 .4byte .LECIE1-.LSCIE1
22942 .4byte .LEFDE1-.LASFDE1
22944 .4byte .LASFDE1-__FRAME_BEGIN__
22951 .LEFDE1:' > conftest.s
22952 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22959 cat > conftest.lit
<<EOF
22960 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22961 0010 01000000 12000000 18000000 00000000 ................
22962 0020 08000000 04080000 0044 .........D
22964 cat > conftest.big
<<EOF
22965 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22966 0010 00000001 00000012 00000018 00000000 ................
22967 0020 00000008 04000000 0844 .........D
22969 # If the assembler didn't choke, and we can objdump,
22970 # and we got the correct data, then succeed.
22971 # The text in the here-document typically retains its unix-style line
22972 # endings, while the output of objdump will use host line endings.
22973 # Therefore, use diff -b for the comparisons.
22974 if test x
$gcc_cv_objdump != x \
22975 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22976 |
tail -3 > conftest.got \
22977 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22978 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22980 gcc_cv_as_eh_frame
=yes
22981 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }; then
22987 gcc_cv_as_eh_frame
=buggy
22989 # Uh oh, what do we do now?
22990 gcc_cv_as_eh_frame
=no
22993 echo "configure: failed program was" >&5
22996 rm -f conftest.o conftest.s
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23000 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23003 if test $gcc_cv_as_eh_frame = buggy
; then
23005 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23010 $as_echo_n "checking assembler for section merging support... " >&6; }
23011 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23012 $as_echo_n "(cached) " >&6
23014 gcc_cv_as_shf_merge
=no
23015 if test $in_tree_gas = yes; then
23016 if test $in_tree_gas_is_elf = yes \
23017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23018 then gcc_cv_as_shf_merge
=yes
23020 elif test x
$gcc_cv_as != x
; then
23021 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23029 gcc_cv_as_shf_merge
=yes
23031 echo "configure: failed program was" >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23038 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23040 if test $gcc_cv_as_shf_merge = no
; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23042 $as_echo_n "checking assembler for section merging support... " >&6; }
23043 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23046 gcc_cv_as_shf_merge
=no
23047 if test $in_tree_gas = yes; then
23048 if test $in_tree_gas_is_elf = yes \
23049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23050 then gcc_cv_as_shf_merge
=yes
23052 elif test x
$gcc_cv_as != x
; then
23053 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23056 (eval $ac_try) 2>&5
23058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23059 test $ac_status = 0; }; }
23061 gcc_cv_as_shf_merge
=yes
23063 echo "configure: failed program was" >&5
23066 rm -f conftest.o conftest.s
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23070 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23074 cat >>confdefs.h
<<_ACEOF
23075 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23080 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23081 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23084 gcc_cv_as_comdat_group
=no
23085 if test $in_tree_gas = yes; then
23086 if test $in_tree_gas_is_elf = yes \
23087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23088 then gcc_cv_as_comdat_group
=yes
23090 elif test x
$gcc_cv_as != x
; then
23091 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23094 (eval $ac_try) 2>&5
23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23097 test $ac_status = 0; }; }
23099 gcc_cv_as_comdat_group
=yes
23101 echo "configure: failed program was" >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23108 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23110 if test $gcc_cv_as_comdat_group = yes; then
23111 gcc_cv_as_comdat_group_percent
=no
23112 gcc_cv_as_comdat_group_group
=no
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23115 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23116 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23117 $as_echo_n "(cached) " >&6
23119 gcc_cv_as_comdat_group_percent
=no
23120 if test $in_tree_gas = yes; then
23121 if test $in_tree_gas_is_elf = yes \
23122 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23123 then gcc_cv_as_comdat_group_percent
=yes
23125 elif test x
$gcc_cv_as != x
; then
23126 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23129 (eval $ac_try) 2>&5
23131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132 test $ac_status = 0; }; }
23134 gcc_cv_as_comdat_group_percent
=yes
23136 echo "configure: failed program was" >&5
23139 rm -f conftest.o conftest.s
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23143 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23145 if test $gcc_cv_as_comdat_group_percent = yes; then
23146 gcc_cv_as_comdat_group_group
=no
23148 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23149 gcc_cv_as_comdat_group_group
=no
23151 case "${target}" in
23152 # Sun as uses a completely different syntax.
23154 case "${target}" in
23155 sparc
*-*-solaris2*)
23157 .group foo,".text%foo",#comdat
23158 .section ".text%foo", #alloc,#execinstr,#progbits
23163 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23165 .group foo,.text%foo,#comdat
23166 .section .text%foo, "ax", @progbits
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23173 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23174 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23177 gcc_cv_as_comdat_group_group
=no
23178 if test x
$gcc_cv_as != x
; then
23179 $as_echo "$conftest_s" > conftest.s
23180 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23182 (eval $ac_try) 2>&5
23184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23185 test $ac_status = 0; }; }
23187 gcc_cv_as_comdat_group_group
=yes
23189 echo "configure: failed program was" >&5
23192 rm -f conftest.o conftest.s
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23196 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23202 if test x
"$ld_is_gold" = xyes
; then
23204 elif test $in_tree_ld = yes ; then
23206 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 \
23207 && test $in_tree_ld_is_elf = yes; then
23210 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23212 if test 0"$ld_date" -lt 20050308; then
23213 if test -n "$ld_date"; then
23214 # If there was date string, but was earlier than 2005-03-08, fail
23216 elif test "$ld_vers_major" -lt 2; then
23218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23223 case "${target}" in
23224 *-*-solaris2.1
[1-9]*)
23226 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23227 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23230 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23231 # least ld version 1.2267.
23232 if test "$ld_vers_major" -gt 1; then
23234 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23236 elif test "$ld_vers_minor" -ge 2267; then
23241 # Assume linkers other than GNU ld don't support COMDAT group.
23246 # Allow overriding the automatic COMDAT group tests above.
23247 # Check whether --enable-comdat was given.
23248 if test "${enable_comdat+set}" = set; then :
23249 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23252 if test $comdat_group = no
; then
23253 gcc_cv_as_comdat_group
=no
23254 gcc_cv_as_comdat_group_percent
=no
23255 gcc_cv_as_comdat_group_group
=no
23258 cat >>confdefs.h
<<_ACEOF
23259 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23260 || test $gcc_cv_as_comdat_group_percent = yes \
23261 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23266 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23267 if test "${gcc_cv_as_discriminator+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23270 gcc_cv_as_discriminator
=no
23271 if test $in_tree_gas = yes; then
23272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23273 then gcc_cv_as_discriminator
=yes
23275 elif test x
$gcc_cv_as != x
; then
23278 .loc 1 1 0 discriminator 1' > conftest.s
23279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23286 gcc_cv_as_discriminator
=yes
23288 echo "configure: failed program was" >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23295 $as_echo "$gcc_cv_as_discriminator" >&6; }
23296 if test $gcc_cv_as_discriminator = yes; then
23298 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23302 # Thread-local storage - the check is heavily parameterized.
23310 .section ".tdata","awT",@progbits
23313 ldq $27,__tls_get_addr($29) !literal!1
23314 lda $16,foo($29) !tlsgd!1
23315 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23316 ldq $27,__tls_get_addr($29) !literal!2
23317 lda $16,foo($29) !tlsldm!2
23318 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23319 ldq $1,foo($29) !gotdtprel
23320 ldah $2,foo($29) !dtprelhi
23321 lda $3,foo($2) !dtprello
23322 lda $4,foo($29) !dtprel
23323 ldq $1,foo($29) !gottprel
23324 ldah $2,foo($29) !tprelhi
23325 lda $3,foo($2) !tprello
23326 lda $4,foo($29) !tprel'
23329 tls_as_opt
=--fatal-warnings
23331 cris-
*-*|crisv32-
*-*)
23333 .section ".tdata","awT",@progbits
23340 tls_as_opt
=--fatal-warnings
23344 .section ".tdata","awT",@progbits
23347 call #gettlsoff(x)'
23356 .section ".tdata","awT",@progbits
23360 addil LT%foo-$tls_gdidx$,gp
23361 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23364 addil LT%foo-$tls_ldidx$,gp
23366 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23367 addil LR%foo-$tls_dtpoff$,%ret0
23368 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23370 addil LT%foo-$tls_ieoff$,gp
23371 ldw RT%foo-$tls_ieoff$(%r1),%t2
23374 addil LR%foo-$tls_leoff$,%t1
23375 ldo RR%foo-$tls_leoff$(%r1),%t2'
23378 tls_as_opt
=--fatal-warnings
23382 .section ".tdata","awT",%progbits
23385 .word foo(gottpoff)
23393 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23395 i
[34567]86-*-solaris2.
*)
23397 tga_func
=___tls_get_addr
23399 x86_64-
*-solaris2.1
[0-9]*)
23401 tga_func
=__tls_get_addr
23407 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23409 .section .tdata,"awt",@progbits'
23413 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23417 .section ".tdata","awT",@progbits'
23420 tls_as_opt
="--fatal-warnings"
23422 conftest_s
="$conftest_s
23426 leal foo@tlsgd(,%ebx,1), %eax
23427 leal foo@tlsldm(%ebx), %eax
23428 leal foo@dtpoff(%eax), %edx
23429 movl foo@gottpoff(%ebx), %eax
23430 subl foo@gottpoff(%ebx), %eax
23431 addl foo@gotntpoff(%ebx), %eax
23432 movl foo@indntpoff, %eax
23433 movl \$foo@tpoff, %eax
23434 subl \$foo@tpoff, %eax
23435 leal foo@ntpoff(%ecx), %eax"
23439 .section ".tdata","awT",@progbits
23443 leaq foo@TLSGD(%rip), %rdi
23444 leaq foo@TLSLD(%rip), %rdi
23445 leaq foo@DTPOFF(%rax), %rdx
23446 movq foo@GOTTPOFF(%rip), %rax
23447 movq $foo@TPOFF, %rax'
23450 tls_as_opt
=--fatal-warnings
23454 .section ".tdata","awT",@progbits
23457 addl r16 = @ltoff(@dtpmod(foo#)), gp
23458 addl r17 = @ltoff(@dtprel(foo#)), gp
23459 addl r18 = @ltoff(@tprel(foo#)), gp
23460 addl r19 = @dtprel(foo#), gp
23461 adds r21 = @dtprel(foo#), r13
23462 movl r23 = @dtprel(foo#)
23463 addl r20 = @tprel(foo#), gp
23464 adds r22 = @tprel(foo#), r13
23465 movl r24 = @tprel(foo#)'
23468 tls_as_opt
=--fatal-warnings
23472 .section .tdata,"awT",@progbits
23476 addiu $4, $28, %tlsgd(x)
23477 addiu $4, $28, %tlsldm(x)
23478 lui $4, %dtprel_hi(x)
23479 addiu $4, $4, %dtprel_lo(x)
23480 lw $4, %gottprel(x)($28)
23481 lui $4, %tprel_hi(x)
23482 addiu $4, $4, %tprel_lo(x)'
23485 tls_as_opt
='-32 --fatal-warnings'
23489 .section .tdata,"awT",@progbits
23494 move.l x@TLSGD(%a5),%a0
23495 move.l x@TLSLDM(%a5),%a0
23496 move.l x@TLSLDO(%a5),%a0
23497 move.l x@TLSIE(%a5),%a0
23498 move.l x@TLSLE(%a5),%a0'
23501 tls_as_opt
='--fatal-warnings'
23505 .section ".tdata","awT",%progbits
23509 add x0, x0, #:tlsgd_lo12:x
23514 tls_as_opt
='--fatal-warnings'
23518 .extern __get_tpointer
23536 .section ".tdata","awT",@progbits
23544 addi 3,31,ld0@got@tlsgd
23546 addi 3,31,x1@got@tlsld
23549 addis 9,3,x2@dtprel@ha
23550 addi 9,9,x2@dtprel@l
23551 lwz 9,x3@got@tprel(31)
23554 addis 9,2,x2@tprel@ha
23555 addi 9,9,x2@tprel@l'
23558 tls_as_opt
="-a32 --fatal-warnings"
23562 .section ".tdata","awT",@progbits
23570 addi 3,2,ld0@got@tlsgd
23576 addi 3,2,x1@got@tlsld
23582 addis 9,3,x2@dtprel@ha
23583 addi 9,9,x2@dtprel@l
23586 ld 9,x3@got@dtprel(2)
23592 tls_as_opt
="-a64 --fatal-warnings"
23596 .section ".tdata","awT",@progbits
23603 .long foo@GOTNTPOFF
23604 .long foo@INDNTPOFF
23605 l %r1,foo@GOTNTPOFF(%r12)
23606 l %r1,0(%r1):tls_load:foo
23607 bas %r14,0(%r1,%r13):tls_gdcall:foo
23608 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23611 tls_as_opt
="-m31 --fatal-warnings"
23615 .section ".tdata","awT",@progbits
23622 .quad foo@GOTNTPOFF
23623 lg %r1,foo@GOTNTPOFF(%r12)
23624 larl %r1,foo@INDNTPOFF
23625 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23626 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23629 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23631 sh-
*-* | sh
[34]-*-*)
23633 .section ".tdata","awT",@progbits
23643 tls_as_opt
=--fatal-warnings
23647 sparc
*-sun-solaris2.
*)
23649 tga_func
=__tls_get_addr
23655 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23657 .section ".tdata",#alloc,#write,#tls'
23662 .section ".tdata","awT",@progbits'
23665 tls_as_opt
="-32 --fatal-warnings"
23667 conftest_s
="$conftest_s
23670 sethi %tgd_hi22(foo), %o0
23671 add %o0, %tgd_lo10(foo), %o1
23672 add %l7, %o1, %o0, %tgd_add(foo)
23673 call __tls_get_addr, %tgd_call(foo)
23674 sethi %tldm_hi22(foo), %l1
23675 add %l1, %tldm_lo10(foo), %l2
23676 add %l7, %l2, %o0, %tldm_add(foo)
23677 call __tls_get_addr, %tldm_call(foo)
23678 sethi %tldo_hix22(foo), %l3
23679 xor %l3, %tldo_lox10(foo), %l4
23680 add %o0, %l4, %l5, %tldo_add(foo)
23681 sethi %tie_hi22(foo), %o3
23682 add %o3, %tie_lo10(foo), %o3
23683 ld [%l7 + %o3], %o2, %tie_ld(foo)
23684 add %g7, %o2, %o4, %tie_add(foo)
23685 sethi %tle_hix22(foo), %l1
23686 xor %l1, %tle_lox10(foo), %o5
23687 ld [%g7 + %o5], %o1"
23691 .section ".tdata","awT",@progbits
23694 addli r0, zero, tls_gd(foo)
23695 auli r0, zero, tls_gd_ha16(foo)
23696 addli r0, r0, tls_gd_lo16(foo)
23698 addli r0, zero, tls_ie(foo)
23699 auli r0, r0, tls_ie_ha16(foo)
23700 addli r0, r0, tls_ie_lo16(foo)'
23703 tls_as_opt
="--fatal-warnings"
23707 .section ".tdata","awT",@progbits
23710 shl16insli r0, zero, hw0_last_tls_gd(foo)
23711 shl16insli r0, zero, hw1_last_tls_gd(foo)
23712 shl16insli r0, r0, hw0_tls_gd(foo)
23714 shl16insli r0, zero, hw1_last_tls_ie(foo)
23715 shl16insli r0, r0, hw0_tls_ie(foo)'
23718 tls_as_opt
="--fatal-warnings"
23722 .section ".tdata","awT",@progbits
23725 movi a8, foo@TLSFUNC
23726 movi a10, foo@TLSARG
23727 callx8.tls a8, foo@TLSCALL'
23733 if test "x$enable_tls" = xno
; then
23734 : # TLS explicitly disabled.
23735 elif test "x$enable_tls" = xyes
; then
23736 set_have_as_tls
=yes # TLS explicitly enabled.
23737 elif test -z "$tls_first_major"; then
23738 : # If we don't have a check, assume no support.
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23741 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23742 if test "${gcc_cv_as_tls+set}" = set; then :
23743 $as_echo_n "(cached) " >&6
23746 if test $in_tree_gas = yes; then
23747 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23748 then gcc_cv_as_tls
=yes
23750 elif test x
$gcc_cv_as != x
; then
23751 $as_echo "$conftest_s" > conftest.s
23752 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23754 (eval $ac_try) 2>&5
23756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757 test $ac_status = 0; }; }
23761 echo "configure: failed program was" >&5
23764 rm -f conftest.o conftest.s
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23768 $as_echo "$gcc_cv_as_tls" >&6; }
23769 if test $gcc_cv_as_tls = yes; then
23770 set_have_as_tls
=yes
23774 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23775 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23776 # Sun style that Sun ld and GCC don't support any longer.
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23779 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23781 # Check ld and ld.so.1 TLS support.
23782 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23783 # Assume all interesting versions of GNU ld have TLS support.
23784 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23788 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23790 min_tls_ld_vers_minor
=374
23792 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23793 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23794 min_tls_ld_vers_minor
=343
23797 if test "$ld_vers_major" -gt 1 || \
23798 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23805 $as_echo "$ld_tls_support" >&6; }
23808 save_LDFLAGS
="$LDFLAGS"
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23813 $as_echo_n "checking library containing $tga_func... " >&6; }
23814 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23815 # (32-bit x86) only lived in libthread, so check for that. Keep
23816 # set_have_as_tls if found, disable if not.
23817 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23819 $as_echo_n "checking for library containing $tga_func... " >&6; }
23820 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23821 $as_echo_n "(cached) " >&6
23823 ac_func_search_save_LIBS
=$LIBS
23824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23825 /* end confdefs.h. */
23827 /* Override any GCC internal prototype to avoid an error.
23828 Use char because int might match the return type of a GCC
23829 builtin and then its argument prototype would still apply. */
23837 return $tga_func ();
23842 for ac_lib
in '' thread
; do
23843 if test -z "$ac_lib"; then
23844 ac_res
="none required"
23847 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23849 if ac_fn_c_try_link
"$LINENO"; then :
23850 eval "$as_ac_Search=\$ac_res"
23852 rm -f core conftest.err conftest.
$ac_objext \
23854 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23858 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23861 eval "$as_ac_Search=no"
23863 rm conftest.
$ac_ext
23864 LIBS
=$ac_func_search_save_LIBS
23866 eval ac_res
=\$
$as_ac_Search
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23868 $as_echo "$ac_res" >&6; }
23869 eval ac_res
=\$
$as_ac_Search
23870 if test "$ac_res" != no
; then :
23871 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23877 # Clear LIBS if we cannot support TLS.
23878 if test $set_have_as_tls = no
; then
23881 # Always define LIB_TLS_SPEC, even without TLS support.
23883 cat >>confdefs.h
<<_ACEOF
23884 #define LIB_TLS_SPEC "$LIBS"
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23888 $as_echo "$LIBS" >&6; }
23891 LDFLAGS
="$save_LDFLAGS"
23894 if test $set_have_as_tls = yes ; then
23896 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23900 # Target-specific assembler checks.
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23903 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23904 gcc_cv_ld_static_dynamic
=no
23905 gcc_cv_ld_static_option
='-Bstatic'
23906 gcc_cv_ld_dynamic_option
='-Bdynamic'
23907 if test $in_tree_ld = yes ; then
23908 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
23909 gcc_cv_ld_static_dynamic
=yes
23911 elif test x
$gcc_cv_ld != x
; then
23912 # Check if linker supports -Bstatic/-Bdynamic option
23913 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23914 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23915 gcc_cv_ld_static_dynamic
=yes
23918 # HP-UX ld uses -a flags to select between shared and archive.
23920 if test x
"$gnu_ld" = xno
; then
23921 gcc_cv_ld_static_dynamic
=yes
23922 gcc_cv_ld_static_option
="-aarchive_shared"
23923 gcc_cv_ld_dynamic_option
="-adefault"
23926 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23928 gcc_cv_ld_static_dynamic
=yes
23933 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23935 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23938 cat >>confdefs.h
<<_ACEOF
23939 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23943 cat >>confdefs.h
<<_ACEOF
23944 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23949 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23951 if test x
"$demangler_in_ld" = xyes
; then
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23953 $as_echo_n "checking linker --demangle support... " >&6; }
23954 gcc_cv_ld_demangle
=no
23955 if test $in_tree_ld = yes; then
23956 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 \
23957 gcc_cv_ld_demangle
=yes
23959 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23960 # Check if the GNU linker supports --demangle option
23961 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23962 gcc_cv_ld_demangle
=yes
23965 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23967 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23971 $as_echo "$gcc_cv_ld_demangle" >&6; }
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23975 $as_echo_n "checking linker plugin support... " >&6; }
23976 gcc_cv_lto_plugin
=0
23977 if test -f liblto_plugin.la
; then
23978 save_ld_ver
="$ld_ver"
23979 save_ld_vers_major
="$ld_vers_major"
23980 save_ld_vers_minor
="$ld_vers_minor"
23981 save_ld_is_gold
="$ld_is_gold"
23985 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23987 # FIXME: ld_is_gold?
23988 ld_vers_major
="$gcc_cv_gld_major_version"
23989 ld_vers_minor
="$gcc_cv_gld_minor_version"
23991 # Determine plugin linker version.
23992 # FIXME: Partial duplicate from above, generalize.
23993 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23994 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23995 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23997 ld_vers
=`echo $ld_ver | sed -n \
23998 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24000 ld_vers
=`echo $ld_ver | sed -n \
24001 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24003 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24004 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24008 # Determine plugin support.
24009 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24010 # Require GNU ld or gold 2.21+ for plugin support by default.
24011 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24012 gcc_cv_lto_plugin
=2
24013 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24014 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24015 gcc_cv_lto_plugin
=1
24019 ld_ver
="$save_ld_ver"
24020 ld_vers_major
="$save_ld_vers_major"
24021 ld_vers_minor
="$save_ld_vers_minor"
24022 ld_is_gold
="$save_ld_is_gold"
24025 cat >>confdefs.h
<<_ACEOF
24026 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24030 $as_echo "$gcc_cv_lto_plugin" >&6; }
24033 # All TARGET_ABI_OSF targets.
24034 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24036 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24037 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24040 gcc_cv_as_alpha_explicit_relocs
=no
24041 if test $in_tree_gas = yes; then
24042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24043 then gcc_cv_as_alpha_explicit_relocs
=yes
24045 elif test x
$gcc_cv_as != x
; then
24046 $as_echo ' .set nomacro
24048 extbl $3, $2, $3 !lituse_bytoff!1
24049 ldq $2, a($29) !literal!1
24050 ldq $4, b($29) !literal!2
24051 ldq_u $3, 0($2) !lituse_base!1
24052 ldq $27, f($29) !literal!5
24053 jsr $26, ($27), f !lituse_jsr!5
24054 ldah $29, 0($26) !gpdisp!3
24055 lda $0, c($29) !gprel
24056 ldah $1, d($29) !gprelhigh
24057 lda $1, d($1) !gprellow
24058 lda $29, 0($29) !gpdisp!3' > conftest.s
24059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }
24066 gcc_cv_as_alpha_explicit_relocs
=yes
24068 echo "configure: failed program was" >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24075 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24076 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24078 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24082 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24083 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24084 $as_echo_n "(cached) " >&6
24086 gcc_cv_as_alpha_jsrdirect_relocs
=no
24087 if test $in_tree_gas = yes; then
24088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24089 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24091 elif test x
$gcc_cv_as != x
; then
24092 $as_echo ' .set nomacro
24094 ldq $27, a($29) !literal!1
24095 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24098 (eval $ac_try) 2>&5
24100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101 test $ac_status = 0; }; }
24103 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24105 echo "configure: failed program was" >&5
24108 rm -f conftest.o conftest.s
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24112 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24113 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24115 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24122 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24123 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24126 gcc_cv_as_cris_no_mul_bug
=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24129 then gcc_cv_as_cris_no_mul_bug
=yes
24131 elif test x
$gcc_cv_as != x
; then
24132 $as_echo '.text' > conftest.s
24133 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24140 gcc_cv_as_cris_no_mul_bug
=yes
24142 echo "configure: failed program was" >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24149 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24150 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24152 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24159 $as_echo_n "checking assembler for .register... " >&6; }
24160 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24161 $as_echo_n "(cached) " >&6
24163 gcc_cv_as_sparc_register_op
=no
24164 if test x
$gcc_cv_as != x
; then
24165 $as_echo '.register %g2, #scratch' > conftest.s
24166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24173 gcc_cv_as_sparc_register_op
=yes
24175 echo "configure: failed program was" >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24182 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24183 if test $gcc_cv_as_sparc_register_op = yes; then
24185 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24190 $as_echo_n "checking assembler for -relax option... " >&6; }
24191 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24194 gcc_cv_as_sparc_relax
=no
24195 if test x
$gcc_cv_as != x
; then
24196 $as_echo '.text' > conftest.s
24197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24199 (eval $ac_try) 2>&5
24201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24202 test $ac_status = 0; }; }
24204 gcc_cv_as_sparc_relax
=yes
24206 echo "configure: failed program was" >&5
24209 rm -f conftest.o conftest.s
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24213 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24214 if test $gcc_cv_as_sparc_relax = yes; then
24216 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24221 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24222 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24223 $as_echo_n "(cached) " >&6
24225 gcc_cv_as_sparc_gotdata_op
=no
24226 if test x
$gcc_cv_as != x
; then
24232 sethi %gdop_hix22(foo), %g1
24233 xor %g1, %gdop_lox10(foo), %g1
24234 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24242 if test x
$gcc_cv_ld != x \
24243 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24244 if test x
$gcc_cv_objdump != x
; then
24245 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24246 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24247 gcc_cv_as_sparc_gotdata_op
=no
24249 gcc_cv_as_sparc_gotdata_op
=yes
24255 echo "configure: failed program was" >&5
24258 rm -f conftest.o conftest.s
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24262 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24263 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24265 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24270 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24271 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24272 $as_echo_n "(cached) " >&6
24274 gcc_cv_as_sparc_ua_pcrel
=no
24275 if test x
$gcc_cv_as != x
; then
24282 .uaword %r_disp32(foo)' > conftest.s
24283 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24285 (eval $ac_try) 2>&5
24287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24288 test $ac_status = 0; }; }
24290 if test x
$gcc_cv_ld != x \
24291 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24292 gcc_cv_as_sparc_ua_pcrel
=yes
24296 echo "configure: failed program was" >&5
24299 rm -f conftest.o conftest.s
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24303 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24304 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24306 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24310 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24311 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24312 $as_echo_n "(cached) " >&6
24314 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24315 if test x
$gcc_cv_as != x
; then
24319 .uaword %r_disp32(foo)
24320 .byte 0x32, 0x33, 0x34
24324 .skip 4' > conftest.s
24325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24327 (eval $ac_try) 2>&5
24329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24330 test $ac_status = 0; }; }
24332 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24333 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24334 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24335 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24336 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24337 |
grep 'DISP32' > /dev
/null
2>&1; then
24340 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24345 echo "configure: failed program was" >&5
24348 rm -f conftest.o conftest.s
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24352 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24353 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24355 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24359 fi # unaligned pcrel relocs
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24362 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24363 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24364 $as_echo_n "(cached) " >&6
24366 gcc_cv_as_sparc_offsetable_lo10
=no
24367 if test x
$gcc_cv_as != x
; then
24369 or %g1, %lo(ab) + 12, %g1
24370 or %g1, %lo(ab + 12), %g1' > conftest.s
24371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24378 if test x
$gcc_cv_objdump != x \
24379 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24380 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24381 gcc_cv_as_sparc_offsetable_lo10
=yes
24384 echo "configure: failed program was" >&5
24387 rm -f conftest.o conftest.s
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24391 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24392 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24394 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24399 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24400 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24401 $as_echo_n "(cached) " >&6
24403 gcc_cv_as_sparc_fmaf
=no
24404 if test x
$gcc_cv_as != x
; then
24406 .register %g2, #scratch
24407 .register %g3, #scratch
24409 fmaddd %f0, %f2, %f4, %f6
24410 addxccc %g1, %g2, %g3
24411 fsrl32 %f2, %f4, %f8
24412 fnaddd %f10, %f12, %f14' > conftest.s
24413 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24415 (eval $ac_try) 2>&5
24417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24418 test $ac_status = 0; }; }
24420 gcc_cv_as_sparc_fmaf
=yes
24422 echo "configure: failed program was" >&5
24425 rm -f conftest.o conftest.s
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24429 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24430 if test $gcc_cv_as_sparc_fmaf = yes; then
24432 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24437 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24438 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24439 $as_echo_n "(cached) " >&6
24441 gcc_cv_as_sparc_sparc4
=no
24442 if test x
$gcc_cv_as != x
; then
24444 .register %g2, #scratch
24445 .register %g3, #scratch
24448 1: cwbneg %g2, %g3, 1f
24451 aes_kexpand0 %f4, %f6, %f8
24452 des_round %f38, %f40, %f42, %f44
24453 camellia_f %f54, %f56, %f58, %f60
24454 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }
24462 gcc_cv_as_sparc_sparc4
=yes
24464 echo "configure: failed program was" >&5
24467 rm -f conftest.o conftest.s
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24471 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24472 if test $gcc_cv_as_sparc_sparc4 = yes; then
24474 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24479 i
[34567]86-*-* | x86_64-
*-*)
24482 # Full C++ conformance when using a shared libstdc++-v3 requires some
24483 # support from the Cygwin DLL, which in more recent versions exports
24484 # wrappers to aid in interposing and redirecting operators new, delete,
24485 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24486 # are configuring for a version of Cygwin that exports the wrappers.
24487 if test x
$host = x
$target; then
24488 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24489 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24490 gcc_ac_cygwin_dll_wrappers
=yes
24492 gcc_ac_cygwin_dll_wrappers
=no
24496 # Can't check presence of libc functions during cross-compile, so
24497 # we just have to assume we're building for an up-to-date target.
24498 gcc_ac_cygwin_dll_wrappers
=yes
24501 cat >>confdefs.h
<<_ACEOF
24502 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24507 cygwin
* | pe | mingw32
* | interix
*)
24508 # Recent binutils allows the three-operand form of ".comm" on PE. This
24509 # definition is used unconditionally to initialise the default state of
24510 # the target option variable that governs usage of the feature.
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24512 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24513 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24514 $as_echo_n "(cached) " >&6
24516 gcc_cv_as_comm_has_align
=no
24517 if test $in_tree_gas = yes; then
24518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24519 then gcc_cv_as_comm_has_align
=yes
24521 elif test x
$gcc_cv_as != x
; then
24522 $as_echo '.comm foo,1,32' > conftest.s
24523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24525 (eval $ac_try) 2>&5
24527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528 test $ac_status = 0; }; }
24530 gcc_cv_as_comm_has_align
=yes
24532 echo "configure: failed program was" >&5
24535 rm -f conftest.o conftest.s
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24539 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24542 cat >>confdefs.h
<<_ACEOF
24543 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24546 # Used for DWARF 2 in PE
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24548 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24549 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24550 $as_echo_n "(cached) " >&6
24552 gcc_cv_as_ix86_pe_secrel32
=no
24553 if test $in_tree_gas = yes; then
24554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24555 then gcc_cv_as_ix86_pe_secrel32
=yes
24557 elif test x
$gcc_cv_as != x
; then
24561 .secrel32 foo' > conftest.s
24562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24564 (eval $ac_try) 2>&5
24566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24567 test $ac_status = 0; }; }
24569 if test x
$gcc_cv_ld != x \
24570 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24571 gcc_cv_as_ix86_pe_secrel32
=yes
24575 echo "configure: failed program was" >&5
24578 rm -f conftest.o conftest.s
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24582 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24583 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24585 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24588 # Test if the assembler supports the extended form of the .section
24589 # directive that specifies section alignment. LTO support uses this,
24590 # but normally only after installation, so we warn but don't fail the
24591 # configure if LTO is enabled but the assembler does not support it.
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24593 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24594 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24597 gcc_cv_as_section_has_align
=no
24598 if test $in_tree_gas = yes; then
24599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24600 then gcc_cv_as_section_has_align
=yes
24602 elif test x
$gcc_cv_as != x
; then
24603 $as_echo '.section lto_test,"dr0"' > conftest.s
24604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24611 gcc_cv_as_section_has_align
=yes
24613 echo "configure: failed program was" >&5
24616 rm -f conftest.o conftest.s
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24620 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24622 if test x
$gcc_cv_as_section_has_align != xyes
; then
24623 case ",$enable_languages," in
24625 { $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
24626 $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;}
24630 # Test if the assembler supports the section flag 'e' for specifying
24631 # an excluded section.
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24633 $as_echo_n "checking assembler for .section with e... " >&6; }
24634 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24637 gcc_cv_as_section_has_e
=no
24638 if test $in_tree_gas = yes; then
24639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24640 then gcc_cv_as_section_has_e
=yes
24642 elif test x
$gcc_cv_as != x
; then
24643 $as_echo '.section foo1,"e"
24644 .byte 0,0,0,0' > conftest.s
24645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; }
24652 gcc_cv_as_section_has_e
=yes
24654 echo "configure: failed program was" >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24661 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24664 cat >>confdefs.h
<<_ACEOF
24665 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24672 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24673 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24676 gcc_cv_as_ix86_filds
=no
24677 if test x
$gcc_cv_as != x
; then
24678 $as_echo 'filds mem; fists mem' > conftest.s
24679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24681 (eval $ac_try) 2>&5
24683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24684 test $ac_status = 0; }; }
24686 gcc_cv_as_ix86_filds
=yes
24688 echo "configure: failed program was" >&5
24691 rm -f conftest.o conftest.s
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24695 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24696 if test $gcc_cv_as_ix86_filds = yes; then
24698 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24703 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24704 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24705 $as_echo_n "(cached) " >&6
24707 gcc_cv_as_ix86_fildq
=no
24708 if test x
$gcc_cv_as != x
; then
24709 $as_echo 'fildq mem; fistpq mem' > conftest.s
24710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24717 gcc_cv_as_ix86_fildq
=yes
24719 echo "configure: failed program was" >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24726 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24727 if test $gcc_cv_as_ix86_fildq = yes; then
24729 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24734 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24735 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24736 $as_echo_n "(cached) " >&6
24738 gcc_cv_as_ix86_cmov_sun_syntax
=no
24739 if test x
$gcc_cv_as != x
; then
24740 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24741 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24748 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24750 echo "configure: failed program was" >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24757 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24758 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24760 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24765 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24766 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24767 $as_echo_n "(cached) " >&6
24769 gcc_cv_as_ix86_ffreep
=no
24770 if test x
$gcc_cv_as != x
; then
24771 $as_echo 'ffreep %st(1)' > conftest.s
24772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24774 (eval $ac_try) 2>&5
24776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24777 test $ac_status = 0; }; }
24779 gcc_cv_as_ix86_ffreep
=yes
24781 echo "configure: failed program was" >&5
24784 rm -f conftest.o conftest.s
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24788 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24789 if test $gcc_cv_as_ix86_ffreep = yes; then
24791 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24796 $as_echo_n "checking assembler for .quad directive... " >&6; }
24797 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24800 gcc_cv_as_ix86_quad
=no
24801 if test x
$gcc_cv_as != x
; then
24802 $as_echo '.quad 0' > conftest.s
24803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24810 gcc_cv_as_ix86_quad
=yes
24812 echo "configure: failed program was" >&5
24815 rm -f conftest.o conftest.s
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24819 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24820 if test $gcc_cv_as_ix86_quad = yes; then
24822 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24827 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24828 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
24831 gcc_cv_as_ix86_sahf
=no
24832 if test x
$gcc_cv_as != x
; then
24835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }
24842 gcc_cv_as_ix86_sahf
=yes
24844 echo "configure: failed program was" >&5
24847 rm -f conftest.o conftest.s
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24851 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24852 if test $gcc_cv_as_ix86_sahf = yes; then
24854 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24859 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24860 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24863 gcc_cv_as_ix86_hle
=no
24864 if test x
$gcc_cv_as != x
; then
24865 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24873 gcc_cv_as_ix86_hle
=yes
24875 echo "configure: failed program was" >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24882 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24883 if test $gcc_cv_as_ix86_hle = yes; then
24885 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24890 $as_echo_n "checking assembler for swap suffix... " >&6; }
24891 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24894 gcc_cv_as_ix86_swap
=no
24895 if test x
$gcc_cv_as != x
; then
24896 $as_echo 'movl.s %esp, %ebp' > conftest.s
24897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899 (eval $ac_try) 2>&5
24901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902 test $ac_status = 0; }; }
24904 gcc_cv_as_ix86_swap
=yes
24906 echo "configure: failed program was" >&5
24909 rm -f conftest.o conftest.s
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24913 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24914 if test $gcc_cv_as_ix86_swap = yes; then
24916 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24921 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24922 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24925 gcc_cv_as_ix86_diff_sect_delta
=no
24926 if test x
$gcc_cv_as != x
; then
24927 $as_echo '.section .rodata
24933 .L2: nop' > conftest.s
24934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24936 (eval $ac_try) 2>&5
24938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24939 test $ac_status = 0; }; }
24941 gcc_cv_as_ix86_diff_sect_delta
=yes
24943 echo "configure: failed program was" >&5
24946 rm -f conftest.o conftest.s
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24950 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24951 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24953 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24957 # These two are used unconditionally by i386.[ch]; it is to be defined
24958 # to 1 if the feature is present, 0 otherwise.
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24960 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24961 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24964 gcc_cv_as_ix86_gotoff_in_data
=no
24965 if test $in_tree_gas = yes; then
24966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24967 then gcc_cv_as_ix86_gotoff_in_data
=yes
24969 elif test x
$gcc_cv_as != x
; then
24974 .long .L0@GOTOFF' > conftest.s
24975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977 (eval $ac_try) 2>&5
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; }
24982 gcc_cv_as_ix86_gotoff_in_data
=yes
24984 echo "configure: failed program was" >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24991 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24994 cat >>confdefs.h
<<_ACEOF
24995 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25000 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25001 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25002 $as_echo_n "(cached) " >&6
25004 gcc_cv_as_ix86_rep_lock_prefix
=no
25005 if test x
$gcc_cv_as != x
; then
25006 $as_echo 'rep movsl
25011 lock addl %edi, (%eax,%esi)
25012 lock orl $0, (%esp)' > conftest.s
25013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25015 (eval $ac_try) 2>&5
25017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25018 test $ac_status = 0; }; }
25020 gcc_cv_as_ix86_rep_lock_prefix
=yes
25022 echo "configure: failed program was" >&5
25025 rm -f conftest.o conftest.s
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25029 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25030 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25032 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25037 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25038 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25039 $as_echo_n "(cached) " >&6
25041 gcc_cv_as_ix86_tlsgdplt
=no
25042 if test x
$gcc_cv_as != x
; then
25043 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25046 (eval $ac_try) 2>&5
25048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25049 test $ac_status = 0; }; }
25051 if test x
$gcc_cv_ld != x \
25052 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25053 gcc_cv_as_ix86_tlsgdplt
=yes
25057 echo "configure: failed program was" >&5
25060 rm -f conftest.o conftest.s
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25064 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25065 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25067 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25072 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25073 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25076 gcc_cv_as_ix86_tlsldmplt
=no
25077 if test x
$gcc_cv_as != x
; then
25079 call tls_ld@tlsldmplt' > conftest.s
25080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25087 if test x
$gcc_cv_ld != x \
25088 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25089 gcc_cv_as_ix86_tlsldmplt
=yes
25093 echo "configure: failed program was" >&5
25096 rm -f conftest.o conftest.s
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25100 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25101 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25103 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25111 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25112 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25115 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25116 if test $in_tree_gas = yes; then
25117 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25118 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25120 elif test x
$gcc_cv_as != x
; then
25122 addl r15 = @ltoffx(x#), gp
25124 ld8.mov r16 = [r15], x#' > conftest.s
25125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25132 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25134 echo "configure: failed program was" >&5
25137 rm -f conftest.o conftest.s
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25141 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25142 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25144 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25152 *-*-aix*) conftest_s
=' .machine "pwr5"
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25157 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25158 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25159 $as_echo_n "(cached) " >&6
25161 gcc_cv_as_machine_directive
=no
25162 if test x
$gcc_cv_as != x
; then
25163 $as_echo ' .machine ppc7400' > conftest.s
25164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25171 gcc_cv_as_machine_directive
=yes
25173 echo "configure: failed program was" >&5
25176 rm -f conftest.o conftest.s
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25180 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25182 if test x
$gcc_cv_as_machine_directive != xyes
; then
25183 echo "*** This target requires an assembler supporting \".machine\"" >&2
25184 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25185 test x
$build = x
$target && exit 1
25189 *) conftest_s
=' .machine power4
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25195 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25196 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25199 gcc_cv_as_powerpc_mfcrf
=no
25200 if test $in_tree_gas = yes; then
25201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25202 then gcc_cv_as_powerpc_mfcrf
=yes
25204 elif test x
$gcc_cv_as != x
; then
25205 $as_echo "$conftest_s" > conftest.s
25206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; }
25213 gcc_cv_as_powerpc_mfcrf
=yes
25215 echo "configure: failed program was" >&5
25218 rm -f conftest.o conftest.s
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25222 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25223 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25225 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25230 *-*-aix*) conftest_s
=' .machine "pwr5"
25233 *) conftest_s
=' .machine power5
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25239 $as_echo_n "checking assembler for popcntb support... " >&6; }
25240 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25241 $as_echo_n "(cached) " >&6
25243 gcc_cv_as_powerpc_popcntb
=no
25244 if test $in_tree_gas = yes; then
25245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25246 then gcc_cv_as_powerpc_popcntb
=yes
25248 elif test x
$gcc_cv_as != x
; then
25249 $as_echo "$conftest_s" > conftest.s
25250 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25257 gcc_cv_as_powerpc_popcntb
=yes
25259 echo "configure: failed program was" >&5
25262 rm -f conftest.o conftest.s
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25266 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25267 if test $gcc_cv_as_powerpc_popcntb = yes; then
25269 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25274 *-*-aix*) conftest_s
=' .machine "pwr5x"
25277 *) conftest_s
=' .machine power5
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25283 $as_echo_n "checking assembler for fp round support... " >&6; }
25284 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25285 $as_echo_n "(cached) " >&6
25287 gcc_cv_as_powerpc_fprnd
=no
25288 if test $in_tree_gas = yes; then
25289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25290 then gcc_cv_as_powerpc_fprnd
=yes
25292 elif test x
$gcc_cv_as != x
; then
25293 $as_echo "$conftest_s" > conftest.s
25294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25296 (eval $ac_try) 2>&5
25298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25299 test $ac_status = 0; }; }
25301 gcc_cv_as_powerpc_fprnd
=yes
25303 echo "configure: failed program was" >&5
25306 rm -f conftest.o conftest.s
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25310 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25311 if test $gcc_cv_as_powerpc_fprnd = yes; then
25313 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25318 *-*-aix*) conftest_s
=' .machine "pwr6"
25321 *) conftest_s
=' .machine power6
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25327 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25328 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25329 $as_echo_n "(cached) " >&6
25331 gcc_cv_as_powerpc_mfpgpr
=no
25332 if test $in_tree_gas = yes; then
25333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25334 then gcc_cv_as_powerpc_mfpgpr
=yes
25336 elif test x
$gcc_cv_as != x
; then
25337 $as_echo "$conftest_s" > conftest.s
25338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25340 (eval $ac_try) 2>&5
25342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25343 test $ac_status = 0; }; }
25345 gcc_cv_as_powerpc_mfpgpr
=yes
25347 echo "configure: failed program was" >&5
25350 rm -f conftest.o conftest.s
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25354 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25355 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25357 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25362 *-*-aix*) conftest_s
=' .csect .text[PR]
25364 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25368 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25369 *) conftest_s
=' .text
25371 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25375 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25376 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25379 gcc_cv_as_powerpc_rel16
=no
25380 if test $in_tree_gas = yes; then
25381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25382 then gcc_cv_as_powerpc_rel16
=yes
25384 elif test x
$gcc_cv_as != x
; then
25385 $as_echo "$conftest_s" > conftest.s
25386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25393 gcc_cv_as_powerpc_rel16
=yes
25395 echo "configure: failed program was" >&5
25398 rm -f conftest.o conftest.s
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25402 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25403 if test $gcc_cv_as_powerpc_rel16 = yes; then
25405 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25410 *-*-aix*) conftest_s
=' .machine "pwr6"
25413 *) conftest_s
=' .machine power6
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25419 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25420 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25423 gcc_cv_as_powerpc_cmpb
=no
25424 if test $in_tree_gas = yes; then
25425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25426 then gcc_cv_as_powerpc_cmpb
=yes
25428 elif test x
$gcc_cv_as != x
; then
25429 $as_echo "$conftest_s" > conftest.s
25430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25437 gcc_cv_as_powerpc_cmpb
=yes
25439 echo "configure: failed program was" >&5
25442 rm -f conftest.o conftest.s
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25446 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25447 if test $gcc_cv_as_powerpc_cmpb = yes; then
25449 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25454 *-*-aix*) conftest_s
=' .machine "pwr6"
25457 *) conftest_s
=' .machine power6
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25463 $as_echo_n "checking assembler for decimal float support... " >&6; }
25464 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25465 $as_echo_n "(cached) " >&6
25467 gcc_cv_as_powerpc_dfp
=no
25468 if test $in_tree_gas = yes; then
25469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25470 then gcc_cv_as_powerpc_dfp
=yes
25472 elif test x
$gcc_cv_as != x
; then
25473 $as_echo "$conftest_s" > conftest.s
25474 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }
25481 gcc_cv_as_powerpc_dfp
=yes
25483 echo "configure: failed program was" >&5
25486 rm -f conftest.o conftest.s
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25490 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25491 if test $gcc_cv_as_powerpc_dfp = yes; then
25493 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25498 *-*-aix*) conftest_s
=' .machine "pwr7"
25501 *) conftest_s
=' .machine power7
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25507 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25508 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25509 $as_echo_n "(cached) " >&6
25511 gcc_cv_as_powerpc_vsx
=no
25512 if test $in_tree_gas = yes; then
25513 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25514 then gcc_cv_as_powerpc_vsx
=yes
25516 elif test x
$gcc_cv_as != x
; then
25517 $as_echo "$conftest_s" > conftest.s
25518 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25520 (eval $ac_try) 2>&5
25522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }; }
25525 gcc_cv_as_powerpc_vsx
=yes
25527 echo "configure: failed program was" >&5
25530 rm -f conftest.o conftest.s
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25534 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25535 if test $gcc_cv_as_powerpc_vsx = yes; then
25537 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25542 *-*-aix*) conftest_s
=' .machine "pwr7"
25545 *) conftest_s
=' .machine power7
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25551 $as_echo_n "checking assembler for popcntd support... " >&6; }
25552 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25553 $as_echo_n "(cached) " >&6
25555 gcc_cv_as_powerpc_popcntd
=no
25556 if test $in_tree_gas = yes; then
25557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25558 then gcc_cv_as_powerpc_popcntd
=yes
25560 elif test x
$gcc_cv_as != x
; then
25561 $as_echo "$conftest_s" > conftest.s
25562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25564 (eval $ac_try) 2>&5
25566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25567 test $ac_status = 0; }; }
25569 gcc_cv_as_powerpc_popcntd
=yes
25571 echo "configure: failed program was" >&5
25574 rm -f conftest.o conftest.s
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25578 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25579 if test $gcc_cv_as_powerpc_popcntd = yes; then
25581 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25586 *-*-aix*) conftest_s
=' .machine "pwr8"
25587 .csect .text[PR]';;
25588 *) conftest_s
=' .machine power8
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25593 $as_echo_n "checking assembler for power8 support... " >&6; }
25594 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25597 gcc_cv_as_powerpc_power8
=no
25598 if test $in_tree_gas = yes; then
25599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25600 then gcc_cv_as_powerpc_power8
=yes
25602 elif test x
$gcc_cv_as != x
; then
25603 $as_echo "$conftest_s" > conftest.s
25604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25611 gcc_cv_as_powerpc_power8
=yes
25613 echo "configure: failed program was" >&5
25616 rm -f conftest.o conftest.s
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25620 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25621 if test $gcc_cv_as_powerpc_power8 = yes; then
25623 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25628 *-*-aix*) conftest_s
=' .csect .text[PR]
25630 *) conftest_s
=' .text
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25635 $as_echo_n "checking assembler for lwsync support... " >&6; }
25636 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25637 $as_echo_n "(cached) " >&6
25639 gcc_cv_as_powerpc_lwsync
=no
25640 if test $in_tree_gas = yes; then
25641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25642 then gcc_cv_as_powerpc_lwsync
=yes
25644 elif test x
$gcc_cv_as != x
; then
25645 $as_echo "$conftest_s" > conftest.s
25646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25648 (eval $ac_try) 2>&5
25650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25651 test $ac_status = 0; }; }
25653 gcc_cv_as_powerpc_lwsync
=yes
25655 echo "configure: failed program was" >&5
25658 rm -f conftest.o conftest.s
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25662 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25663 if test $gcc_cv_as_powerpc_lwsync = yes; then
25665 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25670 *-*-aix*) conftest_s
=' .machine "476"
25673 *) conftest_s
=' .machine "476"
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25679 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25680 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25681 $as_echo_n "(cached) " >&6
25683 gcc_cv_as_powerpc_dci
=no
25684 if test $in_tree_gas = yes; then
25685 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25686 then gcc_cv_as_powerpc_dci
=yes
25688 elif test x
$gcc_cv_as != x
; then
25689 $as_echo "$conftest_s" > conftest.s
25690 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25697 gcc_cv_as_powerpc_dci
=yes
25699 echo "configure: failed program was" >&5
25702 rm -f conftest.o conftest.s
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25706 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25707 if test $gcc_cv_as_powerpc_dci = yes; then
25709 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25714 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25715 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25716 $as_echo_n "(cached) " >&6
25718 gcc_cv_as_powerpc_gnu_attribute
=no
25719 if test $in_tree_gas = yes; then
25720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25721 then gcc_cv_as_powerpc_gnu_attribute
=yes
25723 elif test x
$gcc_cv_as != x
; then
25724 $as_echo '.gnu_attribute 4,1' > conftest.s
25725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25732 gcc_cv_as_powerpc_gnu_attribute
=yes
25734 echo "configure: failed program was" >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25741 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25742 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25744 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25749 $as_echo_n "checking assembler for tls marker support... " >&6; }
25750 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25751 $as_echo_n "(cached) " >&6
25753 gcc_cv_as_powerpc_tls_markers
=no
25754 if test $in_tree_gas = yes; then
25755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25756 then gcc_cv_as_powerpc_tls_markers
=yes
25758 elif test x
$gcc_cv_as != x
; then
25759 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25762 (eval $ac_try) 2>&5
25764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25765 test $ac_status = 0; }; }
25767 gcc_cv_as_powerpc_tls_markers
=yes
25769 echo "configure: failed program was" >&5
25772 rm -f conftest.o conftest.s
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25776 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25777 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25779 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25786 $as_echo_n "checking assembler for .ref support... " >&6; }
25787 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25790 gcc_cv_as_aix_ref
=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25793 then gcc_cv_as_aix_ref
=yes
25795 elif test x
$gcc_cv_as != x
; then
25796 $as_echo ' .csect stuff[rw]
25802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25809 gcc_cv_as_aix_ref
=yes
25811 echo "configure: failed program was" >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25818 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25819 if test $gcc_cv_as_aix_ref = yes; then
25821 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25830 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25831 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25832 $as_echo_n "(cached) " >&6
25834 gcc_cv_as_mips_explicit_relocs
=no
25835 if test $in_tree_gas = yes; then
25836 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25837 then gcc_cv_as_mips_explicit_relocs
=yes
25839 elif test x
$gcc_cv_as != x
; then
25840 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25841 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25843 (eval $ac_try) 2>&5
25845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25846 test $ac_status = 0; }; }
25848 gcc_cv_as_mips_explicit_relocs
=yes
25850 echo "configure: failed program was" >&5
25853 rm -f conftest.o conftest.s
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25857 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25858 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25859 if test x
$target_cpu_default = x
25860 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25861 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25865 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25866 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25869 gcc_cv_as_mips_no_shared
=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25872 then gcc_cv_as_mips_no_shared
=yes
25874 elif test x
$gcc_cv_as != x
; then
25875 $as_echo 'nop' > conftest.s
25876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25883 gcc_cv_as_mips_no_shared
=yes
25885 echo "configure: failed program was" >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25892 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25893 if test $gcc_cv_as_mips_no_shared = yes; then
25895 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25900 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25901 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25904 gcc_cv_as_mips_gnu_attribute
=no
25905 if test $in_tree_gas = yes; then
25906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25907 then gcc_cv_as_mips_gnu_attribute
=yes
25909 elif test x
$gcc_cv_as != x
; then
25910 $as_echo '.gnu_attribute 4,1' > conftest.s
25911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; }
25918 gcc_cv_as_mips_gnu_attribute
=yes
25920 echo "configure: failed program was" >&5
25923 rm -f conftest.o conftest.s
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25927 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25928 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25930 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25935 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25936 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25939 gcc_cv_as_mips_dtprelword
=no
25940 if test $in_tree_gas = yes; then
25941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25942 then gcc_cv_as_mips_dtprelword
=yes
25944 elif test x
$gcc_cv_as != x
; then
25945 $as_echo '.section .tdata,"awT",@progbits
25949 .dtprelword x+0x8000' > conftest.s
25950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25952 (eval $ac_try) 2>&5
25954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25955 test $ac_status = 0; }; }
25957 gcc_cv_as_mips_dtprelword
=yes
25959 echo "configure: failed program was" >&5
25962 rm -f conftest.o conftest.s
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25966 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25967 if test $gcc_cv_as_mips_dtprelword = yes; then
25969 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25974 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25975 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25976 $as_echo_n "(cached) " >&6
25978 gcc_cv_as_mips_dspr1_mult
=no
25979 if test x
$gcc_cv_as != x
; then
25980 $as_echo ' .set mips32r2
25988 multu $ac3,$4,$5' > conftest.s
25989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25991 (eval $ac_try) 2>&5
25993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25994 test $ac_status = 0; }; }
25996 gcc_cv_as_mips_dspr1_mult
=yes
25998 echo "configure: failed program was" >&5
26001 rm -f conftest.o conftest.s
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26005 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26006 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26008 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26013 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26014 gcc_cv_as_ld_jalr_reloc
=no
26015 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26016 if test $in_tree_ld = yes ; then
26017 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 \
26018 && test $in_tree_ld_is_elf = yes; then
26019 gcc_cv_as_ld_jalr_reloc
=yes
26021 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26022 echo ' .ent x' > conftest.s
26023 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26024 echo ' ld $25,%call16(y)($28)' >> conftest.s
26025 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26026 echo '1: jalr $25' >> conftest.s
26027 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26028 echo '1: jalr $25' >> conftest.s
26029 echo ' .end x' >> conftest.s
26030 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26031 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26032 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26033 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26034 gcc_cv_as_ld_jalr_reloc
=yes
26040 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26041 if test x
$target_cpu_default = x
; then
26042 target_cpu_default
=MASK_RELAX_PIC_CALLS
26044 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26048 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26051 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26052 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26055 gcc_cv_ld_mips_personality_relaxation
=no
26056 if test $in_tree_ld = yes ; then
26057 if test "$gcc_cv_gld_major_version" -eq 2 \
26058 -a "$gcc_cv_gld_minor_version" -ge 21 \
26059 -o "$gcc_cv_gld_major_version" -gt 2; then
26060 gcc_cv_ld_mips_personality_relaxation
=yes
26062 elif test x
$gcc_cv_as != x \
26063 -a x
$gcc_cv_ld != x \
26064 -a x
$gcc_cv_readelf != x
; then
26065 cat > conftest.s
<<EOF
26067 .cfi_personality 0x80,indirect_ptr
26074 .section .data,"aw",@progbits
26078 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26079 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26080 if $gcc_cv_readelf -d conftest
2>&1 \
26081 |
grep TEXTREL
> /dev
/null
2>&1; then
26083 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26084 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26087 gcc_cv_ld_mips_personality_relaxation
=yes
26091 rm -f conftest.s conftest.o conftest
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26094 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26095 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26097 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26103 # Mips and HP-UX need the GNU assembler.
26104 # Linux on IA64 might be able to use the Intel assembler.
26107 mips
*-*-* |
*-*-hpux* )
26108 if test x
$gas_flag = xyes \
26109 ||
test x
"$host" != x
"$build" \
26110 ||
test ! -x "$gcc_cv_as" \
26111 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26114 echo "*** This configuration requires the GNU assembler" >&2
26120 # ??? Not all targets support dwarf2 debug_line, even within a version
26121 # of gas. Moreover, we need to emit a valid instruction to trigger any
26122 # info to the output file. So, as supported targets are added to gas 2.11,
26123 # add some instruction here to (also) show we expect this might work.
26124 # ??? Once 2.11 is released, probably need to add first known working
26125 # version to the per-target configury.
26126 case "$cpu_type" in
26127 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26128 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
26138 if test x
"$insn" != x
; then
26140 .file 1 \"conftest.s\"
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26144 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26145 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26146 $as_echo_n "(cached) " >&6
26148 gcc_cv_as_dwarf2_debug_line
=no
26149 if test $in_tree_gas = yes; then
26150 if test $in_tree_gas_is_elf = yes \
26151 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26152 then gcc_cv_as_dwarf2_debug_line
=yes
26154 elif test x
$gcc_cv_as != x
; then
26155 $as_echo "$conftest_s" > conftest.s
26156 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26158 (eval $ac_try) 2>&5
26160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26161 test $ac_status = 0; }; }
26163 if test x
$gcc_cv_objdump != x \
26164 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26165 |
grep debug_line
> /dev
/null
2>&1; then
26166 gcc_cv_as_dwarf2_debug_line
=yes
26169 echo "configure: failed program was" >&5
26172 rm -f conftest.o conftest.s
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26176 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26179 # The .debug_line file table must be in the exact order that
26180 # we specified the files, since these indices are also used
26181 # by DW_AT_decl_file. Approximate this test by testing if
26182 # the assembler bitches if the same index is assigned twice.
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26184 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26185 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26186 $as_echo_n "(cached) " >&6
26188 gcc_cv_as_dwarf2_file_buggy
=no
26189 if test x
$gcc_cv_as != x
; then
26190 $as_echo ' .file 1 "foo.s"
26191 .file 1 "bar.s"' > conftest.s
26192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26194 (eval $ac_try) 2>&5
26196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26197 test $ac_status = 0; }; }
26199 gcc_cv_as_dwarf2_file_buggy
=yes
26201 echo "configure: failed program was" >&5
26204 rm -f conftest.o conftest.s
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26208 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26211 if test $gcc_cv_as_dwarf2_debug_line = yes \
26212 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26214 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26219 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26220 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26221 $as_echo_n "(cached) " >&6
26223 gcc_cv_as_gdwarf2_flag
=no
26224 if test $in_tree_gas = yes; then
26225 if test $in_tree_gas_is_elf = yes \
26226 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26227 then gcc_cv_as_gdwarf2_flag
=yes
26229 elif test x
$gcc_cv_as != x
; then
26230 $as_echo "$insn" > conftest.s
26231 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26233 (eval $ac_try) 2>&5
26235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26236 test $ac_status = 0; }; }
26238 gcc_cv_as_gdwarf2_flag
=yes
26240 echo "configure: failed program was" >&5
26243 rm -f conftest.o conftest.s
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26247 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26248 if test $gcc_cv_as_gdwarf2_flag = yes; then
26250 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26255 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26256 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26257 $as_echo_n "(cached) " >&6
26259 gcc_cv_as_gstabs_flag
=no
26260 if test $in_tree_gas = yes; then
26261 if test $in_tree_gas_is_elf = yes \
26262 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26263 then gcc_cv_as_gstabs_flag
=yes
26265 elif test x
$gcc_cv_as != x
; then
26266 $as_echo "$insn" > conftest.s
26267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26269 (eval $ac_try) 2>&5
26271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26272 test $ac_status = 0; }; }
26274 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26275 # and warns about it, but still exits successfully. So check for
26277 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26279 (eval $ac_try) 2>&5
26281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26282 test $ac_status = 0; }; }
26284 else gcc_cv_as_gstabs_flag
=yes
26287 echo "configure: failed program was" >&5
26290 rm -f conftest.o conftest.s
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26294 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26295 if test $gcc_cv_as_gstabs_flag = yes; then
26297 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26302 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26303 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26306 gcc_cv_as_debug_prefix_map_flag
=no
26307 if test $in_tree_gas = yes; then
26308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26309 then gcc_cv_as_debug_prefix_map_flag
=yes
26311 elif test x
$gcc_cv_as != x
; then
26312 $as_echo "$insn" > conftest.s
26313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26320 gcc_cv_as_debug_prefix_map_flag
=yes
26322 echo "configure: failed program was" >&5
26325 rm -f conftest.o conftest.s
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26329 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26330 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26332 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26338 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26339 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26340 $as_echo_n "(cached) " >&6
26342 gcc_cv_as_lcomm_with_alignment
=no
26343 if test x
$gcc_cv_as != x
; then
26344 $as_echo '.lcomm bar,4,16' > conftest.s
26345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347 (eval $ac_try) 2>&5
26349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; }
26352 gcc_cv_as_lcomm_with_alignment
=yes
26354 echo "configure: failed program was" >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26361 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26362 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26364 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26368 # Check whether --enable-gnu-unique-object was given.
26369 if test "${enable_gnu_unique_object+set}" = set; then :
26370 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26372 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26373 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26377 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26378 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26379 $as_echo_n "(cached) " >&6
26381 gcc_cv_as_gnu_unique_object
=no
26382 if test $in_tree_gas = yes; then
26383 if test $in_tree_gas_is_elf = yes \
26384 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26385 then gcc_cv_as_gnu_unique_object
=yes
26387 elif test x
$gcc_cv_as != x
; then
26388 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26389 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26396 gcc_cv_as_gnu_unique_object
=yes
26398 echo "configure: failed program was" >&5
26401 rm -f conftest.o conftest.s
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26405 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26406 if test $gcc_cv_as_gnu_unique_object = yes; then
26407 # We need to unquote above to to use the definition from config.gcc.
26408 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26409 if test x
$host = x
$build -a x
$host = x
$target &&
26410 ldd
--version 2>/dev
/null
&&
26411 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26412 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26413 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26414 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26415 if test "$glibcnum" -ge 2011 ; then
26416 enable_gnu_unique_object
=yes
26422 if test x
$enable_gnu_unique_object = xyes
; then
26424 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26429 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26430 if test "${gcc_cv_as_line_zero+set}" = set; then :
26431 $as_echo_n "(cached) " >&6
26433 gcc_cv_as_line_zero
=no
26434 if test $in_tree_gas = yes; then
26435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26436 then gcc_cv_as_line_zero
=yes
26438 elif test "x$gcc_cv_as" != x
; then
26439 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26440 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; } &&
26446 test "x`cat conftest.out`" = x
26448 gcc_cv_as_line_zero
=yes
26450 echo "configure: failed program was" >&5
26452 echo "configure: error output was" >&5
26453 cat conftest.out
>&5
26455 rm -f conftest.o conftest.s conftest.out
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26459 $as_echo "$gcc_cv_as_line_zero" >&6; }
26460 if test "x$gcc_cv_as_line_zero" = xyes
; then
26462 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26467 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26468 gcc_cv_ld_eh_frame_hdr
=no
26469 if test $in_tree_ld = yes ; then
26470 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 \
26471 && test $in_tree_ld_is_elf = yes; then
26472 gcc_cv_ld_eh_frame_hdr
=yes
26474 elif test x
$gcc_cv_ld != x
; then
26475 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26476 # Check if linker supports --eh-frame-hdr option
26477 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26478 gcc_cv_ld_eh_frame_hdr
=yes
26483 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26484 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26485 gcc_cv_ld_eh_frame_hdr
=yes
26492 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26494 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26498 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26501 $as_echo_n "checking linker position independent executable support... " >&6; }
26503 if test $in_tree_ld = yes ; then
26504 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 \
26505 && test $in_tree_ld_is_elf = yes; then
26508 elif test x
$gcc_cv_ld != x
; then
26509 # Check if linker supports -pie option
26510 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26514 if test x
"$gcc_cv_ld_pie" = xyes
; then
26516 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26520 $as_echo "$gcc_cv_ld_pie" >&6; }
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26523 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26524 gcc_cv_ld_eh_gc_sections
=no
26525 if test $in_tree_ld = yes ; then
26526 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 \
26527 && test $in_tree_ld_is_elf = yes; then
26528 gcc_cv_ld_eh_gc_sections
=yes
26530 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26531 cat > conftest.s
<<EOF
26534 .type _start, @function
26537 .size _start, .-_start
26538 .section .text.foo,"ax",@progbits
26539 .type foo, @function
26543 .section .gcc_except_table.foo,"a",@progbits
26546 .section .eh_frame,"a",@progbits
26549 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26550 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26551 |
grep "gc-sections option ignored" > /dev
/null
; then
26552 gcc_cv_ld_eh_gc_sections
=no
26553 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26554 |
grep gcc_except_table
> /dev
/null
; then
26555 gcc_cv_ld_eh_gc_sections
=yes
26556 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26557 if test x
$gcc_cv_as_comdat_group != xyes
; then
26558 gcc_cv_ld_eh_gc_sections
=no
26559 cat > conftest.s
<<EOF
26562 .type _start, @function
26565 .size _start, .-_start
26566 .section .gnu.linkonce.t.foo,"ax",@progbits
26567 .type foo, @function
26571 .section .gcc_except_table.foo,"a",@progbits
26574 .section .eh_frame,"a",@progbits
26577 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26578 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26579 |
grep "gc-sections option ignored" > /dev
/null
; then
26580 gcc_cv_ld_eh_gc_sections
=no
26581 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26582 |
grep gcc_except_table
> /dev
/null
; then
26583 gcc_cv_ld_eh_gc_sections
=yes
26589 rm -f conftest.s conftest.o conftest
26593 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26594 gcc_cv_ld_eh_gc_sections
=no
26597 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26599 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26603 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26606 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26607 gcc_cv_ld_eh_gc_sections_bug
=no
26608 if test $in_tree_ld = yes ; then
26609 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26610 && test $in_tree_ld_is_elf = yes; then
26611 gcc_cv_ld_eh_gc_sections_bug
=yes
26613 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
-a x
$gcc_cv_as_comdat_group = xyes
; then
26614 gcc_cv_ld_eh_gc_sections_bug
=yes
26615 cat > conftest.s
<<EOF
26618 .type _start, @function
26621 .size _start, .-_start
26622 .section .text.startup.foo,"ax",@progbits
26623 .type foo, @function
26627 .section .gcc_except_table.foo,"a",@progbits
26630 .section .eh_frame,"a",@progbits
26633 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26634 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26635 |
grep "gc-sections option ignored" > /dev
/null
; then
26637 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26638 |
grep gcc_except_table
> /dev
/null
; then
26639 gcc_cv_ld_eh_gc_sections_bug
=no
26642 rm -f conftest.s conftest.o conftest
26644 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26646 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26650 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26657 $as_echo_n "checking linker --as-needed support... " >&6; }
26658 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26661 gcc_cv_ld_as_needed
=no
26662 if test $in_tree_ld = yes ; then
26663 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 \
26664 && test $in_tree_ld_is_elf = yes; then
26665 gcc_cv_ld_as_needed
=yes
26667 elif test x
$gcc_cv_ld != x
; then
26668 # Check if linker supports --as-needed and --no-as-needed options
26669 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26670 gcc_cv_ld_as_needed
=yes
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26676 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26677 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26679 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26683 case "$target:$tm_file" in
26684 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26687 emul_name
="-melf64ppc"
26690 emul_name
="-melf64ppc_fbsd"
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26694 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26695 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26696 $as_echo_n "(cached) " >&6
26698 gcc_cv_ld_no_dot_syms
=no
26699 if test x
"$ld_is_gold" = xyes
; then
26700 gcc_cv_ld_no_dot_syms
=yes
26701 elif test $in_tree_ld = yes ; then
26702 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
26703 gcc_cv_ld_no_dot_syms
=yes
26705 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26706 cat > conftest1.s
<<EOF
26710 cat > conftest2.s
<<EOF
26711 .section ".opd","aw"
26714 .type foo,@function
26716 .quad .LEfoo,.TOC.@tocbase,0
26722 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26723 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26724 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26725 gcc_cv_ld_no_dot_syms
=yes
26727 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26732 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26733 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26735 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26740 $as_echo_n "checking linker large toc support... " >&6; }
26741 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26742 $as_echo_n "(cached) " >&6
26744 gcc_cv_ld_large_toc
=no
26745 if test x
"$ld_is_gold" = xyes
; then
26746 gcc_cv_ld_large_toc
=yes
26747 elif test $in_tree_ld = yes ; then
26748 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
26749 gcc_cv_ld_large_toc
=yes
26751 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26752 cat > conftest.s
<<EOF
26753 .section ".tbss","awT",@nobits
26759 addis 9,13,ie0@got@tprel@ha
26760 ld 9,ie0@got@tprel@l(9)
26762 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26763 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26764 gcc_cv_ld_large_toc
=yes
26766 rm -f conftest conftest.o conftest.s
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26771 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26772 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26774 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26783 $as_echo_n "checking linker large toc support... " >&6; }
26784 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26785 $as_echo_n "(cached) " >&6
26787 gcc_cv_ld_large_toc
=no
26788 if test x
$gcc_cv_as != x
; then
26789 cat > conftest.s
<<EOF
26799 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26800 gcc_cv_ld_large_toc
=yes
26802 rm -f conftest conftest.o conftest.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26807 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26808 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26810 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26817 $as_echo_n "checking linker --build-id support... " >&6; }
26818 if test "${gcc_cv_ld_buildid+set}" = set; then :
26819 $as_echo_n "(cached) " >&6
26821 gcc_cv_ld_buildid
=no
26822 if test $in_tree_ld = yes ; then
26823 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26824 "$gcc_cv_gld_minor_version" -ge 18 -o \
26825 "$gcc_cv_gld_major_version" -gt 2 \
26826 && test $in_tree_ld_is_elf = yes; then
26827 gcc_cv_ld_buildid
=yes
26829 elif test x
$gcc_cv_ld != x
; then
26830 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26831 gcc_cv_ld_buildid
=yes
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26836 $as_echo "$gcc_cv_ld_buildid" >&6; }
26837 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26839 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26843 # Check whether --enable-linker-build-id was given.
26844 if test "${enable_linker_build_id+set}" = set; then :
26845 enableval
=$enable_linker_build_id;
26847 enable_linker_build_id
=no
26851 if test x
"$enable_linker_build_id" = xyes
; then
26852 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26854 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26858 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26862 # In binutils 2.21, GNU ld gained support for new emulations fully
26863 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26865 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26866 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26869 gcc_cv_ld_sol2_emulation
=no
26870 if test $in_tree_ld = yes ; then
26871 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26872 "$gcc_cv_gld_minor_version" -ge 21 -o \
26873 "$gcc_cv_gld_major_version" -gt 2 \
26874 && test $in_tree_ld_is_elf = yes; then
26875 gcc_cv_ld_sol2_emulation
=yes
26877 elif test x
$gcc_cv_ld != x
; then
26878 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26879 grep _sol2
> /dev
/null
; then
26880 gcc_cv_ld_sol2_emulation
=yes
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26885 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26886 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26888 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26893 $as_echo_n "checking linker --sysroot support... " >&6; }
26894 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26895 $as_echo_n "(cached) " >&6
26897 gcc_cv_ld_sysroot
=no
26898 if test $in_tree_ld = yes ; then
26899 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
26900 gcc_cv_ld_sysroot
=yes
26902 elif test x
$gcc_cv_ld != x
; then
26903 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26904 gcc_cv_ld_sysroot
=yes
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26909 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26910 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26912 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26916 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26917 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26918 && test "$prefix" != "NONE"; then
26920 cat >>confdefs.h
<<_ACEOF
26921 #define PREFIX_INCLUDE_DIR "$prefix/include"
26926 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26927 if test "x$with_headers" != x
; then
26928 target_header_dir
=$with_headers
26929 elif test "x$with_sysroot" = x
; then
26930 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26931 elif test "x$with_build_sysroot" != "x"; then
26932 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26933 elif test "x$with_sysroot" = xyes
; then
26934 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26936 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26939 target_header_dir
=${native_system_header_dir}
26942 # Test for stack protector support in target C library.
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26944 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26945 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26946 $as_echo_n "(cached) " >&6
26948 gcc_cv_libc_provides_ssp
=no
26950 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26951 # glibc 2.4 and later provides __stack_chk_fail and
26952 # either __stack_chk_guard, or TLS access to stack guard canary.
26953 if test -f $target_header_dir/features.h \
26954 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26955 $target_header_dir/features.h
> /dev
/null
; then
26956 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26957 $target_header_dir/features.h
> /dev
/null
; then
26958 gcc_cv_libc_provides_ssp
=yes
26959 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26960 $target_header_dir/features.h
> /dev
/null \
26961 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26962 $target_header_dir/features.h
> /dev
/null
; then
26963 gcc_cv_libc_provides_ssp
=yes
26964 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26965 $target_header_dir/features.h
> /dev
/null
&& \
26966 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26967 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26968 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26969 gcc_cv_libc_provides_ssp
=yes
26971 # all versions of Bionic support stack protector
26972 elif test -f $target_header_dir/sys
/cdefs.h \
26973 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26974 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26975 gcc_cv_libc_provides_ssp
=yes
26979 # Avoid complicated tests (see
26980 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26981 # simply assert that glibc does provide this, which is true for all
26982 # realistically usable GNU/Hurd configurations.
26983 gcc_cv_libc_provides_ssp
=yes;;
26984 *-*-darwin* |
*-*-freebsd*)
26985 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26986 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26987 gcc_cv_libc_provides_ssp
=yes
26989 echo "no __stack_chk_fail on this target"
26993 *) gcc_cv_libc_provides_ssp
=no
;;
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26997 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26999 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27001 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27005 # Test for <sys/sdt.h> on the target.
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27008 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27010 if test -f $target_header_dir/sys
/sdt.h
; then
27013 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27017 $as_echo "$have_sys_sdt_h" >&6; }
27019 # Check if TFmode long double should be used by default or not.
27020 # Some glibc targets used DFmode long double, but with glibc 2.4
27021 # and later they can use TFmode.
27023 powerpc
*-*-linux* | \
27024 sparc
*-*-linux* | \
27028 # Check whether --with-long-double-128 was given.
27029 if test "${with_long_double_128+set}" = set; then :
27030 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27032 gcc_cv_target_ldbl128
=no
27033 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27034 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27035 && gcc_cv_target_ldbl128
=yes
27041 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27043 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27048 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27049 gcc_cv_target_dl_iterate_phdr
=unknown
27051 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27052 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27053 # libdl there, both complicating its use and breaking compatibility
27054 # between Solaris 10 updates.
27055 *-*-solaris2.1
[1-9]*)
27056 # <link.h> needs both a dl_iterate_phdr declaration and support for
27057 # compilation with largefile support.
27058 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27059 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27060 gcc_cv_target_dl_iterate_phdr
=yes
27062 gcc_cv_target_dl_iterate_phdr
=no
27067 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27069 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27073 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27075 # Find out what GC implementation we want, or may, use.
27077 # Check whether --with-gc was given.
27078 if test "${with_gc+set}" = set; then :
27079 withval
=$with_gc; case "$withval" in
27086 $as_echo "#define GGC_ZONE 1" >>confdefs.h
27090 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
27098 echo "Using $GGC for garbage collection."
27100 # Libraries to use on the host. This will normally be set by the top
27101 # level Makefile. Here we simply capture the value for our Makefile.
27102 if test -z "${HOST_LIBS+set}"; then
27107 # Use the system's zlib library.
27109 zlibinc
="-I\$(srcdir)/../zlib"
27111 # Check whether --with-system-zlib was given.
27112 if test "${with_system_zlib+set}" = set; then :
27113 withval
=$with_system_zlib; zlibdir
=
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27123 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27124 # Check whether --enable-maintainer-mode was given.
27125 if test "${enable_maintainer_mode+set}" = set; then :
27126 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27133 $as_echo "$maintainer_mode" >&6; }
27135 if test "$maintainer_mode" = "yes"; then
27145 # Make empty files to contain the specs and options for each language.
27146 # Then add #include lines to for a compiler that has specs and/or options.
27152 # These (without "all_") are set in each config-lang.in.
27153 # `language' must be a single word so is spelled singularly.
27156 all_outputs
='Makefile'
27157 # List of language makefile fragments.
27158 all_lang_makefrags
=
27159 # Additional files for gengtype
27160 all_gtfiles
="$target_gtfiles"
27162 # These are the languages that are set in --enable-languages,
27163 # and are available in the GCC tree.
27164 all_selected_languages
=
27166 # Add the language fragments.
27167 # Languages are added via two mechanisms. Some information must be
27168 # recorded in makefile variables, these are defined in config-lang.in.
27169 # We accumulate them and plug them into the main Makefile.
27170 # The other mechanism is a set of hooks for each of the main targets
27171 # like `clean', `install', etc.
27173 language_hooks
="Make-hooks"
27175 for lang
in ${srcdir}/*/config-lang.
in
27177 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27179 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27180 if test "x$lang_alias" = x
27182 echo "$lang doesn't set \$language." 1>&2
27185 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27186 subdirs
="$subdirs $subdir"
27188 # $gcc_subdir is where the gcc integration files are to be found
27189 # for a language, both for internal compiler purposes (compiler
27190 # sources implementing front-end to GCC tree converters), and for
27191 # build infrastructure purposes (Make-lang.in, etc.)
27193 # This will be <subdir> (relative to $srcdir) if a line like
27194 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27195 # is found in <langdir>/config-lang.in, and will remain <langdir>
27198 # Except for the language alias (fetched above), the regular
27199 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27200 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27201 # only this and the language alias.
27203 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27204 if [ "$gcc_subdir" = "" ]; then
27205 gcc_subdir
="$subdir"
27208 case ",$enable_languages," in
27210 all_selected_languages
="$all_selected_languages $lang_alias"
27211 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27212 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27223 .
${srcdir}/$gcc_subdir/config-lang.
in
27224 if test "x$language" = x
27226 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27231 case ",$enable_languages," in
27232 *,$lang_alias,*) ;;
27234 for i
in $subdir_requires; do
27235 test -f "${srcdir}/$i/config-lang.in" && continue
27243 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27244 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27245 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27246 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27248 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27249 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27251 all_languages
="$all_languages $language"
27252 all_compilers
="$all_compilers $compilers"
27253 all_outputs
="$all_outputs $outputs"
27254 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27255 case ",$enable_languages," in
27258 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27268 for language
in $all_selected_languages
27270 check_languages
="$check_languages check-$language"
27273 # We link each language in with a set of hooks, reached indirectly via
27274 # lang.${target}. Only do so for selected languages.
27278 target_list
="all.cross start.encap rest.encap tags \
27279 install-common install-man install-info install-pdf install-html dvi \
27280 pdf html uninstall info man srcextra srcman srcinfo \
27281 mostlyclean clean distclean maintainer-clean install-plugin"
27283 for t
in $target_list
27286 for lang
in $all_selected_languages
27290 echo "lang.$t: $x" >> Make-hooks
27294 # Option include files
27297 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27298 option_includes
="option-includes.mk"
27307 echo "dir ." > .gdbinit
27308 echo "dir ${srcdir}" >> .gdbinit
27309 if test x
$gdb_needs_out_file_path = xyes
27311 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27313 if test "x$subdirs" != x
; then
27316 echo "dir ${srcdir}/$s" >> .gdbinit
27319 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27321 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27325 # Find a directory in which to install a shared libgcc.
27327 # Check whether --enable-version-specific-runtime-libs was given.
27328 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27329 enableval
=$enable_version_specific_runtime_libs;
27333 # Substitute configuration variables
27397 if test x
${build} = x
${host} ; then
27398 if test x
${host} = x
${target} ; then
27399 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27401 echo "Links are now set up to build a cross-compiler" 1>&2
27402 echo " from ${host} to ${target}." 1>&2
27405 if test x
${host} = x
${target} ; then
27406 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27407 echo " for ${target}." 1>&2
27409 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27410 echo " from ${host} to ${target}." 1>&2
27422 if test "x${CLOOGLIBS}" != "x" ; then
27424 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27428 # Check for plugin support
27429 # Check whether --enable-plugin was given.
27430 if test "${enable_plugin+set}" = set; then :
27431 enableval
=$enable_plugin; enable_plugin
=$enableval
27433 enable_plugin
=yes; default_plugin
=yes
27441 if test x
$build = x
$host; then
27442 export_sym_check
="nm${exeext} -g"
27443 elif test x
$host = x
$target; then
27444 export_sym_check
="$gcc_cv_nm -g"
27450 if test x
$build = x
$host; then
27451 export_sym_check
="objdump${exeext} -T"
27452 elif test x
$host = x
$target; then
27453 export_sym_check
="$gcc_cv_objdump -T"
27460 if test x
"$enable_plugin" = x
"yes"; then
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27463 $as_echo_n "checking for exported symbols... " >&6; }
27464 if test "x$export_sym_check" != x
; then
27465 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27466 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27467 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27468 : # No need to use a flag
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27470 $as_echo "yes" >&6; }
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27473 $as_echo "yes" >&6; }
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27475 $as_echo_n "checking for -rdynamic... " >&6; }
27476 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27477 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27478 plugin_rdynamic
=yes
27479 pluginlibs
="-rdynamic"
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27485 $as_echo "$plugin_rdynamic" >&6; }
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27489 $as_echo "unable to check" >&6; }
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27495 $as_echo_n "checking for library containing dlopen... " >&6; }
27496 if test "${ac_cv_search_dlopen+set}" = set; then :
27497 $as_echo_n "(cached) " >&6
27499 ac_func_search_save_LIBS
=$LIBS
27500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27503 /* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27518 for ac_lib
in '' dl
; do
27519 if test -z "$ac_lib"; then
27520 ac_res
="none required"
27523 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27525 if ac_fn_c_try_link
"$LINENO"; then :
27526 ac_cv_search_dlopen
=$ac_res
27528 rm -f core conftest.err conftest.
$ac_objext \
27530 if test "${ac_cv_search_dlopen+set}" = set; then :
27534 if test "${ac_cv_search_dlopen+set}" = set; then :
27537 ac_cv_search_dlopen
=no
27539 rm conftest.
$ac_ext
27540 LIBS
=$ac_func_search_save_LIBS
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27543 $as_echo "$ac_cv_search_dlopen" >&6; }
27544 ac_res
=$ac_cv_search_dlopen
27545 if test "$ac_res" != no
; then :
27546 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27550 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27551 pluginlibs
="$pluginlibs -ldl"
27555 # Check that we can build shared objects with -fPIC -shared
27556 saved_LDFLAGS
="$LDFLAGS"
27557 saved_CFLAGS
="$CFLAGS"
27560 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27561 CFLAGS
="$CFLAGS -fPIC"
27562 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27565 CFLAGS
="$CFLAGS -fPIC"
27566 LDFLAGS
="$LDFLAGS -fPIC -shared"
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27570 $as_echo_n "checking for -fPIC -shared... " >&6; }
27571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27572 /* end confdefs.h. */
27582 if ac_fn_c_try_link
"$LINENO"; then :
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27584 $as_echo "yes" >&6; }; have_pic_shared
=yes
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27587 $as_echo "no" >&6; }; have_pic_shared
=no
27589 rm -f core conftest.err conftest.
$ac_objext \
27590 conftest
$ac_exeext conftest.
$ac_ext
27591 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27595 LDFLAGS
="$saved_LDFLAGS"
27596 CFLAGS
="$saved_CFLAGS"
27598 # If plugin support had been requested but not available, fail.
27599 if test x
"$enable_plugin" = x
"no" ; then
27600 if test x
"$default_plugin" != x
"yes"; then
27602 Building GCC with plugin support requires a host that supports
27603 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27610 if test x
"$enable_plugin" = x
"yes"; then
27612 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27617 # Check whether --enable-libquadmath-support was given.
27618 if test "${enable_libquadmath_support+set}" = set; then :
27619 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27621 ENABLE_LIBQUADMATH_SUPPORT
=yes
27624 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27626 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27631 # Specify what hash style to use by default.
27633 # Check whether --with-linker-hash-style was given.
27634 if test "${with_linker_hash_style+set}" = set; then :
27635 withval
=$with_linker_hash_style; case x
"$withval" in
27637 LINKER_HASH_STYLE
=sysv
27640 LINKER_HASH_STYLE
=gnu
27643 LINKER_HASH_STYLE
=both
27646 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27650 LINKER_HASH_STYLE
=''
27653 if test x
"${LINKER_HASH_STYLE}" != x
; then
27655 cat >>confdefs.h
<<_ACEOF
27656 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27661 # Configure the subdirectories
27662 # AC_CONFIG_SUBDIRS($subdirs)
27664 # Create the Makefile
27665 # and configure language subdirectories
27666 ac_config_files
="$ac_config_files $all_outputs"
27669 ac_config_commands
="$ac_config_commands default"
27671 cat >confcache
<<\_ACEOF
27672 # This file is a shell script that caches the results of configure
27673 # tests run on this system so they can be shared between configure
27674 # scripts and configure runs, see configure's option --config-cache.
27675 # It is not useful on other systems. If it contains results you don't
27676 # want to keep, you may remove or edit it.
27678 # config.status only pays attention to the cache file if you give it
27679 # the --recheck option to rerun configure.
27681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27683 # following values.
27687 # The following way of writing the cache mishandles newlines in values,
27688 # but we know of no workaround that is simple, portable, and efficient.
27689 # So, we kill variables containing newlines.
27690 # Ultrix sh set writes to stderr and can't be redirected directly,
27691 # and sets the high bit in the cache file unless we assign to the vars.
27693 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27694 eval ac_val
=\$
$ac_var
27698 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27699 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27702 _ | IFS | as_nl
) ;; #(
27703 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27704 *) { eval $ac_var=; unset $ac_var;} ;;
27710 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27711 *${as_nl}ac_space
=\
*)
27712 # `set' does not quote correctly, so add quotes: double-quote
27713 # substitution turns \\\\ into \\, and sed turns \\ into \.
27716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27719 # `set' quotes correctly as required by POSIX, so do not add quotes.
27720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27731 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27733 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27734 if test -w "$cache_file"; then
27735 test "x$cache_file" != "x/dev/null" &&
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27737 $as_echo "$as_me: updating cache $cache_file" >&6;}
27738 cat confcache
>$cache_file
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27746 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27747 # Let make expand exec_prefix.
27748 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27750 DEFS
=-DHAVE_CONFIG_H
27754 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27755 # 1. Remove the extension, and $U if already installed.
27756 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27757 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27758 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27759 # will be set to the directory where LIBOBJS objects are built.
27760 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27761 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27763 LIBOBJS
=$ac_libobjs
27765 LTLIBOBJS
=$ac_ltlibobjs
27770 : ${CONFIG_STATUS=./config.status}
27772 ac_clean_files_save
=$ac_clean_files
27773 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27775 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27777 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27779 # Generated by $as_me.
27780 # Run this file to recreate the current configuration.
27781 # Compiler output produced by configure, useful for debugging
27782 # configure, is in config.log if it exists.
27785 ac_cs_recheck=false
27788 SHELL=\${CONFIG_SHELL-$SHELL}
27791 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27792 ## -------------------- ##
27793 ## M4sh Initialization. ##
27794 ## -------------------- ##
27796 # Be more Bourne compatible
27797 DUALCASE
=1; export DUALCASE
# for MKS sh
27798 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27802 # is contrary to our usage. Disable this feature.
27803 alias -g '${1+"$@"}'='"$@"'
27804 setopt NO_GLOB_SUBST
27806 case `(set -o) 2>/dev/null` in #(
27818 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27819 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27822 # Prefer a ksh shell builtin over an external printf program on Solaris,
27823 # but without wasting forks for bash or zsh.
27824 if test -z "$BASH_VERSION$ZSH_VERSION" \
27825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27826 as_echo='print
-r --'
27827 as_echo_n='print
-rn --'
27828 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27829 as_echo='printf %s
\n'
27830 as_echo_n='printf %s
'
27832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27833 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27834 as_echo_n='/usr
/ucb
/echo -n'
27836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27837 as_echo_n_body='eval
27841 expr "X$arg" : "X\\(.*\\)$as_nl";
27842 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27844 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27846 export as_echo_n_body
27847 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27849 export as_echo_body
27850 as_echo='sh
-c $as_echo_body as_echo
'
27853 # The user is always right.
27854 if test "${PATH_SEPARATOR+set}" != set; then
27856 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27857 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27864 # We need space, tab and new line, in precisely that order. Quoting is
27865 # there to prevent editors from complaining about space-tab.
27866 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27867 # splitting by setting IFS to empty value.)
27870 # Find who we are. Look in the path if we contain no directory separator.
27872 *[\\/]* ) as_myself=$0 ;;
27873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27874 for as_dir in $PATH
27877 test -z "$as_dir" && as_dir=.
27878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27884 # We did not find ourselves, most probably we were run as `sh COMMAND'
27885 # in which case we are not to be found in the path.
27886 if test "x$as_myself" = x
; then
27889 if test ! -f "$as_myself"; then
27890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27894 # Unset variables that we do not need and which cause bugs (e.g. in
27895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27896 # suppresses any "Segmentation fault" message there. '((' could
27897 # trigger a bug in pdksh 5.2.14.
27898 for as_var
in BASH_ENV ENV MAIL MAILPATH
27899 do eval test x\
${$as_var+set} = xset \
27900 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27913 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27916 # as_fn_error ERROR [LINENO LOG_FD]
27917 # ---------------------------------
27918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27920 # script with status $?, using 1 if that was 0.
27923 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27925 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27928 $as_echo "$as_me: error: $1" >&2
27929 as_fn_exit
$as_status
27933 # as_fn_set_status STATUS
27934 # -----------------------
27935 # Set $? to STATUS, without forking.
27936 as_fn_set_status
()
27939 } # as_fn_set_status
27941 # as_fn_exit STATUS
27942 # -----------------
27943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27947 as_fn_set_status
$1
27953 # Portably unset VAR.
27956 { eval $1=; unset $1;}
27958 as_unset
=as_fn_unset
27959 # as_fn_append VAR VALUE
27960 # ----------------------
27961 # Append the text in VALUE to the end of the definition contained in VAR. Take
27962 # advantage of any shell optimizations that allow amortized linear growth over
27963 # repeated appends, instead of the typical quadratic growth present in naive
27965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27966 eval 'as_fn_append ()
27977 # as_fn_arith ARG...
27978 # ------------------
27979 # Perform arithmetic evaluation on the ARGs, and store the result in the
27980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27981 # must be portable across $(()) and expr.
27982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27983 eval 'as_fn_arith ()
27990 as_val
=`expr "$@" || test $? -eq 1`
27995 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27996 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28002 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28003 as_basename
=basename
28008 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28014 as_me
=`$as_basename -- "$0" ||
28015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28016 X"$0" : 'X\(//\)$' \| \
28017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28019 sed '/^.*\/\([^/][^/]*\)\/*$/{
28033 # Avoid depending upon Character Ranges.
28034 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28035 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28036 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28037 as_cr_digits
='0123456789'
28038 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28040 ECHO_C
= ECHO_N
= ECHO_T
=
28041 case `echo -n x` in #(((((
28043 case `echo 'xy\c'` in
28044 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28046 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28053 rm -f conf$$ conf$$.exe conf$$.
file
28054 if test -d conf$$.dir
; then
28055 rm -f conf$$.dir
/conf$$.
file
28058 mkdir conf$$.dir
2>/dev
/null
28060 if (echo >conf$$.
file) 2>/dev
/null
; then
28061 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28063 # ... but there are two gotchas:
28064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28066 # In both cases, we have to default to `cp -p'.
28067 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28069 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28077 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28078 rmdir conf$$.dir
2>/dev
/null
28083 # Create "$as_dir" as a directory, including parents if necessary.
28088 -*) as_dir
=.
/$as_dir;;
28090 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28094 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28095 *) as_qdir
=$as_dir;;
28097 as_dirs
="'$as_qdir' $as_dirs"
28098 as_dir
=`$as_dirname -- "$as_dir" ||
28099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28100 X"$as_dir" : 'X\(//\)[^/]' \| \
28101 X"$as_dir" : 'X\(//\)$' \| \
28102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28103 $as_echo X"$as_dir" |
28104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28108 /^X\(\/\/\)[^/].*/{
28121 test -d "$as_dir" && break
28123 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28124 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28128 if mkdir
-p .
2>/dev
/null
; then
28129 as_mkdir_p
='mkdir -p "$as_dir"'
28131 test -d .
/-p && rmdir .
/-p
28135 if test -x / >/dev
/null
2>&1; then
28136 as_test_x
='test -x'
28138 if ls -dL / >/dev
/null
2>&1; then
28145 if test -d "$1"; then
28151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28152 ???[sx]*):;;*)false;;esac;fi
28156 as_executable_p
=$as_test_x
28158 # Sed expression to map a string onto a valid CPP name.
28159 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28161 # Sed expression to map a string onto a valid variable name.
28162 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28166 ## ----------------------------------- ##
28167 ## Main body of $CONFIG_STATUS script. ##
28168 ## ----------------------------------- ##
28170 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28173 # Save the log message, to keep $0 and so on meaningful, and to
28174 # report actual input values of CONFIG_FILES etc. instead of their
28175 # values after options handling.
28177 This file was extended by $as_me, which was
28178 generated by GNU Autoconf 2.64. Invocation command line was
28180 CONFIG_FILES = $CONFIG_FILES
28181 CONFIG_HEADERS = $CONFIG_HEADERS
28182 CONFIG_LINKS = $CONFIG_LINKS
28183 CONFIG_COMMANDS = $CONFIG_COMMANDS
28186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28191 case $ac_config_files in *"
28192 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28195 case $ac_config_headers in *"
28196 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28201 # Files that config.status was made for.
28202 config_files="$ac_config_files"
28203 config_headers="$ac_config_headers"
28204 config_commands="$ac_config_commands"
28208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28210 \`$as_me' instantiates files and other configuration actions
28211 from templates according to the current configuration. Unless the files
28212 and actions are specified as TAGs, all are instantiated by default.
28214 Usage: $0 [OPTION]... [TAG]...
28216 -h, --help print this help, then exit
28217 -V, --version print version number and configuration settings, then exit
28218 -q, --quiet, --silent
28219 do not print progress messages
28220 -d, --debug don't remove temporary files
28221 --recheck update $as_me by reconfiguring in the same conditions
28222 --file=FILE[:TEMPLATE]
28223 instantiate the configuration file FILE
28224 --header=FILE[:TEMPLATE]
28225 instantiate the configuration header FILE
28227 Configuration files:
28230 Configuration headers:
28233 Configuration commands:
28236 Report bugs to the package provider."
28239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28242 configured by $0, generated by GNU Autoconf 2.64,
28243 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28245 Copyright (C) 2009 Free Software Foundation, Inc.
28246 This config.status script is free software; the Free Software Foundation
28247 gives unlimited permission to copy, distribute and modify it."
28252 test -n "\$AWK" || AWK=awk
28255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28256 # The default lists apply if the user does not specify any file.
28262 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28263 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28274 # Handling of the options.
28275 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28277 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28278 $as_echo "$ac_cs_version"; exit ;;
28279 --debug |
--debu |
--deb |
--de |
--d |
-d )
28281 --file |
--fil |
--fi |
--f )
28284 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28286 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28287 ac_need_defaults
=false
;;
28288 --header |
--heade |
--head |
--hea )
28291 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28293 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28294 ac_need_defaults
=false
;;
28296 # Conflict between --help and --header
28297 as_fn_error
"ambiguous option: \`$1'
28298 Try \`$0 --help' for more information.";;
28299 --help |
--hel |
-h )
28300 $as_echo "$ac_cs_usage"; exit ;;
28301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28302 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28305 # This is an error.
28306 -*) as_fn_error
"unrecognized option: \`$1'
28307 Try \`$0 --help' for more information." ;;
28309 *) as_fn_append ac_config_targets
" $1"
28310 ac_need_defaults
=false
;;
28316 ac_configure_extra_args
=
28318 if $ac_cs_silent; then
28320 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28325 if \$ac_cs_recheck; then
28326 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28328 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28329 CONFIG_SHELL='$SHELL'
28330 export CONFIG_SHELL
28335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28339 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28340 ## Running $as_me. ##
28346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28356 # Handling of arguments.
28357 for ac_config_target
in $ac_config_targets
28359 case $ac_config_target in
28360 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28361 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28362 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28363 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28364 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28365 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28367 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28372 # If the user did not use the arguments to specify the items to instantiate,
28373 # then the envvar interface is used. Set only those that are not.
28374 # We use the long form for the default assignment because of an extremely
28375 # bizarre bug on SunOS 4.1.3.
28376 if $ac_need_defaults; then
28377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28382 # Have a temporary directory for convenience. Make it in the build tree
28383 # simply because there is no reason against having it here, and in addition,
28384 # creating and moving files from /tmp can sometimes cause problems.
28385 # Hook for its removal unless debugging.
28386 # Note that there is a small window in which the directory will not be cleaned:
28387 # after its creation but before its name has been assigned to `$tmp'.
28391 trap 'exit_status=$?
28392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28394 trap 'as_fn_exit 1' 1 2 13 15
28396 # Create a (secure) tmp directory for tmp files.
28399 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28400 test -n "$tmp" && test -d "$tmp"
28403 tmp
=.
/conf$$
-$RANDOM
28404 (umask 077 && mkdir
"$tmp")
28405 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28407 # Set up the scripts for CONFIG_FILES section.
28408 # No need to generate them if there are no CONFIG_FILES.
28409 # This happens for instance with `./config.status config.h'.
28410 if test -n "$CONFIG_FILES"; then
28412 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28413 ac_cs_awk_getline
=:
28414 ac_cs_awk_pipe_init
=
28415 ac_cs_awk_read_file
='
28416 while ((getline aline < (F[key])) > 0)
28419 ac_cs_awk_pipe_fini
=
28421 ac_cs_awk_getline
=false
28422 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28423 ac_cs_awk_read_file
='
28425 print "cat " F[key] " &&"
28426 '$ac_cs_awk_pipe_init
28427 # The final `:' finishes the AND list.
28428 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28430 ac_cr
=`echo X | tr X '\015'`
28431 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28432 # But we know of no other shell where ac_cr would be empty at this
28433 # point, so we can use a bashism as a fallback.
28434 if test "x$ac_cr" = x
; then
28435 eval ac_cr
=\$
\'\\r
\'
28437 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28438 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28441 ac_cs_awk_cr
=$ac_cr
28444 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28447 # Create commands to substitute file output variables.
28449 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28450 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28451 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28454 } >conf$
$files.sh
&&
28455 . .
/conf$
$files.sh ||
28456 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28457 rm -f conf$
$files.sh
28460 echo "cat >conf$$subs.awk <<_ACEOF" &&
28461 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28463 } >conf$$subs.sh ||
28464 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28465 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28467 for ac_last_try in false false false false false :; do
28468 . ./conf$$subs.sh ||
28469 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28471 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28472 if test $ac_delim_n = $ac_delim_num; then
28474 elif $ac_last_try; then
28475 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28477 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28480 rm -f conf$$subs.sh
28482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28483 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28487 s/^/S["/; s
/!.
*/"]=/
28497 s/\(.\{148\}\).*/\1/
28499 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28504 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28511 s/\(.\{148\}\).*/\1/
28513 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28517 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28522 ' <conf$$subs.awk | sed '
28527 ' >>$CONFIG_STATUS || ac_write_fail=1
28528 rm -f conf$$subs.awk
28529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28531 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28532 for (key in S) S_is_set[key] = 1
28534 \$ac_cs_awk_pipe_init
28538 nfields = split(line, field, "@
")
28540 len = length(field[1])
28541 for (i = 2; i < nfields; i++) {
28543 keylen = length(key)
28544 if (S_is_set[key]) {
28546 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28547 len += length(value) + length(field[++i])
28552 if (nfields == 3 && !substed) {
28554 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28555 \$ac_cs_awk_read_file
28561 \$ac_cs_awk_pipe_fini
28564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28565 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28566 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28569 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28570 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28573 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28574 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28575 # trailing colons and then remove the whole line if VPATH becomes empty
28576 # (actually we leave an empty line to preserve line numbers).
28577 if test "x
$srcdir" = x.; then
28578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28579 s/:*\$(srcdir):*/:/
28580 s/:*\${srcdir}:*/:/
28582 s/^\([^=]*=[ ]*\):*/\1/
28588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28589 fi # test -n "$CONFIG_FILES"
28591 # Set up the scripts for CONFIG_HEADERS section.
28592 # No need to generate them if there are no CONFIG_HEADERS.
28593 # This happens for instance with `./config.status Makefile'.
28594 if test -n "$CONFIG_HEADERS"; then
28595 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28599 # Transform confdefs.h into an awk script `defines.awk', embedded as
28600 # here-document in config.status, that substitutes the proper values into
28601 # config.h.in to produce config.h.
28603 # Create a delimiter string that does not exist in confdefs.h, to ease
28604 # handling of long lines.
28606 for ac_last_try in false false :; do
28607 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28608 if test -z "$ac_t"; then
28610 elif $ac_last_try; then
28611 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28613 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28617 # For the awk script, D is an array of macro values keyed by name,
28618 # likewise P contains macro parameters if any. Preserve backslash
28619 # newline sequences.
28621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28623 s/.\{148\}/&'"$ac_delim"'/g
28626 s/^[ ]*#[ ]*define[ ][ ]*/ /
28633 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28635 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28640 D["\
1"]=" \
3\\\\\\n
"\\/p
28642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28647 s/.\{148\}/&'"$ac_delim"'/g
28652 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28655 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28657 ' <confdefs.h | sed '
28658 s/'"$ac_delim"'/"\\\
28659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28662 for (key in D) D_is_set[key] = 1
28665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28667 split(line, arg, " ")
28668 if (arg[1] == "#") {
28672 defundef
= substr
(arg
[1], 2)
28675 split(mac1
, mac2
, "(") #)
28677 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28678 if (D_is_set
[macro
]) {
28679 # Preserve the white space surrounding the "#".
28680 print prefix
"define", macro P
[macro
] D
[macro
]
28683 # Replace #undef with comments. This is necessary, for example,
28684 # in the case of _POSIX_SOURCE, which is predefined and required
28685 # on some systems where configure will not decide to define it.
28686 if (defundef
== "undef") {
28687 print
"/*", prefix defundef
, macro
, "*/"
28695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28696 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28697 fi # test -n "$CONFIG_HEADERS"
28700 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28705 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28707 case $ac_mode$ac_tag in
28709 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28710 :[FH
]-) ac_tag
=-:-;;
28711 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28728 -) ac_f
="$tmp/stdin";;
28729 *) # Look for the file first in the build tree, then in the source tree
28730 # (if the path is not absolute). The absolute path cannot be DOS-style,
28731 # because $ac_f cannot contain `:'.
28735 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28737 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28739 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28740 as_fn_append ac_file_inputs
" '$ac_f'"
28743 # Let's still pretend it is `configure' which instantiates (i.e., don't
28744 # use $as_me), people would be surprised to read:
28745 # /* config.h. Generated by config.status. */
28746 configure_input
='Generated from '`
28747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28749 if test x
"$ac_file" != x-
; then
28750 configure_input
="$ac_file. $configure_input"
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28752 $as_echo "$as_me: creating $ac_file" >&6;}
28754 # Neutralize special characters interpreted by sed in replacement strings.
28755 case $configure_input in #(
28756 *\
&* |
*\|
* |
*\\* )
28757 ac_sed_conf_input
=`$as_echo "$configure_input" |
28758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28759 *) ac_sed_conf_input
=$configure_input;;
28763 *:-:* |
*:-) cat >"$tmp/stdin" \
28764 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28769 ac_dir
=`$as_dirname -- "$ac_file" ||
28770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28771 X"$ac_file" : 'X\(//\)[^/]' \| \
28772 X"$ac_file" : 'X\(//\)$' \| \
28773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28774 $as_echo X"$ac_file" |
28775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28779 /^X\(\/\/\)[^/].*/{
28792 as_dir
="$ac_dir"; as_fn_mkdir_p
28796 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28798 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28799 # A ".." for each directory in $ac_dir_suffix.
28800 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28801 case $ac_top_builddir_sub in
28802 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28803 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28806 ac_abs_top_builddir
=$ac_pwd
28807 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28808 # for backward compatibility:
28809 ac_top_builddir
=$ac_top_build_prefix
28812 .
) # We are building in place.
28814 ac_top_srcdir
=$ac_top_builddir_sub
28815 ac_abs_top_srcdir
=$ac_pwd ;;
28816 [\\/]* | ?
:[\\/]* ) # Absolute name.
28817 ac_srcdir
=$srcdir$ac_dir_suffix;
28818 ac_top_srcdir
=$srcdir
28819 ac_abs_top_srcdir
=$srcdir ;;
28820 *) # Relative name.
28821 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28822 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28823 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28825 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28837 # If the template does not know about datarootdir, expand it.
28838 # FIXME: This hack should be removed a few years after 2.60.
28839 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28850 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28851 *datarootdir
*) ac_datarootdir_seen
=yes;;
28852 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28854 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28857 ac_datarootdir_hack='
28858 s&@datadir@&$datadir&g
28859 s&@docdir@&$docdir&g
28860 s&@infodir@&$infodir&g
28861 s&@localedir@&$localedir&g
28862 s&@mandir@&$mandir&g
28863 s&\\\${datarootdir}&$datarootdir&g' ;;
28867 # Neutralize VPATH when `$srcdir' = `.'.
28868 # Shell code in configure.ac might set extrasub.
28869 # FIXME: do we really want to maintain this feature?
28870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28871 ac_sed_extra="$ac_vpsub
28874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28876 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28877 s|@configure_input@|
$ac_sed_conf_input|
;t t
28878 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28879 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28880 s
&@srcdir@
&$ac_srcdir&;t t
28881 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28882 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28883 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28884 s
&@builddir@
&$ac_builddir&;t t
28885 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28886 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28887 $ac_datarootdir_hack
28889 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28890 if $ac_cs_awk_getline; then
28891 $AWK -f "$tmp/subs.
awk"
28893 $AWK -f "$tmp/subs.
awk" | $SHELL
28895 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28897 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28898 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28899 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28901 which seems to be undefined. Please make sure it is defined." >&5
28902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28903 which seems to be undefined. Please make sure it is defined." >&2;}
28907 -) cat "$tmp/out" && rm -f "$tmp/out";;
28908 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28910 || as_fn_error "could not create $ac_file" "$LINENO" 5
28916 if test x"$ac_file" != x-; then
28918 $as_echo "/* $configure_input */" \
28919 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28920 } >"$tmp/config.h" \
28921 || as_fn_error "could not create $ac_file" "$LINENO" 5
28922 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28924 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28927 mv "$tmp/config.h" "$ac_file" \
28928 || as_fn_error "could not create $ac_file" "$LINENO" 5
28931 $as_echo "/* $configure_input */" \
28932 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28933 || as_fn_error "could not create -" "$LINENO" 5
28937 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28938 $as_echo "$as_me: executing $ac_file commands" >&6;}
28943 case $ac_file$ac_mode in
28944 "as":F) chmod +x as ;;
28945 "collect-ld":F) chmod +x collect-ld ;;
28946 "nm":F) chmod +x nm ;;
28948 case ${CONFIG_HEADERS} in
28949 *auto-host.h:config.in*)
28952 # Make sure all the subdirs exist.
28953 for d in $subdirs doc build common c-family
28955 test -d $d || mkdir $d
28965 ac_clean_files=$ac_clean_files_save
28967 test $ac_write_fail = 0 ||
28968 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28971 # configure is writing to config.log, and then calls config.status.
28972 # config.status does its own redirection, appending to config.log.
28973 # Unfortunately, on DOS this fails, as config.log is still kept open
28974 # by configure, so config.status won't be able to
write to it
; its
28975 # output is simply discarded. So we exec the FD to /dev/null,
28976 # effectively closing config.log, so it can be properly (re)opened and
28977 # appended to by config.status. When coming back to configure, we
28978 # need to make the FD available again.
28979 if test "$no_create" != yes; then
28981 ac_config_status_args
=
28982 test "$silent" = yes &&
28983 ac_config_status_args
="$ac_config_status_args --quiet"
28985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28988 # would make configure fail if this is the last instruction.
28989 $ac_cs_success || as_fn_exit $?
28991 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28993 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}